gemini-3-pro-image-preview
Image已上架
Gemini 3 Pro Image Preview 是 Gemini 系列的图片创作预览型号,可用于视觉方案、文字排版配图和较复杂的图片提示词任务。预览线路的尺寸、质量及输入形式以本页参数为准。
价格
下表为最终扣费价,按实际用量结算(token / 张 / 秒),请求失败不扣费。
| 计费项 | 售价 |
|---|---|
| 每张 | ¥0.11 |
支持参数
端点:文生图 POST /v1/images/generations · 图生图 / 编辑 POST /v1/images/edits(multipart)
| 参数 | 类型 | 说明 |
|---|---|---|
| model | string | 必填:gemini-3-pro-image-preview |
| prompt | string | 必填,画面描述 |
| size | string | 输出尺寸,如 1024x1024 / 1024x1536 / 1536x1024(具体可选值以模型为准) |
| n | int | 生成张数,默认 1 |
| response_format | string | url(默认)或 b64_json |
| image | file | 仅 edits:参考图,最多 16 张(multipart 重复上传 image 字段) |
实测能力
| 能力项 | 实测值 | 证据 |
|---|---|---|
| supported_sizes | 1024x1024 | — |
接入示例
base_url 统一为 https://api.ai526.com,OpenAI 与 Anthropic 协议同一把 Key 通用。
curl(OpenAI 协议)
curl https://api.ai526.com/v1/images/generations \
-H "Authorization: Bearer sk-你的Key" \
-H "Content-Type: application/json" \
-d '{"model":"gemini-3-pro-image-preview","prompt":"a red apple on a wooden table","size":"1024x1024","n":1}'
OpenAI SDK(Python)
from openai import OpenAI client = OpenAI(base_url="https://api.ai526.com/v1", api_key="sk-你的Key") img = client.images.generate(model="gemini-3-pro-image-preview", prompt="a red apple", size="1024x1024") print(img.data[0].b64_json[:64])
还没有 Key?免费注册,1 分钟拿到 Key →