模型定價企業
500+ AI 模型 API,全部整合在一個 API 中。就在 CometAPI
模型 API
開發者
快速入門說明文件API 儀表板
公司
關於我們企業
資源
AI模型部落格更新日誌支援
服務條款隱私政策
© 2026 CometAPI · All rights reserved
Home/Models/Replicate/Black Forest Labs/FLUX 2 MAX
X

Black Forest Labs/FLUX 2 MAX

每次請求:$0.056
上下文:2M
最大輸出:30K
FLUX.2 [max] 是 Black Forest Labs(BFL)推出的 FLUX.2 系列中旗艦級、最高品質的變體。其定位為專業級的文字→圖像生成與圖像編輯模型,重點在於極致保真度、對提示詞的遵從度,以及在角色、物件、光照與色彩上的編輯一致性。BFL 與合作夥伴的註冊目錄將 FLUX.2 [max] 描述為頂級的 FLUX.2 變體,具備多重參考編輯與有據生成等特性。
新
商業用途
概覽
功能
定價
API

技術規格(一覽)

規格詳情
型號名稱 / 變體FLUX.2 [max] (black-forest-labs/flux-2-max)
系列FLUX.2 圖像生成與編輯
輸入類型文字提示、參考圖片(多參考)
參考圖片上限透過 API 最多 8 張,透過 Playground UI 最多 10 張
輸出解析度最高 ~4 百萬像素(2048×2048 像素)
字數上限(提示詞)最多 32,000 個字元
核心任務文字轉圖像、圖像編輯、修補、風格控制
典型應用領域生產級創作、電商、廣告素材、迭代設計
具體上下文支援即時網路情境整合
攝影級輸出是 — 用於專業產品視覺
基準排名獨立排行榜:文字轉圖像全球前 3、圖像編輯全球前 7

什麼是 FLUX 2 MAX

FLUX.2 [max] 是 Black Forest Labs(BFL)FLUX.2 家族的旗艦、最高品質變體。它定位為專業級的文字→圖像生成與圖像編輯模型,專注於最大保真度、提示詞遵從性,以及在角色、物件、光影與色彩上的編輯一致性。BFL 與合作夥伴的登錄庫將 FLUX.2 [max] 描述為具備多參考編輯與基於真實資料生成等功能的頂級 FLUX.2 變體。

FLUX.2 [max] API 是 CometAPI 用來向開發者提供 FLUX.2 [max] 模型推理的交付機制。這些 API 端點接受文字提示與一張或多張參考圖片(用於圖生圖或編輯任務),並返回生成的圖像(通常為可下載檔案或 base64 data URI)。

主要功能

1. 擬真級影像創作

FLUX.2 [max] 可生成照片級擬真圖像,具備豐富細節、逼真光影、合理的空間邏輯,以及一致的世界知識。適合創意與專業行銷素材。

2. 多參考一致性

該模型透過 API 支援最多 8 張參考圖(互動式 playground 最多 10 張)。這可確保角色、產品或風格在各種轉換中保持視覺一致。

3. 受真實資料支撐的生成

一項獨特能力,模型會將當前網路情境與真實世界資訊融入輸出影像——非常適合趨勢驅動的視覺或需要即時更新的內容創作。

4. 進階編輯與重貼圖

提供強大的修補(inpainting)與編輯功能——從背景替換到物件細節精修——並具備出色的結構一致性與提示詞遵從性。

5. 文字渲染與字體排版

相較早期模型,FLUX.2 [max] 在影像內渲染可讀文字、資訊圖表或 UI 樣機時,準確度更高。

基準測試表現

獨立排名將 FLUX.2 [max] 定位於全球頂尖 AI 圖像模型之列:

排行任務名次 / 分數
文字轉圖像生成全球第 #3(分數 ~1167)
圖像編輯 / 修補全球第 #7(分數 ~1247)

這些名次使 FLUX.2 [max] 與 Gemini-2.5-Flash 等模型相當,並在部分指標上更勝一籌,同時在提示詞遵從與文字渲染方面優於部分競品。

