Gemini 2.5 Flash Image API
Built for image generation and editing, with stronger multimodal understanding, conversational edits, and rapid visual prototyping than earlier Gemini image capabilities. Compared with GPT Image, Qwen Image, and Seedream, it is useful for combining documents, images, and prompts in one visual workflow.
- Structured output
- Multimodal output
gemini-2.5-flash-imageUSD
Pricing
Public list prices are shown in USD. Final charges may vary by account group and usage tier.
API
Code examples
curl --location --request POST 'https://api.tokenhot.ai/v1beta/models/gemini-2.5-flash-image:generateContent' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"contents": [
{
"role": "user",
"parts": [
{
"text": "draw a baby"
}
]
}
],
"generationConfig": {
"responseModalities": [
"TEXT",
"IMAGE"
],
"imageConfig": {
"aspectRatio": "16:9",
"imageSize": "2k"
}
}
}'Related models
FAQ
Frequently asked questions
What is Gemini 2.5 Flash Image best suited for?
Gemini 2.5 Flash Image is suited to the input, output, and capability types listed on this page. Test production workloads before choosing it for a critical system.
How is Gemini 2.5 Flash Image priced?
Pricing is shown in the pricing section above. Actual cost depends on usage volume, account group, and the request payload.
How can I call Gemini 2.5 Flash Image?
Use the model ID shown above with one of the supported API protocols. Code examples are provided when usage data is available.
Get started