模型定价企业
500+ AI 模型 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 的顶级变体,具备多参考编辑与有据可依的生成等特性。

CometAPI 通过 FLUX.2 [max] API 向开发者提供该模型的推理服务。API 端点接收文本提示与一张或多张参考图(用于图生图或编辑任务),并返回生成的图像(通常为可下载文件或 Base64 数据 URI)。

主要特性

1. 照片级图像生成

FLUX.2 [max] 可生成具备丰富细节、真实光照、合理空间逻辑与一致世界知识的照片级图像,适用于创意与专业营销素材。

2. 多参考保真度

模型通过 API 支持最多 8 张参考图(交互式 playground 中为 10 张),确保角色、产品或风格在各类变换中保持视觉一致性。

3. 有据可依的生成

独特能力:将当前网页上下文与现实世界信息融入图像输出——非常适合趋势驱动的视觉或最新内容创作。

4. 高级编辑与重纹理

涵盖强大的修复填充与编辑能力——从背景替换到物体细节优化——具备出色的结构一致性与提示词遵从度。

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 密钥

登录 cometapi.com。若您尚未成为用户,请先注册。进入您的 CometAPI console。获取接口访问凭据 API key。在个人中心的 API token 处点击“Add Token”,获得令牌 key:sk-xxxxx 并提交。

步骤 2:向 black-forest-labs/flux-2-max API 发送请求

选择 “black-forest-labs/flux-2-max ” 端点发送 API 请求并设置请求体。请求方法与请求体可从我们网站的 API 文档获取。我们的网站也提供 Apifox 测试以便您调试。将 <YOUR_API_KEY> 替换为您账号中的实际 CometAPI key。

将您的问题或需求插入到 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 的竞争性定价,满足不同预算与使用需求,灵活方案确保随需求扩展。
Comet 价格 (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 数据 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 + 图片搜索。Grounding:内置思维过程;生成前先对复杂提示进行推理。
D

Doubao Seedream 5

每次请求:$0.028
Seedream 5.0 Lite 是一款统一的多模态图像生成模型,具备深度思考和在线搜索能力,在理解、推理与生成能力方面实现了全方位升级。
F

FLUX 2 MAX

每次请求:$0.008
FLUX.2 [max] 是 Black Forest Labs(BFL)推出的顶级视觉智能模型,面向生产级工作流程:市场营销、产品摄影、电子商务、创意流程,以及任何需要角色/产品形象一致性、精确文字渲染和在多百万像素分辨率下呈现照片级细节的应用。其架构经过工程化设计,具备强大的提示跟随能力、支持多参考融合(最多 10 张输入图像),并能实现 grounded generation(在生成图像时能够纳入最新的网络上下文)。
O

GPT Image 1.5

输入:$6.4/M
输出:$25.6/M
GPT-Image-1.5 是 GPT Image 系列中的 OpenAI 图像模型。它是一个原生多模态的 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 图像合成技术的最前沿水准。