ราคา Kontext Dev
จ่ายเฉพาะการสร้างที่สำเร็จ
Flux Kontext API
$0.02/img /image
Developer-ready API access
ตัวอย่างการใช้งาน
ดูว่า Flux Kontext ทำอะไรได้บ้างในโมเดลและกรณีใช้งานที่หลากหลาย
เปลี่ยนฉากหลัง
แทนที่ฉากหลังอย่างเป็นธรรมชาติพร้อมคงตำแหน่งและแสงของตัวแบบ
เปลี่ยนข้อความ
แก้ไขข้อความบนสินค้าและงานแบรนด์โดยคงรูปแบบตัวอักษรและดีไซน์ไว้
แบรนด์สินค้า
อัปเดตแบรนด์และชื่อสินค้าโดยยังรักษาความสมบูรณ์ของดีไซน์เดิม
เปลี่ยนทรงผม
เปลี่ยนทรงผมโดยยังคงโครงหน้าและองค์ประกอบภาพไว้
สไตล์สีน้ำ
เปลี่ยนภาพถ่ายให้เป็นภาพสีน้ำสดใสพร้อมพื้นผิวสมจริง
สไตล์การ์ตูนยุค 90
เปลี่ยนภาพถ่ายจริงให้เป็นงานการ์ตูนสีสดเส้นหนา
วิธีใช้งาน
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 in the playground
Prototype prompts and settings in the the playground above before wiring them into your product.
curl -X POST 'https://api.piapi.ai/api/v1/task' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "Qubico/flux1-dev-advanced",
"task_type": "kontext",
"input": {
"prompt": "Transform this product photo into a refined watercolor editorial.",
"width": 1024,
"height": 1024
}
}'
# → { "task_id": "9d5a…", "status": "pending" }curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
-H 'X-API-Key: YOUR_API_KEY'
# poll until status = completed
{
"data": {
"status": "completed",
"output": {
"image_url": "https://img.theapi.app/ephemeral/…"
}
}
}$ npm install -g piapi-cli $ piapi run flux-kontext \ prompt="Transform this product photo into a refined watercolor editorial." \ width=1024 \ height=1024 ✓ Task completed! https://img.theapi.app/ephemeral/…
คำถามที่พบบ่อย
Flux Kontext API คืออะไร?
Flux Kontext API คือบริการแก้ไข image-to-image ที่ทรงพลังซึ่งช่วยให้คุณเปลี่ยนภาพด้วย prompts ภาษาธรรมชาติ โดยมีรุ่น Pro, Max และ Dev ที่สมดุลด้านความเร็วและคุณภาพต่างกัน
ฉันสามารถใช้ Flux Kontext ในโปรเจกต์เชิงพาณิชย์ได้หรือไม่?
ได้ โมเดล Kontext ทุกตัวมีสิทธิ์ใช้งานเชิงพาณิชย์เต็มรูปแบบสำหรับผลิตภัณฑ์ บริการ และงานลูกค้า
มีการคืนเงินไหม?
ไม่ เราไม่มีนโยบายคืนเงิน แต่เมื่อคุณสมัครสมาชิกครั้งแรกใน Workspace ของ PiAPI คุณจะได้รับเครดิตฟรีเพื่อทดลองใช้ API ก่อนชำระเงิน!
รองรับไฟล์ภาพรูปแบบใดบ้าง?
Kontext รองรับ JPEG, PNG และ WebP เพื่อประสิทธิภาพที่ดีที่สุด ภาพอินพุตควรมีขนาดต่ำกว่า 10MB
มี rate limit หรือไม่?
Rate limit ขึ้นอยู่กับแพ็กเกจและรูปแบบการใช้งาน ผู้ใช้ฟรีจะมีขีดจำกัดต่ำกว่า ส่วนผู้ใช้แบบชำระเงินจะได้ throughput สูงกว่า
More questions? See the API docs.
Our blog
Flux Kontext API



