算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
ai-qr-code-generator【设计与创意】Generate artistic AI QR codes that remain scannable using each::sense AI. Create QR codes integrated into beautiful artwork, landscapes, abstract designs, and brand visuals while maintaining scan functionality. Supports various artistic styles and branding integration. Use for: marketing materials, business cards, restaurant menus, event tickets, bra…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Generate artistic QR codes that remain scannable 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 an artistic QR code for the URL https://eachlabs.ai. Style: a Japanese zen garden with raked sand patterns, cherry blossom trees, and a small koi pond. The QR code pattern should be integrated into the garden layout. Must remain scannable."
}
],
"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 an artistic QR code for the URL https://eachlabs.ai. Style: a Japanese zen garden with raked sand patterns, cherry blossom trees, and a small koi pond. The QR code pattern should be integrated into the garden layout. Must remain scannable."
}]
)
print(response.choices[0].message.content)
Use a brand image or style reference for the QR code design:
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": "Generate a scannable QR code for https://eachlabs.ai using this image as the artistic style reference. Integrate the QR pattern into the visual design while keeping it functional."},
{"type": "image_url", "image_url": {"url": "https://example.com/brand-artwork.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.
| Style | Description | Best For |
|---|---|---|
| Nature Landscape | Mountains, forests, gardens | Tourism, wellness, outdoors |
| Urban/Architecture | City skyline, buildings, streets | Real estate, urban brands |
| Abstract Geometric | Patterns, fractals, shapes | Tech companies, modern brands |
| Watercolor/Painterly | Soft brushstrokes, organic flow | Art galleries, creative studios |
| Cyberpunk/Neon | Glowing lines, circuit patterns | Tech events, gaming |
| Food/Culinary | Ingredients, dishes, kitchen | Restaurants, food delivery |
| Floral | Flowers, botanical illustrations | Weddings, beauty, fashion |
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 scannable artistic QR code for https://menu.example.com. Style: warm coffee-themed artwork with latte art swirls, coffee beans, and steam rising from a cup. Earthy brown and cream color palette. The QR pattern should blend into the coffee imagery."
}
],
"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": "Generate a scannable QR code for https://event.example.com. Style: cyberpunk circuit board design with glowing blue and purple neon traces, microchip patterns, and digital particles. Dark background with luminous QR code integration."
}
],
"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": "Generate an elegant scannable QR code for https://rsvp.example.com. Style: romantic floral design with white roses, peonies, and delicate gold leaf accents. Soft blush pink and ivory palette. The QR code should be woven into the botanical illustration."
}
],
"stream": false
}'
Generate a scannable artistic QR code for [URL].
Style: [art theme/description].
Color palette: [colors].
The QR code should [integration description].
Must remain scannable.