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 key

Headers

Authorization
string
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

caption_image_url
string
required
Url to the image you want to caption
instruction_text
string
default:""
Describe how you want to caption the image. E.g. “Write me an extremely detailed caption”

Response

caption
string
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"
}