支持模型与参数图片模型
Gemini 3.1 Flash Image Preview
gemini-3.1-flash-image-preview 的完整参数、枚举和接入说明。
gemini-3.1-flash-image-preview 适合速度优先的图片生成与参考图编辑。
它支持从 0.5K 到 4K 的分辨率,但不支持 quality 参数。
模型速览
| 项 | 说明 |
|---|---|
| 模型 ID | gemini-3.1-flash-image-preview |
| 类型 | 图片 |
| 区域 | Global / CN |
| 推荐场景 | 快速出图、概念验证、参考图编辑 |
| 推荐优先级 | 速度优先时推荐 |
推荐请求写法
统一提交到 POST /v1/generations;低成本联调可从 0.5K 开始。
{
"model": "gemini-3.1-flash-image-preview",
"prompt": "A clean product concept image, soft studio lighting",
"aspect_ratio": "4:5",
"resolution": "1K",
"n": 1
}字段说明
| 字段 | 类型 | 是否必填 | 默认值 | 说明 |
|---|---|---|---|---|
model | string | 是 | - | 固定传 gemini-3.1-flash-image-preview |
prompt | string | 是 | - | 图片描述 |
reference_images | string[] | 否 | - | 参考图 URL 列表 |
aspect_ratio | string | 否 | 1:1 | 输出宽高比 |
resolution | string | 否 | 1K | 输出分辨率 |
n | integer | 否 | 1 | 生成数量 |
可选枚举
| 字段 | 支持值 |
|---|---|
aspect_ratio | 21:9 16:9 3:2 5:4 1:1 4:5 3:4 2:3 9:16 8:1 4:1 1:4 4:3 1:8 |
resolution | 0.5K 1K 2K 4K |
gemini-3.1-flash-image-preview 接入建议
- 该模型没有
quality字段,不要从 GPT Image 请求中原样透传。 0.5K适合联调和预览,正式素材建议按清晰度要求选择更高分辨率。- 它支持超宽和超高比例,传值前应使用上表枚举校验。
最小示例
{
"model": "gemini-3.1-flash-image-preview",
"prompt": "A clean product concept image"
}
