Nano Banana API's: $0.01$0.04(75% OFF)
Menu
Image Model

Gemini 3.1 Flash Image

Next-Generation Image Realism Powered by Google Gemini 3.1

Gemini 3.1 Flash Image (NanoBanana v2) is Google's next-generation image generation model, delivering significant improvements in visual quality, texture fidelity, and realism over its predecessor. Generate images from 512px up to 4K with precise prompt following and contextual understanding — all through IMAGEGPT's unified API at well below the official rate.

Text To Image4K OutputEnhanced Realism

Service Highlights

  • 99.9% SLA
  • Official Discounts
  • Pay-as-you-go
  • Fast Rendering
View Pricing Details
99.9%
Uptime
10M+
Creators
4.9★
Rating

Direct Image Generation API Playground

Test and explore the Image Generation API with multiple models and output formats

Select Model

Endpoint

POSThttps://api.imagegpt.online/generate/text-image

Headers

Request Body

Code Sample

fetch('https://api.imagegpt.online/generate/text-image', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'x-api-key': 'YOUR_API_KEY'
  },
  body: JSON.stringify({
  "prompt": "Photorealistic portrait of the same person (keep his real face unchanged). A man with medium curly brown hair, light skin, and soft features sits relaxed, forearms on a light blue table, holding a small white puppy with a red collar. He wears a cozy color-block knitted sweater (beige, tan, light blue, black) with ribbed neck and cuffs, a silver watch, and a turquoise-beaded bracelet. Soft diffused lighting, smooth steel-blue background, slightly elevated front angle warm, intimate, digital photo",
  "width": 512,
  "height": 512,
  "model": "FLUX-SCHNELL",
  "outputType": "binary",
  "outputFormat": "png"
})
})
  .then(response => response.blob())
  .then(blob => {
    const imageUrl = URL.createObjectURL(blob);
    console.log('Image URL:', imageUrl);
    // Display in img tag: document.getElementById('myImg').src = imageUrl;
  })
  .catch(error => console.error('Error:', error));
Pricing

Transparent, Pay-as-You-Go

No subscriptions. No hidden fees. Pay only for what you generate.

Save 40% vs official pricing
Variant
Tier
Our Price
Official Price
Gemini 3.1 Flash Image
Per Image
$0.040
$0.067040%

* Actual costs are subject to final output. Prices shown in USD.

IMAGEGPT AI Studio prohibits NSFW, sexually explicit, adult, exploitative, deceptive, or harmful AI-generated content. Content moderation is applied to all supported models.

Start Building Today

Ready to integrate Gemini 3.1 Flash Image?

Get your API key and start generating in minutes. No credit card required for the free tier.

  • Free tier available
  • API access on all plans
  • NSFW content blocked
  • 99.9% uptime SLA