Skip to main content

Flux Kontext - 用文字提示進行直覺式圖像編輯

Flux Kontext 是一款先進的圖像到圖像編輯模型,能同時理解你的視覺內容與創作意圖。它由 Black Forest Labs 打造並針對生產環境最佳化,讓你可以透過自然語言指令完成圖像改造、增強與重塑。

Est. $0.02 / image

Kontext Dev 定價

僅對成功生成收費

Flux Kontext API

$0.02/img /image

Developer-ready API access

範例用例

看看 Flux Kontext 在不同模型與場景中的能力

背景替換

在保持主體位置與光線一致性的同時自然替換背景

文字替換

精準編輯產品與品牌素材中的文字,同時保留字體風格與設計元素

產品品牌更新

在保留原始排版與設計完整性的同時更新品牌名稱

髮型變化

在保持臉部特徵與整體構圖的前提下完成髮型轉換

水彩風格

將照片變成充滿真實筆觸與紙張質感的水彩作品

90 年代卡通風格

將真實照片轉換為擁有粗線條與平塗色彩的復古卡通畫面

如何使用

Create your API key

Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.

Top up credits

Add credits on the billing page when you are ready to scale beyond the free tier.

Call the API

POST your first task following the API docs, then poll the task until the result is ready.

Iterate in the playground

Prototype prompts and settings in the the playground above before wiring them into your product.

curl -X POST 'https://api.piapi.ai/api/v1/task' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "Qubico/flux1-dev-advanced",
    "task_type": "kontext",
    "input": {
      "prompt": "Transform this product photo into a refined watercolor editorial.",
      "width": 1024,
      "height": 1024
    }
  }'

# → { "task_id": "9d5a…", "status": "pending" }

常見問題

什麼是 Flux Kontext API?

Flux Kontext API 是一個強大的圖像到圖像編輯服務,你可以透過自然語言提示來轉換圖像。它提供 Pro、Max 和 Dev 等多種模型版本,在速度與品質之間提供不同取捨。

Flux Kontext 可以用於商業專案嗎?

可以。所有 Kontext 模型都附帶完整的商業使用權,可整合到產品、服務與客戶專案中。

有退款政策嗎?

不,我們不提供退款。但當您首次在 PiAPI 的 Workspace 註冊帳戶時,將獲得免費點數,可在付款前試用我們的 API!

支援哪些圖像格式?

Kontext 支援 JPEG、PNG 和 WebP。為了獲得最佳效能,輸入圖像建議小於 10MB。

有速率限制嗎?

速率限制取決於你的方案和使用模式。免費用戶限制較低,付費用戶可獲得更高吞吐量。

More questions? See the API docs.

Our blog

Flux Kontext API