Skip to main content

GPT Image 1 Mini - Background Replacer

Replace and transform image backgrounds using natural language descriptions with OpenAI's GPT Image 1 Mini model. This cost-effective solution delivers excellent background replacement quality with faster processing speeds, perfect for high-volume workflows, rapid iterations, and budget-conscious projects without compromising on professional results.

Endpoint

Request Headers

FieldValue
API-KEY<api-key>
Content-Typeapplication/json

Parameters

ParameterTypeRequiredDescription
typestringYesFeature type identifier. Must be BACKGROUND_REPLACER
modelstringYesAI model identifier. Must be gpt-image-1-mini
promptObjectobjectYesConfiguration object containing background replacement parameters

Prompt Object Parameters

ParameterTypeRequiredDescriptionDefault
imageUrlstringYesPath to the source image for background replacement-
promptstringYesDescription of desired background scene (max 4000 characters)-
sizestringYesOutput image dimensions1024x1024
nnumberYesNumber of images to generate (1-10)1
qualitystringNoQuality level of the generated backgroundmedium
output_formatstringNoOutput format for the processed imagepng
output_compressionnumberNoCompression level (0-100, higher = better quality)85

Size Options

SizeDescription
1024x1024Square format (1:1)
1024x1536Portrait format (2:3)
1536x1024Landscape format (3:2)

Quality Options

QualityDescriptionProcessing SpeedUse Case
lowGood quality, fastest processingVery FastQuick iterations, previews, drafts
mediumExcellent quality, fast processingFastStandard workflows, most projects
highPremium quality, moderate speedModerateProfessional outputs, final deliverables

Output Format Options

FormatDescriptionBest For
pngLossless format with transparency supportProfessional use, highest quality
jpegCompressed formatWeb optimization, smaller files
webpModern format with superior compressionWeb applications

Code Examples

curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "BACKGROUND_REPLACER",
"model": "gpt-image-1-mini",
"promptObject": {
"imageUrl": "development/images/2025_12_04_18_03_51_184_cat.png",
"prompt": "modern office environment with glass windows, city skyline view, professional corporate setting",
"size": "1024x1024",
"n": 1,
"quality": "medium",
"output_format": "png",
}
}'

Interactive Playground

API Playground

https://api.1min.ai/api/features
Path to the source image for background replacement
Describe the new background you want (max 4000 characters)
Dimensions of the output image
Number of variations to generate (1-10)
Quality level affects detail and credit cost
Format of the output image
Compression level (0-100, higher = better quality)

Generated cURL Command:

curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "BACKGROUND_REPLACER",
"model": "gpt-image-1-mini",
"promptObject": {
"imageUrl": "development/images/2025_12_04_18_03_51_184_cat.png",
"prompt": "modern office environment with glass windows, city skyline view, professional corporate setting",
"size": "1024x1024",
"n": 1,
"quality": "medium",
"output_format": "png"
}
}'

Response Format

{
"aiRecord": {
"uuid": "b1g2r3m4-v5e6-7890-abcd-ef1234567890",
"userId": "user-12345",
"teamId": "team-67890",
"teamUser": {
"teamId": "team-67890",
"userId": "user-12345",
"userName": "Jane Designer",
"userAvatar": "https://example.com/avatar.jpg",
"status": "ACTIVE",
"role": "ADMIN",
"creditLimit": 100000000,
"usedCredit": 28000,
"createdAt": "2025-01-01T00:00:00.000Z",
"createdBy": "SYSTEM",
"updatedAt": "2025-01-15T14:00:00.000Z",
"updatedBy": "SYSTEM"
},
"model": "gpt-image-1-mini",
"type": "BACKGROUND_REPLACER",
"metadata": null,
"rating": null,
"feedback": null,
"conversationId": null,
"status": "SUCCESS",
"createdAt": "2025-01-15T14:00:00.000Z",
"aiRecordDetail": {
"promptObject": {
"imageUrl": "development/images/2025_12_04_18_03_51_184_cat.png",
"prompt": "modern office environment with glass windows, city skyline view, professional corporate setting",
"size": "1024x1024",
"n": 1,
"quality": "medium",
"output_format": "png",
},
"resultObject": [
"development/images/2025_01_15_14_00_30_001_background_replaced.png"
],
"responseObject": {}
},
"additionalData": null,
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2025_01_15_14_00_30_001_background_replaced.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=EXAMPLE_CREDENTIAL&X-Amz-Date=20250115T140000Z&X-Amz-Expires=604800&X-Amz-Signature=example_signature&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject"
}
}

Use Cases

High-Volume Production

  • Batch Processing: Process large numbers of images quickly and cost-effectively
  • E-commerce Catalogs: Maintain consistent backgrounds across extensive product lines
  • Social Media Content: Create platform-optimized backgrounds at scale
  • Marketing Campaigns: Generate variations for A/B testing efficiently
  • Stock Photography: Produce diverse background variations rapidly

Rapid Iteration & Testing

  • Creative Exploration: Test multiple background concepts quickly
  • Client Previews: Generate concept previews before final production
  • Design Variations: Explore different background styles efficiently
  • Campaign Testing: Create test variations for market research
  • Workflow Optimization: Quick iterations during creative development

Cost-Effective Projects

  • Startup Workflows: Professional results within budget constraints
  • Content Marketing: Regular content creation without excessive costs
  • Educational Projects: Learning and experimentation with AI tools
  • Personal Projects: High-quality results for portfolios and personal use
  • Prototyping: Test concepts before scaling to premium models

Professional Applications

  • Real Estate: Property marketing with consistent, professional backgrounds
  • Corporate Headshots: Standardize employee photo backgrounds
  • Event Photography: Post-process event photos with branded backgrounds
  • Product Photography: Create clean, consistent product presentations
  • Portfolio Work: Professional-grade background replacements