
🇨🇳 Chinese

🇨🇳 Chinese
- 系统内部接口
- OpenAI
- Anthropic
- Suno(音乐)
- 场景一:续写音乐并获取完整音乐
- 场景二:Cover 音乐:音乐翻版\修改风格
- 场景三:Replace Section:替换片段
- 场景四:Persona:歌手风格
- 场景五:stems:声曲分离(仅限chirp_auk)
- 场景六:Timing:歌词、音频时间线(仅限chirp_auk)
- 场景七:wav:获取 wav 格式文件
- 场景八:mp4:生成 mp4 mv 视频(仅限chirp_auk)
- 生成音乐POST
- 上传音乐POST
- 歌曲拼接POST
- 新建 PersonaPOST
- 声曲分离GET
- Timing:歌词、音频时间线GET
- 获取 wav 格式文件GET
- 生成 mp4 mv 视频GET
- 生成歌词POST
- 查询单个任务GET
- 批量查询任务POST
- 批量查询歌曲GET
- Udio(音乐)
- Midjourney API文档(生图)
- Flux(生图)
- Recraft(生图)
- Ideogram(生图 )
- Luma(视频)
- Runway(视频)
- PIKA(视频)
- 可灵API(官方接口)
- Replicate 通用接口
- MiniMax海螺(视频)
生成图片
POST
/flux/v1/{model}
Last modified:2024-11-27 06:54:48
请查看官方文档,所有参数和官方文档一致。
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
model
string
required
Example:
flux-dev
Header Params
Authorization
string
optional
Default:
{{YOUR_API_KEY}}
Body Params application/json
object {0}
Example
{
"prompt": "ein fantastisches bild",
"width": 1024,
"height": 768,
"steps": 40,
"prompt_upsampling": false,
"seed": 42,
"guidance": 2.5,
"safety_tolerance": 2,
"interval": 2,
"output_format": "jpeg"
}
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 '/flux/v1/flux-dev' \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "ein fantastisches bild",
"width": 1024,
"height": 768,
"steps": 40,
"prompt_upsampling": false,
"seed": 42,
"guidance": 2.5,
"safety_tolerance": 2,
"interval": 2,
"output_format": "jpeg"
}'
Responses
🟢200成功
application/json
Body
object {0}
Example
{
"id": "a8b95720-6eb2-4ef2-b120-2a1b99d41324"
}