算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
infographic-design【设计与创意】Create data visualization infographics using each::sense AI. Generate visually compelling infographic backgrounds, layouts, and visual elements for statistical data, process flows, timelines, comparisons, and educational content. Supports flat design, illustrated, corporate, and editorial styles. Use for: infographics, data visualization, process dia…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Create visually compelling infographic layouts and data visualization graphics 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 an infographic background and visual layout for a sustainability report. Vertical scrolling format, clean white background, sections separated by flowing green wave dividers, flat vector icons of trees and wind turbines as decorative elements, earth tones and forest green palette, 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": "Create an infographic background and visual layout for a sustainability report. Vertical scrolling format, clean white background, sections separated by flowing green wave dividers, flat vector icons of trees and wind turbines as decorative elements, earth tones and forest green palette, modern and professional."
}]
)
print(response.choices[0].message.content)
Provide a data sketch or existing infographic for style matching:
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 new infographic visual in the same style as this reference. Match the color scheme and illustration style, but create a layout for a 5-step process flow with numbered circular icons connected by dotted lines, vertical format."},
{"type": "image_url", "image_url": {"url": "https://example.com/infographic-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 | Layout | Best For |
|---|---|---|
| Statistical | Charts, graphs, numbers | Reports, surveys, research |
| Process/How-to | Numbered steps, flow | Tutorials, workflows |
| Timeline | Chronological sequence | History, project milestones |
| Comparison | Side-by-side columns | Product comparisons, pros/cons |
| Geographic | Map-based visuals | Regional data, logistics |
| Hierarchical | Pyramid or tree | Organizational, priority data |
| List | Numbered or icon list | Tips, features, facts |
infographic layout, flat vector illustration, clean data visualization,
icon-based design, section dividers, numbered steps, color-coded sections,
vertical scrolling format, consistent icon style, white space between sections
actual data and numbers — add real data in design software
tiny detailed charts — too complex for AI generation
3D rendered elements — flat vector works best for infographics
photorealistic style — illustrated/flat design is standard
infographic [type] for [topic], [layout description], [visual elements], [color palette], [style], vertical/horizontal format
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 technology process infographic layout. Four connected stages flowing left to right, each stage is a rounded rectangle with a flat vector icon placeholder inside (gear, cloud, shield, rocket), connected by animated-looking arrows, dark background with neon blue and purple accents, futuristic and clean."
}
],
"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": "Create a health infographic visual layout about daily nutrition. Vertical format, soft pastel background, a central illustrated human body silhouette with color-coded arrows pointing to different body parts, each arrow ends in a circular icon area for food groups, warm and friendly illustration style."
}
],
"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 corporate statistics infographic template. Clean white background, four equal sections stacked vertically separated by thin gray lines, each section has a large circular chart placeholder on the left and a text area on the right, navy blue and gold accent colors, professional and data-driven."
}
],
"stream": false
}'
# Step 1: Generate the infographic layout
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": "Infographic layout for a startup funding timeline. Vertical format, road or path metaphor winding from bottom to top, five milestone markers along the path, each marker is a distinct colored circle, light gray background, flat modern illustration style."
}
],
"stream": false
}'
# Step 2: Refine specific sections
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": "Infographic layout for a startup funding timeline. Vertical format, road or path metaphor winding from bottom to top, five milestone markers along the path, each marker is a distinct colored circle, light gray background, flat modern illustration style."
},
{
"role": "assistant",
"content": "..."
},
{
"role": "user",
"content": "Add small flat vector illustrations next to each milestone: a lightbulb for ideation, a handshake for seed round, a sprouting plant for growth, a building for scaling, and a flag on top for IPO. Keep the same color scheme."
}
],
"stream": false
}'