Flux 2 Max icon

Flux 2 Max API

Black Forest Labs の Flux 2 ファミリー最上位モデル(2025年11月)。最高品質のバリアントで、最も忠実なプロンプト追従、最も一貫した編集、そしてウェブからリアルタイム情報を取得できる独自の能力を備えています。

Flux 2 Max を1回のAPIコールで統合できます。1つのキー、1つの統一エンドポイント、そしてApiframe上のすべてのモデルで共通の請求。

model: "flux-2-max"
Flux 2 Max grounded generation: an isometric 3D weather card for Lisbon with a sun icon, date, and current temperature over a miniature city

Flux 2 Max の特長

ファミリー最高の品質

Flux 2 ラインナップで最も高い忠実度とフォトリアリズムを実現し、最終的な本番品質の成果物に向けて設計されています。

最強のプロンプト追従

複雑で詳細な長い指示を Pro や Flex バリアントより正確に再現し、最大32kトークンのプロンプトに対応します。

グラウンデッド生成

際立った機能として、ウェブを検索してリアルタイムの文脈を取得できます。参照素材を手作業で用意しなくても、トレンドの製品・時事・天気・最新のスタイルをビジュアル化できます。

クラス最高の編集一貫性

色・ライティング・顔・テキスト・オブジェクトを卓越した忠実度で保持するため、編集やバリエーションが「作り直し」ではなく自然な仕上がりになります。

高いキャラクター・ブランド一貫性

最大10枚の参照画像を使い、大量の出力にわたってアイデンティティ・製品・スタイルを安定して保ちます。

精密なリテクスチャと色制御

形状やジオメトリを保ったまま製品を新しい素材・色・仕上げに置き換えられ、HEXコードで正確なブランドカラーを指定できます。

Flux 2 Max で作成

Apiframeの Flux 2 Max API で生成した出力例です。

Flux 2 Max marketplace-ready product photo of a ceramic pour-over coffee set on a clean white surface in soft studio lighting

A polished photo of a ceramic pour-over coffee set on a clean white surface, soft studio lighting, sharp detail.

Flux 2 Max real-time weather card for Lisbon: an isometric 3D miniature of the city with current conditions, a weather icon, the date, and the temperature

Search the internet. A weather card for Lisbon today: an isometric 3D miniature of the city with current conditions, the title 'Lisbon', a weather icon, the date, and the temperature.

Flux 2 Max consistent-character campaign showing the same woman presenting on stage, reading at a desk, and walking outdoors with a stable face and outfit

Using these reference images of our character, show her presenting on stage, reading at a desk, and walking outdoors, keeping her face and outfit consistent.

Flux 2 Max product retexturing showing the same sofa in tan leather, dark green velvet, and light grey linen with identical shape and lighting

Show this sofa in tan leather, dark green velvet, and light grey linen, keeping the exact shape and lighting.

Flux 2 Max cinematic widescreen keyframe of a lone astronaut on a red desert planet at dusk with dramatic rim lighting and film grain

A cinematic key frame of a lone astronaut on a red desert planet at dusk, dramatic rim lighting, film grain, widescreen.

Flux 2 Max generating three new views of a single product (front, three-quarter, and top-down) with consistent materials and lighting

From this single product image, generate three new views: front, three-quarter, and top-down, with consistent materials and lighting.

概要

エンドポイント
POST /v2/images/generate
モデルID
flux-2-max
パラメータキー
fluxParams
モダリティ
画像
プロバイダー
Black Forest Labs
平均完了時間
~20s

機能

アスペクト比1:1, 3:4, 4:3, 9:16, 16:9
解像度0.5MP, 1MP, 2MP, 4MP
画像入力対応
平均時間~20秒

クイックスタート

APIキーを添えて POST /v2/images/generate に1回リクエストを送るだけで Flux 2 Max による生成が始まります。レスポンスには、ポーリングまたはWebhookで受け取れる jobId が返ります。

curl -X POST https://api.apiframe.ai/v2/images/generate \
  -H "X-API-Key: afk_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
        "prompt": "a sleek silver sports car on a coastal highway at sunset, hyper-realistic",
        "model": "flux-2-max",
        "fluxParams": {
            "resolution": "2MP",
            "image_prompt": "https://example.com/input.jpg",
            "image_prompt_strength": 0.5,
            "output_format": "jpg"
        }
    }'
import requests

