3D Generation API (BETA)
Generate 3D models from images or text, then remesh, rig, and animate them for use in your game.
Quick Start
import RundotGameAPI from '@series-inc/rundot-game-sdk/api'
const result = await RundotGameAPI.threeDGen.generate({
provider: 'hunyuan3d-v3.1-pro',
mode: 'image-to-3d',
imageUrl: 'https://cdn.example.com/character-front.png',
quality: 'standard',
})
console.log(result.modelUrl) // GLB model URL (Draco + WebP compressed)
console.log(result.rawModelUrl) // Uncompressed GLB (optional)Pipeline Architecture
The 3D generation system uses two provider layers:
Generate
pixal3d, hunyuan3d-v3.1-pro, trellis-2, meshy, tripo-v2.5, rodin-v2.5
fal.ai
Create base 3D model from image or text
Post-process
Meshy
fal.ai
Remesh, rig, and animate existing models
The generate() call creates a raw 3D model. The remesh() → rig() → animate() pipeline uses Meshy's proprietary rigging and animation system to make the model game-ready.
Providers
hunyuan3d-v3.1-pro
image-to-3d, text-to-3d
High-quality PBR models, multi-view input support
pixal3d
image-to-3d
Fast single-image generation with PBR materials
trellis-2
image-to-3d
Lightweight models, fastest generation
meshy
image-to-3d, text-to-3d
Meshy 6 — texture and PBR support
tripo-v2.5
image-to-3d, text-to-3d
Fast mid-tier generation with texture tiers (standard/HD) and face limits
rodin-v2.5
image-to-3d, text-to-3d
Hyper3D Rodin Gen-2.5 — extreme low/high tiers, multi-view (up to 5 images), TAPose
Image-to-3D
Generate a 3D model from one or more reference images.
Using Files SDK Keys
You can use a Files SDK key as the source image instead of a URL:
imageFileKeyresolves the file from your app's Files storage and uploads it to the generation provider. The file must be an image (JPEG, PNG, GIF, or WebP) under 10MB. If the file key doesn't exist, the call fails withTHREE_D_GEN_IMAGE_FETCH_FAILED. If the file isn't a supported image type, it fails withTHREE_D_GEN_INVALID_PARAMS.
Text-to-3D
Generate a 3D model from a text description (Hunyuan, Meshy, and Tripo).
Quality Presets
draft
Fastest
Lower poly, fewer textures
Prototyping, previews
standard
Moderate
Balanced quality
Most game assets
high
Slowest
Maximum detail, high-res textures
Hero characters, key props
You can override specific provider parameters with providerOptions:
Remesh (Deprecated)
[!WARNING] Deprecation Notice: The standalone remesh endpoint is deprecated following the retirement of
fal-ai/meshy/v5/remeshby fal.ai.
For new generations: Specify
target_polycount(or provider decimation options) directly at generation time viagenerate()withprovider: 'meshy'.For existing models: Use
retopo()(Hunyuan Smart Topology), which produces clean, game-ready quad or triangle topology.The platform automatically routes legacy
remesh()calls to Smart Topology retopology to ensure backward compatibility.
Optimize a model's topology for game use by reducing its polygon count.
Rig
Add a humanoid skeleton to a 3D model for animation.
Any GLB can be rigged, including the Draco + WebP compressed
modelUrlreturned bygenerate()/remesh(). The platform automatically normalizes geometry (decodes Draco and dequantizes) before rigging, so you don't need the uncompressedrawModelUrl.
Using Files SDK Keys
You can use a Files SDK key as the source model instead of a URL:
modelFileKeyresolves the GLB from your app's Files storage and feeds it directly to the rigging provider. The file must be a binary glTF (.glb); anything else fails withTHREE_D_GEN_INVALID_PARAMS. If the file key doesn't exist, the call fails withTHREE_D_GEN_MODEL_FETCH_FAILED. Models resolved this way are sent inline and must be under 20MB; for larger models, passmodelUrlinstead. Provide exactly one ofmodelUrlormodelFileKey(passing both fails withTHREE_D_GEN_INVALID_PARAMS).
Animate
Generate animation clips for a rigged model. Pass animation preset names or raw action IDs.
Available Animation Presets
Preset
Meshy action_id
Meshy clip
Description
idle
0
Idle
Standing idle loop
walk
30
Casual_Walk
Walking forward
run
14
Run_02
Running forward
jump
86
Basic_Jump
Jump in place
attack
4
Attack
Basic attack swing
dance
22
FunnyDancing_01
Dance loop
wave
28
Big_Wave_Hello
Waving gesture
crouch
524
Cautious_Crouch_Walk_Forward
Crouching
fall
502
Fall1
Falling
hit
178
Hit_Reaction
Taking a hit
You can also pass numeric action IDs directly (integers 0–586).
Async Job Recovery
All 3D generation operations run as async jobs. Use getCompletedJobs() to recover results after disconnects.
Full Pipeline Example
Configuration
rundot/threeDGen.config.json
threeDGen is default-bounded: your game can call it without any config file, but undeclared usage runs under default platform safety caps (~$500/game/day and ~$10/user/day). Creating rundot/threeDGen.config.json — which rundot deploy does automatically the first time it detects the service in your bundle — replaces those defaults with your own policy: the auto-created permissive {} removes the caps entirely, or you can author allowlists and caps to tighten instead. An explicit { "disabled": true } turns the service off.
Place your config at rundot/threeDGen.config.json. The file contains the settings directly (no wrapping key — the filename implies it):
Commit
rundot/to your repo; it's project config, not a build artifact, and it's env-agnostic.game.config.prod.jsonis a separate file for local CLI metadata; this config does not go there.
Common fields:
disabled
boolean
Turns the service off; every call fails with AI_POLICY_DENIED.
allowedModels
string[]
Allowlist of permitted identifiers (see note below). When set, an unlisted identifier is rejected. Omit to allow any.
dailyCreditCap
number
Approximate per-game daily credit ceiling.
perUserDailyCreditCap
number
Approximate per-user daily credit ceiling.
For threeDGen.generate, allowedModels entries match the request's provider (e.g. hunyuan3d-v3.1-pro, meshy), not a model id. Putting a raw model id in the list silently fails to match every request and blocks all calls — list the provider values instead. The post-processing operations match fixed identifiers rather than a provider: remesh matches remesh, rig matches rig, and animate matches animate. If you set an allowlist, include every identifier your game uses across these operations.
The two credit caps are approximate safety ceilings, not exact meters: the server reserves budget from a cost estimate before each call and reconciles the real cost afterward, so the effective ceiling can drift slightly around the configured value.
Policy resolves from your game's published (public) release — the same config your live players run against.
API Reference
threeDGen.generate(params)
Promise<ThreeDGenResult>
Generate 3D model from image or text
threeDGen.remesh(params)
Promise<RemeshResult>
Remesh model to target polygon count (deprecated: prefer retopo)
threeDGen.rig(params)
Promise<RigResult>
Add humanoid skeleton rig
threeDGen.animate(params)
Promise<AnimateResult>
Generate animation clips
threeDGen.getCompletedJobs()
Promise<ThreeDGenJobEvent[]>
Drain completed async job results
ThreeDGenParams (generate)
provider
ThreeDGenProvider
Required: 'pixal3d', 'hunyuan3d-v3.1-pro', 'trellis-2', 'meshy', 'tripo-v2.5', or 'rodin-v2.5'
mode
ThreeDGenMode
Required: 'image-to-3d' or 'text-to-3d'
imageUrl
string
Input image URL (required for image-to-3d unless imageFileKey is provided)
imageFileKey
string
Alternative to imageUrl: resolve a Files SDK key as the source image
prompt
string
Text prompt (required for text-to-3d)
quality
ThreeDGenQuality
'draft', 'standard', or 'high' (default: 'standard')
seed
number
Seed for reproducible results
clientRef
string
Opaque correlation ID echoed back in job events
additionalViews
object
Hunyuan and Rodin image-to-3d only. Extra view URLs: backImageUrl, leftImageUrl, rightImageUrl, topImageUrl, bottomImageUrl (Rodin accepts at most 5 total images including primary)
providerOptions
object
Provider-specific overrides. The accepted keys differ per provider (see providerOptions per provider below).
quality, seed, clientRef, and imageFileKey are shared base fields available on every provider and mode (text-to-3d included). additionalViews and the providerOptions keys are provider-specific.
providerOptions per provider
providerOptions is strongly typed per provider, not a free-form object. Each provider accepts a different set of keys; passing a key that another provider owns (for example face_count to trellis-2) is a type error.
pixal3d (image-to-3d)
resolution
1024 | 1536
Generation resolution
decimation_target
number
Target geometry decimation
texture_size
1024 | 2048 | 4096
Texture map resolution
remesh
boolean
Remesh the output
ss_guidance_strength
number
Sparse-structure guidance strength
ss_sampling_steps
number
Sparse-structure sampling steps
shape_slat_guidance_strength
number
Shape SLAT guidance strength
shape_slat_sampling_steps
number
Shape SLAT sampling steps
tex_slat_guidance_strength
number
Texture SLAT guidance strength
tex_slat_sampling_steps
number
Texture SLAT sampling steps
hunyuan3d-v3.1-pro (image-to-3d and text-to-3d)
face_count
number
Target face count of the generated mesh
generate_type
'Normal' | 'Geometry'
'Geometry' requests a geometry-only result (skips texture and PBR)
enable_pbr
boolean
Generate PBR materials
meshy (image-to-3d and text-to-3d)
should_texture
boolean
Generate textures for the mesh. On text-to-3d this selects the untextured (false) tier
enable_pbr
boolean
Generate PBR materials
target_polycount
number
Target triangle count (provider default 30000)
topology
'triangle' | 'quad'
Output polygon flow
model_type
'standard' | 'lowpoly'
Mesh style
symmetry_mode
'off' | 'auto' | 'on'
Symmetry enforcement
should_remesh
boolean
Run the provider's built-in remesh pass
pose_mode
'a-pose' | 't-pose' | ''
Force a rest pose
texture_prompt
string
Text guidance for the texture pass
trellis-2 accepts no providerOptions (typed as Record<string, never>); passing any provider option is a type error.
tripo-v2.5 (image-to-3d and text-to-3d)
face_limit
number
Cap on output face count (adaptive when unset)
texture
'no' | 'standard' | 'HD'
Texture tier — this is the billing axis ($0.20/$0.30/$0.40)
texture_seed
number
Texture-only re-roll: same seed, different texture_seed
texture_alignment
'original_image' | 'geometry'
Image-to-3d only: what the texture prioritizes aligning to
orientation
'default' | 'align_image'
Image-to-3d only: rotate the model to align with the input image
auto_size
boolean
Scale to real-world meters
negative_prompt
string
Text-to-3d only: what to avoid (max 255 chars)
quad is not supported: it forces FBX output, and the pipeline stores GLB. pbr is pinned per quality tier (off for draft, on for standard/high) and cannot be overridden.
rodin-v2.5 (image-to-3d and text-to-3d)
quality_mesh_option
string
Mesh topology & density ('Auto', '1K Quad'..'200K Quad', '2K Triangle'..'2M Triangle')
texture_mode
'legacy' | 'extreme-low' | 'low' | 'medium' | 'high'
Texture fidelity tier
TAPose
boolean
Generate humanoid models in a T-pose or A-pose
use_original_alpha
boolean
Preserve transparency from the source image
enable_creative_mode
boolean
Enable creative mode variations
texture_delight
boolean
Remove baked lighting/shadows from texture
hd_texture
boolean
Generate high-definition textures
tier, material, geometry_file_format, addons, is_micro, bbox_condition, and preview_render are pinned or unsupported and cannot be overridden.
RemeshParams
modelUrl
string
Required: URL of the GLB model to remesh
targetFaceCount
number
Target polygon count (alternative to targetPreset)
targetPreset
'character' | 'prop'
Preset polygon target: 'character' ≈ 5000, 'prop' ≈ 1000
clientRef
string
Opaque correlation ID echoed back in job events
RigParams
modelUrl
string
URL of the GLB model to rig (required unless modelFileKey is provided)
modelFileKey
string
Alternative to modelUrl: resolve a Files SDK key as the source model (inline, must be under 20MB)
heightMeters
number
Character height in meters (improves rigging)
clientRef
string
Opaque correlation ID echoed back in job events
AnimateParams
rigId
string
Rig ID from a previous rig() call. Provide this or modelUrl
modelUrl
string
Source GLB to rig and animate in one call — the cheaper form, since a separate rig() is billed twice
heightMeters
number
Rig height for the modelUrl form; the rigId form reuses the height its rig ran at
animations
(string | number)[]
Required. Preset names or numeric action IDs (0–586)
clientRef
string
Opaque correlation ID echoed back in job events
ThreeDGenResult
generationId
string
Unique ID for this generation
modelUrl
string
URL to the GLB model (Draco + WebP compressed)
rawModelUrl
string | undefined
URL to the uncompressed GLB
thumbnailUrl
string | undefined
Preview thumbnail URL
provider
ThreeDGenProvider
Provider that generated the model
mode
ThreeDGenMode
'image-to-3d' or 'text-to-3d'
quality
ThreeDGenQuality
Quality preset used
seed
number
Seed used for generation
compression
object | undefined
{ inputSizeBytes, outputSizeBytes, compressionPercent }
RemeshResult
remeshId
string
Remesh operation ID
modelUrl
string
URL to the remeshed GLB
faceCount
number
Actual face count of the remeshed model
provider
'meshy'
Provider used
RigResult
rigId
string
Rig ID for use with animate()
modelUrl
string
URL to the rigged GLB
provider
'meshy'
Provider used
AnimateResult
clips
Array<{ animation, modelUrl }>
Generated animation clips
riggedModelUrl
string | undefined
The rig the clips were produced against — a free output of the same call
provider
'meshy'
Provider used
ThreeDGenJobEvent
jobId
string
Job identifier
operation
'generate' | 'remesh' | 'rig' | 'animate'
Which pipeline step this job ran (a ThreeDGenJobOperation); branch on it to know which result shape result holds
status
'completed' | 'failed'
Job outcome
params
object
Original request parameters
result
object | undefined
Result if completed
error
string | undefined
Error message if failed
Best Practices
Use
quality: 'draft'during development for faster iteration, then switch to'standard'or'high'for production assets.For best results with image-to-3d, use a clear front-facing image with a plain background. Use
additionalViewswith Hunyuan for complex geometry.Always remesh generated models before use in-game; raw generation output is often too high-poly for real-time rendering.
Set
heightMeterswhen rigging humanoid characters; it significantly improves bone placement.Use
getCompletedJobs()on reconnect to recover results from in-flight operations.modelUrlis already Draco + WebP compressed (smaller, faster to load). You can pass it straight toremesh()/rig(); geometry is normalized server-side for those steps.rawModelUrlis only needed if you want the uncompressed mesh for your own tooling.
Limits
Multi-view input (
additionalViews) is supported byhunyuan3d-v3.1-pro(up to 6 images total) androdin-v2.5(up to 5 images total).Text-to-3d mode is supported by
hunyuan3d-v3.1-pro,meshy,tripo-v2.5, androdin-v2.5.trellis-2does not support PBR materials.animatetakes either arigIdfrom a priorrig()or amodelUrldirectly. The provider rigs the model as part of animating either way, soanimate({ modelUrl })does the whole job in one billed call — a separaterig()first is charged twice.animatealso returnsriggedModelUrl.A
rigIdissued before the fal migration cannot be animated — re-runrig.animate({ modelUrl })rigs as part of animating, so anallowedModelslist must include bothrigandanimatefor it. TherigIdform needs onlyanimate.meshygenerate acceptstarget_polycount, so passing your triangle budget at generate time returns a game-ready mesh and makes a follow-upremeshcall unnecessary.Subject to per-creator rate-limit tiers and monthly budget caps; see Rate Limits.
Admin API
Game owners and editors can manage 3D generations via run.app.adminThreeDGen. These operations require the caller to have owner or editor role on the app.
Browse Generations
Remove a Generation
Quarantines the model to a separate storage path and marks it as removed.
List Reports
Resolve a Report
AdminThreeDGenBrowseParams
profileId
string
Filter by player profile
status
'active' | 'removed'
Filter by entry status
cursor
string
Pagination cursor from previous response
limit
number
Max entries to return (default 20, max 100)
sortOrder
'asc' | 'desc'
Sort by creation time (default 'desc')
ThreeDGenEntry (response)
id
string
Generation ID
appId
string
App ID
profileId
string
Creator's profile ID
operation
string
Open string; typically 'generate', 'remesh', 'rig', or 'animate'
provider
string
Provider used
mode
string
'image-to-3d' or 'text-to-3d' (optional)
quality
string
Quality preset used (optional)
prompt
string
Text prompt, for text-to-3d entries (optional)
modelUrl
string
Model URL
rawModelUrl
string
Uncompressed GLB URL (optional)
estimatedCostUsd
number
Cost of the operation (optional)
createdAt
number
Unix timestamp (ms)
status
'active' | 'removed'
Entry status
ThreeDGenReport (listReports response)
listReports resolves to { reports: ThreeDGenReport[]; nextCursor?: string }. Each report describes a player-filed flag against a generation.
id
string
Report ID (pass to resolveReport)
generationId
string
The reported generation's ID
appId
string
App ID
reporterId
string
Profile ID of the reporter
reason
'inappropriate' | 'spam' | 'harassment' | 'other'
Report reason
details
string
Optional free-text detail
createdAt
number
Unix timestamp (ms)
status
'pending' | 'reviewed' | 'dismissed'
Report status
Last updated