
🇺🇸 English

🇺🇸 English
- Chat Models
- Anthropic
- Suno
- Udio
- Midjourney API
- Flux
- Recraft
- Ideogram
- Luma
- Runway
- Kling-API
- Replicate
- MiniMax
Generate
POST
/replicate/v1/predictions
最后修改时间:2025-02-05 11:37:17
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Prefer
string
可选
示例值:
wait=10
Authorization
string
可选
默认值:
{{YOUR_API_KEY}}
Body 参数application/json
object {0}
示例
{
"model":"black-forest-labs/flux-schnell",
"input": {
"prompt": "black forest gateau cake spelling out the words \"FLUX SCHNELL\", tasty, food photography, dynamic shot"
}
}
示例代码
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 '/replicate/v1/predictions' \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"model":"black-forest-labs/flux-schnell",
"input": {
"prompt": "black forest gateau cake spelling out the words \"FLUX SCHNELL\", tasty, food photography, dynamic shot"
}
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}