qr-code-generation

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

QR Code Generation

二维码生成

Generate artistic, branded, and visually stunning QR codes using each::sense. This skill creates QR codes that combine functionality with beautiful design, perfect for marketing materials, business cards, menus, and more.
使用each::sense生成具有艺术感、品牌化且视觉精美的二维码。该工具创建的二维码兼具功能性与美观设计,非常适合营销物料、名片、菜单等场景。

Features

功能特性

  • Stylized QR Codes: Transform standard QR codes into artistic designs
  • Logo Integration: Embed company logos in the center of QR codes
  • Branded Colors: Create QR codes matching your brand identity
  • Artistic Themes: Nature, geometric, abstract, and custom themes
  • Background Integration: Blend QR codes with background images
  • Gradient Effects: Colorful gradient fills for eye-catching designs
  • Industry-Specific: Restaurant menus, business cards, social profiles
  • 艺术风格二维码: 将标准二维码转化为艺术化设计
  • Logo集成: 在二维码中心嵌入企业Logo
  • 品牌化配色: 创建符合品牌视觉的二维码
  • 艺术主题: 自然、几何、抽象及自定义主题
  • 背景融合: 将二维码与背景图片相融合
  • 渐变效果: 彩色渐变填充打造吸睛设计
  • 行业专属: 适配餐厅菜单、名片、社交主页等场景

Quick Start

快速开始

bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Create a stylized QR code for https://mywebsite.com with a modern tech aesthetic",
    "mode": "max"
  }'
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Create a stylized QR code for https://mywebsite.com with a modern tech aesthetic",
    "mode": "max"
  }'

QR Code Design Considerations

二维码设计注意事项

ElementBest PracticeImpact on Scannability
Error CorrectionHigh (30%) recommended for artistic QRAllows more design freedom
Logo SizeMax 30% of QR areaLarger logos reduce reliability
Color ContrastDark modules on light backgroundEssential for scanning
Quiet ZoneMaintain white borderRequired for reliable scanning
Module StyleRounded, dots, or custom shapesMinimal impact if consistent
元素最佳实践对扫码性能的影响
纠错等级艺术化二维码推荐高等级(30%)允许更多设计自由度
Logo尺寸最大为二维码面积的30%尺寸过大会降低扫码可靠性
色彩对比度深色模块搭配浅色背景扫码的必要条件
空白区域保留白色边框保障可靠扫码的必需项
模块样式圆角、点状或自定义形状样式一致时影响极小

Use Case Examples

使用场景示例

1. Basic Stylized QR Code

1. 基础艺术风格二维码

bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Generate a stylized QR code for https://example.com. Use a modern, clean design with rounded corners on the modules. Keep it scannable with good contrast. Blue and white color scheme.",
    "mode": "max"
  }'
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Generate a stylized QR code for https://example.com. Use a modern, clean design with rounded corners on the modules. Keep it scannable with good contrast. Blue and white color scheme.",
    "mode": "max"
  }'

2. QR Code with Logo Center

2. 中心带Logo的二维码

bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Create a QR code for https://mycompany.com with space in the center for a company logo. The QR should have a professional corporate look with dark blue modules. Make sure the center area is clean and square-shaped for logo placement.",
    "mode": "max",
    "image_urls": ["https://example.com/company-logo.png"]
  }'
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Create a QR code for https://mycompany.com with space in the center for a company logo. The QR should have a professional corporate look with dark blue modules. Make sure the center area is clean and square-shaped for logo placement.",
    "mode": "max",
    "image_urls": ["https://example.com/company-logo.png"]
  }'

3. Artistic QR Code (Nature Theme)

3. 艺术化二维码(自然主题)

bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Generate an artistic QR code for https://naturereserve.org with a nature theme. Incorporate organic shapes - the modules should look like leaves or natural elements. Use earthy green and brown tones. The overall design should feel like it belongs in nature while remaining fully scannable.",
    "mode": "max"
  }'
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Generate an artistic QR code for https://naturereserve.org with a nature theme. Incorporate organic shapes - the modules should look like leaves or natural elements. Use earthy green and brown tones. The overall design should feel like it belongs in nature while remaining fully scannable.",
    "mode": "max"
  }'

4. Branded QR Code (Company Colors)

4. 品牌化二维码(企业配色)

bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Create a branded QR code for https://techstartup.io using brand colors: primary #FF6B35 (orange) and secondary #1A1A2E (dark navy). The design should feel innovative and tech-forward. Use geometric patterns around the QR code. Maintain high scannability.",
    "mode": "max"
  }'
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Create a branded QR code for https://techstartup.io using brand colors: primary #FF6B35 (orange) and secondary #1A1A2E (dark navy). The design should feel innovative and tech-forward. Use geometric patterns around the QR code. Maintain high scannability.",
    "mode": "max"
  }'

5. QR Code with Background Image

5. 融合背景图片的二维码

bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Create a QR code for https://beachresort.com that integrates with a tropical beach background. The QR modules should be semi-transparent or styled to blend naturally with the beach scene. Use sandy and ocean blue tones. The code must remain scannable despite the artistic integration.",
    "mode": "max"
  }'
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Create a QR code for https://beachresort.com that integrates with a tropical beach background. The QR modules should be semi-transparent or styled to blend naturally with the beach scene. Use sandy and ocean blue tones. The code must remain scannable despite the artistic integration.",
    "mode": "max"
  }'

6. Minimalist QR Code

6. 极简风格二维码

bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Generate a minimalist QR code for https://minimal.design. Ultra-clean aesthetic with thin, precise modules. Pure black on white. No decorative elements - just elegant simplicity. The design should feel premium and high-end through restraint.",
    "mode": "max"
  }'
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Generate a minimalist QR code for https://minimal.design. Ultra-clean aesthetic with thin, precise modules. Pure black on white. No decorative elements - just elegant simplicity. The design should feel premium and high-end through restraint.",
    "mode": "max"
  }'

7. Colorful Gradient QR Code

7. 彩色渐变二维码

bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Create a vibrant gradient QR code for https://creativestudio.art. Apply a smooth gradient across the modules from pink (#FF6B9D) to purple (#C44569) to blue (#3D5A80). The gradient should flow diagonally. Make it eye-catching and artistic while remaining scannable.",
    "mode": "max"
  }'
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Create a vibrant gradient QR code for https://creativestudio.art. Apply a smooth gradient across the modules from pink (#FF6B9D) to purple (#C44569) to blue (#3D5A80). The gradient should flow diagonally. Make it eye-catching and artistic while remaining scannable.",
    "mode": "max"
  }'

8. QR Code for Restaurant Menu

8. 餐厅菜单二维码

bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Create a QR code for a restaurant digital menu at https://restaurant.com/menu. Design should have an elegant dining theme - incorporate subtle fork and knife motifs or food-related design elements around the QR. Use warm, appetizing colors like burgundy and gold. Perfect for table tents.",
    "mode": "max"
  }'
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Create a QR code for a restaurant digital menu at https://restaurant.com/menu. Design should have an elegant dining theme - incorporate subtle fork and knife motifs or food-related design elements around the QR. Use warm, appetizing colors like burgundy and gold. Perfect for table tents.",
    "mode": "max"
  }'

9. QR Code for Business Card

9. 名片二维码

bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Generate a professional QR code for a digital business card vCard at https://vcard.example.com/johndoe. The design should be compact and suitable for printing on a business card. Use a sophisticated charcoal gray color with subtle metallic accents. Include a small professional icon element.",
    "mode": "max"
  }'
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Generate a professional QR code for a digital business card vCard at https://vcard.example.com/johndoe. The design should be compact and suitable for printing on a business card. Use a sophisticated charcoal gray color with subtle metallic accents. Include a small professional icon element.",
    "mode": "max"
  }'

10. QR Code for Social Media Profile

10. 社交媒体主页二维码

bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Create a fun, social-media-ready QR code linking to https://linktr.ee/influencer. Design should feel young, trendy, and Instagram-worthy. Use a playful color palette with neon accents. Add decorative elements like stars or sparkles around the QR. Perfect for sharing on social platforms.",
    "mode": "max"
  }'
bash
curl -X POST https://sense.eachlabs.run/chat \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "message": "Create a fun, social-media-ready QR code linking to https://linktr.ee/influencer. Design should feel young, trendy, and Instagram-worthy. Use a playful color palette with neon accents. Add decorative elements like stars or sparkles around the QR. Perfect for sharing on social platforms.",
    "mode": "max"
  }'

Best Practices

最佳实践

Design Guidelines

设计指南

  • Contrast is Key: Maintain strong contrast between modules and background
  • Test Scannability: Always verify the generated QR code scans properly
  • Error Correction Level: Higher levels allow more artistic freedom
  • Quiet Zone: Preserve white space around the QR code
  • Module Clarity: Keep modules distinct even with artistic styling
  • 对比度是关键: 保持模块与背景之间的高对比度
  • 测试扫码性能: 始终验证生成的二维码可正常扫码
  • 纠错等级: 更高等级允许更多艺术创作空间
  • 空白区域: 保留二维码周围的留白
  • 模块清晰度: 即使采用艺术化设计,也要保持模块可识别

Color Guidelines

配色指南

  • Dark on Light: Traditional contrast works best
  • Avoid Red/Green: May cause issues for colorblind users
  • Consistent Styling: Apply effects uniformly across all modules
  • Background Contrast: Ensure sufficient contrast with placement surface
  • 深色配浅色: 传统对比度效果最佳
  • 避免红/绿配色: 可能给色盲用户带来识别问题
  • 风格统一: 所有模块应用一致的效果
  • 背景对比度: 确保与放置载体有足够对比度

Size Recommendations

尺寸建议

Use CaseMinimum SizeRecommended Size
Business Card2cm x 2cm2.5cm x 2.5cm
Table Tent3cm x 3cm4cm x 4cm
Poster5cm x 5cm8cm x 8cm
Billboard15cm x 15cm20cm x 20cm
使用场景最小尺寸推荐尺寸
名片2cm x 2cm2.5cm x 2.5cm
桌牌3cm x 3cm4cm x 4cm
海报5cm x 5cm8cm x 8cm
广告牌15cm x 15cm20cm x 20cm

