- 指南
- 通知设置-WebHook参数介绍
- 列出模型
- 聊天(Chat)
- RAG(嵌入、重排序
- 视频模型
- 数字人
- 绘图模型
- 生图模型简介
- OpenAI Dall-e 格式
- OpenAI 聊天格式
- Mid journey 文生图
- Flux 文生图
- Ideogram(官方格式
- recraft 官方格式
- 快手可灵(官方格式)
- SeedEdit(图片编辑
- Replicate
- 豆包智能绘图
- 音频接口
- 文件上传(Files)
- PPT接口
- 帮助中心
- 平台API
- 废弃、未开放
例子:black-forest-labs/flux-1.1-pro
POST
{{BASE_URL}}/replicate/v1/models/black-forest-labs/flux-1.1-pro/predictions
最后修改时间:2025-02-07 13:20:39
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
请求参数
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
默认1:1
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/black-forest-labs/flux-1.1-pro/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}
示例
{
"id": "yh6y8mbqb1rma0cn8b3vt6038g",
"model": "black-forest-labs/flux-1.1-pro",
"version": "hidden",
"input": {
"prompt": "black forest gateau cake spelling out the words \"FLUX 1.1 Pro\", tasty, food photography",
"prompt_upsampling": true
},
"logs": "",
"output": null,
"data_removed": false,
"error": null,
"status": "starting",
"created_at": "2025-02-26T15:02:03.352Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/yh6y8mbqb1rma0cn8b3vt6038g/cancel",
"get": "https://api.replicate.com/v1/predictions/yh6y8mbqb1rma0cn8b3vt6038g",
"stream": "https://stream.replicate.com/v1/files/bcwr-dddrbppl2gcxy7w3r2e35ldibyrz426usowhrkp5wbikxxylvwia"
}
}
修改于 2025-02-07 13:20:39