算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
ai-landscape-design【设计与创意】Generate landscape and garden design visualizations using each::sense AI. Create residential garden plans, public park designs, commercial landscaping, rooftop gardens, and outdoor living spaces with realistic plants, hardscaping, and lighting. Use for: landscape design, garden visualization, outdoor spaces, park design, hardscaping plans. Triggers: …
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Generate landscape and garden design visualizations 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": "A landscape design visualization for a modern residential backyard: a rectangular lap pool with blue mosaic tiles, surrounded by a timber deck, ornamental grasses and lavender plantings along the borders, a pergola with climbing jasmine over a dining area, string lights, warm evening atmosphere, photorealistic landscape architecture render"
}
],
"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": "A landscape design visualization for a modern residential backyard: a rectangular lap pool with blue mosaic tiles, surrounded by a timber deck, ornamental grasses and lavender plantings along the borders, a pergola with climbing jasmine over a dining area, string lights, warm evening atmosphere, photorealistic landscape architecture render"
}]
)
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": "Redesign this existing backyard space: replace the lawn with drought-tolerant native plantings, add a gravel pathway with stepping stones, include a fire pit seating area, maintain the existing mature tree, add low-voltage landscape lighting, photorealistic landscape design render"},
{"type": "image_url", "image_url": {"url": "https://example.com/current-backyard.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 Japanese zen garden landscape design: raked white gravel forming concentric circles around three carefully placed natural boulders, a single pruned black pine, a tsukubai stone water basin, moss-covered stepping stones leading to a simple wooden gate, bamboo fence boundary, tranquil and meditative atmosphere, soft overcast light, landscape architecture visualization"
}
],
"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 aerial view landscape design for a public urban park: a central oval lawn surrounded by curving walking paths, clusters of deciduous trees providing shade, a children's playground area, a small amphitheater with terraced seating, a community garden section, bike paths connecting to city streets, summer afternoon light, landscape master plan render"
}
],
"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 rooftop garden design for a modern apartment building: raised planter beds with herbs and vegetables, a sedum green roof section, a lounge area with weather-resistant outdoor sofas, a wooden pergola with shade sails, city skyline visible in the background, golden hour warm light, urban landscape design visualization"
}
],
"stream": false
}'