Image Captioning
One-sentence caption, or ask a question about an image.
1 credits per run
~8s
image tagging
slug: image-caption
One call
curl
curl https://generativeaiapi.com/api/public/v1/generations \
-H "Authorization: Bearer gai_live_..." \
-H "Content-Type: application/json" \
-d '{
"model": "image-caption",
"image": "https://example.com/input.jpg",
"prompt": "an orbital greenhouse at golden hour",
"wait": true
}'Options
task
Task
What you get
- 1 credits per run — priced before you press go
- Failed generations are refunded automatically
- Takes an input file plus a prompt
- Same slug in the browser studio and the REST API