3D

Generate 3D Model With JSON

Generate a 3D model from a text prompt or reference image using JSON parameters. microsoft/trellis-2 supports low, medium, and high resolution with variable pricing. nvidia/asset-harvester returns PLY.

post/3d/{prompt}

Request

  • Base URL: https://gen.pollinations.ai
  • URL: https://gen.pollinations.ai/3d/{prompt}
  • Auth: HTTP bearer

Path parameters

promptstring required
Example:a low-poly treasure chest

Text description of the 3D model to generate (required for text-to-3D models; ignored by image-only models)

Query parameters

keystring

API key (alternative to Authorization header)

string
OR
boolean

Safety features: comma-separated list of privacy, secrets, sexual, violence, shield, true, nsfw. true enables privacy,secrets; nsfw enables sexual,violence. Also accepted in the Pollinations-Safe header. Defaults to off; false and 0 are accepted as off.

Request body

model'microsoft/trellis-2' | 'microsoft/trellis-2:fal' | 'nvidia/asset-harvester' | 'hyper3d/rodin-2.5' | 'trellis-2-low' | 'trellis-2-medium' | 'trellis-2-high' | 'trellis-2' | 'rodin' | 'hyper3d-rodin'

Model to use for 3D generation. See /3d/models for the full list and per-model input requirements.

resolution'low' | 'medium' | 'high'

Output voxel-grid resolution for microsoft/trellis-2: low (512³), medium (1024³), or high (1536³). Higher resolutions add detail, take longer, and cost more.

seedinteger

Seed for varied generations. Passed to models that support it.

Response

Success - Returns the generated 3D model

Changes

No recorded changes to this operation across all 1 revision of this API.