Skip to main content
Grounding DINOFastHigh

Grounding DINO

Text-prompted object detection (39M+ runs) โ€” describe what to find in natural language ('red car, person wearing a hat') and get bounding boxes with confidence scores plus an annotated image.

2 credits
per image
Zero-shot detection from natural language
Bounding boxes + confidence scores (JSON)
Annotated visualization image
Adjustable box/text thresholds

Run it right now

Test this model instantly in the Console Playground โ€” no code required

Sign in to try

Use with AI Assistant

Copy usage instructions for Claude, ChatGPT, or other AI

Quick Start

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "adirik/grounding-dino",
  "input": {
    "image": "https://example.com/shelf.jpg",
    "query": "soda can, water bottle, snack bag",
    "box_threshold": 0.3
  }
}'

Parameters

ParameterTypeRequiredDefaultDescription
imagestringNo-Image to run detection on
querystringNo-Comma-separated things to detect, e.g. 'red car, person wearing a hat'
box_thresholdnumberNo0.25Confidence threshold for boxes (0-1)
text_thresholdnumberNo0.25Confidence threshold for text matching (0-1)
show_visualisationbooleanNotrueAlso return an annotated result image

How to Provide File Input

There are 3 ways to provide files for the image parameter:

Recommended

Direct Upload (Multipart)

Attach files directly to POST /v1/predictions/upload. No separate upload step needed.

curl -X POST "https://api.core.today/v1/predictions/upload" \
  -H "X-API-Key: cdt_your_api_key" \
  -F "model=adirik/grounding-dino" \
  -F 'input={"prompt":"your prompt here"}' \
  -F "file:image=@your_file.png"

Image URL

Pass a publicly accessible URL directly. You can also use file_url from the Storage API.

{
  "model": "adirik/grounding-dino",
  "input": {
    "prompt": "your prompt here",
    "image": "https://example.com/image.jpg"
  }
}
See the File Upload docs for more upload methods including Presigned URLs.

Common Parameters

Common parameters used when calling POST /v1/predictions.

ParameterTypeRequiredDefaultDescription
modelstringYes-Model identifier
inputobjectYes-Object containing the model-specific parameters from the table above
output_folderstringNo-Folder path for output files (max 256 chars, '..' not allowed)
webhook_urlstringNo-Webhook URL to call on completion
is_publicbooleanNofalseIf true, output files are also available via permanent public URLs

Examples

Detect Products

Find specific items in a shelf photo

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "adirik/grounding-dino",
  "input": {
    "image": "https://example.com/shelf.jpg",
    "query": "soda can, water bottle, snack bag",
    "box_threshold": 0.3
  }
}'

Tips & Best Practices

1Phrase queries as short noun phrases separated by commas
2Raise thresholds (0.3-0.4) to cut false positives; lower to catch more
3detections JSON gives you boxes for cropping or downstream editing
4For detection + caption + OCR in one call, see Florence-2 Large

Use Cases

Product detection in commerce photos
Shelf/inventory auditing
Dataset auto-labeling
Region targeting for downstream edits
Content compliance checks