AI Diagram Generator
Generate clear, informative educational diagrams and flowcharts using each::sense — the intelligent AI agent that automatically selects the best model for your request.
Quick Start
Requires an each::labs API key. Get one at eachlabs.ai.
Using curl
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 clean educational diagram showing the water cycle: evaporation from ocean, condensation forming clouds, precipitation as rain, collection in rivers and lakes flowing back to the ocean, arrows connecting each stage, labeled steps, blue and white color scheme, infographic style"
}
],
"stream": false
}'
Using Python (OpenAI SDK)
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 clean educational diagram showing the water cycle: evaporation from ocean, condensation forming clouds, precipitation as rain, collection in rivers and lakes flowing back to the ocean, arrows connecting each stage, labeled steps, blue and white color scheme, infographic style"
}]
)
print(response.choices[0].message.content)
With Reference 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" \
-d '{
"messages": [
{
"role": "user",
"content": [
{"type": "text", "text": "Based on this rough sketch, create a polished educational diagram with clean lines, consistent icons, color-coded sections, and clear directional arrows, professional infographic style"},
{"type": "image_url", "image_url": {"url": "https://example.com/rough-sketch.jpg"}}
]
}
],
"stream": false
}'
Images are sent inside messages using the OpenAI multimodal content format. Maximum 4 images per request.
Streaming
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.
Tips for Diagram Generation
- Be specific about diagram type — flowchart, mind map, Venn diagram, timeline, hierarchy, cycle diagram.
- Describe the structure — number of nodes, levels, branches, and connections.
- Specify visual style — flat design, isometric, hand-drawn, minimalist, or corporate.
- Limit text in prompts — AI-generated text labels can be unreliable. Request shapes and structure, then add labels in a design tool.
- Use color coding — specify colors for different categories or process stages.
Examples
Process Flowchart
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 software development lifecycle flowchart: rectangular boxes connected by arrows in a circular flow, six stages from requirements through design, development, testing, deployment, and maintenance, each box a different color from blue to green spectrum, clean flat design, white background, professional technical diagram"
}
],
"stream": false
}'
Biology Cell Diagram
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 detailed cross-section diagram of an animal cell showing nucleus, mitochondria, endoplasmic reticulum, Golgi apparatus, ribosomes, and cell membrane, each organelle in a distinct color, clean scientific illustration style, labeled with pointer lines, educational biology diagram"
}
],
"stream": false
}'
Timeline Infographic
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 horizontal timeline infographic showing the history of space exploration with six milestone points along a line, each with a small icon representing the event, alternating above and below the timeline, gradient from dark blue to purple background, modern flat design, space-themed"
}
],
"stream": false
}'
Mind Map
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 mind map diagram about renewable energy sources: central node branching out to solar, wind, hydro, geothermal, and biomass, each branch in a different color with sub-branches showing advantages and applications, organic flowing connections, clean white background, educational infographic style"
}
],
"stream": false
}'
Workflow: Educational Diagram Creation
- Identify the concept — What process, system, or relationship needs visualization.
- Choose diagram type — Flowchart, mind map, cycle, timeline, hierarchy, or comparison.
- Generate the visual structure — Create the layout with nodes, connections, and color coding.
- Add labels and annotations — Overlay accurate text labels in a design or presentation tool.
- Refine for audience — Adjust complexity for the target audience level.
Related Skills
Related Models
Documentation
1---2name: ai-diagram-generator3description: Generate educational diagrams and flowcharts using each::sense AI. Create process flows, mind maps, system diagrams, Venn diagrams, timelines, and organizational charts for teaching, presentations, and documentation. Use for: educational diagrams, flowcharts, process visualization, mind maps, infographics, technical diagrams. Triggers: diagram, flowchart, mind map, process flow, Venn diagram, timeline, org chart, educational diagram, chart, infographic, system diagram4---56# AI Diagram Generator78Generate clear, informative educational diagrams and flowcharts using [each::sense](https://docs.eachlabs.ai/sense/overview) — the intelligent AI agent that automatically selects the best model for your request.910## Quick Start1112> Requires an each::labs API key. Get one at [eachlabs.ai](https://eachlabs.ai).1314### Using curl1516```bash17curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \18 -H "Content-Type: application/json" \19 -H "X-API-Key: $EACHLABS_API_KEY" \20 -d '{21 "messages": [22 {23 "role": "user",24 "content": "Create a clean educational diagram showing the water cycle: evaporation from ocean, condensation forming clouds, precipitation as rain, collection in rivers and lakes flowing back to the ocean, arrows connecting each stage, labeled steps, blue and white color scheme, infographic style"25 }26 ],27 "stream": false28 }'29```3031### Using Python (OpenAI SDK)3233```python34from openai import OpenAI3536client = OpenAI(37 api_key="YOUR_EACHLABS_API_KEY",38 base_url="https://eachsense-agent.core.eachlabs.run/v1"39)4041response = client.chat.completions.create(42 model="eachsense/beta",43 messages=[{44 "role": "user",45 "content": "Create a clean educational diagram showing the water cycle: evaporation from ocean, condensation forming clouds, precipitation as rain, collection in rivers and lakes flowing back to the ocean, arrows connecting each stage, labeled steps, blue and white color scheme, infographic style"46 }]47)4849print(response.choices[0].message.content)50```5152### With Reference Image5354```bash55curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \56 -H "Content-Type: application/json" \57 -H "X-API-Key: $EACHLABS_API_KEY" \58 -d '{59 "messages": [60 {61 "role": "user",62 "content": [63 {"type": "text", "text": "Based on this rough sketch, create a polished educational diagram with clean lines, consistent icons, color-coded sections, and clear directional arrows, professional infographic style"},64 {"type": "image_url", "image_url": {"url": "https://example.com/rough-sketch.jpg"}}65 ]66 }67 ],68 "stream": false69 }'70```7172> Images are sent inside messages using the OpenAI multimodal content format. Maximum 4 images per request.7374### Streaming7576Set `"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.7778## Tips for Diagram Generation7980- **Be specific about diagram type** — flowchart, mind map, Venn diagram, timeline, hierarchy, cycle diagram.81- **Describe the structure** — number of nodes, levels, branches, and connections.82- **Specify visual style** — flat design, isometric, hand-drawn, minimalist, or corporate.83- **Limit text in prompts** — AI-generated text labels can be unreliable. Request shapes and structure, then add labels in a design tool.84- **Use color coding** — specify colors for different categories or process stages.8586## Examples8788### Process Flowchart8990```bash91curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \92 -H "Content-Type: application/json" \93 -H "X-API-Key: $EACHLABS_API_KEY" \94 -d '{95 "messages": [96 {97 "role": "user",98 "content": "A software development lifecycle flowchart: rectangular boxes connected by arrows in a circular flow, six stages from requirements through design, development, testing, deployment, and maintenance, each box a different color from blue to green spectrum, clean flat design, white background, professional technical diagram"99 }100 ],101 "stream": false102 }'103```104105### Biology Cell Diagram106107```bash108curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \109 -H "Content-Type: application/json" \110 -H "X-API-Key: $EACHLABS_API_KEY" \111 -d '{112 "messages": [113 {114 "role": "user",115 "content": "A detailed cross-section diagram of an animal cell showing nucleus, mitochondria, endoplasmic reticulum, Golgi apparatus, ribosomes, and cell membrane, each organelle in a distinct color, clean scientific illustration style, labeled with pointer lines, educational biology diagram"116 }117 ],118 "stream": false119 }'120```121122### Timeline Infographic123124```bash125curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \126 -H "Content-Type: application/json" \127 -H "X-API-Key: $EACHLABS_API_KEY" \128 -d '{129 "messages": [130 {131 "role": "user",132 "content": "A horizontal timeline infographic showing the history of space exploration with six milestone points along a line, each with a small icon representing the event, alternating above and below the timeline, gradient from dark blue to purple background, modern flat design, space-themed"133 }134 ],135 "stream": false136 }'137```138139### Mind Map140141```bash142curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \143 -H "Content-Type: application/json" \144 -H "X-API-Key: $EACHLABS_API_KEY" \145 -d '{146 "messages": [147 {148 "role": "user",149 "content": "A mind map diagram about renewable energy sources: central node branching out to solar, wind, hydro, geothermal, and biomass, each branch in a different color with sub-branches showing advantages and applications, organic flowing connections, clean white background, educational infographic style"150 }151 ],152 "stream": false153 }'154```155156## Workflow: Educational Diagram Creation1571581. **Identify the concept** — What process, system, or relationship needs visualization.1592. **Choose diagram type** — Flowchart, mind map, cycle, timeline, hierarchy, or comparison.1603. **Generate the visual structure** — Create the layout with nodes, connections, and color coding.1614. **Add labels and annotations** — Overlay accurate text labels in a design or presentation tool.1625. **Refine for audience** — Adjust complexity for the target audience level.163164## Related Skills165166- [AI Flashcard Generator](../ai-flashcard-generator/SKILL.md) — Visual flashcards for learning167- [AI Illustration](../ai-illustration/SKILL.md) — Custom educational illustrations168- [AI Educational Video](../ai-educational-video/SKILL.md) — Animated educational content169- [Text to Image](../../image/text-to-image/SKILL.md) — General-purpose image generation170171## Related Models172173- [flux-2-max](../../../models/flux-2-max/SKILL.md) — Detailed, precise visual outputs174- [seedream-v4-5](../../../models/seedream-v4-5/SKILL.md) — Clean illustrative styles175- [nano-banana-pro](../../../models/nano-banana-pro/SKILL.md) — Quick concept drafts176177## Documentation178179- [each::sense Overview](https://docs.eachlabs.ai/sense/overview)180- [each::labs API](https://docs.eachlabs.ai)