gemini-3.1-flash-lite-image AI Image API

Google gemini-3.1-flash-lite-image for image generation; Flatkey routes this model through /v1/images/generations. $0.25/$1.5 per 1M tokens

Text to ImageReference-guided Image
Input /M
$0.25/ 1M tokens$0.25/ 1M tokens
Output /M
$1.5/ 1M tokens$1.5/ 1M tokens
Provider
Google
Generator setup · Playground (edit before sign-up)

Input

PromptCheck more928 / 10000
Quick Prompts
Reference Images
Start generating

Output

Preview
Image preview

Generated with Image 2

Request summary

Endpoint
POST /v1beta/models/gemini-3.1-flash-lite-image:generateContent
Model ID
gemini-3.1-flash-lite-image
Aspect ratio
16:9
Resolution
1K

Preview only. Sign in to submit this request to Flatkey.

Request preview
{
  "model": "gemini-3.1-flash-lite-image",
  "contents": [
    {
      "role": "user",
      "parts": [
        {
          "text": "Scene: An aerial broadcast-style road-race frame follows a cyclist and a motorcycle on a winding coastal road above blue water and steep cliffs. Leave an abstract lower-third area free of readable text and keep the road curve, vehicle spacing, sea horizon, and sun direction consistent. No real teams, athletes, logos, or watermark.\n\nComposition and rendering: Deliver one 16:9 broadcast still at the decisive instant. Use coherent perspective for the playing surface and equipment, readable separation between competitors, and a softer crowd behind the action. Keep the principal subject sharp, with directional blur limited to fast extremities and spray. Preserve the specified broadcast angle and reserve overlay areas clear of the action.\n\nAvoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above."
        }
      ]
    }
  ],
  "generationConfig": {
    "responseModalities": [
      "TEXT",
      "IMAGE"
    ],
    "imageConfig": {
      "aspectRatio": "16:9",
      "imageSize": "1K"
    }
  }
}

gemini-3.1-flash-lite-image API performance

gemini-3.1-flash-lite-image API reliability and uptime

Live Flatkey request telemetry for gemini-3.1-flash-lite-image appears here when enough production traffic is available.

Avg. provider uptime
68.6%
last 30 days
Latency
670ms
last 30 days
Requests
51
30-day window
Successful inference trend

gemini-3.1-flash-lite-image API activity

gemini-3.1-flash-lite-image API usage and request activity

Track request volume and successful inference activity for gemini-3.1-flash-lite-image over the latest reporting window.

Requests
51
30-day window
Latency
670ms
last 30 days
Uptime
68.6%
last 30 days
Successful inference trendActivity

gemini-3.1-flash-lite-image pricing

gemini-3.1-flash-lite-image API pricing and billing

Prices below are calculated from Flatkey pricing data for this model and the visible groups currently returned by our pricing API.

Flatkey price

Input /M

Live catalog model
$0.25/ 1M tokens$0.25/ 1M tokens
Input /M
$0.25/ 1M tokens$0.25/ 1M tokens
Output /M
$1.5/ 1M tokens$1.5/ 1M tokens
Image input /M
$0.03/ 1M tokens$0.03/ 1M tokens
Try a prompt
Shared balance

Add credits

Add credits

Use the same Flatkey balance and API key across image, video, audio, and text models.

Model catalog
Model Type
Text to Image
API
/v1beta/models/gemini-3.1-flash-lite-image:generateContent
Billing basis
1M tokens
Outputs
1

gemini-3.1-flash-lite-image image generation: core capabilities

Google's gemini-3.1-flash-lite-image route supports text · image. Catalog categories: Marketing.

gemini-3.1-flash-lite-image visual creation

Turn a written brief into product, editorial, or campaign imagery through /v1/images/generations.

gemini-3.1-flash-lite-image reference-led editing

Use an existing image as creative direction for revisions and consistent visual variants when the route accepts references.

gemini-3.1-flash-lite-image channel-ready variants

Adapt one concept into the image compositions your storefront, campaign, or content pipeline needs.

gemini-3.1-flash-lite-image creative production workflow

Move an approved visual from prompt exploration into a repeatable Flatkey generation workflow.

Compare

gemini-3.1-flash-lite-image API comparison: capabilities and access

Compare the catalog facts for gemini-3.1-flash-lite-image with the previous-generation baseline before changing your integration.

CapabilityPrevious generationgemini-3.1-flash-lite-image
ProviderNot verified in this catalog snapshotGoogle
ModalitiesNot verified in this catalog snapshottext · image
ContextNot verified in this catalog snapshotContext window not listed in the catalog
EndpointNot verified in this catalog snapshot/v1/images/generations
BillingNot verified in this catalog snapshot$0.25/$1.5 per 1M tokens

Choose the right request before you integrate

Review the supported workflows, live cost for the current setup, and the exact parameter contract used by Flatkey.

Live cost estimate

