Generate images from text descriptions
Creates AI-generated images from text descriptions.
Documentation Index
Fetch the complete documentation index at: https://docs.mka1.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.
Headers
Optional external end-user identifier forwarded by the API gateway.
Body
Request parameters for generating images. Creates one or more images from a text prompt.
A text description of the desired image(s). The maximum length is 1000 characters.
1 - 1000The model to use for image generation. Defaults to 'auto'.
The number of images to generate. Must be between 1 and 10. Defaults to 1.
1 <= x <= 10The quality tier of the generated image. Higher tiers may incur higher latency or cost. 'auto' lets the gateway pick a sensible value per model. 'standard' and 'hd' are accepted as legacy aliases.
low, medium, high, auto, standard, hd The format in which the generated images are returned. 'url' returns a URL to the image, 'b64_json' returns the image as a base64-encoded JSON string. Defaults to 'url'.
url, b64_json The size of the generated image. 'auto' defers to the model's default.
256x256, 512x512, 1024x1024, 1024x1536, 1536x1024, 1792x1024, 1024x1792, auto The style of the generated image. 'vivid' leans toward hyper-real and dramatic. 'natural' produces more naturalistic results. Conditionally supported.
vivid, natural Output file format. Conditionally supported.
png, webp, jpeg A unique identifier representing your end-user, which can help monitor and detect abuse.