Flux 2 Pro Text To Image
Playground
Try it on WavespeedAI!Text-to-image generation with FLUX.2 [pro] from Black Forest Labs. Enhanced realism, crisper text generation, and native editing capabilities.
Features
FLUX.2 [pro] — Text-to-Image
Lightweight open-source generation that maintains professional quality at high speed. FLUX.2 [pro] delivers the efficiency of a streamlined architecture without compromising output fidelity, making it ideal for teams requiring fast iteration cycles and custom model training.
As the foundation for LoRA fine-tuning workflows, pro balances accessibility with performance—generate production-ready images quickly, then customize the model for specialized use cases.
Built for
- Rapid prototyping
- High-volume generation on a budget
- Custom training workflows
- Teams prioritizing speed-to-quality ratio
- Foundation for domain-specific fine-tuning
Fast Generation Without Quality Compromise
FLUX.2 [pro] strips down to essentials while preserving the core capabilities that make FLUX.2 powerful. Its lightweight architecture delivers professional outputs at speeds that support tight iteration cycles and high-throughput production.
What This Means for You
• Optimized speed-quality balance
Lightweight architecture generates images significantly faster than heavy models while maintaining professional output standards.
• Open-source foundation
Built on open principles for transparency and community-driven proelopment, enabling deeper integration into custom pipelines.
• LoRA training ready
Serves as the base model for custom fine-tuning via LoRA adapters—specialize the model for specific styles, subjects, or brand requirements.
• Efficient resource usage
Lower computational overhead makes pro ideal for high-volume generation workflows where speed and cost efficiency matter.
• proible output formats
Supports standard JPEG or PNG output depending on delivery requirements.
• Reproducible results
Seed control ensures consistent variations across generation runs.
Authentication
For authentication details, please refer to the Authentication Guide.
API Endpoints
Submit Task & Query Result
# Submit the task
curl --location --request POST "https://api.wavespeed.ai/api/v3/wavespeed-ai/flux-2-pro/text-to-image" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{
"size": "1024*1024",
"seed": -1,
"enable_sync_mode": false,
"enable_base64_output": false
}'
# Get the result
curl --location --request GET "https://api.wavespeed.ai/api/v3/predictions/${requestId}/result" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}"
Parameters
Task Submission Parameters
Request Parameters
| Parameter | Type | Required | Default | Range | Description |
|---|---|---|---|---|---|
| prompt | string | Yes | - | The positive prompt for the generation. | |
| size | string | No | 1024*1024 | 256 ~ 1536 per dimension | The size of the generated media in pixels (width*height). |
| seed | integer | No | -1 | -1 ~ 2147483647 | The random seed to use for the generation. -1 means a random seed will be used. |
| enable_sync_mode | boolean | No | false | - | If set to true, the function will wait for the result to be generated and uploaded before returning the response. It allows you to get the result directly in the response. This property is only available through the API. |
| enable_base64_output | boolean | No | false | - | If enabled, the output will be encoded into a BASE64 string instead of a URL. This property is only available through the API. |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data.id | string | Unique identifier for the prediction, Task Id |
| data.model | string | Model ID used for the prediction |
| data.outputs | array | Array of URLs to the generated content (empty when status is not completed) |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.has_nsfw_contents | array | Array of boolean values indicating NSFW detection for each output |
| data.status | string | Status of the task: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |