edit-workflow
Replace background with Ideogram 4.5
Changed onRebuild the background of an image as the setting shown in a background_reference image, with Ideogram 4.5 at its highest quality. The people in the source image are kept, people in the reference are left out, and results keep the source image's aspect ratio. Returns a generation_id; poll GET /v2/generations/{generation_id} or supply a webhook_url.
post/v2/image/replace-background/ideogram-4-5
Request
- Base URL: (relative, and it does not resolve against the document’s source URL)
- URL: /v2/image/replace-background/ideogram-4-5
- Auth: one of:
- API key in header Api-Key
- HTTP bearer
Query parameters
dry_runboolean
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"
},
"background_reference_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
- ○
endpoint added
- ○