D-FINE API
Real-time DETR that redefines box regression as fine-grained distribution refinement with self-distillation; X model reaches ~59 AP on COCO with Objects365 pretraining.
Call D-FINE
Send one request with your API key. The response comes back in the same call. See the API reference for every field.
import os, requests res = requests.post( "https://api.openrobotics.dev/v1/detect", headers={"Authorization": f"Bearer {os.environ['OPENROBOTICS_API_KEY']}"}, json={ "model": "ustc/d-fine", "image": "<base64 JPEG or PNG>", "labels": ["cup", "bowl"], },).json()res["detections"] # label, score, boxGPUs start on demand. If D-FINE hasn't been called for a while, the first request returns 503 with a Retry-After header while it boots (usually a few minutes, never billed).
Inputs
What D-FINE needs in a request as served (ustc-community/dfine-xlarge-obj2coco), beyond the fields every /v1/detect call takes. The same spec is in inputs on GET /v1/models.
- Notes
- Closed set: each label is matched to one of the detector's fixed classes (e.g. COCO's 80), case-insensitively, exactly or by containment; labels that match none are ignored.
Guides about D-FINE
- Object detection models: RF-DETR vs Grounding DINO and more
- Compare real-time detectors (RF-DETR, D-FINE) with open-vocabulary ones (Grounding DINO, OWLv2, Florence-2, YOLO-World): licenses, sizes and when to use each.
- Physical AI explained: the open model stack for robots
- What physical AI (embodied AI) means, the five kinds of models a robot uses, from perception to VLAs and world models, and open examples of each.
D-FINE FAQ
- How do I run D-FINE without my own GPU?
- Call POST /v1/detect on the OpenRobotics API with "model": "ustc/d-fine". We run D-FINE on cloud GPUs that start on demand, so there is nothing to install or host.
- How much does the D-FINE API cost?
- $0.10 per 1,000 calls, billed only for successful calls. Pay with prepaid credits or monthly pay-as-you-go.
- What license does D-FINE use?
- The weights we serve (ustc-community/dfine-xlarge-obj2coco) are released under Apache-2.0 (HGNetv2 backbone, trained from scratch on Objects365/COCO). Check the license for your use case.
- Is D-FINE open source?
- D-FINE's weights are publicly available under Apache-2.0 (HGNetv2 backbone, trained from scratch on Objects365/COCO). OpenRobotics serves them behind an API so you can use the model without hosting it.
Run D-FINE with one API call
Create a key, send POST /v1/detect with "model": "ustc/d-fine", and pay $0.10 per 1,000 calls.