LLM image generation

Handles client LLM image generation requests, applies rate limits based on tokens and requests, and records usage. Streaming is not supported.

Headers

AuthorizationstringRequired
API key with Bearer prefix
X-Delegated-ForstringOptional

Optional header to indicate the original client’s user id for delegated requests. (Only for management keys)

Request

Image Generation Payload
modelstringRequired
promptstringRequired
sizestringOptional

Response

Successful image generation
createdinteger or null
Using int64 for timestamp
imageslist of objects or null
messagestring or null
statusinteger or null

Errors