/ai-3d-foundry:hunyuan3dfrom ai-3d-foundry
Generates 3D models from images using Tencent's Hunyuan3D-2.1 via Hugging Face Gradio API. Supports single-image and multi-view input, geometry-only or textured output, and GLB/OBJ/PLY/STL export.
Ships in ai-3d-foundry. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Generate 3D models from images using Tencent's Hunyuan3D-2.1 hosted on Hugging Face Spaces. Supports geometry-only and fully textured output with export to multiple 3D formats.
Ensure gradio_client is installed:
python -m pip install gradio_client
To generate a 3D model from an image, run the bundled script:
# Geometry + Texture (default)
python scripts/hunyuan3d_generate.py --image <path-to-image> --mode full --output ./output/
# Geometry only (faster)
python scripts/hunyuan3d_generate.py --image <path-to-image> --mode shape --output ./output/
When multiple views of the subject are available, provide them for higher quality:
python scripts/hunyuan3d_generate.py \
--front front.png --back back.png --left left.png --right right.png \
--mode full --output ./output/
| Goal | Flags |
|---|---|
| Quick draft / iteration | --steps 10 --resolution 128 |
| Balanced (default) | --steps 30 --resolution 256 |
| High quality | --steps 50 --resolution 384 |
To specify the output format, use --export-format:
python scripts/hunyuan3d_generate.py --image photo.png --mode full --export-format obj
Supported formats: glb (default), obj, ply, stl.
To include texture in the export, add --export-texture. To simplify the mesh, add --simplify --target-faces 10000.
If the hosted Space requires authentication, set HF_TOKEN in the execution
environment. Do not place a token in a prompt, source file, command history,
or a committed configuration file.
The generation script is at scripts/hunyuan3d_generate.py. Key arguments:
| Argument | Default | Description |
|---|---|---|
--image | None | Single input image path |
--front/back/left/right | None | Multi-view image paths |
--mode | full | shape (geometry) or full (geometry + texture) |
--steps | 30 | Inference steps (10=Turbo, 20=Fast, 30=Standard) |
--guidance-scale | 5.0 | Guidance scale for generation |
--seed | 1234 | Random seed |
--resolution | 256 | Octree resolution (128=Low, 256=Standard, 384=High) |
--rembg / --no-rembg | True | Remove image background before generation |
--num-chunks | 8000 | Number of processing chunks |
--export-format | glb | Output format: glb, obj, ply, stl |
--simplify | False | Reduce mesh face count |
--export-texture | False | Include texture in exported file |
--target-faces | 10000 | Target face count when simplifying |
--output | None | Directory to copy final output to |
When integrating into other Python code or needing finer control, use gradio_client directly. Refer to references/api_reference.md for the full API endpoint documentation including parameter types, defaults, and return values.
from gradio_client import Client, handle_file
client = Client("tencent/Hunyuan3D-2.1")
# Generate with texture
result = client.predict(
image=handle_file("photo.png"),
steps=30,
guidance_scale=5,
seed=1234,
octree_resolution=256,
check_box_rembg=True,
num_chunks=8000,
randomize_seed=True,
api_name="/generation_all",
)
shape_file, textured_file, html, mesh_stats, seed_used = result
--rembg) is enabled by default and recommended for most inputs.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/alpha-scene-genGenerates AI 3D models through the Alpha3D MCP connector and imports them directly into the user's currently open Blender scene, scaled and placed to build out a described environment, prop set, or character roster. Use this skill whenever the user wants to populate, build, dress, furnish, or fill a Blender scene with new 3D assets; describes a level, room, environment, or list of props/characters they want created directly in their open .blend file; asks to "generate this into Blender", "add these models to my scene", "drop my existing Alpha3D models into this scene", or "build me a village/room/set in Blender"; or wants AI-generated meshes (or models already in their Alpha3D library) automatically downloaded, scaled, grounded, and positioned in Blender without manually exporting and importing each one by hand. Trigger this even if the user doesn't say "Alpha3D" or "MCP" by name and just describes what they want their scene to contain. Requires BOTH the Alpha3D MCP connector (generate_3d, get_job, etc.) and a Blender code-execution MCP connector (e.g. the BlenderMCP add-on's execute_blender_code tool) to be connected. If either is missing, this skill still triggers so it can walk the user through connecting it, rather than failing with a confusing error.
/blender-superskillGuide Blender MCP asset modeling through disciplined reference-first construction, viewport inspection, critique, iteration, reusable modeling patterns, and optional scripted orchestration. Use when Codex is asked to create, modify, critique, or learn Blender assets, including buildings, props, hard-surface objects, low-poly objects, industrial assets, roofs, pylons, cables, panels, modular kits, scene cleanup, collection organization, reference-image modeling, or Blender workflow notes.npx claudepluginhub furkantokkan/agent-foundry --plugin ai-3d-foundryOther plugins' skills for the same job