{
  "openapi": "3.1.0",
  "info": {
    "title": "Runware API - TRELLIS.2",
    "summary": "High-fidelity image-to-3D generative model with compact structured latents",
    "description": "TRELLIS.2 is a 4-billion-parameter 3D generative model that transforms 2D images into fully textured 3D assets with complex topology, sharp features, and physically based rendering materials. It uses a novel field-free sparse voxel representation and scalable structured latent space to enable efficient, high-resolution 3D generation from single image input.",
    "version": "1.0.0",
    "x-model-id": "microsoft-trellis-2",
    "x-air-id": "microsoft:trellis-2@4b",
    "x-status": "live",
    "x-creator": {
      "id": "microsoft",
      "name": "Microsoft",
      "logo": "https://assets.runware.ai/f734e730-97f8-4299-a1a9-71583d103dbe.png"
    },
    "x-capabilities": [
      "image-to-3d",
      "checkpoint"
    ],
    "x-modes": [
      {
        "id": "image",
        "inputs": [
          "image"
        ]
      },
      {
        "id": "image+mesh-file",
        "inputs": [
          "image",
          "meshFile"
        ]
      }
    ],
    "x-released-at": "2025-12-17T00:00:00Z",
    "x-cover-image": "https://assets.runware.ai/covers/microsoft-trellis-2.jpg",
    "x-examples": "https://runware.ai/docs/models/microsoft-trellis-2/examples.json",
    "x-pricing": {
      "currency": "USD",
      "docs": "https://runware.ai/docs/models-api/pricing",
      "measured": [
        {
          "configuration": "settings.resolution 512 · 1024×1024 input",
          "price": 0.0193,
          "latencyMs": 16380
        },
        {
          "configuration": "settings.textureSize 1024 · 1024×1024 input",
          "price": 0.0208,
          "latencyMs": 18563
        },
        {
          "configuration": "1024×1024 input",
          "price": 0.0298,
          "latencyMs": 23670
        },
        {
          "configuration": "settings.texSlat.steps 40 · 1024×1024 input",
          "price": 0.0357,
          "latencyMs": 29070
        },
        {
          "configuration": "settings.shapeSlat.steps 40 · 1024×1024 input",
          "price": 0.0432,
          "latencyMs": 33569
        },
        {
          "configuration": "settings.sparseStructure.steps 40 · 1024×1024 input",
          "price": 0.0446,
          "latencyMs": 34249
        },
        {
          "configuration": "settings.resolution 1536 · 1024×1024 input",
          "price": 0.0521,
          "latencyMs": 39535
        },
        {
          "configuration": "settings.textureSize 4096 · 1024×1024 input",
          "price": 0.0595,
          "latencyMs": 44951
        }
      ],
      "examples": [
        {
          "id": "portable-farrier-hoof-stand-model",
          "configuration": "image-to-3d",
          "price": 0.009,
          "latencyMs": 21322
        },
        {
          "id": "underground-safety-mole-character-model",
          "configuration": "image-to-3d",
          "price": 0.0166,
          "latencyMs": 30485
        },
        {
          "id": "neon-laundromat-cutaway-set-module",
          "configuration": "image-to-3d",
          "price": 0.0218,
          "latencyMs": 78785
        },
        {
          "id": "tidal-monitoring-cabin-environment-module",
          "configuration": "image-to-3d",
          "price": 0.0269,
          "latencyMs": 45628
        }
      ],
      "overview": "Pricing is based on processing time. Most generations cost just a few cents, depending on complexity."
    }
  },
  "externalDocs": {
    "description": "TRELLIS.2 on Runware",
    "url": "https://runware.ai/docs/models/microsoft-trellis-2"
  },
  "servers": [
    {
      "url": "https://api.runware.ai/v1",
      "description": "Runware REST API"
    }
  ],
  "components": {
    "securitySchemes": {
      "apiKeyAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Runware API Key (e.g., Bearer <your-key>)"
      }
    },
    "schemas": {
      "AuthenticationTask": {
        "title": "Authentication",
        "description": "Authenticates a connection using an API key. Can be sent as the first element of the request array as an alternative to using the Authorization header.",
        "type": "object",
        "x-response-schema": "https://schemas.runware.ai/responses/utilities/authentication.json",
        "properties": {
          "taskType": {
            "title": "Task Type",
            "description": "Identifier for the type of task being performed.",
            "type": "string",
            "const": "authentication"
          },
          "apiKey": {
            "title": "API Key",
            "description": "Your Runware API key.",
            "type": "string"
          },
          "connectionSessionUUID": {
            "title": "Connection Session UUID",
            "description": "Optional session UUID to resume a previous connection and receive any buffered results.",
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "taskType",
          "apiKey"
        ],
        "additionalProperties": false
      },
      "RequestBody": {
        "type": "array",
        "items": {
          "type": "object",
          "$defs": {
            "samplerConfig": {
              "type": "object",
              "title": "Sampler Configuration",
              "description": "Configuration for a generation stage sampler.",
              "properties": {
                "steps": {
                  "type": "integer",
                  "title": "Steps",
                  "description": "Number of denoising steps. More steps improve quality but increase generation time.",
                  "minimum": 1,
                  "maximum": 50
                },
                "guidanceIntervalEnd": {
                  "type": "number",
                  "title": "Guidance Interval End",
                  "description": "End of the sampling schedule fraction over which guidance is applied.",
                  "minimum": 0,
                  "maximum": 1
                },
                "guidanceIntervalStart": {
                  "type": "number",
                  "title": "Guidance Interval Start",
                  "description": "Start of the sampling schedule fraction over which guidance is applied.",
                  "minimum": 0,
                  "maximum": 1
                },
                "guidanceRescale": {
                  "type": "number",
                  "title": "Guidance Rescale",
                  "description": "Dampens oversaturation from high guidance values. Lower values apply more correction.",
                  "minimum": 0,
                  "maximum": 1
                },
                "guidanceStrength": {
                  "type": "number",
                  "title": "Guidance Strength",
                  "description": "How closely the output follows the input image. Higher values enforce stricter adherence to the visible geometry.",
                  "minimum": 1,
                  "maximum": 10
                },
                "rescaleT": {
                  "type": "number",
                  "title": "Rescale T",
                  "description": "Timestep rescaling factor for the sampling schedule. Controls how guidance strength is distributed across steps.",
                  "minimum": 1,
                  "maximum": 6
                }
              },
              "additionalProperties": false
            }
          },
          "properties": {
            "model": {
              "title": "Model",
              "description": "Send `auto` instead of an AIR identifier to have the model router choose the model for this task. The rest of the request is unchanged, every value you send is kept, and only the parameters you leave out are filled in. See [Model Router](https://runware.ai/docs/models-api/model-router).\n\n[Read full documentation](https://runware.ai/docs/models/microsoft-trellis-2#model)",
              "type": "string",
              "const": "microsoft:trellis-2@4b"
            },
            "inputs": {
              "title": "Inputs",
              "description": "Input assets for the task.",
              "type": "object",
              "properties": {
                "image": {
                  "title": "Image",
                  "description": "Image input (UUID, URL, Data URI, or Base64).",
                  "type": "string",
                  "anyOf": [
                    {
                      "format": "uuid"
                    },
                    {
                      "format": "uri"
                    },
                    {
                      "pattern": "^data:image\\/[a-zA-Z]+;base64,[a-zA-Z0-9+/=]+$"
                    },
                    {
                      "pattern": "^[a-zA-Z0-9+/=]+$"
                    }
                  ]
                },
                "meshFile": {
                  "title": "Model",
                  "description": "3D model to re-texture (UUID or URL). Skips geometry generation and applies new textures using the reference image.",
                  "type": "string",
                  "anyOf": [
                    {
                      "format": "uuid"
                    },
                    {
                      "format": "uri"
                    }
                  ]
                }
              },
              "required": [
                "image"
              ],
              "additionalProperties": false
            },
            "seed": {
              "title": "Seed",
              "description": "Random seed for reproducible generation. When not provided, a random seed is generated in the unsigned 32-bit range.",
              "type": "integer",
              "minimum": 0,
              "maximum": 9223372036854776000
            },
            "settings": {
              "title": "Settings",
              "description": "Global inference settings.",
              "type": "object",
              "properties": {
                "resolution": {
                  "type": "integer",
                  "title": "Resolution",
                  "description": "Voxel grid resolution for 3D generation. Higher values capture finer geometric detail.",
                  "enum": [
                    512,
                    1024,
                    1536
                  ],
                  "default": 1024
                },
                "alphaMode": {
                  "type": "string",
                  "title": "Alpha Mode",
                  "description": "Material alpha mode for the output mesh.",
                  "enum": [
                    "OPAQUE",
                    "BLEND",
                    "MASK"
                  ],
                  "default": "OPAQUE"
                },
                "decimationTarget": {
                  "type": "integer",
                  "title": "Decimation Target",
                  "description": "Target polygon count for mesh simplification. Lower values produce lighter models at the cost of geometric detail.",
                  "default": 500000,
                  "minimum": 5000,
                  "maximum": 1000000
                },
                "dracoCompression": {
                  "type": "object",
                  "title": "Draco Compression",
                  "description": "Apply KHR_draco_mesh_compression to the output GLB. Reduces geometry size 5-10x with no triangle loss.",
                  "properties": {
                    "enabled": {
                      "type": "boolean",
                      "title": "Enabled",
                      "description": "Compress the output GLB geometry with Draco."
                    },
                    "level": {
                      "type": "integer",
                      "title": "Level",
                      "description": "Encoding effort for Draco compression. Higher values reduce file size further but encode more slowly.",
                      "default": 7,
                      "minimum": 0,
                      "maximum": 10
                    },
                    "quantizationNormal": {
                      "type": "integer",
                      "title": "Quantization Normal",
                      "description": "Quantization bits for vertex normals. Higher values produce smoother shading at the cost of file size.",
                      "default": 14,
                      "minimum": 8,
                      "maximum": 30
                    },
                    "quantizationPosition": {
                      "type": "integer",
                      "title": "Quantization Position",
                      "description": "Quantization bits for vertex positions. Higher values preserve more positional detail at the cost of file size.",
                      "default": 16,
                      "minimum": 8,
                      "maximum": 30
                    },
                    "quantizationTexCoord": {
                      "type": "integer",
                      "title": "Quantization Texture Coordinates",
                      "description": "Quantization bits for texture coordinates. Higher values keep textures sharper at UV seams at the cost of file size.",
                      "default": 14,
                      "minimum": 8,
                      "maximum": 30
                    }
                  },
                  "additionalProperties": false
                },
                "meshCluster": {
                  "type": "object",
                  "title": "Mesh Cluster",
                  "description": "UV chart clustering settings for the output mesh.",
                  "properties": {
                    "globalIterations": {
                      "type": "integer",
                      "title": "Global Iterations",
                      "description": "Global iterations for chart clustering.",
                      "default": 1,
                      "minimum": 0,
                      "maximum": 64
                    },
                    "refineIterations": {
                      "type": "integer",
                      "title": "Refine Iterations",
                      "description": "Local refinement iterations for chart clustering.",
                      "default": 0,
                      "minimum": 0,
                      "maximum": 64
                    },
                    "smoothStrength": {
                      "type": "integer",
                      "title": "Smooth Strength",
                      "description": "Smoothing strength applied during chart clustering.",
                      "default": 1,
                      "minimum": 0,
                      "maximum": 10
                    },
                    "thresholdConeHalfAngleRad": {
                      "type": "number",
                      "title": "Threshold Cone Half-Angle",
                      "description": "Cone half-angle threshold in radians used during UV chart clustering.",
                      "default": 1.5707963267948966,
                      "minimum": 0,
                      "maximum": 3.141592653589793
                    }
                  },
                  "additionalProperties": false
                },
                "remesh": {
                  "type": "boolean",
                  "title": "Remesh",
                  "description": "Whether to remesh the output for cleaner topology.",
                  "default": true
                },
                "remeshBand": {
                  "type": "number",
                  "title": "Remesh Band",
                  "description": "Narrow-band width in voxels used for dual-contouring remeshing.",
                  "default": 1,
                  "maximum": 16,
                  "exclusiveMinimum": 0
                },
                "remeshProject": {
                  "type": "number",
                  "title": "Remesh Project",
                  "description": "Projection factor for snapping remeshed vertices back to the original surface.",
                  "default": 0,
                  "maximum": 1,
                  "exclusiveMinimum": 0
                },
                "shapeSlat": {
                  "type": "object",
                  "title": "Shape SLAT Sampler",
                  "description": "Sampler for the Structured Latent stage that refines the 3D geometry.",
                  "properties": {
                    "steps": {
                      "type": "integer",
                      "title": "Steps",
                      "description": "Number of denoising steps. More steps improve quality but increase generation time.",
                      "minimum": 1,
                      "maximum": 50,
                      "default": 12
                    },
                    "guidanceIntervalEnd": {
                      "type": "number",
                      "title": "Guidance Interval End",
                      "description": "End of the sampling schedule fraction over which guidance is applied.",
                      "minimum": 0,
                      "maximum": 1,
                      "default": 1
                    },
                    "guidanceIntervalStart": {
                      "type": "number",
                      "title": "Guidance Interval Start",
                      "description": "Start of the sampling schedule fraction over which guidance is applied.",
                      "minimum": 0,
                      "maximum": 1,
                      "default": 0.6
                    },
                    "guidanceRescale": {
                      "type": "number",
                      "title": "Guidance Rescale",
                      "description": "Dampens oversaturation from high guidance values. Lower values apply more correction.",
                      "minimum": 0,
                      "maximum": 1,
                      "default": 0.5
                    },
                    "guidanceStrength": {
                      "type": "number",
                      "title": "Guidance Strength",
                      "description": "How closely the output follows the input image. Higher values enforce stricter adherence to the visible geometry.",
                      "minimum": 1,
                      "maximum": 10,
                      "default": 7.5
                    },
                    "rescaleT": {
                      "type": "number",
                      "title": "Rescale T",
                      "description": "Timestep rescaling factor for the sampling schedule. Controls how guidance strength is distributed across steps.",
                      "minimum": 1,
                      "maximum": 6,
                      "default": 3
                    }
                  },
                  "additionalProperties": false
                },
                "sparseStructure": {
                  "type": "object",
                  "title": "Sparse Structure Sampler",
                  "description": "Sampler for the initial sparse voxel grid that establishes the basic 3D geometry.",
                  "properties": {
                    "steps": {
                      "type": "integer",
                      "title": "Steps",
                      "description": "Number of denoising steps. More steps improve quality but increase generation time.",
                      "minimum": 1,
                      "maximum": 50,
                      "default": 12
                    },
                    "guidanceIntervalEnd": {
                      "type": "number",
                      "title": "Guidance Interval End",
                      "description": "End of the sampling schedule fraction over which guidance is applied.",
                      "minimum": 0,
                      "maximum": 1,
                      "default": 1
                    },
                    "guidanceIntervalStart": {
                      "type": "number",
                      "title": "Guidance Interval Start",
                      "description": "Start of the sampling schedule fraction over which guidance is applied.",
                      "minimum": 0,
                      "maximum": 1,
                      "default": 0.6
                    },
                    "guidanceRescale": {
                      "type": "number",
                      "title": "Guidance Rescale",
                      "description": "Dampens oversaturation from high guidance values. Lower values apply more correction.",
                      "minimum": 0,
                      "maximum": 1,
                      "default": 0.7
                    },
                    "guidanceStrength": {
                      "type": "number",
                      "title": "Guidance Strength",
                      "description": "How closely the output follows the input image. Higher values enforce stricter adherence to the visible geometry.",
                      "minimum": 1,
                      "maximum": 10,
                      "default": 7.5
                    },
                    "rescaleT": {
                      "type": "number",
                      "title": "Rescale T",
                      "description": "Timestep rescaling factor for the sampling schedule. Controls how guidance strength is distributed across steps.",
                      "minimum": 1,
                      "maximum": 6,
                      "default": 5
                    }
                  },
                  "additionalProperties": false
                },
                "texSlat": {
                  "type": "object",
                  "title": "Texture SLAT Sampler",
                  "description": "Sampler for the Structured Latent stage that generates surface appearance.",
                  "properties": {
                    "steps": {
                      "type": "integer",
                      "title": "Steps",
                      "description": "Number of denoising steps. More steps improve quality but increase generation time.",
                      "minimum": 1,
                      "maximum": 50,
                      "default": 12
                    },
                    "guidanceIntervalEnd": {
                      "type": "number",
                      "title": "Guidance Interval End",
                      "description": "End of the sampling schedule fraction over which guidance is applied.",
                      "minimum": 0,
                      "maximum": 1,
                      "default": 0.9
                    },
                    "guidanceIntervalStart": {
                      "type": "number",
                      "title": "Guidance Interval Start",
                      "description": "Start of the sampling schedule fraction over which guidance is applied.",
                      "minimum": 0,
                      "maximum": 1,
                      "default": 0.6
                    },
                    "guidanceRescale": {
                      "type": "number",
                      "title": "Guidance Rescale",
                      "description": "Dampens oversaturation from high guidance values. Lower values apply more correction.",
                      "minimum": 0,
                      "maximum": 1,
                      "default": 0
                    },
                    "guidanceStrength": {
                      "type": "number",
                      "title": "Guidance Strength",
                      "description": "How closely the output follows the input image. Higher values enforce stricter adherence to the visible geometry.",
                      "minimum": 1,
                      "maximum": 10,
                      "default": 1
                    },
                    "rescaleT": {
                      "type": "number",
                      "title": "Rescale T",
                      "description": "Timestep rescaling factor for the sampling schedule. Controls how guidance strength is distributed across steps.",
                      "minimum": 1,
                      "maximum": 6,
                      "default": 3
                    }
                  },
                  "additionalProperties": false
                },
                "textureFormat": {
                  "type": "string",
                  "title": "Texture Format",
                  "description": "Texture format for the output mesh.",
                  "enum": [
                    "WEBP",
                    "PNG"
                  ],
                  "default": "WEBP"
                },
                "textureSize": {
                  "type": "integer",
                  "title": "Texture Size",
                  "description": "Resolution of the output texture map in pixels. Higher values produce finer surface detail.",
                  "default": 2048,
                  "minimum": 1024,
                  "maximum": 4096,
                  "multipleOf": 1024
                }
              },
              "additionalProperties": false
            },
            "taskType": {
              "title": "Task Type",
              "description": "Identifier for the type of task being performed.",
              "type": "string",
              "const": "3dInference"
            },
            "taskUUID": {
              "title": "Task UUID",
              "description": "UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.",
              "type": "string",
              "format": "uuid"
            },
            "webhookURL": {
              "title": "Webhook URL",
              "description": "Webhook URL that receives JSON responses via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.",
              "type": "string",
              "format": "uri"
            },
            "includeCost": {
              "title": "Include Cost",
              "description": "Include task cost in the response.",
              "type": "boolean"
            },
            "numberResults": {
              "title": "Number of Results",
              "description": "Number of results to generate. Each result uses a different seed, producing variations of the same parameters.",
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "maximum": 4
            },
            "uploadEndpoint": {
              "title": "Upload Endpoint",
              "description": "Specifies a URL where the generated content will be automatically uploaded using the HTTP PUT method. The raw binary data of the media file is sent directly as the request body. For secure uploads to cloud storage, use presigned URLs that include temporary authentication credentials.\n\n**Common use cases:**\n\n- **Cloud storage**: Upload directly to S3 buckets, Google Cloud Storage, or Azure Blob Storage using presigned URLs.\n- **CDN integration**: Upload to content delivery networks for immediate distribution.\n\n```text\n// S3 presigned URL for secure upload\nhttps://your-bucket.s3.amazonaws.com/generated/content.mp4?X-Amz-Signature=abc123&X-Amz-Expires=3600\n\n// Google Cloud Storage presigned URL\nhttps://storage.googleapis.com/your-bucket/content.jpg?X-Goog-Signature=xyz789\n\n// Custom storage endpoint\nhttps://storage.example.com/uploads/generated-image.jpg\n```\n\nThe content data will be sent as the request body to the specified URL when generation is complete.\n\n[Read full documentation](https://runware.ai/docs/models/microsoft-trellis-2#uploadEndpoint)",
              "type": "string",
              "format": "uri"
            },
            "ttl": {
              "title": "TTL",
              "description": "Time-to-live (TTL) in seconds for generated content. Only applies when `outputType` is `URL`.",
              "type": "integer",
              "minimum": 60
            },
            "outputType": {
              "title": "Output Type",
              "description": "3D output type.",
              "type": "string",
              "enum": [
                "URL"
              ],
              "default": "URL"
            },
            "outputFormat": {
              "title": "Output Format",
              "description": "Specifies the file format of the generated output. The available values depend on the task type and the specific model's capabilities.\n\n- \\`JPG\\`: Best for photorealistic images with smaller file sizes (no transparency).\n- \\`PNG\\`: Lossless compression, supports high quality and transparency (alpha channel).\n- \\`WEBP\\`: Modern format providing superior compression and transparency support.\n- \\`MP4\\`: Widely supported video container (H.264), recommended for general use.\n- \\`WEBM\\`: Optimized for web delivery.\n- \\`MOV\\`: QuickTime format, common in professional workflows (Apple ecosystem).\n- \\`GIF\\`: Animated image format (no audio), suitable for short loops or previews.\n- \\`MP3\\`: Compressed audio, smaller file size.\n- \\`WAV\\`: Uncompressed, high-quality audio.\n- \\`FLAC\\`: Lossless compression.\n- \\`OGG\\`: Open-source compressed audio format (Vorbis codec).\n- \\`SVG\\`: Scalable Vector Graphics.\n- \\`TIFF\\`: High-quality output supporting layers.\n- \\`GLB\\`: Binary glTF format for 3D models, including geometry, textures, and PBR materials.\n\n> [!NOTE]\n> \\*\\*Transparency\\*\\*: If you are using features like background removal or LayerDiffuse that require transparency, you must select a format that supports an alpha channel (e.g., \\`PNG\\`, \\`WEBP\\`, \\`TIFF\\`). \\`JPG\\` does not support transparency.\n\n[Read full documentation](https://runware.ai/docs/models/microsoft-trellis-2#outputFormat)",
              "type": "string",
              "enum": [
                "GLB"
              ],
              "default": "GLB"
            },
            "deliveryMethod": {
              "title": "Delivery Method",
              "description": "Determines how the API delivers task results.",
              "type": "string",
              "oneOf": [
                {
                  "const": "sync",
                  "description": "Returns results directly in the API response. Over HTTP, a task still running after 120 seconds continues as an async task and comes back with status 'processing'. Poll for its results using getResponse."
                },
                {
                  "const": "async",
                  "description": "Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse."
                }
              ],
              "default": "async"
            }
          },
          "required": [
            "inputs",
            "taskType",
            "taskUUID",
            "model"
          ],
          "allOf": [
            {
              "if": {
                "properties": {
                  "inputs": {
                    "required": [
                      "meshFile"
                    ]
                  }
                },
                "required": [
                  "inputs"
                ]
              },
              "then": {
                "not": {
                  "anyOf": [
                    {
                      "properties": {
                        "settings": {
                          "required": [
                            "shapeSlat"
                          ]
                        }
                      },
                      "required": [
                        "settings"
                      ]
                    },
                    {
                      "properties": {
                        "settings": {
                          "required": [
                            "sparseStructure"
                          ]
                        }
                      },
                      "required": [
                        "settings"
                      ]
                    },
                    {
                      "properties": {
                        "settings": {
                          "required": [
                            "decimationTarget"
                          ]
                        }
                      },
                      "required": [
                        "settings"
                      ]
                    },
                    {
                      "properties": {
                        "settings": {
                          "required": [
                            "remesh"
                          ]
                        }
                      },
                      "required": [
                        "settings"
                      ]
                    },
                    {
                      "properties": {
                        "settings": {
                          "required": [
                            "remeshBand"
                          ]
                        }
                      },
                      "required": [
                        "settings"
                      ]
                    },
                    {
                      "properties": {
                        "settings": {
                          "required": [
                            "remeshProject"
                          ]
                        }
                      },
                      "required": [
                        "settings"
                      ]
                    },
                    {
                      "properties": {
                        "settings": {
                          "required": [
                            "meshCluster"
                          ]
                        }
                      },
                      "required": [
                        "settings"
                      ]
                    }
                  ]
                }
              }
            },
            {
              "if": {
                "not": {
                  "properties": {
                    "settings": {
                      "properties": {
                        "dracoCompression": {
                          "properties": {
                            "enabled": {
                              "const": true
                            }
                          },
                          "required": [
                            "enabled"
                          ]
                        }
                      },
                      "required": [
                        "dracoCompression"
                      ]
                    }
                  },
                  "required": [
                    "settings"
                  ]
                }
              },
              "then": {
                "properties": {
                  "settings": {
                    "properties": {
                      "dracoCompression": {
                        "properties": {
                          "level": false,
                          "quantizationNormal": false,
                          "quantizationPosition": false,
                          "quantizationTexCoord": false
                        }
                      }
                    }
                  }
                }
              }
            }
          ],
          "additionalProperties": false
        },
        "description": "You must always POST an array of task objects."
      },
      "ResponseBody": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "title": "3D Response",
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "taskType": {
                  "title": "Task Type",
                  "description": "Identifier for the type of task this response belongs to.",
                  "type": "string",
                  "const": "3dInference"
                },
                "taskUUID": {
                  "title": "Task UUID",
                  "description": "UUID v4 identifier echoed from the original request, used to match async responses to their tasks.",
                  "type": "string",
                  "format": "uuid"
                },
                "cost": {
                  "title": "Cost",
                  "description": "Task cost in USD. Present when `includeCost` is set to `true` in the request.",
                  "type": "number"
                },
                "outputs": {
                  "title": "Outputs",
                  "description": "Generated output artifacts.",
                  "type": "object",
                  "properties": {
                    "files": {
                      "title": "Output Files",
                      "description": "Generated output files.",
                      "type": "array",
                      "minItems": 1,
                      "items": {
                        "type": "object",
                        "properties": {
                          "uuid": {
                            "title": "File UUID",
                            "description": "UUID of the output file.",
                            "type": "string",
                            "format": "uuid"
                          },
                          "url": {
                            "title": "File URL",
                            "description": "URL of the output file.",
                            "type": "string",
                            "format": "uri"
                          }
                        },
                        "required": [
                          "uuid",
                          "url"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "files"
                  ],
                  "additionalProperties": false
                },
                "seed": {
                  "title": "Seed",
                  "description": "The seed used for generation. If none was provided, shows the randomly generated seed.",
                  "type": "integer"
                }
              },
              "required": [
                "taskType",
                "taskUUID",
                "outputs"
              ]
            }
          }
        }
      },
      "ErrorResponse": {
        "title": "Error Response",
        "description": "Standard error response returned by the Runware API.",
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "code",
                "message"
              ],
              "additionalProperties": true,
              "properties": {
                "code": {
                  "type": "string",
                  "description": "A short identifier for the error (e.g., invalidApiKey, timeoutProvider)."
                },
                "message": {
                  "type": "string",
                  "description": "A human-readable explanation of what went wrong."
                },
                "parameter": {
                  "type": "string",
                  "description": "The request parameter related to the error, if applicable."
                },
                "taskType": {
                  "type": "string",
                  "description": "The task type of the request that failed."
                },
                "taskUUID": {
                  "type": "string",
                  "description": "The unique identifier of the failed request."
                },
                "documentation": {
                  "type": "string",
                  "description": "A link to relevant documentation."
                }
              }
            }
          }
        },
        "required": [
          "errors"
        ],
        "additionalProperties": false
      }
    }
  },
  "paths": {
    "/": {
      "post": {
        "summary": "Run TRELLIS.2",
        "description": "TRELLIS.2 is a 4-billion-parameter 3D generative model that transforms 2D images into fully textured 3D assets with complex topology, sharp features, and physically based rendering materials. It uses a novel field-free sparse voxel representation and scalable structured latent space to enable efficient, high-resolution 3D generation from single image input.",
        "operationId": "run_microsoft_trellis_2",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RequestBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request — Missing or invalid parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized — No valid API key provided.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required — Insufficient account balance.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden — The API key lacks permissions for this request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests — Rate limit exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error — Something went wrong on Runware's end.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable — Temporarily unavailable (maintenance or capacity).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "apiKeyAuth": []
    }
  ]
}