算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
email-header-design【设计与创意】Design email marketing headers and banners using each::sense AI. Generate professional email header graphics for newsletters, promotional campaigns, welcome sequences, product announcements, and seasonal marketing emails. Optimized for email client rendering at 600px width. Use for: email headers, newsletter banners, email campaign graphics, promotio…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Design professional email marketing headers and banners using each::sense — the intelligent AI agent that automatically selects the best model for your request.
Requires an each::labs API key. Get one at eachlabs.ai.
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"messages": [
{
"role": "user",
"content": "Design an email header for a weekly tech newsletter. Clean gradient from midnight blue to dark teal, abstract circuit board lines fading in from the edges, modern and professional, 600x200 proportions, centered area for newsletter title."
}
],
"stream": false
}'
from openai import OpenAI
client = OpenAI(
api_key="YOUR_EACHLABS_API_KEY",
base_url="https://eachsense-agent.core.eachlabs.run/v1"
)
response = client.chat.completions.create(
model="eachsense/beta",
messages=[{
"role": "user",
"content": "Design an email header for a weekly tech newsletter. Clean gradient from midnight blue to dark teal, abstract circuit board lines fading in from the edges, modern and professional, 600x200 proportions, centered area for newsletter title."
}]
)
print(response.choices[0].message.content)
Match your brand guidelines or existing email templates:
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"messages": [
{
"role": "user",
"content": [
{"type": "text", "text": "Create an email header that matches this brand style. Same color palette and aesthetic, 600x200 proportions, suitable for a product update newsletter, clean with logo placement area on the left."},
{"type": "image_url", "image_url": {"url": "https://example.com/brand-reference.jpg"}}
]
}
],
"stream": false
}'
Images are sent inside messages using the OpenAI multimodal content format. Maximum 4 images per request.
Set "stream": true for real-time SSE responses, or "stream": false for complete result in a single response. Streaming is useful for showing progress in UIs; non-streaming is simpler for scripts and automation.
| Type | Dimensions | Purpose |
|---|---|---|
| Standard Header | 600 x 200 px | Newsletter masthead |
| Hero Banner | 600 x 300 px | Promotional campaigns |
| Full Width Hero | 600 x 400 px | Product launches |
| Minimal Strip | 600 x 100 px | Transactional emails |
| Section Divider | 600 x 50 px | Content separation |
email header, newsletter banner, clean and professional, brand-consistent,
horizontal banner format, email-safe colors, bold yet simple,
centered composition, 600px width proportions, text overlay area
animation or motion — static images only in most email clients
transparent background — not all clients support PNG transparency
ultra-fine details — images are often compressed for email delivery
neon glow effects — can look different across email clients
email header for [email type], [visual elements], [background], [color palette], [dimensions] proportions, [text area placement]
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"messages": [
{
"role": "user",
"content": "Create a hero banner for a product launch email. Smooth gradient from charcoal to warm copper, a sleek product silhouette spotlight area in the center, light rays emanating upward, premium and exciting, 600x300 proportions."
}
],
"stream": false
}'
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"messages": [
{
"role": "user",
"content": "Design a holiday season email header. Rich dark green background with scattered golden snowflakes and bokeh light effects, festive and elegant without being kitschy, sophisticated brand aesthetic, 600x200 proportions."
}
],
"stream": false
}'
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"messages": [
{
"role": "user",
"content": "Design a welcome email header for a SaaS onboarding sequence. Bright and optimistic gradient from sky blue to white, abstract confetti-like geometric shapes floating upward, friendly and inviting, 600x250 proportions with centered greeting area."
}
],
"stream": false
}'
# Step 1: Generate the main header design
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"messages": [
{
"role": "user",
"content": "Email header for a fitness brand newsletter. Energetic gradient from deep orange to magenta, abstract silhouette of a runner in motion on the right, dynamic and motivating, 600x200 proportions."
}
],
"stream": false
}'
# Step 2: Create a matching promotional banner
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-d '{
"messages": [
{
"role": "user",
"content": "Email header for a fitness brand newsletter. Energetic gradient from deep orange to magenta, abstract silhouette of a runner in motion on the right, dynamic and motivating, 600x200 proportions."
},
{
"role": "assistant",
"content": "..."
},
{
"role": "user",
"content": "Now create a matching promotional banner for a mid-email section. Same color palette but as a 600x150 strip, with the gradient reversed and a more subtle version of the motion elements. This will be used as a sale announcement divider."
}
],
"stream": false
}'