Documentation

Images

Generate an image from a prompt.

POST /images/generations takes model, prompt (up to 4,000 characters) and n, which must be 1 if present. Anything else returns 400 unsupported_parameter. Billed per image.

curl https://api.billionairestechnologies.com/api/v1/images/generations \
  -H "Authorization: Bearer $FRIDAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"bt-canvas","prompt":"A quiet storefront at dusk","n":1}'

The response is {"created": ..., "data": [{"url": "..."}]}. The url may be a data URI.