
Must be between 3 and 5000 characters.
0/5000Aspect ratio for the generated image. Select 'auto' to match the first input image ratio (requires input image).
Output image resolution.
A configurable parameter. Defaults to true in the Playground.

Explore different use cases and parameter configurations
Must be between 3 and 5000 characters.
0/5000Aspect ratio for the generated image. Select 'auto' to match the first input image ratio (requires input image).
Output image resolution.
A configurable parameter. Defaults to true in the Playground.

Explore different use cases and parameter configurations
Click to upload or drag and drop
Supported formats: JPEG, PNG, WEBP Maximum file size: 10MB; Maximum files: 8
Input reference images (1-8 images).
Must be between 3 and 5000 characters.
0/5000Aspect ratio for the generated image. Select 'auto' to match the first input image ratio (requires input image).
Output image resolution.
A configurable parameter. Defaults to true in the Playground.

Explore different use cases and parameter configurations
Click to upload or drag and drop
Supported formats: JPEG, PNG, WEBP Maximum file size: 10MB; Maximum files: 8
Input reference images (1-8 images).
Must be between 3 and 5000 characters.
0/5000Aspect ratio for the generated image. Select 'auto' to match the first input image ratio (requires input image).
Output image resolution.
A configurable parameter. Defaults to true in the Playground.

Explore different use cases and parameter configurations
README
Complete guide to using FLUX.2
Black Forest Labs Flux 2 Pro & Flex API(Kie.ai提供)

curl https://api.kie.ai/api/v1/jobs/createTask \-H "Authorization: Bearer $KIE_API_KEY" \-H "Content-Type: application/json" \-d '{"model": "flux-2/pro-text-to-image","input": {"prompt": "A glass teapot on a sunlit wooden table, photorealistic","aspect_ratio": "1:1","resolution": "1K"}}'
FLUX.1からFLUX.2へ:Kie AI Flux 2 APIの新機能


Flux 2.0 APIによる高精細な画像ディテール

Flux 2 AI APIによるテキストレンダリングの向上

FLUX.2 APIのプロンプト追従性の強化

Flux 2画像生成モデルにおける現実世界の知識

1K・2K解像度(最大約4MP)と柔軟なアスペクト比
Kie AIのFlux 2 ProおよびFlux 2 Flex API
信頼性が高く、本番運用に対応した出力を実現するFLUX.2 [pro] API
より高度な制御を求める開発者向けのFLUX.2 [flex] API
FLUX.2 [dev]:自身の環境で実行可能なフルモデルウェイト
Flux 2 Pro、Flux 2 Flex、Flux 2 Devモデルの比較
| Feature | Flux 2 Pro | Flux 2 Flex | Flux 2 Dev |
|---|---|---|---|
| 最適な用途 | 本番ワークフロー | 最高品質ときめ細かな制御 | ローカル開発と完全なカスタマイズ |
| Speed | 高速な生成 | 高レイテンシ(品質重視) | ハードウェア環境に依存 |
| Multi-reference | Kie AIで最大8枚 | Kie AIで最大8枚 | 最大6枚のリファレンスを推奨 |
| Controls | prompt、aspect_ratio、resolution(およびinput_urls) | 同一のKie.aiスキーマ(Kie.aiではsteps/guidanceは非公開) | セルフホスト型パイプラインの完全制御(32Bオープンウェイト) |
| Text-to-image | Supported | Supported | 対応(オープンウェイト) |
| 画像編集 | Supported | Supported | 対応(オープンウェイト) |
| Kie.aiモデルIDと料金 | flux-2/pro-*: 1Kで5クレジット($0.025)、2Kで7クレジット($0.035) | flux-2/flex-*: 1Kで14クレジット($0.07)、2Kで24クレジット($0.12) | このページではホストされていません(Hugging Faceのオープンウェイト) |
Kie.aiでのFlux 2 APIの使い方
- 1
ステップ1:Kie AI PlaygroundでFlux2 APIをテストする
まずはKie AI Playgroundでflux2 APIの機能を直接試してみましょう。画像をアップロードし、マルチリファレンス編集を試して、Flux 2画像生成の結果をリアルタイムでプレビューできます。ライティングの制御、一貫性、テキストレンダリングの精度を直感的に確認できます。 - 2
ステップ2:アカウントを作成し、Flux 2 API keyを取得する
Kie AIダッシュボードにサインインし、固有のFlux 2 API keyを発行します。このキーは、Flux 2.0 APIのテキストから画像生成、画像編集、マルチリファレンスワークフローを含むすべてのリクエストで使用します。不正利用を防ぐため、キーは安全に管理してください。 - 3
ステップ3:アプリからFLUX.2 APIエンドポイントを呼び出す
Authorization: Bearer YOUR_API_KEYヘッダーを付与して/api/v1/jobs/createTaskへPOSTリクエストを送信します。modelにflux-2/pro-text-to-image、flux-2/pro-image-to-image、flux-2/flex-text-to-image、またはflux-2/flex-image-to-imageを設定し、必須パラメータのprompt(3〜5,000文字)、aspect_ratio、resolution(1Kまたは2K)に加え、画像から画像生成の場合は1〜8個のinput_urlsを渡します。その後、callBackUrlまたはGet Task Detailsで結果を取得してください。
Flux 2 API連携にKie AIが選ばれる理由
- 1
テキストから画像生成と画像編集に対応するProとFlex
flux-2/pro-text-to-image、flux-2/pro-image-to-image、flux-2/flex-text-to-image、およびflux-2/flex-image-to-imageはすべてPOST /api/v1/jobs/createTaskで実行され、共通のパラメータを使用して1Kまたは2Kで出力します。パラメータの全一覧は上記のPlaygroundおよびAPIドキュメントでご確認いただけます。各モデルと解像度の料金は上記の料金カードに掲載されています。 - 2
アスペクト比と解像度の指定は必須
アスペクト比と解像度はすべてのリクエストで必須です。autoのアスペクト比は最初の入力画像に合わせるため、画像から画像生成でのみ機能します。出力フォーマットは固定されておらず、結果はPNGまたはJPEGで返されます。 - 3
最大8枚の参照画像と80クレジットの無料提供
画像から画像生成モデルは1〜8枚の参照画像を受け付け、上部の料金カードに記載の通り追加費用なしで処理できます。まだホストされていないファイルは、Kie.aiファイルアップロードAPI(Base64、ファイルストリーム、またはリモートURL)で事前にアップロード可能です。Kie.aiの新規ユーザーには、テスト用の無料クレジットが80クレジット付与されます。
Flux 2 APIを活用した実践ユースケース
Flux 2画像生成による商品撮影とECビジュアル
Flux 2 AI APIを活用したマーケティングクリエイティブとキャンペーン素材
FLUX.2 APIによるUIモックアップ、インフォグラフィック、レイアウトデザイン
Flux 2 Proによる一貫したキャラクターシーンと絵コンテ制作
Flux 2 vs Nanobanana Pro:ワークフローに最適なモデルは?

Flux 2が適しているケース
