From 3d-ai-studio-api
Interact with 3D AI Studio API from agents. Use when starting 3D generation jobs, polling job status, or fetching results. Supports miniature flow, 3D object generation, and lithophane/customization workflows. Authenticates via Bearer token from env. Scope v1 includes job creation, status polling, and result retrieval.
How this skill is triggered — by the user, by Claude, or both
Slash command
/3d-ai-studio-api:3d-ai-studio-apiThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Integrate 3D AI Studio API calls into your workflows. This skill provides authenticated access to job creation, status polling, and result fetching.
Integrate 3D AI Studio API calls into your workflows. This skill provides authenticated access to job creation, status polling, and result fetching.
Set your API key in .env:
3D_AI_STUDIO_API_KEY=your_bearer_token_here
The skill reads this key automatically.
1. Start a miniature generation job
python scripts/3d_api_client.py start-miniature \
--description "A golden retriever statue, 10cm tall" \
--style "realistic" \
--output-format gltf
2. Poll job status
python scripts/3d_api_client.py status --job-id abc-123-def
3. Fetch results
python scripts/3d_api_client.py fetch-result --job-id abc-123-def --output-dir ./results
The skill uses Bearer token authentication from the environment variable 3D_AI_STUDIO_API_KEY.
Authorization: Bearer <token> header.env.env and restart sessions that cached the old valuePOST /api/v1/miniature)Create a 3D miniature from a text description.
Script command:
python scripts/3d_ai_studio_client.py start-miniature \
--description "..." \
[--style realistic|stylized|cartoon] \
[--size 5|10|15|20] \
[--output-format gltf|obj|stl]
Response: Job ID for polling.
POST /api/v1/generate)Generic 3D object generation (used for non-miniature items, lithophanes, etc.).
Script command:
python scripts/3d_ai_studio_client.py start-generation \
--prompt "..." \
[--model default|detailed|fast] \
[--output-format gltf|obj|stl]
Response: Job ID for polling.
GET /api/v1/status/:job_id)Poll the status of a running or completed job.
Script command:
python scripts/3d_ai_studio_client.py status --job-id <job_id>
Response: Status (pending|processing|completed|failed), progress (0–100), and result URLs (when complete).
GET /api/v1/result/:job_id)Download the generated 3D file(s).
Script command:
python scripts/3d_ai_studio_client.py fetch-result \
--job-id <job_id> \
[--output-dir ./results]
Response: Local file paths of downloaded models.
# Start the job
JOB_ID=$(python scripts/3d_ai_studio_client.py start-miniature \
--description "A sleeping cat, ceramic style, 7cm tall" | grep -oP '"job_id":"?\K[^"]+')
# Poll until complete (max 10 attempts, 5s between)
for i in {1..10}; do
STATUS=$(python scripts/3d_ai_studio_client.py status --job-id $JOB_ID)
echo "Attempt $i: $STATUS"
[[ $STATUS == *"completed"* ]] && break
sleep 5
done
# Fetch results
python scripts/3d_ai_studio_client.py fetch-result --job-id $JOB_ID --output-dir ./miniatures
For multiple items, use a simple loop or distribute across parallel jobs:
for desc in "Golden Retriever" "Tabby Cat" "Parrot"; do
JOB_ID=$(python scripts/3d_ai_studio_client.py start-miniature --description "$desc")
echo "$desc: $JOB_ID" >> jobs.txt
done
# Later, check status and fetch all
while IFS=': ' read -r NAME JID; do
python scripts/3d_ai_studio_client.py fetch-result --job-id $JID --output-dir "./results/$NAME"
done < jobs.txt
API Authentication Failures
.env and retry.Job Failures
failed with an error message.Network Timeouts
--timeout <seconds> in any command.See references/api_reference.md for:
See references/examples.md for:
3D_AI_STUDIO_API_URL env var (falls back to defaults if not set)3D_AI_STUDIO_API_KEY (can be overridden with --api-key flag).env — use .gitignore to exclude it.env and restart sessionsCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub lunathiago/cowork-3d-ai-studio-marketplace --plugin 3d-ai-studio-api