Calculated from the current Playground settings and the live catalog rate when a fixed unit price is available.

Current setup
1×
Live rate
$0.03
Estimated request
Variable usage pricing

The final charge follows the submitted request and your account group. Token-priced or tiered requests cannot be reduced to one fixed estimate.

Workflows and Model ID

Use only the workflows marked available. Flatkey keeps one public model ID while the request body selects the input workflow.

Available

Text to Image

Generate a new image from a text prompt and output controls.

Model ID
gemini-3.1-flash-lite-image
Endpoint
/v1beta/models/gemini-3.1-flash-lite-image:generateContent
Available

Reference-guided Image

Use reference images for edits, variations, or identity and composition guidance.

Model ID
gemini-3.1-flash-lite-image
Endpoint
/v1beta/models/gemini-3.1-flash-lite-image:generateContent

Parameter compatibility

These values come from the same model configuration used by the Playground and request preview.

aspect_ratioAspect ratio
Accepted

1:1 · 2:3 · 3:2 · 3:4 · 4:3 · 4:5 · 5:4 · 9:16 · 16:9 · 21:9

Default: 1:1
image_sizeSize
Accepted

1K · 2K · 4K

Default: 1K
imageReference limit
Accepted

4 files

Endpoint: /v1beta/models/gemini-3.1-flash-lite-image:generateContent

From first test to production

Use the same request contract in the Playground and API, then handle validation, balance, task state, and output retrieval explicitly.

Request lifecycle

  1. 1

    Validate the model, prompt, references, and output settings.

  2. 2

    POST the image request with the documented fields.

  3. 3

    Read the generated output or asynchronous task result returned by the route.

  4. 4

    Store the generated file and request metadata in your own workflow.

Production checks

Parameter validation

Reject unsupported sizes, durations, ratios, formats, or reference counts before submitting.

Authentication and balance

Handle invalid keys, insufficient balance, rate limits, and account-group pricing separately.

Input or policy rejection

Surface the rejected prompt or asset clearly so the user can replace only the failing input.

Task failure or timeout

Keep the task ID, use bounded retries, and never treat a timeout as a successful generation.

Prompt library

gemini-3.1-flash-lite-image image generation prompt examples

Start with a gemini-3.1-flash-lite-image prompt for product and ecommerce images, then adjust the request fields shown in the playground.

Game UI interaction and equipment switching
Game UI interaction and equipment switching

Generated with Image 2

Scene: A 16:9 whimsical game UI shows a small white robot standing in a floating-island garden while holding a green plant blaster or seed tool. A circular equipment wheel surrounds the selected tool, with tiny garden plots, paths, clouds, and floating terrain behind. Lock the robot pose, tool shape, wheel position, and bright pastel lighting for an equipment-switch frame. No readable words, logos, invented stats, or watermark. Composition and rendering: Deliver one 16:9 game-interface keyframe. Separate the character, held equipment and HUD into clear depth layers; keep slot spacing and icon scale consistent, with the selected item visually dominant. Preserve the scene-specific game art style. Let material edges catch the existing light without letting interface glow obscure the silhouette. Keep all equipment fully inside the frame. Avoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above.

Create similar
Live sports broadcast simulation
Live sports broadcast simulation

Generated with Image 2

Scene: An aerial broadcast-style road-race frame follows a cyclist and a motorcycle on a winding coastal road above blue water and steep cliffs. Leave an abstract lower-third area free of readable text and keep the road curve, vehicle spacing, sea horizon, and sun direction consistent. No real teams, athletes, logos, or watermark. Composition and rendering: Deliver one 16:9 broadcast still at the decisive instant. Use coherent perspective for the playing surface and equipment, readable separation between competitors, and a softer crowd behind the action. Keep the principal subject sharp, with directional blur limited to fast extremities and spray. Preserve the specified broadcast angle and reserve overlay areas clear of the action. Avoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above.

Create similar
Brand TVC and seamless ecommerce showcase
Brand TVC and seamless ecommerce showcase

Generated with Image 2

Scene: A tall matte black bottle stands on a sunlit mountain rock with a hazy valley and layered peaks behind it. Use a warm sunrise rim on the right and soft atmospheric depth while preserving the plain cap, bottle silhouette, rock texture, and empty sky for later copy. No readable branding, extra products, hands, or watermark. Composition and rendering: Deliver one 16:9 commercial product still. Keep the complete product silhouette inside generous crop-safe margins. Resolve edges, seams and material transitions precisely; shape highlights to describe volume without clipping bright surfaces or crushing dark details. Align reflections with the object and light source. Retain the stated camera angle and existing negative space; add no decorative props. Avoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above.

Create similar
Cinematic character and storyboard direction
Cinematic character and storyboard direction

Generated with Image 2

