Unlock exclusive introductory pricing for the newly launched Gemini 3.5 Flash.
R

Black Forest Labs/FLUX 2 DEV

Por Solicitud:$0.06
Publicado:Nov 25, 2025

FLUX 2 DEV is the development-friendly version optimized for research, experimentation, and non-commercial applications. It provides developers with powerful image generation capabilities while maintaining a balance between quality and computational efficiency. Perfect for prototyping, academic research, and personal creative projects.

Nuevo
Uso comercial

Key features (what Flux.2 Dev does)

  • Textโ†’Image generationย with high prompt adherence and improved typography / small-detail rendering.
  • Multi-reference editingย โ€” combine multiple reference images into a single output, preserving identity/style consistency
  • Single checkpoint for generation + editingย (no separate editing model required).
  • Large open-weight checkpoint (32B)ย permitting local research, quantization, and community adaptation.)
  • Optimized VAEย for an improved learnabilityโ€“qualityโ€“compression tradeoff (enables 4MP editing/outputs).

Technical details (architecture & engineering)

  • Parameter count:ย 32 billion parameters for the FLUX.2 checkpoint.
  • Core design:ย latent flow-matching /ย rectified flow transformerย combined with a vision-language model (BFL says they couple a Mistral-3 24B VLM with the transformer backbone for semantic grounding). The VLM contributes world knowledge and textual grounding while the transformer models spatial/compositional structure.
  • VAE:ย new FLUX.2 VAE (released under Apache-2.0) retrained to improve reconstruction fidelity and latent learnability, enabling high-resolution editing.
  • Sampling & distillation:ย trained using guidance-distillation techniques to improve inference efficiency and fidelity.

Benchmark performance

Black Forest Labs published comparative evaluations and charts showing FLUX.2โ€™s performance vs. contemporary open-weight and hosted image models. Key published figures (BFL / press summaries):

  • Text-to-image win rate:ย FLUX.2 ~66.6%ย (vs. Qwen-Image 51.3%, Hunyuan ~48.1% in BFLโ€™s head-to-head dataset).
  • Single-reference editing win rate:ย FLUX.2 ~59.8%ย (vs. Qwen-Image 49.3%, FLUX.1 Kontext ~41.2%).
  • Multi-reference editing win rate:ย FLUX.2 ~63.6%ย (vs. Qwen-Image 36.4%). BFL also reports multi-reference capability up toย 10 referencesย in their evaluation suite.
  • Ad and marketing image variantsย where the same model/actor/product must remain consistent across many scenes or backgrounds (multi-reference consistency).
  • Product photography & virtual try-onย (preserve product details across backgrounds).
  • Editorial/fashion spreadsย requiring the same identity across many shots.
  • Rapid prototyping and researchย (dev checkpoint allows experimentation, fine-tuning and LoRA/adapter workflows).

How to access Flux.2 dev API

Step 1: Sign Up for API Key

Log in toย cometapi.com. If you are not our user yet, please register first. Sign into yourย CometAPI console. Get the access credential API key of the interface. Click โ€œAdd Tokenโ€ at the API token in the personal center, get the token key: sk-xxxxx and submit.

Flux.2 Dev API

Step 2: Send Requests to Flux.2 dev API

Select the โ€œblack-forest-labs/flux-2-devย โ€endpoint to send the API request and set the request body. The request method and request body are obtained from our website API doc. Our website also provides Apifox test for your convenience. Replace <YOUR_API_KEY> with your actual CometAPI key from your account.

Insert your question or request into the content fieldโ€”this is what the model will respond to . Process the API response to get the generated answer.

Step 3: Retrieve and Verify Results

Process the API response to get the generated answer. After processing, the API responds with the task status and output data.

CometAPIย Now Supporting Replicate Format Models:ย ๐Ÿ”นย black-forest-labs/flux-2-proย ๐Ÿ”นย black-forest-labs/flux-2-devย ๐Ÿ”นย black-forest-labs/flux-2-flex

Limited Time Promotion: Lower than Replicate Official Pricing!

๐Ÿ‘‡ย Start Building Nowย Create Predictions โ€“ API Doc

โšก Flexible Selection:

  • Pro: Designed for high-efficiency production and fast delivery.
  • Flex: Maximizes image quality with adjustable parameters.
  • Dev: Developer-friendly optimization.

Preguntas frecuentes

Precios para Black Forest Labs/FLUX 2 DEV

