API key
Create your account on RandomSeed & grab your api key
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
Url to the image you want to caption
Describe how you want to caption the image. E.g. “Write me an extremely detailed caption”
Response
Includes the caption message
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"
}