Trellis2 Generate

Generate a 3D GLB file from an image.

Request body (JSON):

  • image: str (base64-encoded PNG/JPEG)
  • resolution: str ("512", "1024", or "1536") [default: "1024"]
  • seed: int (optional)
  • decimation_target: int [default: 300000]
  • texture_size: int [default: 2048]

Response (JSON):

  • glb_base64: str (base64-encoded GLB file)
  • resolution: str
  • seed: int
  • cost_usd: float
  • inference_time_s: float
post/v1/3d/generate

Response

Successful Response

{"stackTrail":"paths:/v1/3d/generate:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

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