Create visual content based on text prompts.
Supported Sizes
- 1024x1024 (Square)
- 768x1344 (Portrait)
- 1344x768 (Landscape)
Code Implementation Example
const response = await zai.images.generations.create({
prompt: '阳光下的猫咪',
size: '1024x1024'
});
Design & creation
Updated 10-16 08:42
Create visual content based on text prompts.
const response = await zai.images.generations.create({
prompt: '阳光下的猫咪',
size: '1024x1024'
});