Gemini 2.5 Flash Image - Image Generator
Advanced AI image generation model by Google AI. Gemini 2.5 Flash Image delivers high-quality image generation with Google's cutting-edge AI technology, offering fast generation speeds and excellent prompt adherence for creative and professional applications.
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_GENERATOR |
model | string | Yes | AI model identifier. Must be gemini-2.5-flash-image |
promptObject | object | Yes | Configuration object containing all generation parameters |
Prompt Object Parameters
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
prompt | string | Yes | Text description of the image to generate | - |
Code Examples
- cURL
- JavaScript
- Python
curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "IMAGE_GENERATOR",
"model": "gemini-2.5-flash-image",
"promptObject": {
"prompt": "A serene Japanese garden with cherry blossoms, koi pond, and traditional architecture"
}
}'
fetch('https://api.1min.ai/api/features', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'API-KEY': 'YOUR_API_KEY'
},
body: JSON.stringify({
type: 'IMAGE_GENERATOR',
model: 'gemini-2.5-flash-image',
promptObject: {
prompt: 'A serene Japanese garden with cherry blossoms, koi pond, and traditional architecture'
}
})
})
import requests
url = "https://api.1min.ai/api/features"
headers = {
"Content-Type": "application/json",
"API-KEY": "YOUR_API_KEY"
}
data = {
"type": "IMAGE_GENERATOR",
"model": "gemini-2.5-flash-image",
"promptObject": {
"prompt": "A serene Japanese garden with cherry blossoms, koi pond, and traditional architecture"
}
}
response = requests.post(url, headers=headers, json=data)
Interactive Playground
API Playground
https://api.1min.ai/api/featuresDescribe the image you want to generate
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": "gemini-2.5-flash-image",
"promptObject": {
"prompt": "A serene Japanese garden with cherry blossoms, koi pond, and traditional architecture"
}
}'
Response Format
{
"aiRecord": {
"uuid": "e4f5g6h7-i8j9-0123-4567-890123defghi",
"userId": "user-12345",
"teamId": "team-67890",
"model": "gemini-2.5-flash-image",
"type": "IMAGE_GENERATOR",
"status": "SUCCESS",
"createdAt": "2025-01-15T10:50:00.000Z",
"aiRecordDetail": {
"promptObject": {
"prompt": "A serene Japanese garden with cherry blossoms, koi pond, and traditional architecture",
"aspect_ratio": "16:9",
"output_quality": 90,
"seed": 12345
},
"resultObject": [
"development/images/2025_01_15_10_50_45_001_japanese_garden.webp"
]
},
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2025_01_15_10_50_45_001_japanese_garden.webp?X-Amz-Algorithm=AWS4-HMAC-SHA256&..."
}
}
Use Cases
- Creative Design: Artistic imagery and creative concepts
- Content Creation: Social media and marketing visuals
- Rapid Prototyping: Quick visual concept development
- Educational Materials: Illustrations and diagrams
- Digital Art: High-quality artistic creations
- Commercial Graphics: Professional imagery for business use