Replicate
Create a Replicate prediction
POST /replicate/v1/models//predictions creates FLUX images via Replicate format on CometAPI, with aspect ratio, quality, output format, and input tuning.
POST
cURL
Use this route to start a Replicate-style prediction on CometAPI and get back a prediction id for later polling.
First request checklist
- Put every model parameter inside the
inputobject - Start with
black-forest-labs/flux-schnellfor the quickest first request - Keep the first request text-only unless you specifically need
input_imageorinput_images - Save the returned prediction
idfor status checks
Task flow
1
Create the prediction
Submit the path model id and the
input object through this endpoint.2
Store the prediction id
Save the returned
id, because you need it for later polling.3
Poll the prediction
Continue with Get a Replicate prediction until
output is populated or an error appears.Authorizations
Bearer token authentication. Use your CometAPI key.
Path Parameters
Replicate model id, for example black-forest-labs/flux-schnell or black-forest-labs/flux-kontext-pro.
Body
application/json
Provider-specific model input. Keep all parameters inside this object.