Flux Kontext Dev
$0.02/img
Developer-ready API access
Kontex Dev cung cấp mức giá cạnh tranh chỉ $0.02 cho mỗi lần tạo hình ảnh thành công. Nhiều biến thể sẽ được cung cấp để phù hợp với các yêu cầu về tốc độ và chất lượng khác nhau.
$0.02/img
Developer-ready API access
Trọng số mở, suy luận cực nhanh và hỗ trợ đa khung được thiết kế cho nhà phát triển
Trọng số mô hình nguồn mở hoàn toàn được lưu trữ trên HuggingFace để nghiên cứu và triển khai tùy chỉnh. Trọng lượng mô hình được cung cấp miễn phí theo Giấy phép Phi thương mại.
Mô hình được tối ưu hóa hỗ trợ phản hồi nhanh, phù hợp cho việc triển khai cục bộ, nền tảng thử nghiệm và quy trình xử lý hàng loạt.
Hỗ trợ các nền tảng suy luận chính thống bao gồm Bộ khuếch tán HuggingFace, ComfyUI và TensorRT. Hoạt động vượt trội trên các quy trình cục bộ hoặc dựa trên đám mây.
vượt trội hơn nhiều mô hình chỉnh sửa hình ảnh nguồn đóng và nguồn mở trong đánh giá KontextBench của chúng tôi (bao gồm Gemini Flash, Bagel, v.v.).
Cung cấp trọng lượng TensorRT được tối ưu hóa cho kiến trúc NVIDIA Blackwell (BF16/FP8/FP4), cân bằng tốc độ và hiệu quả.
Kontext Dev sẵn sàng sản xuất được triển khai trên nền tảng của chúng tôi. Không cần triển khai cục bộ - đăng ký và bắt đầu sử dụng ngay lập tức. Hỗ trợ các cuộc gọi hàng loạt và phản hồi có độ trễ thấp cho tất cả các kịch bản phát triển. Không cần thiết lập - chỉ cần gọi API.
Người dùng có thể gọi trực tiếp mô hình API bằng cách mua tín dụng. Giá cả đơn giản, minh bạch mà không cần thương lượng cấp phép. Thích hợp cho các nhà phát triển cá nhân cho các ứng dụng doanh nghiệp. Chỉ trả tiền cho những gì bạn sử dụng — linh hoạt và có thể mở rộng.
Cổng cấp phép tự phục vụ có sẵn để doanh nghiệp nhanh chóng mua giấy phép thương mại và tích hợp vào các sản phẩm và dịch vụ.
Thông báo tức thì khi hoàn tất quá trình xử lý không đồng bộ. Không cần bỏ phiếu, cải thiện hiệu quả phản hồi của ứng dụng.
Công cụ suy luận được tối ưu hóa đảm bảo thời gian phản hồi nhanh chóng, phù hợp với các kịch bản ứng dụng thời gian thực. Giá
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.