POST /replicate/v1/models//predictions는 CometAPI에서 Replicate 형식으로 FLUX 이미지를 생성하며, 종횡비, 품질, 출력 형식, 입력 튜닝을 지원합니다.
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"
}
}input 객체 안에 넣으세요black-forest-labs/flux-schnell부터 시작하세요input_image 또는 input_images가 필요하지 않다면 첫 요청은 텍스트 전용으로 유지하세요id를 저장하세요prediction 폴링
output이 채워지거나 오류가 나타날 때까지 Replicate 상태 조회를 계속 진행하세요.black-forest-labs/flux-schnell이 텍스트 전용 요청을 수락하고 상태가 starting인 prediction id를 반환하는 것이 확인되었습니다.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"
}
}