home / skills / cyangzhou / -2--project-yunshu- / image_generation_expert
This skill generates high-quality images from text prompts using configurable sizes such as 1024x1024, 768x1344, and 1344x768.
npx playbooks add skill cyangzhou/-2--project-yunshu- --skill image_generation_expertReview the files below or copy the command above to add this skill to your agents.
---
name: Image_Generation_Expert
description: 实现 AI 图像生成能力,支持根据文本描述创建高质量图像。
---
# 图像生成技能
根据文本提示词创建视觉内容。
## 支持尺寸
- 1024x1024 (正方形)
- 768x1344 (人像)
- 1344x768 (风景)
## 代码实现示例
```javascript
const response = await zai.images.generations.create({
prompt: '阳光下的猫咪',
size: '1024x1024'
});
```This skill provides AI-powered image generation from text prompts, producing high-quality visuals in multiple aspect ratios. It is designed for developers and creators who need fast, programmatic image creation for prototypes, content, or art. Outputs are optimized for common use cases like square, portrait, and landscape formats.
You send a text prompt and optional parameters (size, style hints, seeds) and the skill returns generated image assets or URLs. It supports three preset sizes to match common layouts: 1024x1024 (square), 768x1344 (portrait), and 1344x768 (landscape). The API is asynchronous and returns metadata to manage download, reuse, and attribution.
What sizes are supported?
Supported presets are 1024x1024 (square), 768x1344 (portrait), and 1344x768 (landscape).
Can I reproduce the same image later?
Yes—store the prompt, parameters, and seed (if provided) to reproduce or refine results.
Is there an example of how to call the API?
A typical call sends a prompt and size parameter and receives image data or URLs in response.