gemini-2.5-flash
Strong in coding, math \& reasoning
$0.255/ M
$2.125/ M
$0.0255/ M
$0.0708/ M
Built for fast generation and conversational editing; low latency and cost; multimodal text-and-image input.
Input price
Market: $0.3
/ M
Output price
Market: $30
/ M
Cache read
Market: $0.03
/ M
Input
Text
Output
Image

{
"model": "google/gemini-2.5-flash-image",
"prompt": "暮色下的喀纳斯湖畔,碧水倒映层林尽染的山峦,白桦林在晚风中轻轻摇曳,天边晚霞晕染出粉金渐变色,画面静谧悠远,电影级构图,柔和逆光,超高清风景摄影质感。",
"n": 1,
"size": "1024x1024"
}{}API
Drop-in code to call this model with EasyAPI's OpenAI-compatible API.
Create an API key from your dashboard and set it as an environment variable:
Replace sk-xxxxxxxx with your API token from the console (Bearer token).
Create API tokenexport EASYAPI_API_KEY=sk-xxxxxxxxUse google/gemini-2.5-flash-image with the EasyAPI API:
Image models use the image generation endpoint. See image generation docs
curl https://token.easyapi.com/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $EASYAPI_API_KEY" \
-d '{"model":"google/gemini-2.5-flash-image","prompt":"A cute baby sea otter","n":1,"size":"1024x1024"}'Generates images from a text prompt.
https://token.easyapi.com/v1/images/generationsBearer $EASYAPI_API_KEYapplication/jsongoogle/gemini-2.5-flash-image根据 prompt 生成图像,响应含 data(url / b64_json)及 usage 用量字段。 Docs
| Name | Type | Required | Description |
|---|---|---|---|
model | string | Yes | 图像模型 ID,如 openai/gpt-image-1、qwen/qwen-image-2.0-pro、bytedance/seedream-4.0;当前使用 google/gemini-2.5-flash-image;缺失返回 400 model is required |
prompt | string | Yes | 图像文本描述。gpt-image-1 上限 32000 字符 |
n | integer | No | 生成张数,1–10,默认 1;多图按张计费 |
size | string | No | 输出尺寸。gpt-image-1 支持 1024x1024、1536x1024、1024x1536 或 auto,并参与费用预估 |
response_format | string | No | url 或 b64_json。gpt-image-1 不支持该参数,传入可能被上游拒绝 |
stream | boolean | No | 透传字段;当前图像为同步链路,不据此分流 |
Official OpenAI and other SDKs work by swapping the base URL. See integration guide
Strong in coding, math \& reasoning
$0.255/ M
$2.125/ M
$0.0255/ M
$0.0708/ M
Lightweight model for low latency & cost
$0.085/ M
$0.34/ M
$0.0085/ M
$0.0708/ M
Massive context window. Great for video understanding.
$2.125/ M
$12.75/ M
$0.2125/ M
$0/ M
Speed-tier variant in the Gemini 3 line, pairing Pro-grade reasoning with Flash-level latency and cost, built for agent workflows and high-throughput interactive apps.
$0.425/ M
$2.55/ M
$0.0425/ M
$0.0708/ M