Skip to main content
SalesforceFastStandard

BLIP

Salesforce BLIP (173M+ runs) โ€” image captioning, visual question answering, and image-text matching in one model. The classic choice for bulk captioning at 1 credit per image.

1 credits
per image
Three tasks: captioning, VQA, image-text matching
173M+ runs โ€” the classic captioner
1 credit per image โ€” ideal for bulk pipelines
Short, reliable English captions

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": "salesforce/blip",
  "input": {
    "image": "https://example.com/photo.jpg",
    "task": "image_captioning"
  }
}'

Parameters

ParameterTypeRequiredDefaultDescription
imagestringYes-Input image
taskstringNoimage_captioningTask to perform
image_captioningvisual_question_answeringimage_text_matching
questionstringNo-Question about the image (VQA task only)
captionstringNo-Caption to match against the image (matching task only)

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=salesforce/blip" \
  -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": "salesforce/blip",
  "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

Bulk Captioning

Generate a caption for 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": "salesforce/blip",
  "input": {
    "image": "https://example.com/photo.jpg",
    "task": "image_captioning"
  }
}'

Visual Question Answering

Ask a question about the 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": "salesforce/blip",
  "input": {
    "image": "https://example.com/photo.jpg",
    "task": "visual_question_answering",
    "question": "How many people are in the picture?"
  }
}'

Tips & Best Practices

1Captions are short English sentences โ€” great for alt-text and tags
2For longer free-form answers, moondream2 gives richer descriptions
3image_text_matching scores how well a caption fits โ€” useful for ranking

Use Cases

Alt-text generation at scale
Image library auto-tagging
Dataset caption bootstrapping
Simple visual QA
Image-text relevance scoring