跳到主要内容

Image model

Gemini 3.1 Flash Image Preview

google/gemini-3.1-flash-image-preview

google/gemini-3.1-flash-image-preview is an image generation model from Google you can call on the OceanToken API at $0.50 per 1M input tokens and $60.00 per 1M output tokens, with a 66K-token context window and up to 59K output tokens; it supports reasoning, image input.

At a glance

Model IDgoogle/gemini-3.1-flash-image-preview
TypeImage
PublisherGoogle
Context window65,536 tokens
Max output58,982 tokens
Input price$0.50 per 1M tokens
Output price$60.00 per 1M tokens
Endpoint/v1/images/generations, /v1/images/edits
API shapeOpenAI-compatible
In the catalog since2026-02-26

Call it

Base URL https://api.oceantoken.ai/v1, your OceanToken key as the bearer token, and the model ID above as model. The OpenAI SDKs work unchanged; see your first request.

curl https://api.oceantoken.ai/v1/images/generations \
-H "Authorization: Bearer $OCEANTOKEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "google/gemini-3.1-flash-image-preview", "prompt": "A lighthouse at dawn, photographic"}'

Compared with similar models

Image models on OceanToken closest to google/gemini-3.1-flash-image-preview in price. Every price is what you pay, in US dollars, with no platform fee on top.

ModelPublisherContextPrice (per 1M tokens)
Gemini 3.1 Flash Image PreviewGoogle65,536$0.50 / $60.00
Mai Image 2.5
microsoft/mai-image-2.5
Microsoft$5.00 / $47.00
GPT-5 Image
openai/gpt-5-image
OpenAI400K$10.00 / $40.00
GPT Image 1
openai/gpt-image-1
OpenAI$5.00 / $40.00

More from Google

All Google models on OceanToken

Use it

Create an account All models and prices

Prices and capabilities on this page were read from the live OceanToken catalog on 2026-10-18 (UTC), when the documentation was built. If a price has changed since, the console's Models page shows the current one.