LUX.2 [max] 與其他模型比較

功能FLUX.2 [max]Gemini-2.5-Flash / Nano BananaMidjourney v7
擬真度極高極高高
提示詞準確度優秀良好非常好
文字渲染原生 / 強受限支援
多參考支援是(8+)受限受限
編輯(修補)強(#7)中等良好

總體而言,FLUX.2 [max] 尤其在多參考工作流程、一致的身分維持、受真實資料支撐的生成與提示詞遵從方面表現突出,相較於主要聚焦於藝術美學的模型,更適合生產級應用。

如何存取 black-forest-labs/flux-2-max API

步驟 1:註冊取得 API Key

登入 cometapi.com。若您尚未成為使用者,請先註冊。登入您的 CometAPI 控制台。取得介面的存取憑證 API key。在個人中心的 API token 處點選「Add Token」,取得 token 金鑰:sk-xxxxx 並提交。

步驟 2:向 black-forest-labs/flux-2-max API 發送請求

選擇 “black-forest-labs/flux-2-max” 端點來發送 API 請求並設定請求本文。請求方法與請求本文可從我們網站的 API 文件獲取。我們的網站也提供 Apifox 測試以供方便。將 <YOUR_API_KEY> 替換為您帳戶中的實際 CometAPI 金鑰。

將您的問題或請求填入 content 欄位——模型將對此進行回應。處理 API 回應以取得生成的答案。

步驟 3:擷取並驗證結果

處理 API 回應以取得生成的答案。處理後,API 會回傳任務狀態與輸出資料。

CometAPI 現已支援 Replicate 格式的模型: 🔹 black-forest-labs/flux-2-pro 🔹 black-forest-labs/flux-2-dev 🔹 black-forest-labs/flux-2-flex

限時優惠:低於 Replicate 官方定價!

👇 Start Buil

Black Forest Labs/FLUX 2 MAX 的功能

探索 Black Forest Labs/FLUX 2 MAX 的核心功能,專為提升效能和可用性而設計。了解這些功能如何為您的專案帶來效益並改善使用者體驗。

Black Forest Labs/FLUX 2 MAX 的定價

探索 Black Forest Labs/FLUX 2 MAX 的競爭性定價,專為滿足各種預算和使用需求而設計。我們靈活的方案確保您只需為實際使用量付費,讓您能夠隨著需求增長輕鬆擴展。了解 Black Forest Labs/FLUX 2 MAX 如何在保持成本可控的同時提升您的專案效果。
彗星價格 (USD / M Tokens)官方價格 (USD / M Tokens)折扣
每次請求:$0.056
每次請求:$0.07
-20%

Black Forest Labs/FLUX 2 MAX 的範例程式碼和 API

FLUX.2 [max] API 是 CometAPI 用來向開發者提供 FLUX.2 [max] 模型推論的交付機制。API 端點接受文字提示與一張或多張參考影像(用於以圖生圖或編輯任務),並回傳生成的影像(通常以可下載檔案或 base64 data URI 的形式)。
Python
JavaScript
Curl
import os
import requests
import json

# Get your CometAPI key from https://api.cometapi.com/console/token, and paste it here
COMETAPI_KEY = os.environ.get("COMETAPI_KEY") or "<YOUR_COMETAPI_KEY>"

# API endpoint
url = "https://api.cometapi.com/replicate/v1/models/black-forest-labs/flux-2-max/predictions"

# Request headers
headers = {
    "Authorization": f"Bearer {COMETAPI_KEY}",
    "Content-Type": "application/json",
    "Accept": "*/*"
}

# Request body
payload = {
    "input": {
        "prompt": "A photorealistic wide shot of a large minimalist digital billboard standing in the middle of a forest filled with purple and lavender-hued trees. Soft violet foliage surrounds the scene, creating a surreal yet elegant atmosphere. The billboard has a sleek metal frame with subtle overhead lights, blending advanced technology with dreamlike nature. On the screen, a dark glass display shows a clean, futuristic UI with gentle lavender and magenta accents. The billboard is transparent, showing the trees behind it. Centered text reads: 'FLUX.2 [max]' in a modern sans-serif font, calm, confident, and precise. Soft daylight with a purple color cast, cinematic composition, ultra-high resolution, premium AI launch aesthetic, minimalism, tranquil mood.",
        "resolution": "2 MP",
        "aspect_ratio": "1:1",
        "input_images": [],
        "output_format": "webp",
        "output_quality": 80,
        "safety_tolerance": 2
    }
}

# Send request
response = requests.post(url, headers=headers, json=payload)

# Output result
print(f"Status Code: {response.status_code}")
print(json.dumps(response.json(), indent=2, ensure_ascii=False))

Python Code Example

import os
import requests
import json

# Get your CometAPI key from https://api.cometapi.com/console/token, and paste it here
COMETAPI_KEY = os.environ.get("COMETAPI_KEY") or "<YOUR_COMETAPI_KEY>"

# API endpoint
url = "https://api.cometapi.com/replicate/v1/models/black-forest-labs/flux-2-max/predictions"

# Request headers
headers = {
    "Authorization": f"Bearer {COMETAPI_KEY}",
    "Content-Type": "application/json",
    "Accept": "*/*"
}

# Request body
payload = {
    "input": {
        "prompt": "A photorealistic wide shot of a large minimalist digital billboard standing in the middle of a forest filled with purple and lavender-hued trees. Soft violet foliage surrounds the scene, creating a surreal yet elegant atmosphere. The billboard has a sleek metal frame with subtle overhead lights, blending advanced technology with dreamlike nature. On the screen, a dark glass display shows a clean, futuristic UI with gentle lavender and magenta accents. The billboard is transparent, showing the trees behind it. Centered text reads: 'FLUX.2 [max]' in a modern sans-serif font, calm, confident, and precise. Soft daylight with a purple color cast, cinematic composition, ultra-high resolution, premium AI launch aesthetic, minimalism, tranquil mood.",
        "resolution": "2 MP",
        "aspect_ratio": "1:1",
        "input_images": [],
        "output_format": "webp",
        "output_quality": 80,
        "safety_tolerance": 2
    }
}

# Send request
response = requests.post(url, headers=headers, json=payload)

# Output result
print(f"Status Code: {response.status_code}")
print(json.dumps(response.json(), indent=2, ensure_ascii=False))

JavaScript Code Example

// Get your CometAPI key from https://api.cometapi.com/console/token, and paste it here
const COMETAPI_KEY = process.env.COMETAPI_KEY || "<YOUR_COMETAPI_KEY>";

const url = "https://api.cometapi.com/replicate/v1/models/black-forest-labs/flux-2-max/predictions";

const payload = {
    input: {
        prompt: "A photorealistic wide shot of a large minimalist digital billboard standing in the middle of a forest filled with purple and lavender-hued trees. Soft violet foliage surrounds the scene, creating a surreal yet elegant atmosphere. The billboard has a sleek metal frame with subtle overhead lights, blending advanced technology with dreamlike nature. On the screen, a dark glass display shows a clean, futuristic UI with gentle lavender and magenta accents. The billboard is transparent, showing the trees behind it. Centered text reads: 'FLUX.2 [max]' in a modern sans-serif font, calm, confident, and precise. Soft daylight with a purple color cast, cinematic composition, ultra-high resolution, premium AI launch aesthetic, minimalism, tranquil mood.",
        resolution: "2 MP",
        aspect_ratio: "1:1",
        input_images: [],
        output_format: "webp",
        output_quality: 80,
        safety_tolerance: 2
    }
};

async function main() {
    const response = await fetch(url, {
        method: "POST",
        headers: {
            "Authorization": `Bearer ${COMETAPI_KEY}`,
            "Content-Type": "application/json",
            "Accept": "*/*"
        },
        body: JSON.stringify(payload)
    });

    const data = await response.json();
    console.log("Status Code:", response.status);
    console.log(JSON.stringify(data, null, 2));
}

main().catch(console.error);

Curl Code Example

#!/bin/bash

curl --location --request POST 'https://api.cometapi.com/replicate/v1/models/black-forest-labs/flux-2-max/predictions' \
--header "Authorization: Bearer $COMETAPI_KEY" \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--data-raw '{
    "input": {
        "prompt": "A photorealistic wide shot of a large minimalist digital billboard standing in the middle of a forest filled with purple and lavender-hued trees. Soft violet foliage surrounds the scene, creating a surreal yet elegant atmosphere. The billboard has a sleek metal frame with subtle overhead lights, blending advanced technology with dreamlike nature. On the screen, a dark glass display shows a clean, futuristic UI with gentle lavender and magenta accents. The billboard is transparent, showing the trees behind it. Centered text reads: FLUX.2 [max] in a modern sans-serif font, calm, confident, and precise. Soft daylight with a purple color cast, cinematic composition, ultra-high resolution, premium AI launch aesthetic, minimalism, tranquil mood.",
        "resolution": "2 MP",
        "aspect_ratio": "1:1",
        "input_images": [],
        "output_format": "webp",
        "output_quality": 80,
        "safety_tolerance": 2
    }
}'

