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

Request

Image Generation Payload
modelstringRequired
promptstringRequired
sizestringOptional

Response

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

Errors

400
Bad Request Error
404
Not Found Error
500
Internal Server Error