Create an image variation (async, image-to-image)
Generate a new image based on a source image, guided by a prompt. Give the source either as a library file_uuid (upload via POST /v1/files/upload) or inline as base64 in image_data; exactly one of the two. Returns immediately with a job_id - poll GET /v1/jobs/{id} until status is completed, then use download_url. Discover valid model values via GET /v1/models.
With guided: true the prompt is wrapped in the instructions the Image Variator uses (shaped by variability), prompt may be empty, and the editing fields apply: mask_data (inpainting: a PNG the size of the source, black marks what to regenerate), crop (vary only that region), extension_direction and aspect_ratio_processed (the source was padded with lime green #00FF00 areas to fill). Without guided, prompt is required and sent to the model as written.
Request
- Base URL: https://contentmaschine.ai/api
- URL: https://contentmaschine.ai/api/v1/images/vary
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://contentmaschine.ai/api/oauth/authorize, token URL https://contentmaschine.ai/api/oauth/token)
Request body
Example request
{
"file_uuid": "3f2504e0-4f89-41d3-9a0c-0305e82c3301",
"prompt": "Same composition, but at sunset with warm golden light"
}Response
Job queued
Example response
{
"success": true,
"data": {
"status": "pending"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.