创建图像
根据提示创建图像。
AuthorizationBearer <token>
In: header
promptstring
所需图像的文本描述。
n?integer
要生成的图像数量。必须在 1 到 10 之间。
Range
1 <= value <= 10
size?string
生成图像的大小。
Value in
"256x256" | "512x512" | "1024x1024"
response_format?string
返回生成图像的格式。
Value in
"url" | "b64_json"
user?string
代表您最终用户的唯一标识符。
Response Body
curl -X POST "https://api.openroute.cn/v1/images/generations" \ -H "Content-Type: application/json" \ -d '{ "prompt": "A cute baby sea otter", "n": 1, "size": "1024x1024" }'
Last updated on