
🇨🇳 Chinese

🇨🇳 Chinese
- OpenAI
- Anthropic
- Suno(音乐)
- Udio(音乐)
- Midjourney API文档(生图)
- Flux(生图)
- Recraft(生图)
- Ideogram(生图)
- Luma(视频)
- Runway(视频)
- PIKA(视频)
- 可灵API(官方接口)
- Replicate 通用接口
- MiniMax海螺(视频)
创建任务
Developing
POST
/replicate/v1/predictions
Last modified:2024-11-06 17:21:25
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Query Params
string
optional
Header Params
Prefer
string
optional
Example:
wait=10
string
optional
Authorization
string
optional
Default:
{{YOUR_API_KEY}}
Body Params application/json
object {0}
Example
{
"model": "black-forest-labs/flux-schnell",
"input": {
"prompt": "black forest gateau cake spelling out the words \"FLUX SCHNELL\", tasty, food photography, dynamic shot"
}
}
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 '/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"
}
}'
Responses
🟢200成功
application/json
Body
object {0}
Example
{}
Modified at 2024-11-06 17:21:25