Skip to main content

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

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

Parameters

ParameterTypeRequiredDescription
typestringYesFeature type identifier. Must be IMAGE_GENERATOR
modelstringYesAI model identifier. Must be google/gemini-2.5-flash-preview
promptObjectobjectYesConfiguration object containing all generation parameters

Prompt Object Parameters

ParameterTypeRequiredDescriptionDefault
promptstringYesText description of the image to generate-

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": "google/gemini-2.5-flash-preview",
"promptObject": {
"prompt": "A serene Japanese garden with cherry blossoms, koi pond, and traditional architecture"
}
}'

Interactive Playground

API Playground

https://api.1min.ai/api/features
Describe 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

  1. Prompt Engineering:

    • Use descriptive, specific language for better results
    • Include style keywords (e.g., "photorealistic", "artistic", "minimalist")
    • Specify lighting, composition, and mood details
  2. 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
  3. Consistency:

    • Use the same seed value for consistent variations
    • Modify prompts gradually for controlled changes
    • Save successful seed values for future reference
  4. 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.