
Black Forest Labs/Flux 2 Pro Text To Image
flux-2-proFlux 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 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 Name | Parameter | Technical Description |
|---|---|---|
| model_id | model_id | Model to use for generation |
| prompt | prompt | Text description of the image you want to generate |
| width | width | Width of the image (max 1024) |
| height | height | Height of the Image (max 1024) |