Skip to main content

Black Forest Labs · Image

Kontext Dev — Fast, Flexible, and Developer Friendly

編輯速度快。發貨更快。 FLUX Kontext Dev 是強大的 Kontext 開發機型的開放重量、開發人員的版本。它提供超快速的圖像編輯、批量支援和多圖像推理功能——所有這些都可以透過 API 存取。非常適合實驗、生產流程或創意自動化。

定價

Kontex Dev 提供具競爭力的價格,每次成功產生映像只需 $0.02。將提供多種變體以滿足不同的速度和品質要求。

Flux Kontext Dev

$0.02/img

Developer-ready API access

核心功能

專為開發人員設計的開放權重、超快速推理和多框架支援

開放權重

託管在 HuggingFace 上的完全開源模型權重,用於研究和自訂部署。在非商業許可下可免費獲得模型重量。

超快速推理

優化後的模型支援快速回應,適合本地部署、實驗平台、批次處理工作流程。

框架相容性

支援HuggingFace Diffusers、ComfyUI、TensorRT等主流推理平台。在本地或基於雲端的管道上開箱即用。

經過基準測試驗證的效能

在我們的 KontextBench 評估中優於多個閉源和開源影像編輯模型(包括 Gemini Flash、Bagel 等)。

NVIDIA 最佳化

提供針對 NVIDIA Blackwell 架構(BF16 / FP8 / FP4)最佳化的 TensorRT 權重,平衡速度和效率。

生產就緒 API

Kontext 開發機型部署在我們的平台上。無需本地部署 - 註冊並立即開始使用。支援所有開發場景的批次呼叫和低延遲響應。無需設定 - 只需呼叫 API。

基於積分的計費

使用者可以透過購買積分直接呼叫模型 API。簡單、透明的定價,無需進行許可談判。適合個人開發者到企業應用程式。只需按使用量付費 — 靈活且可擴展。

商業許可就緒

自助服務許可證入口網站可供企業快速購買商業許可證並整合到產品和服務中。

即時 Webhooks

非同步處理完成時的即時通知。無需輪詢,提高應用程式回應效率。

低延遲回應

最佳化推理引擎,確保快速回應時間,適合即時應用場景。

Get started

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 with the API

Use the API docs and the request example above to iterate on prompts and settings before wiring them into your product.

Frequently asked questions

What is Flux Kontext API?

Flux Kontext API is a powerful image-to-image editing service that allows you to transform images using natural language prompts. It offers multiple model variants (Pro, Max, and Dev) with different speed and quality trade-offs. The API supports various editing tasks including style transfer, object modification, background replacement, text editing, and more. Built by Black Forest Labs, it provides production-ready AI image editing capabilities through simple REST API calls.

Can I use Flux Kontext for commercial projects?

Yes! All Kontext models come with full commercial use rights. You can integrate them into your products, services, and client work without any additional licensing fees or restrictions.

How do webhooks work?

When you submit an image editing request, you can provide a webhook URL. Once processing is complete, we'll send a POST request to your endpoint with the results. This allows for seamless integration into your applications without polling for status updates.

What image formats are supported?

Kontext supports common image formats including JPEG, PNG, and WebP. Input images should be under 10MB for optimal performance. Output format matches your input format by default, but can be specified in your API request.

Is there a rate limit?

Rate limits depend on your plan and usage patterns. Free tier users have lower limits, while paid users get higher throughput. For high-volume applications, contact us about enterprise plans with custom rate limits and dedicated infrastructure.

What happens if my API call fails?

Failed API calls are not charged. We provide detailed error messages to help you troubleshoot issues. Common failures include invalid image formats, oversized files, or inappropriate content. Our status page shows real-time API health.

Do you offer API documentation and code examples?

Yes! We provide comprehensive API documentation with detailed examples in multiple programming languages including Python, Node.js, PHP, and cURL. Our interactive API explorer lets you test endpoints directly in your browser with real-time examples and response previews.

More questions? See the API docs.