POST
/
ideogram
/
replace-background
curl -X POST https://api.example.com/ideogram/replace-background \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://example.com/portrait.png",
    "prompt": "A beautiful beach at sunset"
  }'
Replace image background using the Ideogram Generate 3.0 model.

Request Parameters

image
string
required
Original image.
prompt
string
required
Description of the new background.
curl -X POST https://api.example.com/ideogram/replace-background \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://example.com/portrait.png",
    "prompt": "A beautiful beach at sunset"
  }'