Generate Images
在给定提示的情况下创建图像。了解更多。
Documentation Index
Fetch the complete documentation index at: https://docs.utoken.wgame-hk.com/llms.txt
Use this file to discover all available pages before exploring further.
Body
A text description of the desired image(s). The maximum length is 32000 characters for gpt-image-1, 1000 characters for dall-e-2, and 4000 characters for dall-e-3.
The model to use for image generation. Must be one of dall-e-2, dall-e-3, or gpt-image-1. Defaults to dall-e-2 unless using parameters specific to gpt-image-1.
The number of images to generate. Must be between 1 and 10. For dall-e-3, only n=1 is supported.
The size of the generated images. For gpt-image-1, must be one of 1024x1024, 1536x1024 (landscape), 1024x1536 (portrait), or auto (default). For dall-e-2, must be one of 256x256, 512x512, or 1024x1024. For dall-e-3, must be one of 1024x1024, 1792x1024, or 1024x1792.
Allows setting transparency for the background of generated images. This parameter only supports gpt-image-1. Must be one of transparent, opaque, or auto (default). When using auto, the model will automatically determine the optimal background for the image.
If transparent, the output format needs to support transparency, so it should be set to png (default) or webp.
Controls the content moderation level for images generated by gpt-image-1. Must be low for less restrictive filtering or auto (default).
The quality of the generated image.
