算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
ai-3d-model-generator【设计与创意】Generate 3D models from text or images using each::sense AI. Create 3D objects, characters, environments, and product models from descriptions or reference photos. Supports mesh generation for games, product visualization, architectural models, and 3D printing. Use for: 3D asset creation, product 3D models, game 3D assets, prototyping, 3D printing mo…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Generate 3D models from text descriptions or reference images 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 3D model of a medieval treasure chest: wooden planks with iron bands, a heavy padlock on the front latch, slightly worn and aged appearance, ornate iron corner reinforcements. Isometric 3D render on a neutral grey background, game-ready asset quality."
}
],
"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 3D model of a medieval treasure chest: wooden planks with iron bands, a heavy padlock on the front latch, slightly worn and aged appearance, ornate iron corner reinforcements. Isometric 3D render on a neutral grey background, game-ready asset quality."
}]
)
print(response.choices[0].message.content)
Provide a photo or sketch to generate the 3D model from:
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 3D model based on this reference image. Recreate the object as a clean 3D render from a three-quarter view angle, maintaining the proportions, colors, and details. Neutral studio background, soft lighting."},
{"type": "image_url", "image_url": {"url": "https://example.com/reference-object.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.
| Domain | Examples |
|---|---|
| Gaming | props, weapons, vehicles, characters, environment pieces |
| E-commerce | product 3D previews, configurators, AR try-on |
| Architecture | building models, furniture, fixtures |
| 3D Printing | figurines, prototypes, replacement parts |
| Education | anatomical models, molecular structures, historical artifacts |
| Film/VFX | pre-visualization, CG assets, matte painting elements |
"Generate a 3D model of [object]:" + [shape and proportions] + [materials and colors] + [surface details] + [render style] + [camera angle] + [background]
brushed steel, polished wood, matte plastic, rough stone,
translucent glass, worn leather, oxidized copper, frosted ice,
glossy ceramic, weathered concrete, carbon fiber
3D render, isometric view, three-quarter angle,
Blender render, octane render, clay render (no texture),
wireframe overlay, turntable view, studio lighting
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 3D model of a fantasy war hammer: a massive stone head with glowing blue rune carvings, a thick leather-wrapped oak handle, and a spiked pommel. Stylized low-poly game art style, three-quarter view, dramatic rim lighting, dark background, game-ready 3D asset."
}
],
"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 3D model of a modern desk lamp: a thin adjustable arm in matte black metal, a cone-shaped shade, a weighted circular base, and a visible fabric-covered power cord. Photorealistic 3D render, studio product photography lighting, clean white background, commercial 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": "Generate a 3D model of a modern minimalist house: flat roof, floor-to-ceiling glass walls on the front facade, white concrete exterior, a cantilevered upper floor, a small reflecting pool at the entrance, and surrounding landscaped garden. Architectural 3D rendering, isometric aerial view, daytime with soft shadows, clean neutral 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": "Generate a 3D model of a tabletop miniature: a dwarven warrior holding an axe and shield, beard braided, heavy plate armor, standing on a small round base. Grey clay render style showing surface detail without color, three-quarter view, suitable for 3D printing, clean background."
}
],
"stream": false
}'
OBJECT="a sci-fi hover bike with sleek chrome body, blue thruster glow, and a leather seat"
ANGLES=(
"front view, straight-on"
"three-quarter view from the left side"
"side profile, left-facing"
"rear three-quarter view"
"top-down orthographic view"
)
for ANGLE in "${ANGLES[@]}"; do
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 3D render of $OBJECT. Camera angle: $ANGLE. Photorealistic render, studio lighting, neutral grey background.\"}],
\"stream\": false
}"
echo "---"
done