Flux Kontext Dev
$0.02/img
Developer-ready API access
Kontex Dev 提供具競爭力的價格,每次成功產生映像只需 $0.02。將提供多種變體以滿足不同的速度和品質要求。
$0.02/img
Developer-ready API access
專為開發人員設計的開放權重、超快速推理和多框架支援
託管在 HuggingFace 上的完全開源模型權重,用於研究和自訂部署。在非商業許可下可免費獲得模型重量。
優化後的模型支援快速回應,適合本地部署、實驗平台、批次處理工作流程。
支援HuggingFace Diffusers、ComfyUI、TensorRT等主流推理平台。在本地或基於雲端的管道上開箱即用。
在我們的 KontextBench 評估中優於多個閉源和開源影像編輯模型(包括 Gemini Flash、Bagel 等)。
提供針對 NVIDIA Blackwell 架構(BF16 / FP8 / FP4)最佳化的 TensorRT 權重,平衡速度和效率。
Kontext 開發機型部署在我們的平台上。無需本地部署 - 註冊並立即開始使用。支援所有開發場景的批次呼叫和低延遲響應。無需設定 - 只需呼叫 API。
使用者可以透過購買積分直接呼叫模型 API。簡單、透明的定價,無需進行許可談判。適合個人開發者到企業應用程式。只需按使用量付費 — 靈活且可擴展。
自助服務許可證入口網站可供企業快速購買商業許可證並整合到產品和服務中。
非同步處理完成時的即時通知。無需輪詢,提高應用程式回應效率。
最佳化推理引擎,確保快速回應時間,適合即時應用場景。
Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.
Add credits on the billing page when you are ready to scale beyond the free tier.
POST your first task following the API docs, then poll the task until the result is ready.
Use the API docs and the request example above to iterate on prompts and settings before wiring them into your product.
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.
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.
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.
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.
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.
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.
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.