gemini-2.5-flash-image
Google image
输入$0.3/M
输出$30/M
知识截止2025-06
厂商牌价,无平台加价,按量付费。 以下为官方 list 价。登录客户可在 /console/pricing 查看含工作空间折扣的实际价格。
30 秒用上 gemini-2.5-flash-image
OpenAI 兼容:换掉 base_url,SDK 不用改。POST /v1/images/generations
from openai import OpenAI
client = OpenAI(
base_url="https://synthorai.io/v1",
api_key="sk-syn-...",
)
resp = client.images.generate(
model="gemini-2.5-flash-image",
prompt="a watercolor lighthouse at dawn",
size="1024x1024",
)
print(resp.data[0].b64_json[:80])import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://synthorai.io/v1",
apiKey: "sk-syn-...",
});
const resp = await client.images.generate({
model: "gemini-2.5-flash-image",
prompt: "a watercolor lighthouse at dawn",
size: "1024x1024",
});
console.log(resp.data?.[0]?.b64_json?.slice(0, 80));curl https://synthorai.io/v1/images/generations \
-H "Authorization: Bearer sk-syn-..." \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-2.5-flash-image",
"prompt": "a watercolor lighthouse at dawn",
"size": "1024x1024"
}'package main
import (
"context"
"fmt"
"github.com/openai/openai-go/v3"
"github.com/openai/openai-go/v3/option"
)
func main() {
client := openai.NewClient(
option.WithBaseURL("https://synthorai.io/v1"),
option.WithAPIKey("sk-syn-..."),
)
resp, _ := client.Images.Generate(context.TODO(), openai.ImageGenerateParams{
Model: "gemini-2.5-flash-image",
Prompt: "a watercolor lighthouse at dawn",
Size: "1024x1024",
})
fmt.Println(resp.Data[0].B64JSON[:80])
}import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.images.*;
OpenAIClient client = OpenAIOkHttpClient.builder()
.baseUrl("https://synthorai.io/v1")
.apiKey("sk-syn-...")
.build();
ImagesResponse resp = client.images().generate(
ImageGenerateParams.builder()
.model("gemini-2.5-flash-image")
.prompt("a watercolor lighthouse at dawn")
.size("1024x1024")
.build());
System.out.println(resp.data().orElseThrow().get(0).b64Json().orElseThrow().substring(0, 80));关于 gemini-2.5-flash-image
高速视觉创作的最佳引擎
低延迟对话式图像编辑
顶尖的速度与效率
Gemini 2.5 Flash Image,即 Nano Banana,是 Google 的图像生成与编辑模型,官方页面称它是其面向高速视觉创作的最佳引擎,拥有顶尖的速度和效率。
- 它为高并发场景、对话式图像编辑和低延迟工作流设计,把图像与文本输入的原生多模态理解和图文输出结合起来。
- token 上限为输入 65,536、输出 32,768,支持结构化输出、缓存和批处理。
- Synthorai 将它放在与其 chat 模型相同的 OpenAI 兼容端点之后。
规格与限制
| 最大输出(厂商规格) | 32,768 |
| 模态 | text + image → image + text |
| 特性 | vision · structured_output · batch · caching |
| 图像能力 | Native multimodal image generation with conversational image editing, optimized for high-volume, low-latency creative workflows; image+text in, image+text out |
| 备注 | Unusually for an image model, publishes a knowledge cutoff (June 2025); function calling and thinking not supported. |
常见问题
gemini-2.5-flash-image API 可以免费试用吗?
可以。新账号可获得 10 次试用调用和最高 $1 的免费额度,无需绑卡。足够在添加付款方式之前,用真实工作负载试一试 gemini-2.5-flash-image。
gemini-2.5-flash-image 最擅长什么?
高速视觉创作的最佳引擎,以及低延迟对话式图像编辑和顶尖的速度与效率。完整能力请见 About 部分,内容取自厂商官方发布说明。
gemini-2.5-flash-image 的价格是多少?
在 Synthorai 上,gemini-2.5-flash-image 输入 $0.3/百万 token、输出 $30/百万 token,即厂商牌价,无平台加价。
如何调用 gemini-2.5-flash-image API 生成图片?
向 Synthorai 的 /v1/images/generations 发送 POST,model="gemini-2.5-flash-image",即标准 OpenAI images API 形态,无需厂商 SDK。
如何开通 gemini-2.5-flash-image?
把现有 OpenAI SDK 的 base_url 指向 "https://synthorai.io/v1",model 设为 "gemini-2.5-flash-image" 即可。一把 API key 通用网关上的全部模型。