gemini-2.5-flash-image

by Google

google/gemini-2.5-flash-image

Generate an image from a written description.

Billed per
token
Price
Provider
Google
Timeout
5 min

Overview

Generate an image from a text prompt. The synchronous request remains open until the image is ready. Returns image content.

The generated image, returned inline as base64.

Input

These go in the input object of the run request.

FieldTypeRequiredDescription
promptstringYesWhat to draw, in plain language.

Requests up to 1 MB, prompt up to 1,000 characters.

Example

A call that works, with your own key.

curl https://gateway.agentsky.dev/v1/run \
  -H "authorization: Bearer $AGENTSKY_API_KEY" \
  -H "content-type: application/json" \
  -d '{"provider":"google","endpoint":"gemini-2.5-flash-image","input":{"prompt":"A paper airplane over a city at dusk, flat illustration"}}'

Pricing

per token on the default plan. Every run carries its price in the response.

Questions

gemini-2.5-flash-image — AgentSky