Mode Selection

模式选择

Ask your users before generating:
"Do you want fast & cheap, or high quality?"
ModeBest ForSpeedQuality
max
Final production QR codes, print materials, branded assetsSlowerHighest
eco
Quick previews, concept testing, multiple variationsFasterGood
生成前请询问用户:
"您想要快速低成本的版本,还是高质量版本?"
模式适用场景速度质量
max
最终生产用二维码、印刷物料、品牌资产较慢最高
eco
快速预览、概念测试、多版本生成较快良好

Multi-Turn Creative Iteration

多轮创意迭代

Use
session_id
to iterate on QR code designs:
bash
undefined
使用
session_id
迭代优化二维码设计:
bash
undefined

Initial QR code design

初始二维码设计

curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Create a stylized QR code for https://mybrand.com with a modern tech aesthetic", "session_id": "qr-design-project" }'
curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Create a stylized QR code for https://mybrand.com with a modern tech aesthetic", "session_id": "qr-design-project" }'

Refine the design

优化设计

curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Make the corners more rounded and add a subtle glow effect around the QR code", "session_id": "qr-design-project" }'
curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Make the corners more rounded and add a subtle glow effect around the QR code", "session_id": "qr-design-project" }'

Request color variation

生成配色变体

curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Create a version with gold and black colors for our premium product line", "session_id": "qr-design-project" }'
undefined
curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Create a version with gold and black colors for our premium product line", "session_id": "qr-design-project" }'
undefined

Batch Generation for Multiple URLs

多URL批量生成

Generate consistent QR codes for multiple destinations:
bash
undefined
为多个目标地址生成风格统一的二维码:
bash
undefined

Main website QR

官网二维码

curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Create a branded QR code for https://company.com with blue gradient styling", "mode": "eco", "session_id": "company-qr-set" }'
curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Create a branded QR code for https://company.com with blue gradient styling", "mode": "eco", "session_id": "company-qr-set" }'

Product page QR

产品页二维码

curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Create a matching QR code for https://company.com/products in the same style", "mode": "eco", "session_id": "company-qr-set" }'
curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Create a matching QR code for https://company.com/products in the same style", "mode": "eco", "session_id": "company-qr-set" }'

Contact page QR

联系页二维码

curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Create a matching QR code for https://company.com/contact in the same style", "mode": "eco", "session_id": "company-qr-set" }'
undefined
curl -X POST https://sense.eachlabs.run/chat
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "message": "Create a matching QR code for https://company.com/contact in the same style", "mode": "eco", "session_id": "company-qr-set" }'
undefined

Error Handling

错误处理

ErrorCauseSolution
Failed to create prediction: HTTP 422
Insufficient balanceTop up at eachlabs.ai
Content policy violationProhibited content in URLUse appropriate URLs
TimeoutComplex generationSet client timeout to minimum 10 minutes
QR not scanningToo artistic, low contrastRequest higher contrast, simpler design
错误原因解决方案
Failed to create prediction: HTTP 422
余额不足在eachlabs.ai进行充值
内容政策违规URL包含禁止内容使用合规的URL
超时生成逻辑复杂将客户端超时设置为至少10分钟
二维码无法扫码设计过于艺术化、对比度低要求更高对比度、更简洁的设计

Prompt Tips for QR Codes

二维码提示词技巧

When creating QR codes, include these details in your prompt:
  1. Target URL: The exact URL the QR code should link to
  2. Style Theme: Modern, minimalist, artistic, branded, etc.
  3. Colors: Specific hex codes or color descriptions
  4. Use Case: Business card, poster, menu, social media
  5. Logo Requirement: Whether to include space for a logo
  6. Special Effects: Gradients, shadows, glow, patterns
创建二维码时,在提示词中包含以下细节:
  1. 目标URL: 二维码指向的准确地址
  2. 风格主题: 现代、极简、艺术化、品牌化等
  3. 配色: 具体十六进制代码或色彩描述
  4. 使用场景: 名片、海报、菜单、社交媒体
  5. Logo需求: 是否需要预留Logo位置
  6. 特殊效果: 渐变、阴影、发光、图案

Example Prompt Structure

提示词结构示例

"Create a [style] QR code for [URL].
Use [colors] with [design elements].
Intended use: [placement/medium].
[Additional requirements like logo space, specific themes, etc.]
Ensure it remains scannable."
"为[URL]创建[风格]二维码。
使用[配色]搭配[设计元素]。
使用场景:[放置载体/媒介]。
[额外要求,如Logo位置、特定主题等]
确保二维码可正常扫码。"

Related Skills

相关技能

  • each-sense
    - Core API documentation
  • product-photo-generation
    - E-commerce product shots
  • meta-ad-creative-generation
    - Meta ad creatives
  • each-sense
    - 核心API文档
  • product-photo-generation
    - 电商产品图生成
  • meta-ad-creative-generation
    - Meta广告创意生成