Gemini 2.5 Flash Preview - Image Generator
Advanced AI image generation model by Google AI. Gemini 2.5 Flash Preview 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 google/gemini-2.5-flash-preview |
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": "google/gemini-2.5-flash-preview",
"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: 'google/gemini-2.5-flash-preview',
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": "google/gemini-2.5-flash-preview",
"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": "google/gemini-2.5-flash-preview",
"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": "google/gemini-2.5-flash-preview",
"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
Tips for Best Results
-
Prompt Engineering:
- Use descriptive, specific language for better results
- Include style keywords (e.g., "photorealistic", "artistic", "minimalist")
- Specify lighting, composition, and mood details
-
Quality Optimization:
- Use higher quality settings (85-100) for final outputs
- Lower quality (60-80) for quick iterations and previews
- Consider aspect ratio based on intended use
-
Consistency:
- Use the same seed value for consistent variations
- Modify prompts gradually for controlled changes
- Save successful seed values for future reference
-
Google AI Advantages:
- Leverage Google's advanced reasoning for complex prompts
- Use detailed, technical descriptions for best interpretation
- Take advantage of fast generation for rapid iteration
Notes
Google AI Technology
Gemini 2.5 Flash Preview leverages Google's latest AI research, providing exceptional prompt understanding and fast generation speeds ideal for both creative and professional workflows.
Preview Model
As a preview model, Gemini 2.5 Flash Preview represents cutting-edge technology and may receive updates and improvements over time.