Skip to main content

GPT Image 1 - Image Text Editor

Transform and enhance your images using natural language descriptions with OpenAI's GPT Image 1 model. This advanced text-based image editor allows you to modify existing images by describing the changes you want to see, from subtle style adjustments to dramatic transformations. Built on OpenAI's most sophisticated vision model, GPT Image 1 delivers exceptional quality with superior understanding of complex editing instructions.

Endpoint

Request Headers

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

Parameters

ParameterTypeRequiredDescription
typestringYesFeature type identifier. Must be IMAGE_EDITOR
modelstringYesAI model identifier. Must be gpt-image-1
promptObjectobjectYesConfiguration object containing all image editing parameters

Prompt Object Parameters

ParameterTypeRequiredDescriptionDefault
imageUrlstringYesPath to the source image to be edited-
promptstringYesText description of the desired image transformation (max 4000 characters)-
sizestringYesOutput image dimensions1024x1024
nnumberYesNumber of images to generate (1-10)1
qualitystringNoQuality level of the generated imagemedium
output_formatstringNoOutput format for the processed imagepng
output_compressionnumberNoCompression level for output (0-100, higher = better quality)85
backgroundstringNoBackground handling for edited areasauto

Size Options

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

Quality Options

QualityDescriptionUse Case
lowFaster processing, reduced detailQuick iterations, drafts, previews
mediumBalanced quality and speedGeneral editing, standard workflows
highMaximum detail and refinementProfessional work, final outputs, detailed edits

Output Format Options

FormatDescriptionBest For
pngLossless format with transparency supportProfessional use, detailed editing, archival quality
jpegCompressed format suitable for photographsWeb optimization, social media, smaller file sizes
webpModern format with superior compressionWeb applications, modern browsers

Background Options

BackgroundDescription
autoAI automatically determines optimal background handling
preserveKeep original background unchanged where possible
transparentGenerate transparent background in edited areas (PNG only)
whiteUse white background for edited areas
blackUse black background for edited areas

Code Examples

curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "IMAGE_EDITOR",
"model": "gpt-image-1",
"promptObject": {
"imageUrl": "development/images/2025_12_04_18_10_29_882_cat.png",
"prompt": "transform into a watercolor painting style with soft brushstrokes and vibrant colors, maintaining the original composition",
"size": "1024x1024",
"n": 1,
"quality": "high",
"output_format": "png",

"background": "auto"
}
}'

Interactive Playground

API Playground

https://api.1min.ai/api/features
Path to the source image to be edited
Describe how you want to transform the image (max 4000 characters)
Dimensions of the output image
Number of edited images to generate (1-10)
Quality level affects detail, processing time, and credit cost
Format of the output image
Compression level (0-100, higher = better quality)
How to handle background in edited areas

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": "IMAGE_EDITOR",
"model": "gpt-image-1",
"promptObject": {
"imageUrl": "development/images/2025_12_04_18_10_29_882_cat.png",
"prompt": "transform into a watercolor painting style with soft brushstrokes and vibrant colors, maintaining the original composition",
"size": "1024x1024",
"n": 1,
"quality": "high",
"output_format": "png",
"background": "auto"
}
}'

Response Format

{
"aiRecord": {
"uuid": "i1m2e3d4-v5e6-7890-abcd-ef1234567890",
"userId": "user-12345",
"teamId": "team-67890",
"teamUser": {
"teamId": "team-67890",
"userId": "user-12345",
"userName": "John Doe",
"userAvatar": "https://example.com/avatar.jpg",
"status": "ACTIVE",
"role": "ADMIN",
"creditLimit": 100000000,
"usedCredit": 250000,
"createdAt": "2025-01-01T00:00:00.000Z",
"createdBy": "SYSTEM",
"updatedAt": "2025-01-15T16:00:00.000Z",
"updatedBy": "SYSTEM"
},
"model": "gpt-image-1",
"type": "IMAGE_EDITOR",
"metadata": null,
"rating": null,
"feedback": null,
"conversationId": null,
"status": "SUCCESS",
"createdAt": "2025-01-15T16:00:00.000Z",
"aiRecordDetail": {
"promptObject": {
"imageUrl": "development/images/2025_12_04_18_10_29_882_cat.png",
"prompt": "transform into a watercolor painting style with soft brushstrokes and vibrant colors, maintaining the original composition",
"size": "1024x1024",
"n": 1,
"quality": "high",
"output_format": "png",

"background": "auto"
},
"resultObject": [
"development/images/2025_01_15_16_00_30_001_edited.png"
],
"responseObject": {}
},
"additionalData": null,
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2025_01_15_16_00_30_001_edited.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=EXAMPLE_CREDENTIAL&X-Amz-Date=20250115T160000Z&X-Amz-Expires=604800&X-Amz-Signature=example_signature&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject"
}
}

Use Cases

Creative Photo Editing & Enhancement

  • Artistic Transformations: Convert photographs into paintings, sketches, or digital art styles
  • Style Transfer: Apply specific artistic styles while maintaining the original composition
  • Mood Adjustments: Change lighting, atmosphere, and emotional tone of images
  • Color Grading: Professional color correction and creative color manipulation
  • Texture Modifications: Add or enhance textures like watercolor, oil paint, or pencil drawings

Professional Photography

  • Portrait Enhancement: Refine lighting, skin tones, and overall aesthetic quality
  • Background Modifications: Change or enhance backgrounds while preserving subjects
  • Lighting Adjustments: Modify time of day, lighting direction, or intensity
  • Seasonal Variations: Transform images to different seasons or weather conditions
  • Professional Refinement: Polish images with subtle enhancements for client deliverables

E-commerce & Product Photography

  • Product Styling: Modify product appearances, colors, or finishes
  • Environment Changes: Place products in different settings or contexts
  • Lifestyle Integration: Transform product shots into lifestyle imagery
  • Seasonal Adaptations: Update product photography for different seasons or campaigns
  • Brand Consistency: Ensure visual consistency across product catalogs

Marketing & Advertising

  • Campaign Customization: Adapt creative assets for different markets or demographics
  • A/B Testing: Generate variations of marketing images for performance testing
  • Localization: Customize imagery for regional or cultural contexts
  • Trend Adaptation: Update visuals to match current design trends
  • Social Media Optimization: Create platform-specific variations of marketing materials

Interior & Architectural Design

  • Design Visualization: Show different design concepts using the same base space
  • Style Exploration: Experiment with various interior design styles
  • Color Scheme Testing: Visualize different color palettes and material choices
  • Lighting Scenarios: Show spaces under different lighting conditions
  • Client Presentations: Present multiple design options efficiently

Social Media & Content Creation

  • Content Variations: Create multiple versions for different social platforms
  • Aesthetic Consistency: Maintain cohesive visual branding across posts
  • Engagement Optimization: Enhance images to increase visual appeal and engagement
  • Story Enhancement: Add creative effects that support narrative content
  • Trend Participation: Quickly adapt images to participate in visual trends