算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
ai-illustration【设计与创意】Generate custom illustrations for textbooks, articles, and educational materials using each::sense AI. Create scientific illustrations, technical drawings, conceptual art, book illustrations, and editorial visuals in various artistic styles. Use for: textbook illustrations, article graphics, scientific illustrations, editorial art, book illustrations…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Generate custom illustrations for textbooks, articles, and educational content 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 detailed botanical illustration of a sunflower showing the full plant from roots to flower head, with a cross-section of the stem and a magnified view of the seed arrangement in the center disc, scientific illustration style, fine line work, subtle watercolor coloring, white background"
}
],
"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 detailed botanical illustration of a sunflower showing the full plant from roots to flower head, with a cross-section of the stem and a magnified view of the seed arrangement in the center disc, scientific illustration style, fine line work, subtle watercolor coloring, white background"
}]
)
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 an editorial illustration inspired by the style and subject of this reference image, adapt it for a magazine article, add more detail and depth, maintain the color palette, professional editorial illustration quality"},
{"type": "image_url", "image_url": {"url": "https://example.com/style-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 scientific illustration of a jellyfish for a marine biology textbook: a moon jellyfish with translucent bell and trailing tentacles, showing internal radial canals and gonads visible through the transparent body, precise anatomical detail, colored pencil and ink scientific illustration style, off-white background"
}
],
"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 whimsical children's book illustration of a fox and a rabbit reading a book together under an old oak tree, autumn leaves falling around them, warm golden afternoon light, soft watercolor style with visible brushstrokes, gentle and inviting, storybook quality"
}
],
"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 editorial illustration for a New Yorker style article about remote work: a person sitting in a home office that morphs into a tropical beach on one side and a snowy mountain cabin on the other, surreal concept art, sophisticated limited color palette of teal and coral, flat graphic 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": "A technical cutaway illustration of a mechanical watch movement showing gears, mainspring, balance wheel, and escapement mechanism, exploded view with parts slightly separated to show assembly, precise mechanical drawing style, steel grey and brass tones, white background"
}
],
"stream": false
}'