YouTube Thumbnail Generation by eachlabs/skills
npx skills add https://github.com/eachlabs/skills --skill 'YouTube Thumbnail Generation'生成高转化率的 YouTube 缩略图,旨在实现最大点击率。创建引人注目的视觉效果,包含富有表现力的面孔、大胆的色彩、清晰的文字空间以及经过验证的能驱动观看量的缩略图公式。
each::sense API 创建针对互动优化的 YouTube 缩略图:
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 YouTube thumbnail: shocked face reaction to an unbelievable reveal, mouth wide open, eyes popping, bright yellow and red background, space on the right side for text overlay, dramatic lighting, ultra high contrast, 1280x720 aspect ratio",
"mode": "max"
}'
| 样式 | 描述 |
|---|
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 关键元素 |
|---|
| 反应面孔 | 夸张的情感表达 | 睁大的眼睛、张开的嘴巴、戏剧性的灯光 |
| 前后对比 | 并排的转变 | 分割构图、状态之间的对比 |
| 清单式 | 编号列表或前 10 名格式 | 粗体数字、排列的多个元素 |
| 教程 | 操作指南和教育内容 | 步骤可视化、简洁的布局 |
| 视频博客 | 个人和生活方式内容 | 随意自然的感觉、暖色调、贴近生活 |
| 游戏 | 游戏相关内容 | 动作场景、游戏元素、充满活力 |
| 评测 | 产品或服务评测 | 产品焦点、评分可视化、对比 |
经典的 YouTube 缩略图,带有夸张的震惊表情。
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 YouTube thumbnail with a person showing extreme shock and disbelief, jaw dropped, eyes wide open, hands on cheeks, bright neon pink and electric blue gradient background, dramatic side lighting creating shadows, space in the upper right corner for text, hyper-saturated colors, 1280x720 YouTube thumbnail format",
"mode": "max"
}'
分屏显示戏剧性的转变。
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 before and after YouTube thumbnail, split down the middle, left side showing a messy cluttered room in dull gray tones, right side showing the same room transformed into a beautiful organized space with warm golden lighting, red arrow pointing from left to right, high contrast, text space at top, 1280x720 aspect ratio",
"mode": "max"
}'
教育内容,带有清晰的步骤可视化。
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 tutorial YouTube thumbnail showing someone at a computer with code on screen, confident helpful expression, pointing gesture toward the screen, clean modern workspace, teal and orange color scheme, large empty space on the left side for step numbers and text overlay, professional lighting, 1280x720 thumbnail dimensions",
"mode": "max"
}'
个人且真实的视频博客美学。
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 vlog YouTube thumbnail, person with genuine excited smile in an interesting location, travel destination background with beautiful scenery, warm golden hour lighting, candid natural pose, soft bokeh background, space at the bottom for text, lifestyle aesthetic, bright and inviting colors, 1280x720 format",
"mode": "max"
}'
高能量的游戏内容缩略图。
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 an epic gaming YouTube thumbnail, intense gamer with headset showing competitive focus, RGB lighting in purple and green, gaming setup visible, action game scene explosion in background, dynamic diagonal composition, neon glow effects, bold and aggressive style, text space in corner, extremely vibrant colors, 1280x720 thumbnail",
"mode": "max"
}'
清晰的产品焦点评测缩略图。
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 product review YouTube thumbnail, person holding a tech gadget with curious examining expression, clean white and blue gradient background, product prominently displayed, subtle star rating visual element, professional studio lighting, space on the right for review verdict text, crisp and clean aesthetic, 1280x720 aspect ratio",
"mode": "max"
}'
列表式内容的多个元素。
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 top 10 listicle YouTube thumbnail, collage style with multiple small images arranged creatively, person with thoughtful counting gesture, bold red and yellow color scheme, large number 10 visual element, energetic diagonal layout, space for list title text at top, high saturation, eye-catching composition, 1280x720 thumbnail format",
"mode": "max"
}'
并排的产品或概念对比。
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 comparison YouTube thumbnail, VS battle style, two products or options facing each other from opposite sides, lightning bolt or versus symbol in the center, red versus blue color split background, dramatic confrontational lighting, person in the middle with confused deciding expression, text space at top and bottom, 1280x720 dimensions",
"mode": "max"
}'
引人入胜的讲故事内容缩略图。
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 story time YouTube thumbnail, person with dramatic secretive expression, finger over lips or whispering gesture, mysterious dark purple and black background with spotlight effect, intriguing shadowy elements suggesting the story topic, gossip or secret-sharing vibe, text space for story title on the side, dramatic theatrical lighting, 1280x720 thumbnail",
"mode": "max"
}'
充满动作的挑战内容。
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 challenge video YouTube thumbnail, person mid-action with determined intense expression, dynamic motion blur suggesting movement, bright orange and cyan color scheme, timer or countdown element, extreme angle shot, high energy chaotic composition, sweat and effort visible, bold space for challenge name text, 1280x720 aspect ratio",
"mode": "max"
}'
面孔驱动点击:尽可能包含富有表现力的人脸。震惊、喜悦、好奇和怀疑等情绪效果最佳。
夸张情绪:细微的表情会丢失。面部表情要比自然感觉更夸张。
高对比度:缩略图在信息流中显示得很小。强烈的对比度确保在任何尺寸下都可见。
可读的文字空间:为文字叠加留出干净的区域。杂乱的背景会使文字难以辨认。
标准尺寸:始终使用 1280x720 像素(16:9 宽高比)以获得最佳显示效果。
色彩心理学:明亮的黄色、红色和蓝色能吸引注意力。避免使用柔和或深色的配色方案。
三分法则:将关键元素沿三分线放置,以获得平衡、专业的构图。
一致的品牌形象:在整个频道缩略图中保持可识别的风格元素。
制作有效的提示词以实现最大的缩略图影响力:
# 在您的提示词中包含这些元素:
# 1. 富有表现力的面孔
"shocked expression, wide eyes, open mouth, exaggerated emotion"
# 2. 大胆的色彩规格
"bright neon colors, high saturation, vivid yellow and red, electric blue"
# 3. 清晰的焦点
"subject centered, attention directed to main element, clear visual hierarchy"
# 4. 文字空间规划
"space on the right for text overlay, clean area at top for title, uncluttered corner"
# 5. 灯光方向
"dramatic side lighting, spotlight effect, high contrast shadows"
# 6. 宽高比
"1280x720, YouTube thumbnail format, 16:9 aspect ratio"
# 7. 能量水平
"dynamic composition, diagonal lines, action and movement"
根据您的需求选择合适的模式:
更高质量的输出,适合最终缩略图。
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 YouTube thumbnail with maximum detail and quality, person with excited expression, vibrant colors, perfect for publishing",
"mode": "max"
}'
更快的生成速度,适用于快速迭代和概念测试。
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": "Quick thumbnail concept: shocked face, yellow background, text space right side",
"mode": "eco"
}'
使用 session_id 在频道多个缩略图之间保持一致的风格。
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": "I am creating thumbnails for a tech review YouTube channel. The style should be: clean modern aesthetic, blue and white color scheme, product focus with reviewer face, professional lighting, consistent text placement on the right side. Generate the first thumbnail for a smartphone review.",
"session_id": "tech-channel-thumbnails-001",
"mode": "max"
}'
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": "Now create a thumbnail for a laptop review using the same channel style",
"session_id": "tech-channel-thumbnails-001",
"mode": "max"
}'
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 the third thumbnail in this series for a headphones review, maintaining brand consistency",
"session_id": "tech-channel-thumbnails-001",
"mode": "max"
}'
生成多个缩略图变体以测试哪个效果最佳。
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": "YouTube thumbnail variation A: extreme shocked face taking up most of the frame, minimal background, pure emotional impact, red and yellow, text space bottom, 1280x720",
"session_id": "ab-test-video-123",
"mode": "max"
}'
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": "YouTube thumbnail variation B: same topic but showing more context and environment, smaller face with interesting background elements, blue and orange, text space top right, 1280x720",
"session_id": "ab-test-video-123",
"mode": "max"
}'
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": "YouTube thumbnail variation C: clean minimalist design, single powerful visual element, bold solid color background, maximum contrast, text space centered, 1280x720",
"session_id": "ab-test-video-123",
"mode": "max"
}'
在您的应用程序中适当地处理 API 响应。
# Check response status and handle errors
response=$(curl -s -w "\n%{http_code}" -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 YouTube thumbnail with shocked expression, bright colors, 1280x720",
"mode": "max"
}')
http_code=$(echo "$response" | tail -n1)
body=$(echo "$response" | sed '$d')
if [ "$http_code" -eq 200 ]; then
echo "Thumbnail generated successfully"
echo "$body"
elif [ "$http_code" -eq 401 ]; then
echo "Error: Invalid API key"
elif [ "$http_code" -eq 429 ]; then
echo "Error: Rate limit exceeded. Please wait before retrying."
else
echo "Error: HTTP $http_code"
echo "$body"
fi
每周安装次数
–
代码仓库
GitHub 星标数
10
首次出现
–
安全审计
Generate high-converting YouTube thumbnails designed for maximum click-through rates. Create attention-grabbing visuals with expressive faces, bold colors, clear text spaces, and proven thumbnail formulas that drive views.
The each::sense API creates YouTube thumbnails optimized for engagement:
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 YouTube thumbnail: shocked face reaction to an unbelievable reveal, mouth wide open, eyes popping, bright yellow and red background, space on the right side for text overlay, dramatic lighting, ultra high contrast, 1280x720 aspect ratio",
"mode": "max"
}'
| Style | Description | Key Elements |
|---|---|---|
| Reaction Face | Exaggerated emotional expressions | Wide eyes, open mouth, dramatic lighting |
| Before/After | Side-by-side transformation | Split composition, contrast between states |
| Listicle | Numbered list or top 10 format | Bold numbers, multiple elements arranged |
| Tutorial | How-to and educational content | Steps visualization, clean layout |
| Vlog | Personal and lifestyle content | Candid feel, warm colors, relatable |
| Gaming | Game-related content | Action scenes, game elements, energetic |
| Review | Product or service reviews | Product focus, rating visual, comparison |
Classic YouTube thumbnail with exaggerated shocked expression.
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 YouTube thumbnail with a person showing extreme shock and disbelief, jaw dropped, eyes wide open, hands on cheeks, bright neon pink and electric blue gradient background, dramatic side lighting creating shadows, space in the upper right corner for text, hyper-saturated colors, 1280x720 YouTube thumbnail format",
"mode": "max"
}'
Split-screen showing dramatic transformation.
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 before and after YouTube thumbnail, split down the middle, left side showing a messy cluttered room in dull gray tones, right side showing the same room transformed into a beautiful organized space with warm golden lighting, red arrow pointing from left to right, high contrast, text space at top, 1280x720 aspect ratio",
"mode": "max"
}'
Educational content with clear step visualization.
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 tutorial YouTube thumbnail showing someone at a computer with code on screen, confident helpful expression, pointing gesture toward the screen, clean modern workspace, teal and orange color scheme, large empty space on the left side for step numbers and text overlay, professional lighting, 1280x720 thumbnail dimensions",
"mode": "max"
}'
Personal and authentic vlog aesthetic.
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 vlog YouTube thumbnail, person with genuine excited smile in an interesting location, travel destination background with beautiful scenery, warm golden hour lighting, candid natural pose, soft bokeh background, space at the bottom for text, lifestyle aesthetic, bright and inviting colors, 1280x720 format",
"mode": "max"
}'
High-energy gaming content thumbnail.
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 an epic gaming YouTube thumbnail, intense gamer with headset showing competitive focus, RGB lighting in purple and green, gaming setup visible, action game scene explosion in background, dynamic diagonal composition, neon glow effects, bold and aggressive style, text space in corner, extremely vibrant colors, 1280x720 thumbnail",
"mode": "max"
}'
Clear product-focused review thumbnail.
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 product review YouTube thumbnail, person holding a tech gadget with curious examining expression, clean white and blue gradient background, product prominently displayed, subtle star rating visual element, professional studio lighting, space on the right for review verdict text, crisp and clean aesthetic, 1280x720 aspect ratio",
"mode": "max"
}'
Multiple elements for list-style content.
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 top 10 listicle YouTube thumbnail, collage style with multiple small images arranged creatively, person with thoughtful counting gesture, bold red and yellow color scheme, large number 10 visual element, energetic diagonal layout, space for list title text at top, high saturation, eye-catching composition, 1280x720 thumbnail format",
"mode": "max"
}'
Side-by-side product or concept comparison.
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 comparison YouTube thumbnail, VS battle style, two products or options facing each other from opposite sides, lightning bolt or versus symbol in the center, red versus blue color split background, dramatic confrontational lighting, person in the middle with confused deciding expression, text space at top and bottom, 1280x720 dimensions",
"mode": "max"
}'
Engaging storytelling content thumbnail.
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 story time YouTube thumbnail, person with dramatic secretive expression, finger over lips or whispering gesture, mysterious dark purple and black background with spotlight effect, intriguing shadowy elements suggesting the story topic, gossip or secret-sharing vibe, text space for story title on the side, dramatic theatrical lighting, 1280x720 thumbnail",
"mode": "max"
}'
Action-packed challenge content.
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 challenge video YouTube thumbnail, person mid-action with determined intense expression, dynamic motion blur suggesting movement, bright orange and cyan color scheme, timer or countdown element, extreme angle shot, high energy chaotic composition, sweat and effort visible, bold space for challenge name text, 1280x720 aspect ratio",
"mode": "max"
}'
Faces Drive Clicks : Include expressive human faces whenever possible. Emotions like shock, joy, curiosity, and disbelief perform best.
Exaggerate Emotions : Subtle expressions get lost. Go bigger with facial expressions than feels natural.
High Contrast : Thumbnails appear small in feeds. Strong contrast ensures visibility at any size.
Readable Text Space : Leave clean areas for text overlay. Busy backgrounds make text illegible.
Standard Dimensions : Always use 1280x720 pixels (16:9 aspect ratio) for optimal display.
Color Psychology : Bright yellows, reds, and blues grab attention. Avoid muted or dark color schemes.
Rule of Thirds : Position key elements along thirds for balanced, professional composition.
Consistent Branding : Maintain recognizable style elements across your channel thumbnails.
Craft effective prompts for maximum thumbnail impact:
# Include these elements in your prompts:
# 1. Expressive Faces
"shocked expression, wide eyes, open mouth, exaggerated emotion"
# 2. Bold Color Specifications
"bright neon colors, high saturation, vivid yellow and red, electric blue"
# 3. Clear Focal Point
"subject centered, attention directed to main element, clear visual hierarchy"
# 4. Text Space Planning
"space on the right for text overlay, clean area at top for title, uncluttered corner"
# 5. Lighting Direction
"dramatic side lighting, spotlight effect, high contrast shadows"
# 6. Aspect Ratio
"1280x720, YouTube thumbnail format, 16:9 aspect ratio"
# 7. Energy Level
"dynamic composition, diagonal lines, action and movement"
Choose the appropriate mode based on your needs:
Higher quality output ideal for final thumbnails.
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 YouTube thumbnail with maximum detail and quality, person with excited expression, vibrant colors, perfect for publishing",
"mode": "max"
}'
Faster generation for rapid iteration and concept testing.
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": "Quick thumbnail concept: shocked face, yellow background, text space right side",
"mode": "eco"
}'
Use session_id to maintain consistent style across multiple thumbnails for your channel.
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": "I am creating thumbnails for a tech review YouTube channel. The style should be: clean modern aesthetic, blue and white color scheme, product focus with reviewer face, professional lighting, consistent text placement on the right side. Generate the first thumbnail for a smartphone review.",
"session_id": "tech-channel-thumbnails-001",
"mode": "max"
}'
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": "Now create a thumbnail for a laptop review using the same channel style",
"session_id": "tech-channel-thumbnails-001",
"mode": "max"
}'
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 the third thumbnail in this series for a headphones review, maintaining brand consistency",
"session_id": "tech-channel-thumbnails-001",
"mode": "max"
}'
Generate multiple thumbnail variations to test which performs best.
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": "YouTube thumbnail variation A: extreme shocked face taking up most of the frame, minimal background, pure emotional impact, red and yellow, text space bottom, 1280x720",
"session_id": "ab-test-video-123",
"mode": "max"
}'
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": "YouTube thumbnail variation B: same topic but showing more context and environment, smaller face with interesting background elements, blue and orange, text space top right, 1280x720",
"session_id": "ab-test-video-123",
"mode": "max"
}'
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": "YouTube thumbnail variation C: clean minimalist design, single powerful visual element, bold solid color background, maximum contrast, text space centered, 1280x720",
"session_id": "ab-test-video-123",
"mode": "max"
}'
Handle API responses appropriately in your applications.
# Check response status and handle errors
response=$(curl -s -w "\n%{http_code}" -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 YouTube thumbnail with shocked expression, bright colors, 1280x720",
"mode": "max"
}')
http_code=$(echo "$response" | tail -n1)
body=$(echo "$response" | sed '$d')
if [ "$http_code" -eq 200 ]; then
echo "Thumbnail generated successfully"
echo "$body"
elif [ "$http_code" -eq 401 ]; then
echo "Error: Invalid API key"
elif [ "$http_code" -eq 429 ]; then
echo "Error: Rate limit exceeded. Please wait before retrying."
else
echo "Error: HTTP $http_code"
echo "$body"
fi
Weekly Installs
–
Repository
GitHub Stars
10
First Seen
–
Security Audits
专业文案撰写指南:转化文案写作技巧、框架与SEO优化原则
54,100 周安装