Edit images based on a text prompt.
Provide input images (base64 or public URL) and a prompt describing the desired edit. Returns base64-encoded PNG images and billing metadata.
Request body for the edit endpoint.
Input images can be provided as either raw base64-encoded bytes or
publicly accessible URLs (e.g. https://example.com/photo.jpg).
Both formats are accepted and detected automatically.
Text prompt describing the desired edit.
Input images as raw base64 strings or publicly accessible URLs. Both formats are auto-detected.
10Subset of your account's profiles relevant to this request. Your account holds all profiles, but only pass the ones belonging to the end-user whose photo is being edited. These profiles serve as candidates for identity preservation. The fewer profiles you pass, the easier it is for our system to determine which profiles are relevant.
Number of output images to generate (1-4).
1 <= x <= 4Output aspect ratio (auto, 1:1, 3:4, 4:3, 9:16, 16:9).
auto, 1:1, 3:4, 4:3, 9:16, 16:9 Output resolution (1K, 4K).
1K, 4K Successful Response
Response returned by the edit and generate endpoints.
Base64-encoded PNG output image(s).
Dictionary mapping a known subject's profile_id to the number of times they were generated. If multiple variations are generated, this will be the aggregated count across all variations.