- 模型接口
- 聊天接口(Chat)
- 自动补全接口(Completions)
- 图像接口(Images)
- 向量生成接口(Embeddings)
- 音频接口(Audio)
- Midjourney
- Suno音乐(逆向)
- Flux图像(官方格式)
- Recraft图像(官方格式)
- Stability AI图像(官方格式)
- Ideogram图像(官方格式)
- Ideogram图像(逆向)
- Kling视频(官方格式)
- Luma视频(逆向)
- Runway视频(官方格式)
- CogVideoX视频(官方格式)
- Viggle舞蹈(逆向)
- 帮助中心
flux-dev
开发中
POST
https://api.mjdjourney.cn/v1/flux-dev
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Query 参数
string
可选
Header 参数
Authorization
string
必需
示例值:
123456
string
可选
Body 参数application/json
prompt
string
必需
width
integer
必需
height
integer
必需
steps
integer
必需
prompt_upsampling
boolean
必需
seed
integer
必需
guidance
integer
必需
safety_tolerance
integer
必需
output_format
string
必需
示例
{
"prompt": "ein fantastisches bild",
"width": 1024,
"height": 768,
"steps": 28,
"prompt_upsampling": false,
"seed": 42,
"guidance": 3,
"safety_tolerance": 2,
"output_format": "jpeg"
}
示例代码
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.mjdjourney.cn/v1/flux-dev' \
--header 'Authorization: 123456' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "ein fantastisches bild",
"width": 1024,
"height": 768,
"steps": 28,
"prompt_upsampling": false,
"seed": 42,
"guidance": 3,
"safety_tolerance": 2,
"output_format": "jpeg"
}'
返回响应
🟢200成功
application/json
Body
id
string
必需
示例
{
"id": "string"
}
修改于 2024-11-06 08:57:23