- 指南
- 通知设置-WebHook参数介绍
- 聊天(Chat)
- 所有对话模型均兼容 OpenAI 格式
- Realtime (实时语音、对话
- 聊天完成对象
- 聊天完成块对象
- GPTs
- 多模态聊天(读图\读视频\生图
- Claude 官方格式
- 对话聊天(OpenAI 格式POST
- gpt-3.5-turbo-instructPOST
- 对话 Claude ThinkingPOST
- RAG(嵌入、重排序
- 视频模型
- 数字人
- 绘图模型
- 生图模型简介
- OpenAI Dall-e 格式
- OpenAI 聊天格式
- Mid journey 文生图
- Flux 文生图
- Ideogram(官方格式
- recraft 官方格式
- 快手可灵(官方格式)
- SeedEdit(图片编辑
- Replicate
- 豆包智能绘图
- 音频接口
- 文件上传(Files)
- PPT接口
- 帮助中心
- 平台API
- 废弃、未开放
其他 Flux
POST
{{BASE_URL}}/replicate/v1/models/{model}/predictions
最后修改时间:2025-02-07 13:16:08
black-forest-labs/flux-1.1-pro
black-forest-labs/flux-dev
black-forest-labs/flux-pro
black-forest-labs/flux-schnell
1:1
16:9
21:9
3:2
2:3
4:5
5:4
3:4
4:3
9:16
9:21
请求参数
Path 参数
model
string
必需
Query 参数
string
可选
Header 参数
Authorization
string
必需
示例值:
Bearer $API_TOKEN
Content-Type
string
必需
示例值:
application/json
string
可选
Body 参数application/json
input
object
必需
prompt
string
必需
go_fast
boolean
可选
megapixels
string
可选
num_outputs
integer
必需
aspect_ratio
string
可选
output_format
string
可选
output_quality
integer
可选
num_inference_steps
integer
可选
示例
{
"input": {
"prompt": "black forest gateau cake spelling out the words \"FLUX 1.1 Pro\", tasty, food photography",
"prompt_upsampling": true
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST '{{BASE_URL}}/replicate/v1/models//predictions' \
--header 'Authorization: Bearer $API_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"input": {
"prompt": "black forest gateau cake spelling out the words \"FLUX 1.1 Pro\", tasty, food photography",
"prompt_upsampling": true
}
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2025-02-07 13:16:08