Skip to main content
POST
/
images
/
variations
Create Image Variation
curl --request POST \
  --url https://{gatewayBaseURL}/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>",
      "b64_json": "<string>",
      "revised_prompt": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://www.truefoundry.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data

Source image(s) and variation options.

model
string
required

The model to use for image generation.

image
required

The image(s) to create variations of. Must be a supported image file or an array of images.

n
integer | null

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

response_format
string | null

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

size
string | null

The size of the generated images.

user
string | null

A unique identifier representing your end-user.

Response

Image variations.

created
number
required

Unix timestamp when the image was generated.

data
object[]
required

Generated images.