图生图
img2img - 图生图能力
by binkosun
安装
claude skill add --url github.com/openclaw/skills/tree/main/skills/binkosun/img2img文档
触发条件
当用户提到"图生图"、"AI 画图"、"生成图片"、"画一个"等时激活。
功能
使用 DALL-E 根据文字描述生成图片。
使用方式
用户发送描述文字,我调用 DALL-E 生成图片并发送。
技术实现
使用 OpenAI DALL-E 3 API 生成图片:
import openai
import base64
import os
api_key = os.environ.get("API_KEY")
client = openai.OpenAI(api_key=api_key)
response = client.images.generate(
model="dall-e-3",
prompt="描述文字",
size="1024x1024",
quality="standard",
n=1,
)
image_url = response.data[0].url
限制
- 英文描述效果更好
- 避免生成真实人脸
- 遵守 DALL-E 使用政策
相关 Skills
Claude API
by anthropic
Build, debug, and optimize Claude API / Anthropic SDK apps. Apps built with this skill should include prompt caching. Also handles migrating existing Claude API code between Claude model versions (4.5 → 4.6, 4.6 → 4.7, retired-model replacements). TRIGGER when: code imports `anthropic`/`@anthropic-ai/sdk`; user asks for the Claude API, Anthropic SDK, or Managed Agents; user adds/modifies/tunes a Claude feature (caching, thinking, compaction, tool use, batch, files, citations, memory) or model (Opus/Sonnet/Haiku) in a file; questions about prompt caching / cache hit rate in an Anthropic SDK project. SKIP: file imports `openai`/other-provider SDK, filename like `*-openai.py`/`*-generic.py`, provider-neutral code, general programming/ML.
并行代理
by axelhu
Use when facing 2 or more independent tasks that can be worked on without shared state - dispatches parallel subagents using sessions_spawn for concurrent investigation and execution, adapted for OpenClaw
高光制作器
by bwbernardweston18
>