It looks like you may prefer a different language. Switch anytime.

Black Forest Labs

Flux Kontext max

Image

4K output, superior text rendering, advanced contextual editing

起價 $0.170 / call Flux Kontext max API reference →
模型健康狀態 資料不足
curl -X POST https://runapi.ai/api/v1/flux_kontext/text_to_image \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "flux-kontext-max",
  "prompt": "Edit this product photo: change the background to a tropical beach while keeping the product exactly the same."
}'
https://runapi.ai 1 endpoint

2 個版本可用

Playground

試用 Flux Kontext max

選擇任一模型,幾秒內即可開始生成。

立即試用模型

選擇任一模型,幾秒內即可開始生成。

模型
Mode
預估: $0.17 / image
生成

請登入以使用 RunAPI 生成。

規格

技術細節

提供者 Black Forest Labs
模型 ID flux-kontext-max
模態 Image
任務類型 Asynchronous
API 端點 /api/v1/flux_kontext/text_to_image
計費單位 call
輸入參數 aspect_ratio, callback_url, enable_prompt_expansion, enable_translation, model, output_format, prompt, safety_tolerance, source_image_url, watermark
長寬比 21:9, 16:9, 4:3, 1:1, 3:4, 9:16
輸出格式 jpeg, png
目錄狀態 可直接上線
使用方式

3 個步驟使用此模型

  1. 取得 API 金鑰

    免費註冊後,從控制台建立 flux-kontext-max 的 API 金鑰。

  2. 傳送請求

    向 /api/v1/flux_kontext/text_to_image 傳送 POST 請求,並傳入 flux-kontext-max 模型 ID 與參數。

  3. 取得結果

    輪詢工作或依照回呼取得已完成的 flux-kontext-max 結果。

此模型提供的功能

彈性參數

可設定 8 個已記錄的參數,包括 aspect_ratio, enable_prompt_expansion, enable_translation, output_format, prompt。

Endpoint 覆蓋範圍

公開 1 個公共 endpoint:text_to_image。

Webhook 傳送

非同步任務接受回呼 URL 以接收完成通知。

用量計費

依 call 計量,無需訂閱。

Flux Kontext max 價格

API endpoint
解析度
時長
價格
text_to_image
暫無資料
call
$0.17 / image
API 參考

端點規格

端點
POST /api/v1/flux_kontext/text_to_image
模型 ID
flux-kontext-max
工作類型
text_to_image
最長時長
暫無資料
解析度
暫無資料
長寬比
21:9, 16:9, 4:3, 1:1, 3:4, 9:16
輸出格式
JPEG, PNG
平均生成時間
暫無資料

請求參數

prompt

必填 string

Image description (English only).

watermark

選填 string

Watermark identifier.

aspect_ratio

選填 string

Output aspect ratio. Default: 16:9. (21:9, 16:9, 4:3, 1:1, 3:4, 9:16)

callback_url

選填 string

Webhook URL for async notifications.

output_format

選填 string

Output format. Default: jpeg. (jpeg, png)

safety_tolerance

選填 integer

Content safety threshold. 0-6 for generation, 0-2 for editing. Default: 2.

source_image_url

選填 string

Source image URL for editing mode.

enable_translation

選填 boolean

Auto-translate non-English prompts. Default: true.

enable_prompt_expansion

選填 boolean

Expand the prompt with more detail. Default: false.

使用情境

產品攝影

為缺少棚拍照片的電商型錄,自動生成生活風格產品照片。

遊戲與概念美術

在定稿前快速發想場景與角色概念。

編輯插畫

大規模生成部落格文章與專欄所需的獨特封面與插圖。

FAQ

關於 Flux Kontext max 的常見問題

如何選擇 flux-kontext-max?

傳入 quickstart 顯示的 model ID。

這個 variant 的速率限制是多少?

每個金鑰的速率限制會依使用方案而調整。請查看定價頁面以了解目前限制。

之後可以切換 variant 嗎?

可以——variant 只是旗標。只要變更 model 參數即可切換。

它支援串流嗎?

只要支援串流,RunAPI 就會端到端串流。

我該在哪裡回報品質問題?

請在公開 GitHub repo 提交 issue,或寄信給支援。

正在與團隊一起打造?

我們可以協助企業接入、整合與技術問題。

聯絡我們