/images/generate, /images/virtual-try-on, /images/{id}/edit, or the other operation-specific endpoints. Those endpoints remain supported. For a new integration, start with the quickstart.
Move to public v1
Use the same operation path with the/v1 prefix, such as /v1/images/virtual-try-on or /v1/images/{id}/edit. Send the operation fields directly in the JSON body. The v1 reference defines its own smaller schema; do not copy every old field unchanged.
- Use
modelinstead of Generate’smodel_version. - Use one outfit source array, even for a single garment.
- Use
edit_typefor edit task selection, andmodefor inpainting. - Upscaling defaults to a 4K (2160p) target with SeedVR.
- Use
result.idas the source for the next image operation. Omit internal version fields.
v6; the unversioned endpoint still defaults to v1. Send model: "v1" explicitly on the new endpoint when keeping that model matters. Default model choices for other operations are listed in models and settings.
All new creation endpoints return 202 with a jobs array. Poll GET /v1/jobs/{id}. Creation uses the focused operation routes; the former generic POST /v1/jobs route has been removed.
The successful job response retains its existing fields, with additive result.id, result.type, and error.message fields. Job reads are restricted to the resolved workspace. The new /v1/images/{id} response is a compact media object; the old image response below remains available at /images/{id}.
Existing response shapes
For the existing image shape, call
GET /images/{id}. For several jobs, use POST /images/batch with up to 100 IDs. Match batch results by id; inaccessible or missing records are not placeholders in the returned array.
Existing image states
A five-second polling interval is a reasonable starting point for a small integration. Set a client deadline and retain job IDs when it expires so you can resume. Video may need a longer deadline than a still image.
An edit does not reset the original image
An original image can remaincompleted throughout an edit. The response includes a new version linked to a separate pending image job:
EDIT_JOB_ID, then retrieve the parent again to display its updated versions. A response can include older versions too.
For a single edit, compare version IDs before and after submitting. This excerpt uses the request and waitForJob helpers from the quickstart:
version_id with the next request. Omitting it uses the original source image, not automatically the most recent version.