POST
/
images
/
variations
Create image variations
curl --request POST \
  --url https://api.anyapi.ai/v1/images/variations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form image=@example-file \
  --form n=2 \
  --form size=1024x1024
{
  "created": 123,
  "data": [
    {
      "url": "<string>",
      "b64_json": "<string>",
      "revised_prompt": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Get your API key from the dashboard.

Body

multipart/form-data

Response

200
application/json

Successful response

The response is of type object.