Scene: At sunset on a sea cliff, a lone traveler stands in silhouette holding a helmet while a red warning flag fills the near right foreground. The ocean, distant headland, lighthouse, and orange-to-blue sky form a wide establishing frame. Keep the traveler orientation, flag motion direction, horizon, and light transition stable for storyboard use. No readable signs, logos, or watermark. Composition and rendering: Deliver one 16:9 storyboard keyframe, not a collage or an action sequence. Separate foreground, character plane and background through the existing light and atmospheric depth. Keep the stated pose and eyelines readable, and retain environmental landmarks for continuity. Match the described photographic, illustrated or puppet medium; give fabric and surfaces texture appropriate to that medium. Avoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above.

Create similar
Comedy sketch and physical storytelling
Comedy sketch and physical storytelling

Generated with Image 2

Scene: In a mint laundry room, a surprised man in a coral sweatshirt leans back as a turquoise laundry basket throws a colorful cloud of striped socks into the air. Washing machines, folded towels, and clean daylight establish the setting. Preserve the basket tilt, sock trajectories, body pose, and safe spacing for a physical-comedy frame; no injury, readable text, logos, or watermark. Composition and rendering: Deliver one 16:9 physical-comedy still at the described instant. Make the cause of the gag readable through body balance, grip and object spacing. Separate the reaction from the airborne props; retain believable gravity and contact points. Keep the face and important props sharp, with only restrained directional blur on fast edges. Preserve the stated lighting and room or stage layout. Avoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above.

Create similar
Historical photo restoration and revival
Historical photo restoration and revival

Scene: A lightly colorized vintage schoolyard photograph shows children in period sweaters and skirts playing jump rope in front of a brick building. Restore the worn border, faded colors, rope arc, clothing details, and original wide framing without introducing modern objects. No readable signs, logos, captions, or watermark. Composition and restoration: Deliver one 16:9 archival-style still. Preserve the original framing, period-specific construction and restrained tonal range; retain monochrome, sepia or faded color as described. Recover modest detail in faces, clothing and architecture without synthetic sharpening. Keep fine grain and authentic aging consistent across the frame; repair damage without replacing historical features. Avoid: warped perspective, malformed anatomy, merged objects, inconsistent shadows, excessive sharpening and watermarks. Follow the scene-specific text and branding restrictions above.

Create similar

Why gemini-3.1-flash-lite-image API

Why use gemini-3.1-flash-lite-image through Flatkey?

Use one gateway for gemini-3.1-flash-lite-image, account controls and the rest of your model catalog.

gemini-3.1-flash-lite-image in one API

Keep the gemini-3.1-flash-lite-image model id and endpoint explicit while using the same Flatkey key as other workloads.

Live catalog pricing

See the current gemini-3.1-flash-lite-image billing dimensions before a request is sent, then confirm the final estimate in your account.

A practical model handoff

Test a gemini-3.1-flash-lite-image prompt in the public playground and carry the same settings into an authenticated integration.

Usage and routing controls

Centralize keys, quotas and routing for gemini-3.1-flash-lite-image without changing your application’s provider-facing workflow.

API

gemini-3.1-flash-lite-image API

Four ways in, all on the same key and the same model catalog. Pick one to see a runnable example.

Call any model with an OpenAI-compatible API. Copy a ready-to-run example for your model and language.
Use the OpenAI SDK you already know — with Flatkey as the gateway.
Generate images and videos from your terminal. Let your AI assistant drive the workflow.
Connect your coding agent with one command, then use Flatkey from your existing projects.
curl https://router.flatkey.ai/v1beta/models/gemini-3.1-flash-lite-image:generateContent \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-***" \
  -d '{"model":"gemini-3.1-flash-lite-image","contents":[{"role":"user","parts":[{"text":"Create a high-quality product image with gemini-3.1-flash-lite-image: clean composition, precise lighting, strong subject focus, and realistic detail."}]}],"generationConfig":{"responseModalities":["TEXT","IMAGE"],"imageConfig":{"aspectRatio":"1:1","imageSize":"1K"}}}'
Docs

FAQ

gemini-3.1-flash-lite-image API
pricing, features, and usage FAQs

Answers about gemini-3.1-flash-lite-image pricing, capabilities, endpoint access and catalog limits.

What is gemini-3.1-flash-lite-image used for?
gemini-3.1-flash-lite-image is listed by Google for image generation; the catalog lists these modalities: text · image.
How is gemini-3.1-flash-lite-image priced?
Input /M: $0.25; Output /M: $1.5; Image input /M: $0.03. Prices below are calculated from Flatkey pricing data for this model and the visible groups currently returned by our pricing API.
Which API endpoint calls gemini-3.1-flash-lite-image?
Flatkey routes this model through /v1/images/generations. Set the model field to gemini-3.1-flash-lite-image and follow the fields supported by that endpoint.
What context or input limits does gemini-3.1-flash-lite-image have?
gemini-3.1-flash-lite-image is listed with Context window not listed in the catalog. Other limits depend on the route and current account availability, so verify them before production use.