更多模型

G

Nano Banana 2

輸入:$0.4/M
輸出:$2.4/M
核心能力概覽:解析度:最高可達 4K(4096×4096),與 Pro 相當。參考圖片一致性:最多支援 14 張參考圖片(10 個物件 + 4 個角色),維持風格與角色一致性。極端寬高比:新增 1:4、4:1、1:8、8:1 比例,適合長圖、海報與橫幅。文字渲染:進階文字生成,適用於資訊圖表與行銷海報版面。搜尋強化:整合 Google Search + Image Search。Grounding:內建思考過程;在生成前會先對複雜提示進行推理。
D

Doubao Seedream 5

每次請求:$0.028
Seedream 5.0 Lite 是一款統一式多模態圖像生成模型,具備深度思考與線上搜尋能力,在理解、推理與生成能力上全方位升級。
F

FLUX 2 MAX

每次請求:$0.008
FLUX.2 [max] 是來自 Black Forest Labs(BFL)的頂級視覺智能模型,專為生產級工作流程設計:行銷、產品攝影、電子商務、創意製作流程,以及任何需要一致的角色/產品形象、精準文字渲染,並在多百萬像素解析度下呈現照片級寫實細節的應用。其架構經過精心設計,具備強大的提示遵循能力、多參考融合(最多可輸入十張圖像),以及有根據的生成(在產生圖像時能夠納入最新的網路脈絡)。
O

GPT Image 1.5

輸入:$6.4/M
輸出:$25.6/M
GPT-Image-1.5 是 OpenAI 的 GPT Image 系列中的圖像模型。它是一個原生多模態的 GPT 模型,旨在根據文字提示生成圖像,並在嚴格遵循使用者指示的同時對輸入圖像進行高保真編輯。
D

Doubao Seedream 4.5

每次請求:$0.032
Seedream 4.5 是 ByteDance/Seed 的多模態圖像模型(文字→圖像 + 圖像編輯),專注於生產級的圖像保真度、更強的提示詞遵循度,以及大幅改進的編輯一致性(主體保留、文字/字體排版渲染與人臉真實感)。
R

Black Forest Labs/FLUX 2 PRO

R

Black Forest Labs/FLUX 2 PRO

每次請求:$0.06
FLUX 2 PRO 是 FLUX 2 系列中的旗艦級商用模型,提供最先進的圖像生成,帶來前所未有的品質與細節。專為專業與企業級應用打造,具備卓越的提示詞遵循度、照片級逼真輸出與出色的藝術創作能力。此模型代表 AI 圖像合成技術的尖端水準。