response = requests.post(
    "https://api.apiframe.ai/v2/images/generate",
    headers={
        "X-API-Key": "afk_your_api_key_here",
        "Content-Type": "application/json",
    },
    json={
        "prompt": "a sleek silver sports car on a coastal highway at sunset, hyper-realistic",
        "model": "flux-2-max",
        "fluxParams": {
            "resolution": "2MP",
            "image_prompt": "https://example.com/input.jpg",
            "image_prompt_strength": 0.5,
            "output_format": "jpg"
        }
    },
)
print(response.json())  # { "jobId": "...", "status": "QUEUED" }
const response = await fetch("https://api.apiframe.ai/v2/images/generate", {
  method: "POST",
  headers: {
    "X-API-Key": "afk_your_api_key_here",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "prompt": "a sleek silver sports car on a coastal highway at sunset, hyper-realistic",
    "model": "flux-2-max",
    "fluxParams": {
      "resolution": "2MP",
      "image_prompt": "https://example.com/input.jpg",
      "image_prompt_strength": 0.5,
      "output_format": "jpg"
    }
  }),
});
const { jobId } = await response.json();
console.log(jobId);

レスポンスとジョブのライフサイクル

生成は非同期で行われます。送信が成功すると 202 AcceptedjobId が返ります。ステータスが COMPLETED になるまで GET /v2/jobs/{id} をポーリングする(または webhook_url を指定する)と、result フィールドに出力URLが格納されます。

1. 送信レスポンス (202)

{
  "jobId": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
  "status": "QUEUED"
}

2. 結果をポーリング

curl https://api.apiframe.ai/v2/jobs/JOB_ID \
  -H "X-API-Key: afk_your_api_key_here"
import requests, time

while True:
    job = requests.get(
        "https://api.apiframe.ai/v2/jobs/JOB_ID",
        headers={"X-API-Key": "afk_your_api_key_here"},
    ).json()
    if job["status"] in ("COMPLETED", "FAILED"):
        break
    time.sleep(2)
print(job["result"])
let job;
do {
  await new Promise((r) => setTimeout(r, 2000));
  job = await fetch("https://api.apiframe.ai/v2/jobs/JOB_ID", {
    headers: { "X-API-Key": "afk_your_api_key_here" },
  }).then((r) => r.json());
} while (job.status !== "COMPLETED" && job.status !== "FAILED");
console.log(job.result);

入力スキーマ

Flux 2 Max エンドポイントが受け付けるリクエストパラメータです。モデル固有のオプションは、下記のパラメータオブジェクトの中にネストされます。

パラメータ 必須 デフォルト 許可値 / 範囲 説明
prompt string 必須 生成する内容のテキスト説明。
model string 必須 "flux-2-max" "flux-2-max" このエンドポイントのモデル識別子。
fluxParams.resolution string 任意 "2MP" "0.5MP", "1MP", "2MP", "4MP" Resolution
fluxParams.image_prompt string (URL) 任意 Reference image (URL)
fluxParams.image_prompt_strength number 任意 0.5 min 0, max 1, step 0.05 How closely to follow the reference image (0–1).
fluxParams.output_format string 任意 "jpg" "jpg", "png", "webp" Output format
fluxParams.output_quality number 任意 90 min 0, max 100, step 1 Output quality
fluxParams.prompt_upsampling boolean 任意 false Let the model rewrite your prompt for better quality.
fluxParams.seed number 任意 step 1 Reuse a number to reproduce the same result.

よくある質問

Flux 2 Max APIに関するよくある質問をまとめました。

Flux 2 Pro や Flex とどう違いますか?

Max はプレミアムティアで、最高品質・最強のプロンプト追従・最も一貫した編集を備えます。Pro は本番運用の主力、Flex はタイポグラフィ向けにパラメータを制御できる選択肢です。

グラウンデッド生成とは何ですか?

モデルがリアルタイムのウェブ文脈を画像に取り込める機能です。参照素材を自分で用意しなくても、時事・天気・トレンド製品をビジュアル化できます。

料金はいくらですか?

1メガピクセルあたり約 $0.07 で、Flux 2 ファミリーで最も高価なティアです。

参照画像は何枚まで使えますか?

同時に最大10枚まで使用でき、強力なキャラクター・製品・スタイルの一貫性を実現します。

最適な用途は?

製品マーケティングと EC、ブランド・キャラクターの一貫性、リテクスチャ、インテリアデザイン、動画用のシネマティックなキーフレームなどです。

どこで利用できますか?

Apiframe のほか、BFL API や主要なホスティングパートナーから利用できます。

解決しませんでしたか?

Flux 2 Max API で開発を始めよう

APIキーを取得すれば数分で Flux 2 Max を統合できます — 従量課金。

無料クレジットですぐに開始
すべてのモデルを1つのAPIで
Webhook・SDK・冪等性に対応
プロバイダーのアカウント不要

ご質問はありますか? Discordに参加 または 営業に問い合わせる