Ideogram 3.0 Replace Background
Ideogram 3.0 Replace Background removes and swaps image backgrounds while preserving key foreground subjects. Ideal for product mockups, marketing assets, and design overlays where consistent scenes and fast iteration matter for teams and creators.
API Options
Platform-level options for task execution and delivery.
-
taskType
string required value: imageInference -
Identifier for the type of task being performed
-
taskUUID
string required UUID v4 -
UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.
-
outputType
string default: URL -
Image output type.
Allowed values 3 values
-
outputFormat
string default: JPG -
Specifies the file format of the generated output. The available values depend on the task type and the specific model's capabilities.
- `JPG`: Best for photorealistic images with smaller file sizes (no transparency).
- `PNG`: Lossless compression, supports high quality and transparency (alpha channel).
- `WEBP`: Modern format providing superior compression and transparency support.
**Transparency**: If you are using features like background removal or LayerDiffuse that require transparency, you must select a format that supports an alpha channel (e.g., `PNG`, `WEBP`, `TIFF`). `JPG` does not support transparency.Allowed values 3 values
-
outputQuality
integer min: 20 max: 99 default: 95 -
Compression quality of the output. Higher values preserve quality but increase file size.
-
webhookURL
string URI -
Specifies a webhook URL where JSON responses will be sent via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.
Learn more 1 resource
- Webhooks PLATFORM
- Webhooks
-
deliveryMethod
string default: sync -
Determines how the API delivers task results.
Allowed values 2 values
- Returns complete results directly in the API response.
- Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse.
Learn more 1 resource
- Task Polling PLATFORM
-
uploadEndpoint
string URI -
Specifies a URL where the generated content will be automatically uploaded using the HTTP PUT method. The raw binary data of the media file is sent directly as the request body. For secure uploads to cloud storage, use presigned URLs that include temporary authentication credentials.
Common use cases:
- Cloud storage: Upload directly to S3 buckets, Google Cloud Storage, or Azure Blob Storage using presigned URLs.
- CDN integration: Upload to content delivery networks for immediate distribution.
// S3 presigned URL for secure upload https://your-bucket.s3.amazonaws.com/generated/content.mp4?X-Amz-Signature=abc123&X-Amz-Expires=3600 // Google Cloud Storage presigned URL https://storage.googleapis.com/your-bucket/content.jpg?X-Goog-Signature=xyz789 // Custom storage endpoint https://storage.example.com/uploads/generated-image.jpgThe content data will be sent as the request body to the specified URL when generation is complete.
-
safety
object -
Content safety checking configuration for image generation.
Properties 2 properties
-
safety»checkContentcheckContent
boolean default: false -
Enable or disable content safety checking. When enabled, defaults to
fastmode.
-
safety»modemode
string default: none -
Safety checking mode for image generation.
Allowed values 2 values
- Disables checking.
- Performs a single check.
-
-
ttl
integer min: 60 -
Time-to-live (TTL) in seconds for generated content. Only applies when
outputTypeisURL.
-
includeCost
boolean default: false -
Include task cost in the response.
-
numberResults
integer min: 1 max: 20 default: 1 -
Number of results to generate. Each result uses a different seed, producing variations of the same parameters.
Inputs
Input resources for the task (images, audio, etc). These must be nested inside the inputs object.
inputs object.-
inputs»seedImageseedImage
string required -
Image used as a starting point for the generation (UUID, URL, Data URI, or Base64).
Learn more 3 resources
Generation Parameters
Core parameters for controlling the generated content.
-
model
string required value: ideogram:4@5 -
Identifier of the model to use for generation.
Learn more 3 resources
-
positivePrompt
string required min: 1 max: 2000 -
Text prompt describing elements to include in the generated output.
Learn more 2 resources
Provider Settings
Parameters specific to this model provider. These must be nested inside the providerSettings.ideogram object.
providerSettings.ideogram object.-
providerSettings»ideogram»magicPromptmagicPrompt
string default: AUTO -
Automatic prompt enhancement.
Allowed values 3 values
- Content-based enhancement.
- Always enhance.
- No enhancement.
-
providerSettings»ideogram»renderingSpeedrenderingSpeed
string default: DEFAULT -
Generation speed/quality tradeoff.
Allowed values 3 values
- Fastest generation.
- Balanced speed and quality.
- Best quality.
-
providerSettings»ideogram»styleCodestyleCode
string min: 8 max: 8 -
Predefined style code (8-char hex).
-
providerSettings»ideogram»stylePresetstylePreset
string -
Artistic style preset.
Allowed values 62 values
-
providerSettings»ideogram»styleReferenceImagesstyleReferenceImages
array of strings min items: 1max items: 4 -
Reference images for visual style transfer. The model extracts and applies the artistic style from these images.
-
providerSettings»ideogram»styleTypestyleType
string default: AUTO -
Visual style and rendering approach.
Allowed values 7 values
- Automatically selects the most appropriate style.
- Versatile style suitable for most content types.
- Photorealistic rendering with natural lighting and textures.
- Optimized for graphic design, logos, and typography.
- Three-dimensional rendering with depth and modeling effects.
- Anime/manga visual style.
- Stylized rendering for fictional and fantasy content.
Velvet Jewelry Gift Display
{
"taskType": "imageInference",
"taskUUID": "82c6b0a1-1f8b-41e1-9c11-b265be23939e",
"model": "ideogram:4@5",
"positivePrompt": "Replace the plain background with an opulent boutique window display scene that keeps the velvet jewelry gift box perfectly preserved as the main foreground subject. Surround it with soft champagne reflections, brushed brass accents, creamy marble surfaces, faint cascading satin fabric in the distance, delicate glass highlights, and elegant out-of-focus gemstones scattered far behind the subject. Premium luxury branding mood, refined composition, realistic lighting, shallow depth of field, sophisticated holiday gifting atmosphere, clean commercial product image, no text, no extra boxes, no people.",
"providerSettings": {
"ideogram": {
"renderingSpeed": "QUALITY",
"magicPrompt": "ON",
"stylePreset": "MAGAZINE_EDITORIAL"
}
},
"inputs": {
"seedImage": "https://assets.runware.ai/assets/inputs/f74318a1-8ea2-4c03-9386-492d6d6b6803.jpg"
}
}{
"taskType": "imageInference",
"taskUUID": "82c6b0a1-1f8b-41e1-9c11-b265be23939e",
"imageUUID": "a6c11624-6994-4fb3-b3f3-58b60407ab8d",
"imageURL": "https://im.runware.ai/image/os/a18d05/ws/2/ii/a6c11624-6994-4fb3-b3f3-58b60407ab8d.jpg",
"seed": 1301174186,
"cost": 0.09
}Alpine Breakfast Cereal Mockup
{
"taskType": "imageInference",
"taskUUID": "d963c8d0-5652-40d4-a1e6-50fcd0ecd4a9",
"model": "ideogram:4@5",
"positivePrompt": "Replace the plain background with a bright mountain chalet breakfast scene seen through wide windows, early morning sunlight across a rustic wooden table, a ceramic bowl of oats with sliced pear, a folded linen napkin, a small glass bottle of milk, distant pine-covered slopes and fresh snow outside, natural premium food-brand photography, crisp details, believable reflections and shadows, keep the cereal box unchanged as the main foreground product and maintain its position and readability",
"providerSettings": {
"ideogram": {
"renderingSpeed": "QUALITY",
"magicPrompt": "ON",
"stylePreset": "EDITORIAL"
}
},
"inputs": {
"seedImage": "https://assets.runware.ai/assets/inputs/1d6e56f0-ad13-4e0f-b149-5cbb99076b8e.jpg"
}
}{
"taskType": "imageInference",
"taskUUID": "d963c8d0-5652-40d4-a1e6-50fcd0ecd4a9",
"imageUUID": "ba8c16c1-b608-4b0b-961c-0e5c10f67039",
"imageURL": "https://im.runware.ai/image/os/a19d05/ws/2/ii/ba8c16c1-b608-4b0b-961c-0e5c10f67039.jpg",
"seed": 312071026,
"cost": 0.09
}Floating Koi Skincare Bottle
{
"taskType": "imageInference",
"taskUUID": "e945a056-648d-4d6d-9c3c-403a9839e511",
"model": "ideogram:4@5",
"positivePrompt": "Replace the plain background with a luxurious surreal spa scene while keeping the serum bottle unchanged, centered, crisp, and fully readable as the main foreground subject. Surround it with smooth black river stones, shallow reflective water, delicate concentric ripples, a few graceful orange and white koi fish gliding around the base, soft mist, pale ivory orchids, and refined ambient lighting. Photorealistic product advertising aesthetic, premium wellness mood, glossy reflections, clean composition, high detail, no extra bottles, no people, no text.",
"providerSettings": {
"ideogram": {
"renderingSpeed": "QUALITY",
"magicPrompt": "ON",
"stylePreset": "EDITORIAL"
}
},
"inputs": {
"seedImage": "https://assets.runware.ai/assets/inputs/e4d101a9-3e6b-4132-b640-cf03c32b89a0.jpg"
}
}{
"taskType": "imageInference",
"taskUUID": "e945a056-648d-4d6d-9c3c-403a9839e511",
"imageUUID": "2cf807a8-9586-48dc-aa3d-f20d4e972e86",
"imageURL": "https://im.runware.ai/image/os/a09d21/ws/2/ii/2cf807a8-9586-48dc-aa3d-f20d4e972e86.jpg",
"seed": 804296354,
"cost": 0.09
}Saffron Scooter Picnic Display
{
"taskType": "imageInference",
"taskUUID": "5251a83f-45d6-491f-a782-5b7308c30cad",
"model": "ideogram:4@5",
"positivePrompt": "Replace the plain studio background with a sunlit riverside promenade picnic scene in early autumn, preserving the saffron-yellow delivery scooter and wooden bakery crate exactly as the foreground subject. Surround it with gingham picnic blankets, wicker baskets, fallen amber leaves, a stone walkway, elegant iron railings, distant rowboats on calm water, and a quaint old-town skyline softly out of focus. Add warm natural daylight, refined editorial composition, realistic textures, inviting upscale bakery campaign mood, subtle depth of field, premium lifestyle branding aesthetic.",
"providerSettings": {
"ideogram": {
"magicPrompt": "ON",
"stylePreset": "MAGAZINE_EDITORIAL"
}
},
"inputs": {
"seedImage": "https://assets.runware.ai/assets/inputs/028a8afb-3c54-4b02-86cd-628d67bc5eb7.jpg"
}
}{
"taskType": "imageInference",
"taskUUID": "5251a83f-45d6-491f-a782-5b7308c30cad",
"imageUUID": "6f8aa434-7ab0-4b1c-9828-ae35f48eef7d",
"imageURL": "https://im.runware.ai/image/os/a13d12/ws/2/ii/6f8aa434-7ab0-4b1c-9828-ae35f48eef7d.jpg",
"seed": 46868837,
"cost": 0.06
}