🎉 New Year Sale: Get 20% OFF on all plans — Use code NEWYEAR2026.

Upgrade now
Flux 2 Pro Text To Image thumbnail

Black Forest Labs/Flux 2 Pro Text To Image

flux-2-pro
Flux 2 Pro Text To ImageLLMs.txt
Flux 2 Pro is an advanced text-to-image generative model designed for high-precision visual synthesis and professional-grade imaging workflows.
API PlaygroundAPI Documentation

API Endpoint URL

Base URL for all API requests to this endpoint.

https://modelslab.com/api/v7/images/text-to-image

API Authentication

Authentication requires a valid API key included in the request. Generate and manage your API keys from your developer dashboard. Include the key in the key parameter for all API requests.

Integration Examples

Production-ready code samples for API integration

{
"model_id": "flux-2-pro",
"prompt": "Ultra-realistic cinematic portrait of a girl standing outdoors during golden hour. Soft directional lighting, shallow depth of field, detailed skin texture, natural shadows, high-contrast highlights, volumetric atmosphere. Shot on a high-end camera, 85mm lens, HDR, 8K resolution.",
"width": "1024",
"height": "1024",
"key": "YOUR_API_KEY"
}

SDKs

Official SDKs

Production-ready SDKs and client libraries for all major programming languages

API Parameters

Technical specifications for API request parameters.

Field NameParameterTechnical Description
model_idmodel_idModel to use for generation
promptpromptText description of the image you want to generate
widthwidthWidth of the image (max 1024)
heightheightHeight of the Image (max 1024)