Grounding DINO Base

GROUNDING_DINO_BASE

Finds the things you name in a picture, such as "red car, person with a helmet", and returns a box around each one.

Vision & Analysisobject-detectionzero-shotgrounding-dinoapache-2.0Fine-tunable
Grounding DINO Base: Vision & Analysis model on Kainguru

Grounding DINO Base inputs and output

NameTypeRequiredDefaultDetails
labelstextYes—What to find, comma-separated ("cat, red car") or a JSON array (["cat", "red car"]): up to 32 labels of up to 64 characters. Grounding DINO reads them in at most 2 prompts of 256 tokens, which only very long or symbol-heavy lists exceed.
1–12418 characters
imagefileYes—The picture to search: PNG, JPEG or WebP, up to 20 MB and 40 megapixels.
image/png, jpeg, webp
box_thresholdnumberNo—Lowest box score to return, 0 to 1; higher returns fewer, surer boxes. Empty uses the model's recommended value.
0–1
text_thresholdnumberNo—How well a box must match its label, 0 to 1. Empty uses the model's recommended value.
0–1

Output. JSON array, best first: [{"label": "...", "score": 0.87, "box": [x0, y0, x1, y1]}, ...], box corners in pixels of the image, at most 100 boxes.

Run Grounding DINO Base with the API

Send your API key in the X-API-Key header. The run is asynchronous: submit it, then poll it until it finishes. Create an API key.

cURL
curl -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=GROUNDING_DINO_BASE" \
  -H "X-API-Key: kg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "image": "https://example.com/input.png",
    "labels": "example"
  },
  "outputFormat": "json"
}'

# Poll until the execution reaches a terminal state
curl "https://api.kainguru.com/api/v1/executions/{executionId}" \
  -H "X-API-Key: kg_your_api_key"
Python
from kainguru import KainguruClient

with KainguruClient(api_key="kg_your_api_key", base_url="https://api.kainguru.com/api") as client:
    submitted = client.executions.execute(
        "GROUNDING_DINO_BASE",
        {
          "image": "https://example.com/input.png",
          "labels": "example"
        },
        output_format="json",
    )
    result = client.executions.await_completion(submitted.id)
    print(result.execution.output)

Fine-tune Grounding DINO Base

You can fine-tune Grounding DINO Base on your own data and run the tuned model through the same API. Dataset: Images plus a JSONL manifest, one {"file", "boxes", "labels"} per image: file as its upload returned it, boxes [[x0, y0, x1, y1], ...] in pixels, a label per box, empty lists if nothing to find. 4 to 1000 images, up to 100 boxes each, 32 different labels.

The steps are in the docs.

Grounding DINO Base pricing

Price per request: 0.0437 credits ($0.000437). The price is shown again before every run; all prices are on the pricing page.

Licence and source

OWLv2 Base: Vision & Analysis model on Kainguru
Vision & Analysis

OWLv2 Base

Finds the things you name in a picture, even rare or unusual ones, and returns a box around each one.

Fine-tunable
Docling Layout Heron: Vision & Analysis model on Kainguru
Vision & Analysis

Docling Layout Heron

Finds the layout of a document page, such as text blocks, titles, section headers, tables, pictures, captions…

Fine-tunable
Moondream 2: Vision & Analysis model on Kainguru
Vision & Analysis

Moondream 2

Moondream 2 is a small vision model: it answers questions about a picture, writes short, normal or long captions and…

Fine-tunable
RF-DETR Large: Vision & Analysis model on Kainguru
Vision & Analysis

RF-DETR Large

Detects the 80 everyday object classes of COCO, such as people, vehicles, animals, food and household items, with a…

Fine-tunable
Florence-2 Large: Vision & Analysis model on Kainguru
Vision & Analysis

Florence-2 Large

One small vision model that captions images, reads text, boxes objects and finds things named by a phrase.

Fine-tunable
Deplot: Vision & Analysis model on Kainguru
Vision & Analysis

Deplot

DePlot from Google reads a chart or plot image and returns the data table drawn in it.