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.