算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
ai-generative-art【设计与创意】Generate algorithmic and generative art pieces using each::sense AI. Create mathematical art, fractal compositions, procedural patterns, data-driven visualizations, and code-inspired abstract works. Use for: generative art, algorithmic art, fractal art, mathematical visualization, procedural art, creative coding visuals. Triggers: generative art, alg…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Create algorithmic and generative art pieces 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 generative art piece: thousands of tiny colored particles flowing along invisible magnetic field lines, forming an organic spiral pattern, particles transition from deep crimson to bright gold along the flow path, dark background, mathematical beauty, high resolution digital art"
}
],
"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 generative art piece: thousands of tiny colored particles flowing along invisible magnetic field lines, forming an organic spiral pattern, particles transition from deep crimson to bright gold along the flow path, dark background, mathematical beauty, high resolution digital art"
}]
)
print(response.choices[0].message.content)
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 fractal art piece: a Mandelbrot-inspired deep zoom showing intricate spiraling patterns, electric blue and violet color palette with bright white hot spots at the deepest zoom levels, infinite complexity, mathematical beauty, ultra-detailed digital rendering"
}
],
"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 generative flow field artwork: hundreds of curved lines following Perlin noise patterns across the canvas, varying line thickness based on velocity, gradient from ocean blue at the edges to warm coral at the center, white canvas background, elegant and organic, creative coding aesthetic"
}
],
"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 Voronoi tessellation artwork: irregular polygonal cells covering the canvas, each cell filled with a unique color from a sunset palette of orange, pink, purple, and deep blue, thin white cell boundaries, some cells contain smaller nested Voronoi patterns creating depth, generative art 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 recursive geometric generative art piece: a large triangle subdivided into smaller triangles, each subdivision rotated slightly and filled with progressively warmer colors from cool teal at the outer edges to fiery orange at the center, Sierpinski triangle inspired, clean vector aesthetic, black background"
}
],
"stream": false
}'