dall-e

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

DALL-E Skill

DALL-E Skill

Overview

概述

Enables Claude to use OpenAI's DALL-E for AI image generation through ChatGPT's interface, including creating images from descriptions, editing images, and managing generated content.
让Claude能够通过ChatGPT界面使用OpenAI的DALL-E进行AI图像生成,包括根据描述创建图像、编辑图像以及管理生成的内容。

Quick Install

快速安装

bash
curl -sSL https://canifi.com/skills/dall-e/install.sh | bash
Or manually:
bash
cp -r skills/dall-e ~/.canifi/skills/
bash
curl -sSL https://canifi.com/skills/dall-e/install.sh | bash
或者手动安装:
bash
cp -r skills/dall-e ~/.canifi/skills/

Setup

配置

Configure via canifi-env:
bash
undefined
通过canifi-env进行配置:
bash
undefined

First, ensure canifi-env is installed:

首先,确保已安装canifi-env:

canifi-env set OPENAI_EMAIL "your-email@example.com" canifi-env set OPENAI_PASSWORD "your-password"
undefined
canifi-env set OPENAI_EMAIL "your-email@example.com" canifi-env set OPENAI_PASSWORD "your-password"
undefined

Privacy & Authentication

隐私与认证

Your credentials, your choice. Canifi LifeOS respects your privacy.
你的凭证,由你掌控。 Canifi LifeOS尊重你的隐私。

Option 1: Manual Browser Login (Recommended)

选项1:手动浏览器登录(推荐)

If you prefer not to share credentials with Claude Code:
  1. Complete the Browser Automation Setup using CDP mode
  2. Login to the service manually in the Playwright-controlled Chrome window
  3. Claude will use your authenticated session without ever seeing your password
如果你不想与Claude Code共享凭证:
  1. 使用CDP模式完成浏览器自动化设置
  2. 在Playwright控制的Chrome窗口中手动登录该服务
  3. Claude将使用你的已认证会话,全程不会获取你的密码

Option 2: Environment Variables

选项2:环境变量

If you're comfortable sharing credentials, you can store them locally:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
Note: Credentials stored in canifi-env are only accessible locally on your machine and are never transmitted.
如果你愿意共享凭证,可以将其存储在本地:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
注意:存储在canifi-env中的凭证仅能在你的本地机器上访问,绝不会被传输。

Capabilities

功能特性

  • Generate images from text prompts
  • Edit and modify existing images
  • View generation history
  • Download generated images
  • Iterate on designs with variations
  • Manage saved creations
  • 根据文本提示生成图像
  • 编辑和修改现有图像
  • 查看生成历史
  • 下载生成的图像
  • 通过变体迭代设计
  • 管理已保存的创作内容

Usage Examples

使用示例

Example 1: Generate Image

示例1:生成图像

User: "Create a DALL-E image of a cozy coffee shop interior"
Claude: I'll generate that image.
1. Opening ChatGPT via Playwright MCP
2. Activating DALL-E image generation
3. Entering prompt: "cozy coffee shop interior, warm lighting"
4. Waiting for image generation
5. Displaying and offering download
用户:"创建一张DALL-E图像,内容是温馨的咖啡店内部"
Claude:我将为你生成这张图像。
1. 通过Playwright MCP打开ChatGPT
2. 激活DALL-E图像生成功能
3. 输入提示词:"温馨的咖啡店内部,暖光"
4. 等待图像生成
5. 展示图像并提供下载选项

Example 2: Edit Image

示例2:编辑图像

User: "Edit my image to add a cat sitting in the corner"
Claude: I'll edit your image.
1. Uploading your image to DALL-E
2. Specifying edit region
3. Adding prompt: "add a cat sitting in the corner"
4. Processing the edit
5. Showing the modified result
用户:"编辑我的图像,在角落添加一只猫"
Claude:我将为你编辑这张图像。
1. 将你的图像上传至DALL-E
2. 指定编辑区域
3. 添加提示词:"在角落添加一只猫"
4. 处理编辑请求
5. 展示修改后的结果

Example 3: Multiple Variations

示例3:生成多个变体

User: "Generate 4 different logo concepts for a tech startup"
Claude: I'll create logo variations.
1. Crafting detailed logo prompt
2. Generating first concept
3. Creating variations with different styles
4. Compiling all 4 concepts for review
用户:"为一家科技初创公司生成4个不同的Logo概念"
Claude:我将为你创建Logo变体。
1. 撰写详细的Logo提示词
2. 生成第一个概念
3. 创建不同风格的变体
4. 整理所有4个概念供你审阅

Authentication Flow

认证流程

  1. Navigate to chat.openai.com via Playwright MCP
  2. Sign in with OpenAI account
  3. Handle Google/Microsoft SSO if configured
  4. Complete 2FA if required (via iMessage)
  5. Maintain session for DALL-E access
  1. 通过Playwright MCP导航至chat.openai.com
  2. 使用OpenAI账户登录
  3. 若已配置,处理Google/Microsoft单点登录
  4. 若需要,完成双因素认证(通过iMessage)
  5. 维持会话以访问DALL-E

Error Handling

错误处理

  • Login Failed: Retry up to 3 times, notify via iMessage
  • Session Expired: Re-authenticate automatically
  • Rate Limited: Wait and retry with backoff
  • 2FA Required: Send iMessage notification
  • Content Policy: Modify prompt and retry
  • Generation Failed: Retry or simplify prompt
  • 登录失败:最多重试3次,通过iMessage通知
  • 会话过期:自动重新认证
  • 速率限制:等待后重试并采用退避策略
  • 需要双因素认证:发送iMessage通知
  • 内容政策限制:修改提示词后重试
  • 生成失败:重试或简化提示词

Self-Improvement Instructions

自我改进说明

When DALL-E or ChatGPT updates:
  1. Document new generation capabilities
  2. Update prompt optimization strategies
  3. Track content policy changes
  4. Log interface and feature changes
当DALL-E或ChatGPT更新时:
  1. 记录新的生成功能
  2. 更新提示词优化策略
  3. 跟踪内容政策变化
  4. 记录界面和功能变更

Notes

注意事项

  • Requires ChatGPT Plus for DALL-E 3
  • Content policies restrict certain prompts
  • Generation credits may be limited
  • Higher quality may take longer
  • Downloaded images have metadata
  • 使用DALL-E 3需要ChatGPT Plus
  • 内容政策会限制某些提示词
  • 生成额度可能有限制
  • 更高质量的图像生成耗时更长
  • 下载的图像带有元数据