Explora precios competitivos para Black Forest Labs/FLUX 2 DEV, diseรฑado para adaptarse a diversos presupuestos y necesidades de uso. Nuestros planes flexibles garantizan que solo pagues por lo que uses, facilitando el escalado a medida que crecen tus requisitos. Descubre cรณmo Black Forest Labs/FLUX 2 DEV puede mejorar tus proyectos mientras mantienes los costos manejables.

Comet Price (USD / M Tokens)Official Price (USD / M Tokens)Discount
Por Solicitud:$0.06
Por Solicitud:$0.075
-20%

Cรณdigo de ejemplo y API para Black Forest Labs/FLUX 2 DEV

Accede a cรณdigo de muestra completo y recursos de API para Black Forest Labs/FLUX 2 DEV para agilizar tu proceso de integraciรณn. Nuestra documentaciรณn detallada proporciona orientaciรณn paso a paso, ayudรกndote a aprovechar todo el potencial de Black Forest Labs/FLUX 2 DEV en tus proyectos.

#!/bin/bash
# Get your CometAPI key from https://api.cometapi.com/console/token
# Export it as: export COMETAPI_KEY="your-key-here"

curl --location --request POST 'https://api.cometapi.com/replicate/v1/models/black-forest-labs/flux-2-dev/predictions' \
--header "Authorization: Bearer $COMETAPI_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
    "input": {
        "prompt": "A sleek silver sports car racing along a coastal highway at sunset, hyper-realistic, cinematic lighting, 8k",
        "input_images": [
            "https://replicate.delivery/pbxt/O7kbtH7wgLIItlCyeWjm0fgPpx7OpGsT9VbYyxBXnfieVxQe/woman-by-car.jpg"
        ],
        "go_fast": true,
        "aspect_ratio": "16:9",
        "output_format": "jpg",
        "output_quality": 90,
        "seed": 42
    }
}'

cURL Code Example

#!/bin/bash
# Get your CometAPI key from https://api.cometapi.com/console/token
# Export it as: export COMETAPI_KEY="your-key-here"

curl --location --request POST 'https://api.cometapi.com/replicate/v1/models/black-forest-labs/flux-2-dev/predictions' \
--header "Authorization: Bearer $COMETAPI_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
    "input": {
        "prompt": "A sleek silver sports car racing along a coastal highway at sunset, hyper-realistic, cinematic lighting, 8k",
        "input_images": [
            "https://replicate.delivery/pbxt/O7kbtH7wgLIItlCyeWjm0fgPpx7OpGsT9VbYyxBXnfieVxQe/woman-by-car.jpg"
        ],
        "go_fast": true,
        "aspect_ratio": "16:9",
        "output_format": "jpg",
        "output_quality": 90,
        "seed": 42
    }
}'

Python Code Example

import os
import requests

COMETAPI_KEY = os.environ.get("COMETAPI_KEY") or "<YOUR_COMETAPI_KEY>"

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

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

payload = {
    "input": {
        "prompt": "A sleek silver sports car racing along a coastal highway at sunset, hyper-realistic, cinematic lighting, 8k",
        "input_images": [
            "https://replicate.delivery/pbxt/O7kbtH7wgLIItlCyeWjm0fgPpx7OpGsT9VbYyxBXnfieVxQe/woman-by-car.jpg"
        ],
        "go_fast": True,
        "aspect_ratio": "16:9",
        "output_format": "jpg",
        "output_quality": 90,
        "seed": 42
    }
}

response = requests.post(url, headers=headers, json=payload)
result = response.json()

print(f"Status Code: {response.status_code}")
print(f"Task ID: {result.get('id')}")
print(f"Status: {result.get('status')}")
print(f"Model: {result.get('model')}")

JavaScript Code Example

const COMETAPI_KEY = process.env.COMETAPI_KEY || "<YOUR_COMETAPI_KEY>";

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

const payload = {
    input: {
        prompt: "A sleek silver sports car racing along a coastal highway at sunset, hyper-realistic, cinematic lighting, 8k",
        input_images: [
            "https://replicate.delivery/pbxt/O7kbtH7wgLIItlCyeWjm0fgPpx7OpGsT9VbYyxBXnfieVxQe/woman-by-car.jpg"
        ],
        go_fast: true,
        aspect_ratio: "16:9",
        output_format: "jpg",
        output_quality: 90,
        seed: 42
    }
};

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

const result = await response.json();

console.log(`Status Code: ${response.status}`);
console.log(`Task ID: ${result.id}`);
console.log(`Status: ${result.status}`);
console.log(`Model: ${result.model}`);