Kontext Dev 価格
成功した生成のみ課金
Flux Kontext API
$0.02/img
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 編集サービスです。Pro、Max、Dev の各モデルを備え、速度と品質の異なるバランスを提供します。
Flux Kontext を商用利用できますか?
はい。すべての Kontext モデルには商用利用権が含まれており、製品、サービス、クライアント案件で利用できます。
返金はできますか?
いいえ、返金には対応しておりません。ただし、PiAPI の Workspace に初めて登録すると、支払い前に API をお試しいただける無料クレジットが付与されます!
対応画像形式は?
Kontext は JPEG、PNG、WebP をサポートします。最適な性能のため、入力画像は 10MB 未満が推奨です。
レート制限はありますか?
レート制限はプランと利用状況によって異なります。無料プランは低め、有料プランは高いスループットが利用できます。
More questions? See the API docs.
Our blog
Flux Kontext API



