Generate an image
Authentication
Pass your EmpirioLabs API key as a bearer token. The Anthropic-style
x-api-key header is also accepted on every endpoint.
Request
Optional image template slug. When provided, the
canonical prompt blends with your prompt, the
recommended model is chosen if you don’t pass one,
and default params merge for any key you didn’t set.
See GET /v1/images/templates.
Reference image URLs for image-edit mode.
Hold the request and return the finished image
response directly instead of the async job_id
envelope. Alias: wait. Falls back to the async
envelope if the generation outlasts the wait window.
Response
Async (default): a job_id envelope to poll. With
sync: true: the finished image response.
