Image Generation
Generate images based on text prompts. Supports multiple image generation models and parameter configurations.
Note: For setting the image generation model name, refer to the System Supported Image Generation Models List, ```markdown
currently supported image generation models are dall-e-3
, cogview-3-flash
(free), cogview-3-plus
, and cogview-4
. The request/response parameter structure is fully compatible with OpenAI. When switching models, you only need to modify the corresponding model name. If the model request/response parameters are inconsistent with OpenAI, GeekAI will automatically convert and align them at the underlying level.
The response data format is fully compatible with OpenAI.
Different AI platforms support different image sizes for their image generation models. Please refer to the table below for the specific supported sizes:
Platform | Model | Supported Sizes |
---|---|---|
OpenAI | DALL·E 3 | 1024x1024, 1792x1024, 1024x1792 (default is 1024x1024) |
Zhipu | CogView Series | 1024x1024, 768x1344, 864x1152, 1344x768, 1152x864, 1440x720, 720x1440 (default is 1024x1024) |
cURL Request Example
Authorizations
token
Body
Response
successful response
The response is of type object
.