- Introduction
- Quick Start Guide
- Make a request
- Chat Models
- ChatGpt
- ChatGPT (Audio)
- ChatGPT (Chat)
- Chat completion object
- Create chat completion (streaming)
- Create chat completion (non-streaming)
- Create chat image recognition (streaming)
- Create chat image recognition (streaming) base64
- Create chat image recognition (non-streaming)
- Function calling
- N choices
- Create chat function call (only non-streaming)
- Create structured output
- ChatGPT (Completions)
- ChatGPT(Embeddings)
- Anthropic Claude
- Gemini
- Image Models
- GPT-IMAGE-1
- MJ
- Ideogram
- Kling Image
- Flux
- Recraft API
- Models use Dall-e Format
- DALL·E 3POST
- Video Models
- Kling Video
- Runway ML Video
- Luma Video
- Pika Video
- Google Veo
- Minimax - Hailuo
- Music Model - Suno
- Illustrate
- Parameter
- Task submission
- Query interface
- Python Samples
- python openai official library (using AutoGPT, langchain, etc.)
- Python uses speech to text
- Python uses text to speech
- Python uses Embeddings
- python calls DALL·E
- python simple call openai function-calling demo
- python langchain
- python llama_index
- Python uses gpt-4o to identify pictures-local pictures
- python library streaming output
- Python uses gpt-4o to identify images
- Plug-in/software usage tutorials
- Help Center
- Tutorials
Submit Image by flux-pro
POST
/replicate/v1/models/black-forest-labs/flux-pro/predictions
Request
Body Params application/json
input
object
required
prompt
string
required
aspect_ratio
string
required
Default: "1:1"
output_format
string
required
Default: "webp"
steps
integer
required
Default: 25
guidance
integer
required
Default: 3
interval
integer
required
Default: 2
output_quality
integer
required
Default: 80
safety_tolerance
integer
required
Default: 2
prompt_upsampling
boolean
required
Default: false
seed
integer
optional
Example
{
"input": {
"steps": 25,
"width": 1024,
"height": 1024,
"prompt": "The world's largest black forest cake, the size of a building, surrounded by trees of the black forest",
"guidance": 3,
"interval": 2,
"aspect_ratio": "1:1",
"output_format": "webp",
"output_quality": 80,
"safety_tolerance": 2,
"prompt_upsampling": false
}
}
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 --request POST '/replicate/v1/models/black-forest-labs/flux-pro/predictions' \
--header 'Content-Type: application/json' \
--data-raw '{
"input": {
"steps": 25,
"width": 1024,
"height": 1024,
"prompt": "The world'\''s largest black forest cake, the size of a building, surrounded by trees of the black forest",
"guidance": 3,
"interval": 2,
"aspect_ratio": "1:1",
"output_format": "webp",
"output_quality": 80,
"safety_tolerance": 2,
"prompt_upsampling": false
}
}'
Responses
🟢200OK
application/json
Body
id
string
required
model
string
required
version
string
required
input
object
required
input_image
string
required
prompt
string
required
logs
string
required
output
null
required
data_removed
boolean
required
error
null
required
status
string
required
created_at
string
required
urls
object
required
cancel
string
required
get
string
required
stream
string
required
web
string
required
message
string
required
Example
{
"id": "k14p2hqsz1rme0cq4f8byeaz8m",
"model": "black-forest-labs/flux-pro",
"version": "hidden",
"input": {
"input_image": "https://img.upanh.tv/2025/05/30/car.jpg",
"prompt": "Change car color to gold color"
},
"logs": "",
"output": null,
"data_removed": false,
"error": null,
"status": "starting",
"created_at": "2025-05-31T00:49:47.512Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/k14p2hqsz1rme0cq4f8byeaz8m/cancel",
"get": "https://api.replicate.com/v1/predictions/k14p2hqsz1rme0cq4f8byeaz8m",
"stream": "https://stream.replicate.com/v1/files/bcwr-szyebczvgjjtbey5kxdtyvhljqfhjumxiigdqge2gtn7b3ahxcra",
"web": "https://replicate.com/p/k14p2hqsz1rme0cq4f8byeaz8m"
},
"message": "YEScale - Replicate"
}
Modified at 2025-06-17 09:14:26