Replace an image background with Ideogram 3.0
Replaces the background of one image from a text prompt while preserving the foreground subject, generated by Ideogram 3.0 inpainting. The foreground mask is detected automatically; callers do not provide a mask.
The request is processed asynchronously. Poll GET /v1/generations/{generation_id} with the returned generation_id until the generation is completed or failed.
Supply exactly one source transport: an existing AssetIdentifier in image_asset_identifier, or raw image bytes in a multipart request. Supplying both or neither is rejected with a 400. The source's longer side must be at most 3 times its shorter side; wider aspect ratios are rejected with a 400.
Query parameters
When true, the request is validated and priced but not run: nothing is generated, stored, or billed, and no safety review is performed. The response is a PriceQuote object instead of the usual response for this endpoint. Send exactly the request you would send to generate, so the quote reflects the same options.
Request body
Example request
{
"image_asset_identifier": {
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
},
"webhook_url": "https://api.example.com/webhooks/ideogram"
}Response
Background replacement accepted for asynchronous processing.
Example response
{
"generation_id": "generation_id"
}Changes
Changed in 3 of the 34 revisions of this API.613
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
- ▲
removed the enum value
DEFAULTof the request property(media type: multipart/form-data)request-property-enum-value-removed
- ▲
removed the enum value
DEFAULTof the request property(media type: application/json)request-property-enum-value-removed
- ▲
removed the enum value
QUALITYof the request property(media type: multipart/form-data)request-property-enum-value-removed
- ▲
removed the enum value
QUALITYof the request property(media type: application/json)request-property-enum-value-removed
- ▲
removed the enum value
TURBOof the request property(media type: multipart/form-data)request-property-enum-value-removed
- ▲
removed the enum value
TURBOof the request property(media type: application/json)request-property-enum-value-removed
- ○
the
request property default value changed fromDEFAULTtodefault(media type: multipart/form-data)request-property-default-value-changed
- ○
the
request property default value changed fromDEFAULTtodefault(media type: application/json)request-property-default-value-changed
- ○
added the new
defaultenum value to the request property(media type: multipart/form-data)request-property-enum-value-added
- ○
added the new
defaultenum value to the request property(media type: application/json)request-property-enum-value-added
- ○
added the new
qualityenum value to the request property(media type: multipart/form-data)request-property-enum-value-added
- ○
added the new
qualityenum value to the request property(media type: application/json)request-property-enum-value-added
- ○
added the new
turboenum value to the request property(media type: multipart/form-data)request-property-enum-value-added
- ○
added the new
turboenum value to the request property(media type: application/json)request-property-enum-value-added
This revision also has 13 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
endpoint added
endpoint-added
- ○