gemini-image
Gemini 图像生成
当用户表达画图意图时(如"画一个..."、"生成图片..."、"帮我创作..."),使用此 Skill。
调用步骤
1. 读取配置
- 读取
config/secrets.md获取 API Key
2. 构造 prompt
| 模式 | prompt 格式 | 示例 |
|---|---|---|
| 文生图 | 描述文字 |
一只可爱的橘猫 |
| 图生图 | 图片URL 描述文字 |
https://xxx.jpg 画类似风格 |
| 多图参考 | URL1 URL2 描述文字 |
https://a.jpg https://b.jpg 融合两张图 |
图生图需先上传图片,参考 tips/image-upload.md。
3. 调用 API
curl -s -X POST "https://api.apicore.ai/v1/images/generations" \
-H "Authorization: Bearer API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "模型名称",
"prompt": "提示词",
"size": "尺寸比例",
"n": 1
}'
4. 返回结果
从响应中提取 data[0].url 返回给用户。
参考文档
tips/image-upload.md- 图片上传方法tips/chinese-text.md- 中文文字处理技巧
More from zephyrwang6/draw-skill
chart-craft-plus
|
11mermaid-generator
将任意文本、工作流、逻辑转换为清晰简约的 Mermaid 流程图。支持 flowchart、sequence、class 等多种图表类型。使用场景:(1) 需要可视化工作流程,(2) 将文档/对话转为流程图,(3) 创建系统架构图,(4) 生成时序图/类图。自动保存到 Obsidian 画板目录,按日期和主题分类。
9text-logic-diagram
将文本内容进行逻辑拆解,生成精准的逻辑关系 SVG 图。支持递进、流程、循环、层次、对比、矩阵六种关系类型。当用户提供文本段落、文章、论述内容并要求生成逻辑图、思维导图、关系图、流程图时触发。支持中文,一次可拆解多张图。
9canvas-design
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.
7baoyu-image-gen
AI image generation with OpenAI, Google and DashScope APIs. Supports text-to-image, reference images, aspect ratios. Sequential by default; parallel generation available on request. Use when user asks to generate, create, or draw images.
7baoyu-xhs-images
Generates Xiaohongshu (Little Red Book) infographic series with 10 visual styles and 8 layouts. Breaks content into 1-10 cartoon-style images optimized for XHS engagement. Use when user mentions "小红书图片", "XHS images", "RedNote infographics", "小红书种草", or wants social media infographics for Chinese platforms.
7