POST
/
api
/
py
/
flux-schnell
/
generate
Generate Image from Text
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"
}

Authorizations

X-API-Key
string
header
required

Body

application/json

Response

200
application/json

Image generation completed successfully

The response is of type object.