算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
ai-landing-page-hero【设计与创意】Generate hero images for landing pages using each::sense AI. Create visually striking above-the-fold imagery for SaaS, e-commerce, agency, and startup landing pages. Supports photorealistic, illustrated, abstract, and gradient styles. Use for: landing page design, hero sections, website headers, above-the-fold visuals, web design assets. Triggers: he…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Generate compelling hero images for landing pages and website headers 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": "A wide panoramic hero image for a fintech SaaS landing page: abstract flowing data streams in deep blue and electric teal forming a wave pattern, subtle grid overlay, dark background transitioning to lighter tones on the right side leaving space for headline text, modern and professional"
}
],
"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": "A wide panoramic hero image for a fintech SaaS landing page: abstract flowing data streams in deep blue and electric teal forming a wave pattern, subtle grid overlay, dark background transitioning to lighter tones on the right side leaving space for headline text, modern and professional"
}]
)
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 hero image inspired by this design: extend the visual style into a wide landscape composition suitable for a website header, maintain the color palette and mood, add negative space on the left for headline text overlay"},
{"type": "image_url", "image_url": {"url": "https://example.com/design-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.
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 clean hero image for a project management SaaS: an isometric 3D illustration of interconnected floating workflow cards and checkmarks in purple and soft white, clean gradient background from light lavender to white, modern tech aesthetic, wide format with empty space on the right"
}
],
"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 lifestyle hero image for a premium outdoor gear e-commerce store: a hiker standing at the edge of a mountain ridge at golden hour, dramatic vista of layered mountains fading into mist, cinematic wide shot, warm natural lighting, aspirational adventure mood"
}
],
"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": "An abstract hero background for an AI startup landing page: neural network visualization with glowing interconnected nodes and pathways, deep midnight blue to indigo gradient, subtle particle effects, futuristic and sophisticated, wide landscape composition with darker left side for text overlay"
}
],
"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 bold creative agency hero image: an explosion of colorful paint splashes, geometric shapes, and design tools floating in mid-air against a crisp white background, vibrant coral, electric blue, and bright yellow accents, dynamic energy, wide panoramic composition"
}
],
"stream": false
}'