Skip to content

flux-kontext/pro ​

本页列出 ModelFold 模型目录中的参数信息。

概览 ​

字段值
模型 IDflux-kontext/pro
所属系列flux-kontext-api
模态图像生成 (image)
调用端点POST /v1/images/generations

调用示例 ​

bash
export API_BASE="https://modelfold.ai/v1"
export MODELFOLD_API_KEY="mf-..."   # 在控制台 API Key 页面创建
curl -X POST "$API_BASE/images/generations" \
  -H "Authorization: Bearer $MODELFOLD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"flux-kontext/pro","prompt":"A serene mountain landscape at sunset with a lake reflecting the orange sky","output_format":"jpeg","prompt_upsampling":false,"safety_tolerance":2}'

必填参数 ​

必填:prompt。

模型参数直接放在请求体顶层,不要套 input。示例素材地址需替换为自己的公开可访问文件;请求等待生成完成后返回 data[].url。

相关模型 ​

延伸阅读 ​

ModelFold — 一个 API,接入所有主流 AI 模型。