Creates variations of a given image
cURL
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>" } ] }
Bearer token authentication. Get your API key from the dashboard.
Successful response
The response is of type object.
object