
🇺🇸 English

🇺🇸 English
- Chat Models
- Chat
- OpenAI-Realtime
- Completions
- Audio
- Image generation
- Embeddings
- Models
- Help
- Anthropic
- Suno
- Udio
- Midjourney API
- Flux
- Recraft
- Ideogram
- Luma
- Runway
- Kling-API
- Replicate
- MiniMax
Modal
POST
/mj/submit/modal
任务提交
Last modified:2025-02-05 11:21:01
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Query Params
string
optional
Header Params
string
optional
Authorization
string
optional
Default:
{{YOUR_API_KEY}}
Body Params application/json
maskBase64
string
optional
prompt
string
optional
taskId
string
required
Example:
14001934816969359
Example
{
"prompt": "string",
"taskId": "14001934816969359"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '/mj/submit/modal' \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "string",
"taskId": "14001934816969359"
}'
Responses
🟢200OK
application/json
Body
code
integer <int32>
required
Example:
1
description
string
required
Example:
提交成功
properties
object
optional
result
string
optional
Example:
1320098173412546
Example
{
"code": 1,
"description": "提交成功",
"properties": {},
"result": 1320098173412546
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
Modified at 2025-02-05 11:21:01