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 通用閘道上的所有模型。