Using Voxel Generator in your workflow
Sorceress brings this custom workflow into a shared API catalog. Select this model explicitly, check its supported inputs, and keep your API key on your server. Model capabilities differ; the schema and options on this page describe this entry rather than every model from the same brand.
- Create voxel assets for game prototypes.
- Use the documented export format to bring the result into your project.
Pricing and availability
Mesh model cost + 5 credits for voxelization (35 for a default image-to-voxel). Voxelizing your own mesh via modelUrl costs only 5. Charged in credits only on success.. Successful work is billed in Sorceress credits. Defaults and optional inputs can affect the total.
Inputs and supported options
promptstring · optionalText description for text→voxel, e.g. "a wooden treasure chest with iron bands". Detail below roughly one voxel is lost, so describe bold shapes and colours rather than fine surface texture.
imageUrlstring · optionalhttps image URL for image→voxel — usually the better result. Generate a reference with image_generate first (a single object, plain background), then pass its URL here.
modelUrlstring · optionalhttps URL of an existing .glb to voxelize instead of generating a new mesh — e.g. the mesh from model_generate. Skips the model fee, so the call costs only 5 credits.
resolutionnumber · optionalVoxels along the model's longest axis, 8–128 (default 64). 16–32 reads as chunky retro blocks; 64 keeps recognisable detail; 128 is near-sculptural and much heavier.
voxelSizeMetersnumber · optionalEdge length of one voxel in the exported GLB (default 0.05). This sets the model's real-world size: resolution 64 at 0.05 gives a ~3.2 m object. Set it here rather than scaling the GLB after loading.
paletteSizenumber · optionalMaximum distinct colours (default 256). Lower values give a flatter, more stylised look.
symmetricalboolean · optionalMirror the model across its X axis. Useful for characters and vehicles, where an asymmetric source mesh reads as a mistake.
hollowboolean · optionalDrop fully enclosed interior voxels. Smaller files; only do this if nothing will ever cut the model open.
namestring · optionalName for the model, used for the output filenames and the entry in the Voxel Studio gallery.
modelstring · optionalMesh model used before voxelization. One of: hunyuan3d-3.1, tripo-v3.1, meshy-6, meshy-7. Defaults to hunyuan3d-3.1 for images and meshy-6 for text. The grid discards fine geometry, so the default is usually the right spend.
paramsobject · optionalOptions passed through to the mesh model (see model_generate). Rarely needed — most of what they tune is quantized away.
API request template
Replace placeholders and choose valid values from the input contract.
POST /api/v1/tools/voxel_generate
Authorization: Bearer $SORCERESS_API_KEY
Content-Type: application/json
{}Completion, results and billing
Save the job identifier returned by asynchronous requests and poll the jobs endpoint until the job succeeds or fails. Do not resubmit a generation just because it is still processing. Chat returns a completed reply and usage details. A multi-step workflow can include separately billed successful steps even if a later step fails. Keep returned asset links with your project, and consult each action for its output format.
Coding agents can discover the current catalog and input requirements from the Sorceress agent instructions. Use a Sorceress key; provider credentials stay on the server.
