AibubuDevelopers
开发者文档
支持模型与参数图片模型

Gemini 3.1 Flash Image Preview

gemini-3.1-flash-image-preview 的完整参数、枚举和接入说明。

gemini-3.1-flash-image-preview 适合速度优先的图片生成与参考图编辑。

它支持从 0.5K4K 的分辨率,但不支持 quality 参数。

模型速览

说明
模型 IDgemini-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
}

字段说明

字段类型是否必填默认值说明
modelstring-固定传 gemini-3.1-flash-image-preview
promptstring-图片描述
reference_imagesstring[]-参考图 URL 列表
aspect_ratiostring1:1输出宽高比
resolutionstring1K输出分辨率
ninteger1生成数量

可选枚举

字段支持值
aspect_ratio21: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
resolution0.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"
}

相关页面