Skip to main content
POST
/
images
/
variations
Creates a variation of an image.
curl --request POST \
  --url https://{controlPlaneURL}/api/llm/images/variations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'model=<string>' \
  --form 'image=<string>' \
  --form n=123 \
  --form 'response_format=<string>' \
  --form 'size=<string>' \
  --form 'user=<string>'
{
  "created": 123,
  "data": [
    {
      "url": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
image
string
required

The image to vary.

model
string

The model to use for image generation.

n
integer | null

The number of variations to generate. Must be between 1 and 10.

response_format
string | null

The format in which the generated images are returned. Must be one of url or b64_json.

size
string | null

The size of the generated images.

user
string

A unique identifier representing your end-user.

Response

Successfully varied images

created
number
required
data
object[]
required
I