算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
ai-nft-collection【设计与创意】Generate NFT collection artwork using each::sense AI. Create profile picture (PFP) collections, generative trait-based characters, 1-of-1 art pieces, and themed collection series with consistent styles. Use for: NFT collections, PFP projects, digital collectibles, generative art series, trait-based characters. Triggers: NFT collection, PFP, profile p…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Generate NFT collection artwork and digital collectibles 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 NFT profile picture of a cyberpunk ape wearing neon-rimmed sunglasses and a leather jacket, circuit board patterns on the skin, glowing teal eyes, dark urban background with holographic signs, PFP style, square format, vibrant 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": "Generate an NFT profile picture of a cyberpunk ape wearing neon-rimmed sunglasses and a leather jacket, circuit board patterns on the skin, glowing teal eyes, dark urban background with holographic signs, PFP style, square format, vibrant digital art"
}]
)
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": "Create a new NFT character in the same art style as this reference: maintain the line weight, color palette, and shading approach, but create a completely new character with different traits — a fox with steampunk goggles and a top hat, same square PFP format"},
{"type": "image_url", "image_url": {"url": "https://example.com/collection-reference.png"}}
]
}
],
"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": "NFT PFP of a cartoon robot head with a friendly expression, antenna with a small star on top, pastel pink metallic body, wearing a tiny crown, soft gradient lavender background, clean vector art style, square format, collectible character design"
}
],
"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 1-of-1 NFT art piece: a surreal floating island with an ancient temple at the peak, waterfalls cascading into clouds below, bioluminescent plants glowing in twilight, a massive crescent moon behind, epic fantasy digital painting, highly detailed, rich colors, cinematic composition"
}
],
"stream": false
}'
# Generate trait variations for an NFT collection
TRAITS=(
"NFT PFP of a samurai cat with a red headband, golden armor, cherry blossom background, anime style, square format"
"NFT PFP of a samurai cat with an eye patch, silver armor, bamboo forest background, anime style, square format"
"NFT PFP of a samurai cat with a straw hat, bronze armor, sunset mountain background, anime style, square format"
"NFT PFP of a samurai cat with demon horns, obsidian armor, lightning storm background, anime style, square format, legendary rarity"
)
for TRAIT in "${TRAITS[@]}"; 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\": \"$TRAIT\"}],
\"stream\": false
}"
echo "---"
done