Black Forest Labs

Flux Kontext pro

圖像

情境式編輯的速度與質素平衡

由 $0.03 / 次請求 Flux Kontext pro 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-pro",
  "prompt": "編輯這張產品相片:將背景換成熱帶海灘,同時保持產品完全不變。"
}'
https://runapi.ai 1 endpoint

2 個版本可用

Playground

試用 Flux Kontext pro

選擇任意模型,數秒內即可開始生成。

預計費用: $0.03 / 張圖片

登入以使用 RunAPI 生成內容。

登入以生成

登入後即可使用可用的語言模型開始生成。

規格

技術詳情

提供者 Black Forest Labs
模型 ID flux-kontext-pro
模態 圖像
任務類型 Asynchronous
API 端點 /api/v1/flux_kontext/text_to_image
計費單位 次請求
輸入參數 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-pro 的 API 金鑰。

  2. 發送請求

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

  3. 取得結果

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

此模型提供的功能

靈活的參數

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

Endpoint 涵蓋範圍

開放 1 個公開 endpoint:text_to_image。

Webhook 推送

非同步任務接受回調 URL,用於接收完成通知。

按用量計費

按 次請求 計量,無需訂閱。

Flux Kontext pro 收費

API endpoint
解析度
時長
價格
text_to_image
暫不可用
次請求
$0.03 / 張圖片
API 參考

端點規格

端點
POST /api/v1/flux_kontext/text_to_image
模型 ID
flux-kontext-pro
工作類型
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.

使用場景

產品攝影

自動生成適合電商 catalog、但冇 studio 攝影的 lifestyle 產品相。

遊戲及概念美術

在落實最終美術之前,快速構思場景同角色。

編輯插畫

大規模生成獨特封面圖同插畫,適合 blog post 同文章。

FAQ

關於 Flux Kontext pro 的常見問題

點樣選擇 flux-kontext-pro?

傳入 quickstart 顯示嘅 model ID。

這個 variant 的 rate limit 係多少?

每個 key 的 rate limit 會按使用層級而定。請查看定價頁了解最新限制。

之後可以切換 variant 嗎?

可以——variant 只係一個旗標。只要更改 model 參數就可以切換。

支援 streaming 嗎?

在可用 streaming 的情況下,RunAPI 會端到端串流。

我應該在邊度回報品質問題?

可以在公開 GitHub repo 開 issue,或者電郵支援團隊。

需要獨立的供應商帳戶嗎?

不需要。你的 RunAPI API key 足以存取此 variant 及目錄中的所有其他模型,無需底層供應商帳戶。

正在與團隊一起建立?

我們可以協助企業設定、整合和技術問題。

聯絡我們