Edit a prior generation
Images
Edit a prior generation
image is the job id of a completed image you own; the edit replays that job’s edit chain.
POST
Edit a prior generation
Authorizations
Headers
Optional unique key (≤255 chars) that makes this create idempotent: a retry with the same key returns the original job rather than starting a new one. Scoped to your API key; retained ~24h.
Maximum string length:
255Body
application/json
The id of a prior generation (job) to edit, resize, or upscale.
Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$The text prompt. Up to 2000 characters.
Required string length:
1 - 2000Up to 4 reference images to guide the generation.
Maximum array length:
4A reference image: either an https URL we ingest (SSRF-guarded, then re-hosted) or the id/url of one of your uploads or prior generations. Resolved server-side to our storage.
Required string length:
1 - 2048Response
Accepted

