meta-ad-creative-generation

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Meta Ad Creative Generation

Meta广告创意生成

Generate high-converting Meta (Facebook & Instagram) ad creatives using each::sense. This skill creates images and videos optimized for Meta's ad placements, formats, and best practices.
借助each::sense生成高转化率的Meta(Facebook和Instagram)广告创意。该技能可生成符合Meta广告投放位置、格式及最佳实践的图片和视频。

Features

功能特性

  • Feed Ads: Static images and videos for Facebook/Instagram feed
  • Stories & Reels: Vertical 9:16 content for immersive placements
  • Carousel Ads: Multiple images for product showcases
  • Video Ads: Short-form video content for engagement
  • Product Ads: E-commerce focused creatives with lifestyle context
  • Brand Awareness: Eye-catching visuals for reach campaigns
  • Lead Generation: Compelling visuals with clear CTAs
  • 信息流广告:适用于Facebook/Instagram信息流的静态图片和视频
  • 快拍与Reels:适用于沉浸式投放场景的9:16竖版内容
  • 轮播广告:用于产品展示的多张图片
  • 视频广告:提升互动性的短视频内容
  • 产品广告:结合生活场景的电商专属创意
  • 品牌认知:吸引眼球的视觉内容,提升曝光量
  • 线索生成:带有清晰CTA的极具吸引力的视觉内容

Quick Start

快速开始

bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a Facebook feed ad for a fitness app showing someone working out with energetic vibes, include space for headline text"}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a Facebook feed ad for a fitness app showing someone working out with energetic vibes, include space for headline text"}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'

Meta Ad Formats & Sizes

Meta广告格式与尺寸

PlacementAspect RatioRecommended SizeUse Case
Feed (Image)1:11080x1080Product ads, brand awareness
Feed (Image)4:51080x1350More vertical space, higher engagement
Feed (Video)1:1 or 4:51080x1080 or 1080x1350Product demos, testimonials
Stories/Reels9:161080x1920Full-screen immersive ads
Carousel1:11080x1080Product catalogs, features
Right Column1.91:11200x628Desktop sidebar ads
投放位置宽高比推荐尺寸适用场景
信息流(图片)1:11080x1080产品广告、品牌认知
信息流(图片)4:51080x1350更多竖版空间,更高互动率
信息流(视频)1:1 或 4:51080x1080 或 1080x1350产品演示、客户证言
快拍/Reels9:161080x1920全屏沉浸式广告
轮播广告1:11080x1080产品目录、功能展示
右侧栏1.91:11200x628桌面侧边栏广告

Use Case Examples

应用场景示例

1. Product Ad (E-commerce)

1. 电商产品广告

bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 1:1 Facebook product ad for wireless earbuds. Show the earbuds on a clean minimal background with lifestyle context - someone at a gym or running. Modern, premium feel. Leave space at top for headline."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 1:1 Facebook product ad for wireless earbuds. Show the earbuds on a clean minimal background with lifestyle context - someone at a gym or running. Modern, premium feel. Leave space at top for headline."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'

2. Instagram Stories Ad

2. Instagram快拍广告

bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 9:16 Instagram Stories ad for a skincare brand. Show a woman with glowing skin, soft natural lighting, minimalist aesthetic. Leave safe zones at top and bottom for UI elements."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 9:16 Instagram Stories ad for a skincare brand. Show a woman with glowing skin, soft natural lighting, minimalist aesthetic. Leave safe zones at top and bottom for UI elements."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'

3. Facebook Video Ad

3. Facebook视频广告

bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 5 second 1:1 video ad for a coffee subscription service. Show steaming coffee being poured, cozy morning vibes, warm color grading. Eye-catching for autoplay without sound."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 5 second 1:1 video ad for a coffee subscription service. Show steaming coffee being poured, cozy morning vibes, warm color grading. Eye-catching for autoplay without sound."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'

4. Carousel Ad (Multiple Products)

4. 多产品轮播广告

bash
undefined
bash
undefined

First image

First image

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Create a 1:1 carousel ad image 1 of 4 for a furniture store. Show a modern sofa in a stylish living room. Clean, aspirational lifestyle photography style."}], "model": "eachsense/beta", "stream": true, "session_id": "carousel-furniture-001" }'
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Create a 1:1 carousel ad image 1 of 4 for a furniture store. Show a modern sofa in a stylish living room. Clean, aspirational lifestyle photography style."}], "model": "eachsense/beta", "stream": true, "session_id": "carousel-furniture-001" }'

Second image (same session for consistency)

Second image (same session for consistency)

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Create carousel image 2 of 4. Show a dining table set in the same style as the previous image. Maintain consistent lighting and aesthetic."}], "model": "eachsense/beta", "stream": true, "session_id": "carousel-furniture-001" }'
undefined
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Create carousel image 2 of 4. Show a dining table set in the same style as the previous image. Maintain consistent lighting and aesthetic."}], "model": "eachsense/beta", "stream": true, "session_id": "carousel-furniture-001" }'
undefined

5. Reels Ad (Vertical Video)

5. Instagram Reels竖版视频广告

bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 9:16 vertical video ad for Instagram Reels. Fashion brand summer collection - show a model walking on a beach in a flowing dress, cinematic slow motion, golden hour lighting. 5 seconds."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 9:16 vertical video ad for Instagram Reels. Fashion brand summer collection - show a model walking on a beach in a flowing dress, cinematic slow motion, golden hour lighting. 5 seconds."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'

6. App Install Ad

6. 应用安装广告

bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 4:5 Facebook ad for a meditation app. Show a peaceful person meditating in nature, soft morning light, calming colors (blues and greens). Include visual space for app store badges and CTA button."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 4:5 Facebook ad for a meditation app. Show a peaceful person meditating in nature, soft morning light, calming colors (blues and greens). Include visual space for app store badges and CTA button."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'

7. Restaurant/Food Ad

7. 餐饮广告

bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 1:1 Facebook ad for an Italian restaurant. Show a delicious pasta dish with steam rising, rustic table setting, warm inviting atmosphere. Food photography style, make it look appetizing."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 1:1 Facebook ad for an Italian restaurant. Show a delicious pasta dish with steam rising, rustic table setting, warm inviting atmosphere. Food photography style, make it look appetizing."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'

8. Lead Generation Ad (B2B)

8. B2B线索生成广告

bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 1:1 Facebook lead gen ad for a B2B SaaS product. Show a professional working on a laptop with data visualizations, modern office environment, confident and productive mood. Corporate but not boring."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 1:1 Facebook lead gen ad for a B2B SaaS product. Show a professional working on a laptop with data visualizations, modern office environment, confident and productive mood. Corporate but not boring."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'

9. UGC-Style Ad

9. UGC风格广告

bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a UGC-style 9:16 video ad for a teeth whitening product. Show a young woman doing a selfie-style testimonial, authentic iPhone footage look, bathroom mirror setting, before/after reveal moment. 10 seconds."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a UGC-style 9:16 video ad for a teeth whitening product. Show a young woman doing a selfie-style testimonial, authentic iPhone footage look, bathroom mirror setting, before/after reveal moment. 10 seconds."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'

10. Retargeting Ad (with Product Image)

10. 重定向广告(含产品图)

bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 1:1 retargeting ad for sneakers. Show white sneakers prominently with a lifestyle background (urban street scene). Add visual urgency - style that says limited time offer. Clean product focus."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max",
    "image_urls": ["https://example.com/product-sneakers.jpg"]
  }'
bash
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 1:1 retargeting ad for sneakers. Show white sneakers prominently with a lifestyle background (urban street scene). Add visual urgency - style that says limited time offer. Clean product focus."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max",
    "image_urls": ["https://example.com/product-sneakers.jpg"]
  }'

Best Practices

最佳实践

Image Ads

图片广告

  • Text Overlay: Keep text minimal - Meta recommends less than 20% text coverage
  • Safe Zones: Leave 14% margin at top/bottom for Stories/Reels UI elements
  • Focal Point: Place key visual elements in the center
  • Contrast: Use contrasting colors to stand out in feed
  • Brand Colors: Maintain consistent brand identity across ads
  • 文字叠加:尽量减少文字内容——Meta建议文字覆盖率低于20%
  • 安全区域:为快拍/Reels的UI元素预留顶部和底部14%的边距
  • 视觉焦点:将核心视觉元素放置在中心位置
  • 对比度:使用对比色确保在信息流中脱颖而出
  • 品牌色彩:在所有广告中保持一致的品牌调性

Video Ads

视频广告

  • Hook in 3 seconds: Capture attention immediately
  • Design for sound-off: Use captions, visual storytelling
  • Loop-friendly: Create seamless loops for short videos
  • Mobile-first: Design for vertical/square on mobile
  • 3秒抓眼球:立即吸引用户注意力
  • 适配静音播放:添加字幕,采用视觉叙事方式
  • 循环友好:为短视频创建无缝循环效果
  • 移动端优先:针对移动端的竖版/方形尺寸进行设计

Carousel Ads

轮播广告

  • Visual consistency: Maintain same style across all cards
  • Story arc: Create a narrative flow between images
  • First image hook: Make the first card most compelling
  • 视觉一致性:所有卡片保持相同风格
  • 叙事逻辑:在图片之间构建连贯的叙事流程
  • 首张卡片吸睛:让第一张卡片最具吸引力

Prompt Tips for Meta Ads

Meta广告提示词技巧

