Image Generation
https://api.tokenbay.com/v1/images/generationsCreate images from a text prompt using the OpenAI-compatible Images API
Creates an image from a text prompt and returns image URLs or base64-encoded image data, depending on the selected model.
Image Generations
/v1/images/generationsRequest
schemamodelstringRequiredAvailable image generation model ID.
promptstringRequiredImage generation prompt.
sizestringOptionalOutput size. Supported values depend on the model, such as 1024x1024, 1024x1536, 1536x1024, or auto.
qualitystringOptionalQuality tier. Supported values depend on the model, such as auto, standard, hd, high, medium, or low.
backgroundstringOptionalBackground control for models that support transparency or background settings, such as auto, transparent, or opaque.
nintegerOptionalNumber of images. Limits depend on the model.
moderationstringOptionalContent moderation strength. Support depends on the upstream.
output_compressionintegerOptionalOutput compression quality, usually for jpeg/webp.
response_format / output_formatstringOptionalReturn URL, base64, or a requested image format such as png, jpeg, or webp when supported upstream.
userstringOptionalClient-side user identifier. Do not include sensitive data.
Response
schemaUsually returns image URLs or base64 data. Concrete fields and formats depend on the upstream image model.
createdintegerOptionalCreation timestamp.
data[]array<object>OptionalImage result array, possibly including url, b64_json, revised_prompt, and similar fields.
