算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
ai-flashcard-generator【设计与创意】Generate visual flashcards for learning using each::sense AI. Create illustrated study cards for vocabulary, science concepts, history, anatomy, geography, and more. Produce engaging visual mnemonics and pictorial study aids. Use for: flashcards, study cards, visual learning, vocabulary cards, memory aids, educational cards, revision materials. Trigg…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Generate visually engaging flashcards and study aids for learning 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": "Create a visual flashcard illustration for learning the Spanish word casa (house): a charming colorful cottage with a red tile roof, flower boxes in the windows, a small garden path, warm inviting illustration style, simple and memorable, clean white border like a card"
}
],
"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": "Create a visual flashcard illustration for learning the Spanish word casa (house): a charming colorful cottage with a red tile roof, flower boxes in the windows, a small garden path, warm inviting illustration style, simple and memorable, clean white border like a card"
}]
)
print(response.choices[0].message.content)
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 medical flashcard illustration of the human heart: a clean anatomical diagram showing four chambers, major arteries and veins in red and blue, labeled sections, educational medical illustration style, white background, clear and detailed"
}
],
"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 flashcard illustration of Mount Fuji for a geography study set: the iconic symmetrical volcanic cone with snow cap reflected in Lake Kawaguchi, cherry blossoms in the foreground, clean illustrative style, vibrant but simple, card format with white border"
}
],
"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 flashcard illustration for a chemistry study set showing the water molecule H2O: a 3D ball-and-stick model with a large red oxygen atom bonded to two smaller white hydrogen atoms at 104.5 degree angle, clean scientific illustration, soft gradient background, educational"
}
],
"stream": false
}'
# Generate a set of vocabulary flashcard illustrations
WORDS=(
"A flashcard illustration of a lighthouse on a rocky cliff at sunset, dramatic waves crashing below, nautical illustration style, card format"
"A flashcard illustration of a violin with a bow resting across it on a velvet surface, warm light, musical instrument study card, clean illustration"
"A flashcard illustration of a telescope pointed at a starry night sky, observatory dome in background, astronomy study card, educational illustration"
)
for WORD in "${WORDS[@]}"; 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\": \"$WORD\"}],
\"stream\": false
}"
echo "---"
done