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.