- 引言
- 在线调试说明
- 发出请求
- 中转站基本介绍
- Chat模型
- 文生图模型
- 文生视频模型
- GPTs 相关
- 文生音乐 Suno
- 系统API
- Python配置方式
- python openai官方库(使用AutoGPT,langchain等)
- python 连续对话
- python 使用 语音转文本
- python 使用文本转语音
- python 使用Embeddings 向量化
- python 调用DALL·E
- python简单调用 openai function-calling demo
- python 简单langchain 调用openai demo
- python llama_index 配置
- Python使用gpt-4o识别图片-本地图片
- python 库流式输出
- gpt realtime模型调用
- python request 请求 流式输出demo
- Python基础对话
- Python使用gpt-4o识别图片
- Python使用Claude识别图片
- nodejs 配置方式
- 各种插件/软件使用教程
- 帮助中心
提交Imagine任务
POST
https://yunwu.ai/mj/submit/imagine
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Authorization
string
可选
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
botType
enum<string>
必需
枚举值:
MID_JOURNEYNIJI_JOURNEY
示例值:
MID_JOURNEY
prompt
string
提示词
示例值:
Cat
base64Array
array[string]
可选
notifyHook
string
可选
state
string
自定义参数
示例
{
"base64Array": [],
"notifyHook": "",
"prompt": "cat",
"state": "",
"botType": "MID_JOURNEY"
}
示例代码
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://yunwu.ai/mj/submit/imagine' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"base64Array": [],
"notifyHook": "",
"prompt": "cat",
"state": "",
"botType": "MID_JOURNEY"
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"code": 1,
"description": "Submit success",
"result": "1730621718151844",//任务id
"properties": {
"discordChannelId": "1300842676874379336",
"discordInstanceId": "1572398367386955776"
}
}
修改于 2025-01-09 08:23:09