算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
ai-ad-creative【设计与创意】Generate ad creatives for digital campaigns using each::sense AI. Create scroll-stopping banner ads, social media ad visuals, display ads, and promotional graphics optimized for platforms like Facebook, Instagram, Google Ads, and LinkedIn. Use for: digital advertising, social media ads, display banners, retargeting creatives, A/B test variations. Tri…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Generate high-converting ad creatives for digital campaigns 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": "Create a vibrant Instagram ad image for a summer sale on athletic shoes, featuring a pair of sleek white running shoes on a sun-drenched track, warm golden light, energetic feel, clean commercial photography style"
}
],
"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": "Create a vibrant Instagram ad image for a summer sale on athletic shoes, featuring a pair of sleek white running shoes on a sun-drenched track, warm golden light, energetic feel, clean commercial photography style"
}]
)
print(response.choices[0].message.content)
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 a Facebook ad visual based on this product image, place the product on a clean gradient background with soft shadows, professional commercial lighting, ad-ready composition"},
{"type": "image_url", "image_url": {"url": "https://example.com/product-photo.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.
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": "A premium wireless noise-cancelling headphone floating against a deep navy background, soft spotlight from above, subtle reflections on the glossy surface, minimalist product photography for a Google Display ad"
}
],
"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": "A young professional woman working on a laptop in a sunlit coworking space, warm natural tones, modern interior design, shallow depth of field, lifestyle photography for a SaaS product ad campaign"
}
],
"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": "A cozy holiday scene for a winter sale ad: a steaming mug of hot cocoa surrounded by wrapped gifts and pine branches on a rustic wooden table, warm bokeh lights in the background, inviting festive atmosphere, commercial photography"
}
],
"stream": false
}'
# Generate multiple creative variations for A/B testing
VARIATIONS=(
"A sleek smartwatch on a marble surface, dramatic side lighting, dark premium background, luxury product photography"
"A sleek smartwatch on a person's wrist during a morning jog, natural sunlight, active lifestyle photography"
"A sleek smartwatch flat-lay with a coffee cup, notebook, and plant, top-down view, clean modern aesthetic"
)
for VARIANT in "${VARIATIONS[@]}"; do
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\": \"$VARIANT\"}],
\"stream\": false
}"
echo "---"
done