curl --location "https://randomseed.lol/v1/caption" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer $RANDOMSEED_API_KEY" \
--data '{
"caption_image": {
"caption_image_url": "...",
"instruction_text": "Write me an extremely detailed caption"
}
}'
{
"caption": "A highly detailed and annotated illustration of the inner workings of a human head, showcasing the muscles, veins, arteries, and nerves"
}
Endpoints
v1/caption
Describe an image using BakLLaVA
curl --location "https://randomseed.lol/v1/caption" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer $RANDOMSEED_API_KEY" \
--data '{
"caption_image": {
"caption_image_url": "...",
"instruction_text": "Write me an extremely detailed caption"
}
}'
{
"caption": "A highly detailed and annotated illustration of the inner workings of a human head, showcasing the muscles, veins, arteries, and nerves"
}
API key
Create your account on RandomSeed & grab your api keyHeaders
Your API key. This is required by most endpoints to access our API programatically. You can get your api key by clicking on ‘API reference’ tab under your profile icon.
Body
Describe how you want to caption the image. E.g. “Write me an extremely detailed caption”
Response
curl --location "https://randomseed.lol/v1/caption" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer $RANDOMSEED_API_KEY" \
--data '{
"caption_image": {
"caption_image_url": "...",
"instruction_text": "Write me an extremely detailed caption"
}
}'
{
"caption": "A highly detailed and annotated illustration of the inner workings of a human head, showcasing the muscles, veins, arteries, and nerves"
}