OpenAI
1. 概述
2. 请求说明
3. 请求参数
3.1 Header 参数
参数名称
类型
必填
说明
示例值
3.2 Body 参数 (application/json)
参数名称
类型
必填
说明
示例(默认值)
4. 请求示例
5. 响应示例
最后更新于
最后更新于
curl -X POST https://gateway.theturbo.ai/v1/images/edits \
-H "Authorization: Bearer $YOUR_API_KEY" \
-F "model=gpt-image-1" \
-F "[email protected]" \
-F 'prompt=A cute baby sea otter wearing a beret' \
-F ... 其它参数curl -X POST https://gateway.theturbo.ai/v1/images/edits \
-H "Authorization: Bearer $YOUR_API_KEY" \
-F "model=gpt-image-1" \
-F "image[][email protected]" \
-F "image[][email protected]" \
-F 'prompt=A cute baby sea otter wearing a beret' \
-F ... 其它参数{
"created": 1589478378,
"data": [
{
"b64_json": "..."
},
{
"b64_json": "..."
}
]
}