Variations
Create 4 new variations of one of the 4 generated images by the Imagine request.
Last updated
Was this helpful?
Create 4 new variations of one of the 4 generated images by the Imagine request.
Last updated
Was this helpful?
POST
https://api.apiframe.pro/variations
Headers
Content-Type
application/json
Authorization*
Your APIFRAME API Key
Body
parent_task_id
*
string
The task ID of the original task
index
*
string
webhook_url
string
The final result and updates of this task will be posted at this URL.
webhook_secret
string
Will be passed as x-webhook-secret
in the webhook call headers for authentication.
Response
This endpoint doesn't generate images instantly, you can use the endpoint to fetch the result or use .
The result (posted to the webhook_url
or retrieved with the endpoint) looks like this:
If the job is not completed, you will get a result like this:
Code samples
The index of the image to create variations from. Can be 1, 2, 3 or 4 Can also be "strong" or "subtle", take a look