id 通过查询接口获取相关内容。black-forest-labs/flux-2-problack-forest-labs/flux-2-devblack-forest-labs/flux-2-flexblack-forest-labs/flux-kontext-maxblack-forest-labs/flux-kontext-problack-forest-labs/flux-schnellblack-forest-labs/flux-problack-forest-labs/flux-devblack-forest-labs/flux-1.1-pro-ultrablack-forest-labs/flux-1.1-proinput_image 参数来引用现有图像。其他 FLUX 模型不支持此功能,只能基于文本提示生成图像。curl --location --request POST 'https://api.deerapi.com/replicate/v1/models/black-forest-labs/flux-kontext-max/predictions' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"input": {
"prompt": "black forest gateau cake spelling out the words \"FLUX SCHNELL\", tasty, food photography, dynamic shot",
"input_image": "https://h2.inkwai.com/bs2/upload-ylab-stunt/se/ai_portal_queue_mmu_image_upscale_aiweb/3214b798-e1b4-4b00-b7af-72b5b0417420_raw_image_0.jpg",
"input_image_2": "https://replicate.delivery/xezq/XfwWjHJ7HfrmXE6ukuLVEpXWfeQ3PQeRI5mApuLXRxST7XMmC/tmpc91tlq20.png",
"input_image_3": "https://filesystem.site/cdn/20250414/chxiLc2O45zoLT8BCrQ6WQlTvGDDnK.png",
"input_image_4": "https://filesystem.site/cdn/20250414/chxiLc2O45zoLT8BCrQ6WQlTvGDDnK.png",
"output_format": "jpg",
"aspect_ratio": "16:9"
}
}'{
"id": "4a5padvaf9rma0ctg99s5m2x5r",
"model": "black-forest-labs/flux-kontext-max",
"version": "hidden",
"input": {
"aspect_ratio": "16:9",
"input_image": "https://h2.inkwai.com/bs2/upload-ylab-stunt/se/ai_portal_queue_mmu_image_upscale_aiweb/3214b798-e1b4-4b00-b7af-72b5b0417420_raw_image_0.jpg",
"input_image_2": "https://replicate.delivery/xezq/XfwWjHJ7HfrmXE6ukuLVEpXWfeQ3PQeRI5mApuLXRxST7XMmC/tmpc91tlq20.png",
"input_image_3": "https://filesystem.site/cdn/20250414/chxiLc2O45zoLT8BCrQ6WQlTvGDDnK.png",
"input_image_4": "https://filesystem.site/cdn/20250414/chxiLc2O45zoLT8BCrQ6WQlTvGDDnK.png",
"output_format": "jpg",
"prompt": "black forest gateau cake spelling out the words \"FLUX SCHNELL\", tasty, food photography, dynamic shot"
},
"logs": "",
"output": null,
"data_removed": false,
"error": null,
"source": "api",
"status": "starting",
"created_at": "2025-11-14T12:24:56.186Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/4a5padvaf9rma0ctg99s5m2x5r/cancel",
"get": "https://api.replicate.com/v1/predictions/4a5padvaf9rma0ctg99s5m2x5r",
"stream": "https://stream.replicate.com/v1/files/bcwr-y44klswlf2b24qqfh7igyxnll6hmcr4wgpr7fe3ffk4ufb5pf64a",
"web": "https://replicate.com/p/4a5padvaf9rma0ctg99s5m2x5r"
}
}