Replicate
创建 Predictions - 通用
POST /replicate/v1/models//predictions 通过 CometAPI 上的 Replicate 格式创建 FLUX 图像,支持宽高比、质量、输出格式和 input 调优。
POST
Create a Replicate prediction
使用此路由可在 CometAPI 上启动一个 Replicate 风格的 prediction,并返回一个 prediction id 供后续轮询使用。Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
首次请求检查清单
- 将所有模型参数放在
input对象内 - 首次请求建议从
black-forest-labs/flux-schnell开始,以获得最快的体验 - 除非你明确需要
input_image或input_images,否则首次请求请仅使用文本 - 保存返回的 prediction
id,用于状态检查
任务流程
轮询 prediction
继续使用 Replicate 查询状态,直到
output 被填充或出现错误。授权
Bearer token authentication. Use your CometAPI key.
路径参数
Replicate model id, for example black-forest-labs/flux-schnell or black-forest-labs/flux-kontext-pro.
请求体
application/json
Provider-specific model input. Keep all parameters inside this object.