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.
入力価格
市場価格:$0.3
/ M
出力価格
市場価格:$30
/ M
キャッシュ読取
市場価格:$0.03
/ M
入力
テキスト
出力
画像

{
"model": "google/gemini-2.5-flash-image",
"prompt": "暮色下的喀纳斯湖畔,碧水倒映层林尽染的山峦,白桦林在晚风中轻轻摇曳,天边晚霞晕染出粉金渐变色,画面静谧悠远,电影级构图,柔和逆光,超高清风景摄影质感。",
"n": 1,
"size": "1024x1024"
}{}API
EasyAPI の OpenAI 互換 API でこのモデルを呼び出す、コピーして使えるコード。
コンソールで API トークンを作成し、環境変数に設定します:
sk-xxxxxxxx をコンソールで発行した API トークン(Bearer Token)に置き換えてください。
API トークンを作成export EASYAPI_API_KEY=sk-xxxxxxxxモデル ID google/gemini-2.5-flash-image を使って EasyAPI を呼び出します:
画像モデルは画像生成エンドポイントを使用します。詳細は 画像生成ドキュメント
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"}'テキストプロンプトから画像を生成します。
https://token.easyapi.com/v1/images/generationsBearer $EASYAPI_API_KEYapplication/jsongoogle/gemini-2.5-flash-image根据 prompt 生成图像,响应含 data(url / b64_json)及 usage 用量字段。 ドキュメント
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
model | string | はい | 图像模型 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 | はい | 图像文本描述。gpt-image-1 上限 32000 字符 |
n | integer | いいえ | 生成张数,1–10,默认 1;多图按张计费 |
size | string | いいえ | 输出尺寸。gpt-image-1 支持 1024x1024、1536x1024、1024x1536 或 auto,并参与费用预估 |
response_format | string | いいえ | url 或 b64_json。gpt-image-1 不支持该参数,传入可能被上游拒绝 |
stream | boolean | いいえ | 透传字段;当前图像为同步链路,不据此分流 |
OpenAI など公式 SDK は base URL を差し替えるだけで利用できます。詳細は 統合ガイド
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