How to Use the FLUX 3 Klein Text-to-Image API
-
Write a prompt. Describe the subject, composition, lighting, style, and details you want. The prompt can contain up to 5,000 characters.
-
Choose output settings. Select resolution (1K, 2K, or 4K), aspect_ratio, output_format, and num_images (1–4). Set seed to repeat a variation and use enhance_prompt to let the model refine your prompt. Pricing is per output image: $0.009 at 1K, $0.014 at 2K, and $0.036 at 4K.
-
Submit and retrieve the result.
curl -X POST https://api.muapi.ai/api/v1/flux-3-klein-text-to-image \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"A sculptural glass perfume bottle on a warm limestone plinth, soft editorial light","resolution":"2K","aspect_ratio":"4:3","num_images":2}'
# Poll the asynchronous task
curl https://api.muapi.ai/api/v1/predictions/REQUEST_ID/result \
-H "x-api-key: YOUR_API_KEY"
The result contains an outputs array of image URLs. For image-guided changes, use the FLUX 3 Klein edit endpoint.