Back to Models
G

Gemini 3.1 Flash Image

Google/google/gemini-3.1-flash-image-preview
Image Generation

Multimodal model with image generation

Input Price

$0.5

per 1M tokens

Output Price

$3

per 1M tokens

Context

32K

tokens

Modalities

textimage

Model ID

google/gemini-3.1-flash-image-preview

Pricing Breakdown

DirectionPer 1K tokensPer 1M tokens
Input$0.00050000$0.5000
Output$0.00300000$3.00

Quick Start

from openai import OpenAI

client = OpenAI(
    api_key="dg-your-api-key",
    base_url="https://api.doggiegateway.com/v1"
)

response = client.chat.completions.create(
    model="google/gemini-3.1-flash-image-preview",
    messages=[{"role": "user", "content": "Hello!"}]
)

print(response.choices[0].message.content)

How It Works

Doggie Gateway routes your request to Google's API through OpenRouter. You get the best available pricing and automatic fallback if a provider is unavailable.

Pay-per-use pricing
No monthly fees
OpenAI-compatible API

Ready to use Gemini 3.1 Flash Image?

Create an account, get your API key, and start making API calls in under a minute.