POST /replicate/v1/models//predictions crée des images FLUX via le format Replicate sur CometAPI, avec ratio d’aspect, qualité, format de sortie et ajustement des entrées.
curl --request POST \
--url https://api.cometapi.com/replicate/v1/models/{models}/predictions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"prompt": "A paper boat floating on calm water at sunrise.",
"aspect_ratio": "1:1",
"output_format": "webp",
"output_quality": 80
}
}
'{
"id": "q4chw5rey9rmt0cww76t4h3ma4",
"model": "black-forest-labs/flux-schnell",
"version": "hidden",
"input": {
"aspect_ratio": "1:1",
"output_format": "webp",
"output_quality": 80,
"prompt": "A paper boat floating on calm water at sunrise."
},
"logs": "",
"output": null,
"data_removed": false,
"error": null,
"source": "api",
"status": "starting",
"created_at": "2026-03-12T11:27:18.258Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/q4chw5rey9rmt0cww76t4h3ma4/cancel",
"get": "https://api.replicate.com/v1/predictions/q4chw5rey9rmt0cww76t4h3ma4",
"stream": "https://stream.replicate.com/v1/files/example",
"web": "https://replicate.com/p/q4chw5rey9rmt0cww76t4h3ma4"
}
}inputblack-forest-labs/flux-schnell pour le test de fumée le plus légerinput_image ou input_imagesid de prédiction renvoyé pour les vérifications de statutCréer la prédiction
input via ce point de terminaison.Stocker l’id de prédiction
id renvoyé, car vous en aurez besoin pour l’interrogation ultérieure.Interroger la prédiction
output soit renseigné ou qu’une erreur apparaisse.black-forest-labs/flux-schnell acceptait une requête en texte uniquement et renvoyait un id de prédiction avec le statut starting.Bearer token authentication. Use your CometAPI key.
Replicate model id, for example black-forest-labs/flux-schnell or black-forest-labs/flux-kontext-pro.
Provider-specific model input. Keep all parameters inside this object.
Show child attributes
curl --request POST \
--url https://api.cometapi.com/replicate/v1/models/{models}/predictions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"prompt": "A paper boat floating on calm water at sunrise.",
"aspect_ratio": "1:1",
"output_format": "webp",
"output_quality": 80
}
}
'{
"id": "q4chw5rey9rmt0cww76t4h3ma4",
"model": "black-forest-labs/flux-schnell",
"version": "hidden",
"input": {
"aspect_ratio": "1:1",
"output_format": "webp",
"output_quality": 80,
"prompt": "A paper boat floating on calm water at sunrise."
},
"logs": "",
"output": null,
"data_removed": false,
"error": null,
"source": "api",
"status": "starting",
"created_at": "2026-03-12T11:27:18.258Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/q4chw5rey9rmt0cww76t4h3ma4/cancel",
"get": "https://api.replicate.com/v1/predictions/q4chw5rey9rmt0cww76t4h3ma4",
"stream": "https://stream.replicate.com/v1/files/example",
"web": "https://replicate.com/p/q4chw5rey9rmt0cww76t4h3ma4"
}
}