Skip to content
Google

Gemini 3.1 Flash Image

google-ai-studio/gemini-3.1-flash-image

Gemini 3.1 Flash Image is a multimodal model by Google with support for image generation, vision, function calling, web search, and structured output. It supports a 66K token context window with up to 33K tokens of output. Priced at $0.5 per million input tokens and $60 per million output tokens. Access Gemini 3.1 Flash Image through Inworld LLM Inference with OpenAI SDK compatibility, built-in failover, and intelligent routing across providers.

Input
$0.50
Output
$60.00
Cache read
—
Context
65.5K
Max output
32.8K
TextImageAudioFile→TextImage
Function CallingWeb SearchStructured outputVision
Run on your server. Set INWORLD_API_KEY to your API key. Python requires pip install requests; JavaScript requires Node.js 18+; save it as example.mjs.
curl --fail-with-body https://api.inworld.ai/v1/chat/completions \
  -H "Authorization: Basic $INWORLD_API_KEY" \
  -H 'Content-Type: application/json' \
  -o response.json \
  -d '{
    "model": "google-ai-studio/gemini-3.1-flash-image",
    "messages": [{"role": "user", "content": "A blue circle on a white background."}],
    "modalities": ["image"]
  }'
Model Gemini 3.1 Flash ImageChat Completions · Image output

Pricing and providers

Access Gemini 3.1 Flash Image through Inworld LLM Inference or speech to speech via Google AI Studio. By using the providers below you agree to their terms, listed under each provider's name in the Legal section.

Modalities
Google AI StudioThis pagegoogle-ai-studio/gemini-3.1-flash-image
$0.50$60.00——65.5K32.8K
TextImageAudioFile→TextImage
Prices in USD per 1M tokens.

Start building with Gemini 3.1 Flash Image

Access Gemini 3.1 Flash Image and every other model through LLM Inference or speech to speech. Create a free account and start in minutes.