开发文档
图像输出
通过 Chat 路径一并接收图像。适合在保持对话上下文的同时生成图像。
调用方法
在 modalities 中加入 image,响应 content 中便会混入图像部分,可一次获得文本说明与图像。
输出格式
默认为 base64。指定 url 则返回带有效期的临时链接。
| Field | Value | Note |
|---|---|---|
| modalities | ["text", "image"] | Request image output |
| image_format | base64 | url | Default base64 |
| image_size | 1024x1024 … | Model dependent |
限制
每次请求最多 4 张。图像生成按张计费,而非按令牌。