---
title: "FLUX 2 Pro Text-to-Image API & Playground - Comfy"
description: "FLUX 2 Pro Text-to-Image by Black Forest Labs: Generates an image from text and up to 9 reference images, at 256–2048 px per side. Typical cost: 6.3 credits per run."
canonical: https://comfy.org/hub/models/flux-2-pro-text-to-image/
lang: en
index: https://comfy.org/llms.txt
---

[Models](https://comfy.org/hub/models/)

Black Forest Labs

[Generate images](https://comfy.org/hub/models/?useCase=generate-images)

# FLUX 2 Pro Text-to-Image

Generates an image from text and up to 9 reference images, at 256–2048 px per side.

- Use via API
- [Open in Cloud](https://stagingcloud.comfy.org/)

6.3 credits /Run

- [text-to-image](https://comfy.org/hub/models/?q=text-to-image)

## Playground

Input

Prompt

Image

Select or drop up to 9 images PNG, JPEG, WEBP ·  up to 25 MiB

Height

Width

Advanced settings

Output format

Prompt enhancement

Let the model expand or refine your prompt before generation.

Seed

Reuse a seed with the same inputs to make results more repeatable.

Output

![FLUX 2 Pro Text-to-Image: Rice terraces at dawn](https://media.comfy.org/website/workshop/bfl/flux-2-pro/rice-terraces-at-dawn.png)

Example

## Try an example

-

## Call this model from your code

Sends your Playground inputs to Comfy Router.

[API docs (opens in a new tab)](https://docs.comfy.org/development/comfy-router/models#black-forest-labs)

1. ### Get an API key

  Needs a paid Cloud plan with credits.

  [Get an API key (opens in a new tab)](https://platform.comfy.org/profile/api-keys?onboarding=models&model=bfl--flux-2-pro--generate-images)
2. ### Install the SDK

  Python 3.10+. Also on npm as @comfyorg/sdk.

  pip install comfy-sdk==0.2.0
3. ### Run it

  Calls Comfy Router at this endpoint with your COMFY_API_KEY.

  POST /v2/models/bfl/flux-2-pro

Fill in the Playground inputs to generate a request.

## More from Black Forest Labs

Compare Black Forest Labs's other models. Price is the default setting; resolution and duration show the full range each model offers.

| Model | Price | Resolution | Duration |
| --- | --- | --- | --- |
| [FLUX.1 Kontext Pro Image Edit](https://comfy.org/hub/models/flux-1-kontext-pro-image-edit/) | 8.44 credits /Run | — | — |
| [FLUX 2 Max Text-to-Image](https://comfy.org/hub/models/flux-2-max-text-to-image/) | 14.8 credits /Run | — | — |
| [FLUX Pro 1.1 Ultra Text-to-Image](https://comfy.org/hub/models/flux-pro-1-1-ultra-text-to-image/) | 12.7 credits /Run | — | — |
| [FLUX.1 Kontext Max Image Edit](https://comfy.org/hub/models/flux-1-kontext-max-image-edit/) | 16.88 credits /Run | — | — |
| [FLUX 3 Video Text-to-Video](https://comfy.org/hub/models/flux-3-video-text-to-video/) | — | 720p – 1080p | 5 – 20s |
| [FLUX 3 Video Image-to-Video](https://comfy.org/hub/models/flux-3-video-image-to-video/) | — | 720p – 1080p | 5 – 20s |
| [FLUX Tools Erase](https://comfy.org/hub/models/flux-tools-erase/) | — | — | — |
| [FLUX Virtual Try-On](https://comfy.org/hub/models/flux-virtual-try-on/) | — | — | — |
| [FLUX Pro Fill](https://comfy.org/hub/models/flux-pro-fill/) | 10.6 credits /Run | — | — |
| [FLUX Pro Expand](https://comfy.org/hub/models/flux-pro-expand/) | 10.6 credits /Run | — | — |
| [FLUX Video Upscale](https://comfy.org/hub/models/flux-video-upscale/) | — | — | — |
| [FLUX Pro 1.1 Text-to-Image](https://comfy.org/hub/models/flux-pro-1-1-text-to-image/) | — | — | — |
