Googlegemini-3.1-flash-image-preview

google/gemini-3.1-flash-image-preview

featuredimage
Open in Playground

Google gemini-3.1-flash-image-preview: Gemini image generation and editing. Priced per generated image.

Pricing

USD per 1M tokens, billed per token. Cached input applies where the provider caches prompts.

Input
$0.500
Output
$60.00
Cached input
$0.050

Specifications

Context length
128K
Max output tokens
—
Input
text, image
Output
image
Endpoints
gemini, openai, image-generation, image-edit
Released
Feb 26, 2026
Alias accepted
gemini-3.1-flash-image-preview

Example request

curl https://api.nxioai.com/api/v1/chat/completions \
  -H "Authorization: Bearer $NXIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"google/gemini-3.1-flash-image-preview","messages":[{"role":"user","content":"Hello"}]}'

Price history

Every price change opens a new version. Past requests are billed with the version in effect at the time.

EffectiveUntilInputOutputCached inputSource
Oct 6, 2026current$0.500$60.00$0.050sync