算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
ai-pattern-generator【设计与创意】Generate seamless tileable patterns using each::sense AI. Create repeating designs for textiles, wallpapers, packaging, web backgrounds, and surface design in any style from floral to geometric, abstract to vintage. Supports fabric-ready, print-ready, and digital-ready patterns. Use for: textile design, fabric patterns, wrapping paper, web background…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Generate seamless tileable patterns for textiles, surfaces, and digital backgrounds 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": "Generate a seamless tileable pattern of tropical monstera leaves and palm fronds on a deep navy background. Botanical illustration style, green and emerald tones, repeating pattern suitable for fabric printing."
}
],
"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": "Generate a seamless tileable pattern of tropical monstera leaves and palm fronds on a deep navy background. Botanical illustration style, green and emerald tones, repeating pattern suitable for fabric printing."
}]
)
print(response.choices[0].message.content)
Use a reference pattern or style 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": "Create a seamless tileable pattern inspired by this design style but with a different motif: use small wildflowers and herbs instead. Keep the same color palette and density. Repeating tile format."},
{"type": "image_url", "image_url": {"url": "https://example.com/reference-pattern.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 Server-Sent Events (SSE) responses, or "stream": false to receive the complete result in a single response. Streaming is useful for showing progress in UIs; non-streaming is simpler for scripts and automation.
| Category | Subjects | Applications |
|---|---|---|
| Floral | Roses, wildflowers, tropical flowers | Fabric, wallpaper, stationery |
| Botanical | Leaves, ferns, eucalyptus, herbs | Home decor, wrapping paper |
| Geometric | Hexagons, triangles, chevrons, diamonds | Modern textiles, tiles, tech |
| Abstract | Organic blobs, brush strokes, splatters | Fashion, backgrounds |
| Animal | Leopard print, zebra, scales, feathers | Fashion, accessories |
| Art Deco | Fan shapes, zigzags, gold accents | Luxury packaging, invitations |
| Terrazzo | Stone chips, speckles, confetti | Stationery, surfaces |
| Toile | Scenic illustrations, pastoral | Traditional home decor |
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": "Seamless tileable pattern in mid-century modern style. Atomic age starbursts, boomerang shapes, and organic ovals. Mustard yellow, teal, burnt orange, and cream on a warm white background. Clean vector style, repeating tile."
}
],
"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": "Seamless tileable pattern for luxury gift wrapping paper. Art Deco style with golden fan shapes, geometric lines, and small diamond accents. Gold on a deep midnight blue background. Elegant, sophisticated, repeating tile format."
}
],
"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": "Seamless tileable pattern for children's fabric. Cute hand-drawn dinosaurs in pastel colors — mint green, soft pink, lavender, and peach. Small stars and leaves scattered between the dinosaurs. White background, playful illustration style, repeating tile."
}
],
"stream": false
}'
| Application | Pattern Density | Motif Size |
|---|---|---|
| Dress Fabric | Medium density | Small to medium motifs |
| Upholstery | Large scale | Big motifs, bold |
| Stationery | Fine, delicate | Tiny repeated elements |
| Web Background | Subtle, low contrast | Small, non-distracting |
| Wrapping Paper | Medium density | Medium motifs |
| Tile/Flooring | Structured grid | Geometric, precise |