cURL
curl --request POST \ --url https://www.unitedcompute.ai/api/py/flux-schnell/generate \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data '{ "prompt": "a beautiful landscape painting with mountains and a lake" }'
{ "status": "completed", "request_id": "12345", "result_url": "https://unitedcompute.s3.amazonaws.com/united-compute-20250720171426-61ua.png" }
Generate a high-quality image from text prompt using Flux Schnell model
Image generation completed successfully
The response is of type object.
object