Flux
Flux 2 Pro Text To Image
model_id: flux-2-pro
Photorealistic image editing model delivering up to 4MP resolution with precise multi-reference consistency, exact hex color control, natural language. Flux 2 Pro is an advanced text-to-image generative model designed for high-precision visual synthesis and professional-grade imaging workflows. You can integrate Flux 2 Pro Text To Image into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "flux-2-pro" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation. Flux 2 Pro Text To Image costs $0.054000 per generation. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.
Generate with Flux 2 Pro Text To Image via API
Send a POST request to https://stablediffusionapi.com/api/v4/dreambooth with your API key.
Get yours at modelslab.com.
curl -X POST 'https://stablediffusionapi.com/api/v4/dreambooth' \
-H 'Content-Type: application/json' \
-d '{
"key": "YOUR_API_KEY",
"model_id": "flux-2-pro",
"prompt": "a photo of flux 2 pro text to image",
"negative_prompt": null,
"width": "512",
"height": "512",
"samples": "1",
"num_inference_steps": "30",
"guidance_scale": "7.5",
"safety_checker": "no",
"enhance_prompt": "yes",
"seed": null,
"webhook": null,
"track_id": null
}' Parameters
| Parameter | Default | Description |
|---|---|---|
| model_id | flux-2-pro | Model identifier |
| prompt | ||
| negative_prompt | ||
| width | 512 | Output image width (px) |
| height | 512 | Output image height (px) |
| samples | 1 | Number of images to generate |
| num_inference_steps | 30 | Denoising steps (1-50) |
| guidance_scale | 7.5 | Prompt adherence (1-20) |
| seed | null | Random seed (null to randomize) |
| safety_checker | yes | NSFW filter (yes/no) |
| enhance_prompt | yes | Auto-improve prompt (yes/no) |
Also searched as
Flux 2 Pro Text To Image is also known as: Flux 2 Pro Text To Image, flux-2-pro, flux 2 pro, flux2pro, flux.2.pro. Use it for flux image generation, available for download via the Stable Diffusion API REST API at https://stablediffusionapi.com/api/v4/dreambooth.
FAQ — Flux 2 Pro Text To Image
- How do I use Flux 2 Pro Text To Image via API?
- Send a POST request to https://stablediffusionapi.com/api/v4/dreambooth with your API key, prompt, and model_id "flux-2-pro". Get an API key from modelslab.com.
- Is Flux 2 Pro Text To Image free to use?
- Yes — Stable Diffusion API offers a free tier with 20 generations. Paid plans starting at $8/month give you unlimited access to Flux 2 Pro Text To Image and 1,000+ other models.
- What parameters does Flux 2 Pro Text To Image support?
- Flux 2 Pro Text To Image accepts standard Stable Diffusion parameters: prompt, negative_prompt, width, height, samples, num_inference_steps (default 30), guidance_scale (default 7.5), seed, and safety_checker.
- Can I use generated images commercially?
- Yes. You retain copyright on all images you generate via the API and can use them commercially.
Related models
Flux Age Slider V1 0
378.1K images generated
Flux Illustrious Anime Style LoRA V2 0 Rev18
378.1K images generated
Flux Pony Perfect Full Round Breasts Slim Waist V3 5
378.1K images generated
Flux1dlunafemalemodellora V10
378.1K images generated
Flux 1 D Realistic Japanese Jk School Uniform Jk Cardigan
378.1K images generated
Flux Arch Realism LoRA V2 0
378.1K images generated
Flux Erotic V2 V1 0
378.1K images generated
Flux Realistic Asian Girls Face Flux V1 0
378.1K images generated