图像
Images
使用 gpt-image-1 进行图像生成、编辑与变体创建。
POST
Documentation Index
Fetch the complete documentation index at: https://docs.rivus.cn/llms.txt
Use this file to discover all available pages before exploring further.
生成图片
base_url 指向 Rivus AI 网关):
编辑图片
创建变体
所有接口均支持
n、quality、background 等附加参数。若需返回 base64,可设置 response_format。Authorizations
OpenAI 风格认证(Authorization: Bearer )
Body
application/json
模型名称
Available options:
imagen-3.0-generate-001, gemini-2.5-flash-image-preview, gemini-3-pro-image-preview Example:
"gemini-3-pro-image-preview"
图像描述文本
Maximum string length:
4000Example:
"A futuristic cityscape at sunset with flying cars, cyberpunk style, highly detailed"
生成图片数量(Imagen 支持 1-4,Gemini 仅支持 1)
Required range:
1 <= x <= 4图像尺寸
Available options:
1024x1024, 1792x1024, 1024x1792 Example:
"1024x1024"
宽高比(优先级高于 size)
Available options:
1:1, 16:9, 9:16 Example:
"1:1"
响应格式
Available options:
url, b64_json 