提交Modal(提交局部重绘、ZOOM)
POST
https://api.openai-prc.com/mj/submit/modal
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Authorization
string
可选
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
prompt
string
提示词
maskBase64
string
必需
taskId
string
任务ID
示例
{
"base64Array": [
"string"
],
"notifyHook": "string",
"prompt": "Cat",
"state": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.openai-prc.com/mj/submit/modal' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"base64Array": [
"string"
],
"notifyHook": "string",
"prompt": "Cat",
"state": "string"
}'
返回响应
🟢200成功
application/json
Body
code
string
状态码
description
string
描述
properties
string
拓展字段
result
string
任务ID
示例
{
"code": 1,
"description": "提交成功",
"properties": {},
"result": 1320098173412546
}
修改于 2024-10-21 09:05:44