- 发出请求
- 模型接口
- 聊天(Chat)
- 自动补全(Completions)
- 文生图片(Images)
- 向量生成(Embeddings)
- 音频(Audio)
- Suno 文生歌曲
- Flux 文生图
- Luma 文生视频
- 帮助中心
执行动作
POST
https://aigc.x-see.cn/mj/submit/action
任务提交
请求参数
Header 参数
Authorization
string
必需
默认值:
API KEY 令牌
Content-Type
string
必需
默认值:
application/json
Body 参数application/json
customId
string
动作标识
示例值:
MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011
taskId
string
任务ID
示例值:
14001934816969359
notifyHook
string
可选
state
string
自定义参数
示例
{
"customId": "MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011",
"taskId": "14001934816969359",
"notifyHook": "string",
"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://aigc.x-see.cn/mj/submit/action' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200OK
application/json
Body
code
integer <int32>
必需
示例值:
1
description
string
描述
示例值:
提交成功
properties
object
扩展字段
result
string
任务ID
示例值:
1320098173412546
示例
{
"code": 1,
"description": "提交成功",
"properties": {},
"result": 1320098173412546
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
修改于 2024-04-08 15:23:58