Inworld has acquired UltravoxRead announcement →
Get started
Google
Google

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 Router with OpenAI SDK compatibility, built-in failover, and intelligent routing across providers.
→Function CallingWeb SearchResponse SchemaVisionresponseFormatCapability

Step 1 — Create Router

curl --location 'https://api.inworld.ai/router/v1/routers' \ --header 'Authorization: Basic <your-api-key>' \ --header 'Content-Type: application/json' \ --data '{ "name": "compare-frontier-models", "defaultRoute": { "route_id": "default", "variants": [ { "variant": { "variant_id": "google-ai-studio/gemini-3.1-flash-image-a", "model_id": "google-ai-studio/gemini-3.1-flash-image" }, "weight": 33 }, { "variant": { "variant_id": "inworld/models/gemma-4-31b-it-b", "model_id": "inworld/models/gemma-4-31b-it" }, "weight": 33 }, { "variant": { "variant_id": "inworld/models/gemma-4-26b-a4b-it-c", "model_id": "inworld/models/gemma-4-26b-a4b-it" }, "weight": 34 } ] } }'

Step 2 — Chat Completion

curl --location 'https://api.inworld.ai/v1/chat/completions' \ --header 'Authorization: Basic <your-api-key>' \ --header 'Content-Type: application/json' \ --data '{ "model": "inworld/compare-frontier-models", "messages": [{"role": "user", "content": "Hello!"}] }'

Gemini 3.1 Flash Image pricing and providers

Access Gemini 3.1 Flash Image through Google AI Studio via Inworld Router or Realtime API. By using the AI provider(s) below you acknowledge you reviewed and agree to their terms listed in the Legal section under the AI provider's name.
CapabilitiesInput modalitiesOutput modalities
Google AI StudioGoogle AI Studio$0.50$60.00——65.5K32.8K+2
Prices in USD per 1M tokens.

Other Google models available through Inworld

Compare Gemini 3.1 Flash Image with other Google models available through Inworld Router or Realtime API.
ProviderCapabilitiesInput modalitiesOutput modalities
GoogleGemma 4 31b ItPopular$0.13$0.38$0.065—262.1K—+2
GoogleGemma 4 26b A4b ItPopular$0.07$0.34$0.035—262.1K—+2
GoogleGemini 2.5 Flash Lite$0.10$0.40$0.01$0.101M65.5K+5
GoogleGemini 3.1 Flash Lite$0.25$1.50$0.025$0.251M65.5K+5
GoogleGemini 3.8 Flash$0.75$3.75$0.075$0.751M65.5K+5
GoogleGemini 3.7 Flash$0.75$3.75$0.075$0.751M65.5K+5
GoogleGemini 3.6 Flash$0.75$3.75$0.075$0.751M65.5K+5
GoogleGemini 3.5 Flash$1.50$9.00$0.15$1.501M65.5K+5
GoogleGemini 3.5 Flash Lite$0.30$2.50$0.03$0.301M65.5K+5
GoogleGemini 3.1 Flash Lite Image$0.25$30.00——65.5K65.5K
GoogleGemini 3.1 PRO Preview$2.00$12.00$0.20$2.001M65.5K+5
GoogleGemini 3.1 PRO Preview Customtools$2.00$12.00$0.20$2.001M65.5K+5
GoogleGemini 3 Flash Preview$0.50$3.00$0.05$0.501M65.5K+5
GoogleGemini 2.5 Flash$0.30$2.50$0.03$0.301M65.5K+5
GoogleGemini 2.5 Flash Lite$0.10$0.40$0.01$0.101M65.5K+5
GoogleGemini 2.5 PRO$1.25$10.00$0.125$1.251M65.5K+5
GoogleGemma 4 31B It Turbo$0.09$0.34$0.05—262.1K—+3
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 Inworld Router or Realtime API. Create your free account and start routing in minutes.
Copyright © 2021-2026 Inworld AI