Skip to main content

GPT Image 1 Mini - Image Generator

Generate high-quality images from text prompts using OpenAI's cost-effective GPT Image 1 Mini model. Perfect for rapid prototyping, iterations, and cost-sensitive projects while maintaining good image quality across multiple quality levels.

Endpoint​

Request Headers​

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

Parameters​

ParameterTypeRequiredDescription
typestringYesFeature type identifier. Must be IMAGE_GENERATOR
modelstringYesAI model identifier. Must be gpt-image-1-mini
promptObjectobjectYesConfiguration object containing all generation parameters

Prompt Object Parameters​

ParameterTypeRequiredDescriptionDefault
promptstringYesText description of the image to generate-
nnumberNoNumber of images to generate (1-10)1
sizestringNoImage dimensions1024x1024
qualitystringNoImage quality levelmedium
output_formatstringNoOutput format for the generated imagepng
output_compressionnumberNoCompression level (0-100, higher = better quality)85
backgroundstringNoBackground mode for transparent subjectsopaque

Supported Image Sizes​

SizeResolutionAspect RatioBest For
1024x10241024×10241:1Square images, social media posts
1024x15361024×15362:3Portrait orientation, tall images
1536x10241536×10243:2Landscape orientation, wide images

Quality Options​

QualityDescriptionUse Case
lowFast, cost-effective generationQuick prototypes, multiple iterations
mediumBalanced quality and speedMost use cases, good quality
highEnhanced quality with good detailProfessional work, final assets

Output Format Options​

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

Background Options​

BackgroundDescriptionUse Case
opaqueSolid background (default)Standard images, no transparency needed
transparentTransparent background for supported subjectsLogos, cutouts, compositing

Code Examples​

curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "IMAGE_GENERATOR",
"model": "gpt-image-1-mini",
"promptObject": {
"prompt": "A cozy coffee shop interior with warm lighting and plants",
"n": 2,
"size": "1024x1024",
"quality": "medium",
"output_format": "png",
"background": "opaque"
}
}'

Interactive Playground​

API Playground

https://api.1min.ai/api/features
Describe the image you want to generate
Number of images to generate (1-10)
Choose image dimensions and aspect ratio
Image quality level
Format of the output image
Compression level (0-100, higher = better quality)
Background mode for transparent subjects

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_GENERATOR",
"model": "gpt-image-1-mini",
"promptObject": {
"prompt": "A cozy coffee shop interior with warm lighting and plants",
"n": 1,
"size": "1024x1024",
"quality": "medium",
"output_format": "png",
"background": "opaque"
}
}'

Response Format​

{
"aiRecord": {
"uuid": "a1b2c3d4-e5f6-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": 11000,
"createdAt": "2025-01-01T00:00:00.000Z",
"createdBy": "SYSTEM",
"updatedAt": "2025-01-15T10:30:00.000Z",
"updatedBy": "SYSTEM"
},
"model": "gpt-image-1-mini",
"type": "IMAGE_GENERATOR",
"metadata": null,
"rating": null,
"feedback": null,
"conversationId": null,
"status": "SUCCESS",
"createdAt": "2025-01-15T10:30:00.000Z",
"aiRecordDetail": {
"promptObject": {
"prompt": "A cozy coffee shop interior with warm lighting and plants",
"n": 2,
"size": "1024x1024",
"quality": "medium",
"output_format": "png",
"background": "opaque"
},
"resultObject": [
"development/images/2025_01_15_10_30_15_001_coffee_shop.png",
"development/images/2025_01_15_10_30_15_002_coffee_shop.png"
],
"responseObject": {}
},
"additionalData": null,
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2025_01_15_10_30_15_001_coffee_shop.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=EXAMPLE_CREDENTIAL&X-Amz-Date=20250115T103000Z&X-Amz-Expires=604800&X-Amz-Signature=example_signature&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject"
}
}

Use Cases​

  • Rapid Prototyping: Quick visual concepts and iterations
  • Content Drafts: Initial design ideas and mockups
  • Educational Projects: Student work and learning exercises
  • Brainstorming: Visual exploration and ideation
  • A/B Testing: Generate multiple variations for testing
  • Presentations: Quick visuals for slides and reports
  • Practice and Exploration: Experiment with different styles and concepts
  • Social Media: Cost-effective content creation for regular posting