gemini-2.5-flash-image

Provided by Google · Image model

Parameters

Context window33K tokens
Max output8K tokens
Input modalitiesimage, text
Output modalitiesimage, text

Capabilities

Vision inputPrompt cachingStructured output

Official pricing

Input$0.3/M

Tiers

1K$0.039

Call example

curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash-image:generateContent" -H "x-goog-api-key: $GEMINI_API_KEY" -H "Content-Type: application/json" -d '{"contents":[{"parts":[{"text":"a red fox in a snowy forest"}]}]}'