When creating Meta ad creatives, include these details in your prompt:
  1. Format: Specify aspect ratio (1:1, 4:5, 9:16)
  2. Placement: Mention if it's for feed, stories, or reels
  3. Product/Service: Clearly describe what you're advertising
  4. Target Audience: Who is this ad for?
  5. Mood/Style: Energetic, calm, luxurious, playful, etc.
  6. Text Space: Request space for headlines/CTAs if needed
  7. Brand Guidelines: Mention colors, style preferences
创建Meta广告创意时,在提示词中包含以下细节:
  1. 格式:指定宽高比(1:1、4:5、9:16)
  2. 投放位置:说明是用于信息流、快拍还是Reels
  3. 产品/服务:清晰描述广告推广的内容
  4. 目标受众:广告面向的人群
  5. 风格/氛围:活力、平静、奢华、趣味等
  6. 文字空间:如有需要,预留标题/CTA的位置
  7. 品牌规范:提及色彩、风格偏好

Example Prompt Structure

提示词结构示例

"Create a [aspect ratio] [placement] ad for [product/service].
Show [visual description] with [mood/style].
Target audience: [demographic].
[Additional requirements like text space, brand colors, etc.]"
"Create a [aspect ratio] [placement] ad for [product/service].
Show [visual description] with [mood/style].
Target audience: [demographic].
[Additional requirements like text space, brand colors, etc.]"

Mode Selection

模式选择

Ask your users before generating:
"Do you want fast & cheap, or high quality?"
ModeBest ForSpeedQuality
max
Final ad creatives, A/B testing winnersSlowerHighest
eco
Quick drafts, concept exploration, bulk testingFasterGood
生成前询问用户:
"您需要快速低成本的版本,还是高质量版本?"
模式适用场景速度质量
max
最终广告创意、A/B测试获胜版本较慢最高
eco
快速草稿、概念探索、批量测试较快良好

Multi-Turn Creative Iteration

多轮创意迭代

Use
session_id
to iterate on ad creatives:
bash
undefined
使用
session_id
对广告创意进行迭代:
bash
undefined

Initial creative

Initial creative

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Create a 1:1 Facebook ad for a watch brand, luxury feel"}], "model": "eachsense/beta", "stream": true, "session_id": "watch-ad-project" }'
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Create a 1:1 Facebook ad for a watch brand, luxury feel"}], "model": "eachsense/beta", "stream": true, "session_id": "watch-ad-project" }'

Iterate based on feedback

Iterate based on feedback

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Make it more dramatic with darker background, add some bokeh lights"}], "model": "eachsense/beta", "stream": true, "session_id": "watch-ad-project" }'
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Make it more dramatic with darker background, add some bokeh lights"}], "model": "eachsense/beta", "stream": true, "session_id": "watch-ad-project" }'

Request variation

Request variation

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Create 2 more variations of this ad with different angles"}], "model": "eachsense/beta", "stream": true, "session_id": "watch-ad-project" }'
undefined
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Create 2 more variations of this ad with different angles"}], "model": "eachsense/beta", "stream": true, "session_id": "watch-ad-project" }'
undefined

A/B Testing Batch Generation

A/B测试批量生成

Generate multiple variations for testing:
bash
undefined
生成多个变体用于测试:
bash
undefined

Variation A - Lifestyle focus

Variation A - Lifestyle focus

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Create a 1:1 ad for protein powder - lifestyle shot with athlete in gym"}], "model": "eachsense/beta", "stream": true, "mode": "eco" }'
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Create a 1:1 ad for protein powder - lifestyle shot with athlete in gym"}], "model": "eachsense/beta", "stream": true, "mode": "eco" }'

Variation B - Product focus

Variation B - Product focus

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Create a 1:1 ad for protein powder - clean product shot with ingredients"}], "model": "eachsense/beta", "stream": true, "mode": "eco" }'
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Create a 1:1 ad for protein powder - clean product shot with ingredients"}], "model": "eachsense/beta", "stream": true, "mode": "eco" }'

Variation C - Benefit focus

Variation C - Benefit focus

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Create a 1:1 ad for protein powder - before/after transformation style"}], "model": "eachsense/beta", "stream": true, "mode": "eco" }'
undefined
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
-H "Content-Type: application/json"
-H "X-API-Key: $EACHLABS_API_KEY"
-H "Accept: text/event-stream"
-d '{ "messages": [{"role": "user", "content": "Create a 1:1 ad for protein powder - before/after transformation style"}], "model": "eachsense/beta", "stream": true, "mode": "eco" }'
undefined

Error Handling

错误处理

ErrorCauseSolution
Failed to create prediction: HTTP 422
Insufficient balanceTop up at eachlabs.ai
Content policy violationProhibited contentAdjust prompt to comply with Meta ad policies
TimeoutComplex generationSet client timeout to minimum 10 minutes
错误原因解决方案
Failed to create prediction: HTTP 422
余额不足在eachlabs.ai进行充值
内容政策违规包含违禁内容修改提示词以符合Meta广告政策
超时生成任务复杂将客户端超时设置为至少10分钟

Related Skills

相关技能

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