GPT Image 1 Mini - Image Text Editor
Transform and enhance your images using natural language descriptions with OpenAI's GPT Image 1 Mini model. This cost-effective text-based image editor delivers fast, high-quality results for image modifications described through text prompts. Perfect for high-volume workflows, rapid iterations, and projects where speed and cost-efficiency are priorities without compromising on quality.
Endpoint
Request Headers
| Field | Value |
|---|---|
| API-KEY | <api-key> |
| Content-Type | application/json |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Feature type identifier. Must be IMAGE_EDITOR |
model | string | Yes | AI model identifier. Must be gpt-image-1-mini |
promptObject | object | Yes | Configuration object containing all image editing parameters |
Prompt Object Parameters
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
imageUrl | string | Yes | Path to the source image to be edited | - |
prompt | string | Yes | Text description of the desired image transformation (max 4000 characters) | - |
size | string | Yes | Output image dimensions | 1024x1024 |
n | number | Yes | Number of images to generate (1-10) | 1 |
quality | string | No | Quality level of the generated image | medium |
output_format | string | No | Output format for the processed image | png |
output_compression | number | No | Compression level for output (0-100, higher = better quality) | 85 |
background | string | No | Background handling for edited areas | auto |
Size Options
| Size | Description |
|---|---|
1024x1024 | Square format (1:1) |
1024x1536 | Portrait format (2:3) |
1536x1024 | Landscape format (3:2) |
Quality Options
| Quality | Description | Use Case | Processing Speed |
|---|---|---|---|
low | Fast processing with good quality | Quick iterations, drafts, previews | Fastest |
medium | Balanced quality and speed | General editing, standard workflows | Fast |
high | Enhanced detail and refinement | Professional work, final outputs | Moderate |
Output Format Options
| Format | Description | Best For |
|---|---|---|
png | Lossless format with transparency support | Professional use, detailed editing, archival quality |
jpeg | Compressed format suitable for photographs | Web optimization, social media, smaller file sizes |
webp | Modern format with superior compression | Web applications, modern browsers |
Background Options
| Background | Description |
|---|---|
auto | AI automatically determines optimal background handling |
preserve | Keep original background unchanged where possible |
transparent | Generate transparent background in edited areas (PNG only) |
white | Use white background for edited areas |
black | Use black background for edited areas |
Code Examples
- cURL
- JavaScript
- Python
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-mini",
"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",
"size": "1024x1024",
"n": 1,
"quality": "medium",
"output_format": "png",
"background": "auto"
}
}'
fetch('https://api.1min.ai/api/features', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'API-KEY': 'YOUR_API_KEY'
},
body: JSON.stringify({
type: 'IMAGE_EDITOR',
model: 'gpt-image-1-mini',
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',
size: '1024x1024',
n: 1,
quality: 'medium',
output_format: 'png',
background: 'auto'
}
})
})
.then(response => response.json())
.then(data => console.log(data));
import requests
url = "https://api.1min.ai/api/features"
headers = {
"Content-Type": "application/json",
"API-KEY": "YOUR_API_KEY"
}
data = {
"type": "IMAGE_EDITOR",
"model": "gpt-image-1-mini",
"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",
"size": "1024x1024",
"n": 1,
"quality": "medium",
"output_format": "png",
"background": "auto"
}
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
Interactive Playground
API Playground
https://api.1min.ai/api/featuresPath 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-mini",
"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",
"size": "1024x1024",
"n": 1,
"quality": "medium",
"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": 28000,
"createdAt": "2025-01-01T00:00:00.000Z",
"createdBy": "SYSTEM",
"updatedAt": "2025-01-15T16:00:00.000Z",
"updatedBy": "SYSTEM"
},
"model": "gpt-image-1-mini",
"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",
"size": "1024x1024",
"n": 1,
"quality": "medium",
"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
High-Volume Content Production
- Batch Processing: Edit large numbers of images quickly and cost-effectively
- Content Variation: Generate multiple versions of images for A/B testing
- Social Media Management: Create platform-specific variations at scale
- Marketing Campaigns: Rapidly produce campaign assets with consistent styling
- E-commerce Catalogs: Process product images in bulk with uniform edits
Rapid Creative Iteration
- Design Exploration: Quickly test multiple creative directions
- Client Previews: Generate concept previews before final high-quality renders
- Style Testing: Experiment with different artistic approaches
- Mood Boards: Create visual references and style guides
- Concept Development: Iterate through ideas efficiently
Cost-Sensitive Projects
- Startup Workflows: Professional results with budget-friendly pricing
- Content Marketing: Regular content creation without excessive costs
- Educational Projects: Learning and experimentation with AI image editing
- Personal Projects: High-quality results for personal or portfolio work
- Prototyping: Test workflows before scaling to premium models
Social Media & Digital Marketing
- Daily Content Creation: Consistent posting without budget strain
- Story Enhancement: Quick edits for Instagram Stories, Reels, TikTok
- Engagement Optimization: Rapidly test visual variations to improve metrics
- Platform Adaptation: Create size and format variations for different channels
- Trend Participation: Quickly adapt images to current trends
E-commerce & Product Photography
- Product Variations: Show products in different styles or contexts
- Seasonal Updates: Adapt product imagery for holidays or seasons
- Lifestyle Integration: Transform product shots into lifestyle scenes
- Color Variations: Display products in multiple color options
- Background Customization: Place products in different environments
Professional Photography Workflows
- Quick Edits: Fast turnaround for time-sensitive projects
- Style Presets: Consistent editing across photo series
- Client Previews: Show editing concepts before final processing
- Volume Work: Events, real estate, or other high-volume photography
- Portfolio Development: Experiment with editing styles efficiently