
🇺🇸 English

🇺🇸 English
- Chat Models
- Chat
- OpenAI-Realtime
- Completions
- Audio
- Image generation
- Embeddings
- Models
- Help
- Anthropic
- Suno
- Udio
- Midjourney API
- Flux
- Recraft
- Ideogram
- Luma
- Runway
- Kling-API
- Replicate
- MiniMax
Generate
POST
/replicate/v1/predictions
Last modified:2025-02-05 11:37:17
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Header Params
Prefer
string
optional
Example:
wait=10
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
{}