Skip to main content
MoondreamFastHigh

Moondream2

Small but capable vision-language model (14M+ runs) โ€” ask free-form questions about any image and get detailed answers. Efficient VQA for tagging, moderation prep, and rich alt-text.

5 credits
per image
Free-form questions about any image
Detailed multi-sentence answers
Small model โ€” fast and cheap (7 credits)
Good at counting, reading, and describing

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": "lucataco/moondream2",
  "input": {
    "image": "https://example.com/scene.jpg",
    "prompt": "Describe this image in detail, including colors, objects, and mood."
  }
}'

Parameters

ParameterTypeRequiredDefaultDescription
promptstringNoDescribe this imageQuestion or instruction about the image
imagestringYes-Input 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=lucataco/moondream2" \
  -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": "lucataco/moondream2",
  "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

Detailed Description

Get a rich description of an image

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "lucataco/moondream2",
  "input": {
    "image": "https://example.com/scene.jpg",
    "prompt": "Describe this image in detail, including colors, objects, and mood."
  }
}'

Product Attributes

Extract structured attributes from a product 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": "lucataco/moondream2",
  "input": {
    "image": "https://example.com/product.jpg",
    "prompt": "List the product's color, material, and any visible text."
  }
}'

Tips & Best Practices

1Ask specific questions โ€” 'What brand is the logo?' beats 'Describe this'
2Great mid-point between 1-credit BLIP captions and expensive frontier VLMs
3Answers are in English; translate downstream if needed

Use Cases

Rich image descriptions
Content moderation pre-screening
Product attribute extraction
Chart and diagram explanation
Accessibility alt-text