{
  "openapi": "3.0.0",
  "info": {
    "title": "Tripo 3D",
    "version": "1.0.0",
    "description": "API reference for Tripo 3D on Ace Data Cloud."
  },
  "servers": [
    {
      "url": "https://api.acedata.cloud",
      "description": "Ace Data Cloud API"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "API token from https://platform.acedata.cloud"
      }
    },
    "schemas": {
      "TripoError": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ]
      },
      "TripoModel": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "format": {
            "type": "string",
            "enum": [
              "GLB",
              "STL",
              "OBJ",
              "FBX",
              "USDZ",
              "3MF"
            ]
          },
          "model_url": {
            "type": "string",
            "format": "uri",
            "pattern": "^https://",
            "maxLength": 8192
          },
          "image_url": {
            "type": "string",
            "format": "uri",
            "pattern": "^https://",
            "maxLength": 8192,
            "description": "Optional preview image."
          },
          "container": {
            "type": "string",
            "enum": [
              "ZIP"
            ]
          },
          "normalize_scale": {
            "type": "number"
          },
          "normalize_translation": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 3,
            "maxItems": 3
          }
        },
        "required": [
          "id",
          "format",
          "model_url"
        ]
      },
      "TripoCost": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "amount": {
            "type": "number",
            "minimum": 0
          },
          "currency": {
            "type": "string"
          },
          "list_amount": {
            "type": "number",
            "minimum": 0
          }
        },
        "required": [
          "amount",
          "currency"
        ]
      },
      "TripoErrorResult": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "$ref": "#/components/schemas/TripoError"
          },
          "task_id": {
            "type": "string",
            "format": "uuid"
          },
          "trace_id": {
            "type": "string"
          },
          "started_at": {
            "type": "number",
            "minimum": 0
          },
          "finished_at": {
            "type": "number",
            "minimum": 0
          },
          "elapsed": {
            "type": "number",
            "minimum": 0
          }
        },
        "required": [
          "success",
          "error"
        ]
      },
      "TripoGenerationsRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "generate"
            ],
            "default": "generate"
          },
          "model": {
            "type": "string",
            "enum": [
              "v3.1-20260211",
              "v3.0-20250812",
              "v2.5-20250123",
              "P1-20260311",
              "P2-20260801"
            ],
            "default": "v3.1-20260211"
          },
          "texture": {
            "type": "string",
            "enum": [
              "none",
              "standard"
            ],
            "default": "standard"
          },
          "async": {
            "type": "boolean",
            "default": false,
            "description": "Return the task ID immediately."
          },
          "callback_url": {
            "type": "string",
            "format": "uri",
            "pattern": "^https://",
            "maxLength": 8192,
            "description": "Receive the final JSON result by HTTPS POST; implies async."
          },
          "prompt": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024
          },
          "image_url": {
            "type": "string",
            "format": "uri",
            "pattern": "^https://",
            "maxLength": 8192,
            "description": "Public PNG or JPEG up to 20 MiB."
          },
          "image_urls": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri",
              "pattern": "^https://",
              "maxLength": 8192,
              "nullable": true
            },
            "minItems": 2,
            "maxItems": 4,
            "description": "Front, left, back, right. Front and at least one other image are required. Use null to skip an optional view."
          }
        },
        "oneOf": [
          {
            "required": [
              "prompt"
            ]
          },
          {
            "required": [
              "image_url"
            ]
          },
          {
            "required": [
              "image_urls"
            ]
          }
        ],
        "description": "Supply exactly one input: prompt, image_url, or image_urls."
      },
      "TripoModelsRequest": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "import"
                ]
              },
              "model_url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https://",
                "maxLength": 8192,
                "description": "Public HTTPS URL to a supported model file up to 150 MiB."
              },
              "async": {
                "type": "boolean",
                "default": false,
                "description": "Return the task ID immediately."
              },
              "callback_url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https://",
                "maxLength": 8192,
                "description": "Receive the final JSON result by HTTPS POST; implies async."
              }
            },
            "required": [
              "action",
              "model_url"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "texture"
                ]
              },
              "model_id": {
                "type": "string",
                "format": "uuid"
              },
              "model_url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https://",
                "maxLength": 8192,
                "description": "Public HTTPS URL to a supported model file up to 150 MiB."
              },
              "model": {
                "type": "string",
                "enum": [
                  "v3.5-20260815",
                  "v3.0-20250812",
                  "v2.5-20250123"
                ]
              },
              "texture_quality": {
                "type": "string",
                "enum": [
                  "fast",
                  "standard",
                  "detailed",
                  "extreme"
                ],
                "default": "standard"
              },
              "texture_alignment": {
                "type": "string",
                "enum": [
                  "original_image",
                  "geometry"
                ]
              },
              "texture_seed": {
                "type": "integer"
              },
              "pbr": {
                "type": "boolean"
              },
              "bake": {
                "type": "boolean"
              },
              "delight": {
                "type": "boolean"
              },
              "part_names": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                },
                "minItems": 1
              },
              "compress": {
                "type": "string",
                "enum": [
                  "geometry"
                ]
              },
              "prompt": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1024
              },
              "image_url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https://",
                "maxLength": 8192,
                "description": "Public PNG or JPEG up to 20 MiB."
              },
              "image_urls": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uri",
                  "pattern": "^https://",
                  "maxLength": 8192,
                  "nullable": true
                },
                "minItems": 2,
                "maxItems": 4,
                "description": "Front, left, back, right. Front and at least one other image are required. Use null to skip an optional view."
              },
              "style_image_url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https://",
                "maxLength": 8192,
                "description": "Public PNG or JPEG up to 20 MiB."
              },
              "async": {
                "type": "boolean",
                "default": false,
                "description": "Return the task ID immediately."
              },
              "callback_url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https://",
                "maxLength": 8192,
                "description": "Receive the final JSON result by HTTPS POST; implies async."
              }
            },
            "required": [
              "action"
            ],
            "oneOf": [
              {
                "required": [
                  "model_id"
                ]
              },
              {
                "required": [
                  "model_url"
                ]
              }
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "convert"
                ]
              },
              "model_id": {
                "type": "string",
                "format": "uuid"
              },
              "model_url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https://",
                "maxLength": 8192,
                "description": "Public HTTPS URL to a supported model file up to 150 MiB."
              },
              "format": {
                "type": "string",
                "enum": [
                  "GLTF",
                  "FBX",
                  "USDZ",
                  "OBJ",
                  "STL",
                  "3MF"
                ]
              },
              "quad": {
                "type": "boolean"
              },
              "force_symmetry": {
                "type": "boolean"
              },
              "flatten_bottom": {
                "type": "boolean"
              },
              "bake": {
                "type": "boolean"
              },
              "pack_uv": {
                "type": "boolean"
              },
              "export_vertex_colors": {
                "type": "boolean"
              },
              "pivot_to_center_bottom": {
                "type": "boolean"
              },
              "with_animation": {
                "type": "boolean"
              },
              "animate_in_place": {
                "type": "boolean"
              },
              "face_limit": {
                "type": "integer",
                "minimum": 1
              },
              "flatten_bottom_threshold": {
                "type": "number"
              },
              "texture_size": {
                "type": "integer",
                "minimum": 1
              },
              "texture_format": {
                "type": "string",
                "enum": [
                  "JPEG",
                  "PNG",
                  "WEBP",
                  "BMP"
                ]
              },
              "scale_factor": {
                "type": "number",
                "minimum": 0,
                "exclusiveMinimum": true
              },
              "part_names": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                },
                "minItems": 1
              },
              "export_orientation": {
                "type": "string",
                "enum": [
                  "+x",
                  "-x",
                  "+y",
                  "-y"
                ]
              },
              "fbx_preset": {
                "type": "string",
                "enum": [
                  "blender",
                  "3dsmax",
                  "mixamo",
                  "bake_scale"
                ]
              },
              "texture_packaging": {
                "type": "string",
                "enum": [
                  "embedded",
                  "zip"
                ]
              },
              "async": {
                "type": "boolean",
                "default": false,
                "description": "Return the task ID immediately."
              },
              "callback_url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https://",
                "maxLength": 8192,
                "description": "Receive the final JSON result by HTTPS POST; implies async."
              }
            },
            "required": [
              "action",
              "format"
            ],
            "oneOf": [
              {
                "required": [
                  "model_id"
                ]
              },
              {
                "required": [
                  "model_url"
                ]
              }
            ]
          }
        ]
      },
      "TripoAnimationsRequest": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "rig_check"
                ]
              },
              "model_id": {
                "type": "string",
                "format": "uuid"
              },
              "model_url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https://",
                "maxLength": 8192,
                "description": "Public HTTPS URL to a supported model file up to 150 MiB."
              },
              "async": {
                "type": "boolean",
                "default": false,
                "description": "Return the task ID immediately."
              },
              "callback_url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https://",
                "maxLength": 8192,
                "description": "Receive the final JSON result by HTTPS POST; implies async."
              }
            },
            "required": [
              "action"
            ],
            "oneOf": [
              {
                "required": [
                  "model_id"
                ]
              },
              {
                "required": [
                  "model_url"
                ]
              }
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "rig"
                ]
              },
              "model_id": {
                "type": "string",
                "format": "uuid"
              },
              "model_url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https://",
                "maxLength": 8192,
                "description": "Public HTTPS URL to a supported model file up to 150 MiB."
              },
              "model": {
                "type": "string",
                "enum": [
                  "v1.0-20240301",
                  "v2.5-20260210",
                  "v3.0-20260909"
                ]
              },
              "rig_type": {
                "type": "string",
                "enum": [
                  "biped",
                  "quadruped",
                  "hexapod",
                  "octopod",
                  "avian",
                  "serpentine",
                  "aquatic",
                  "others"
                ]
              },
              "spec": {
                "type": "string",
                "enum": [
                  "tripo",
                  "mixamo",
                  "actorcore",
                  "unity",
                  "unreal",
                  "vrm"
                ]
              },
              "format": {
                "type": "string",
                "enum": [
                  "GLB",
                  "FBX"
                ],
                "default": "GLB"
              },
              "async": {
                "type": "boolean",
                "default": false,
                "description": "Return the task ID immediately."
              },
              "callback_url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https://",
                "maxLength": 8192,
                "description": "Receive the final JSON result by HTTPS POST; implies async."
              }
            },
            "required": [
              "action"
            ],
            "oneOf": [
              {
                "required": [
                  "model_id"
                ]
              },
              {
                "required": [
                  "model_url"
                ]
              }
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "action": {
                "type": "string",
                "enum": [
                  "retarget"
                ]
              },
              "model_id": {
                "type": "string",
                "format": "uuid"
              },
              "format": {
                "type": "string",
                "enum": [
                  "GLB",
                  "FBX"
                ],
                "default": "GLB"
              },
              "animation": {
                "type": "string",
                "pattern": "^preset:[a-z0-9_]+(:[a-z0-9_]+)*$"
              },
              "animations": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^preset:[a-z0-9_]+(:[a-z0-9_]+)*$"
                },
                "minItems": 1,
                "maxItems": 5
              },
              "export_with_geometry": {
                "type": "boolean"
              },
              "animate_in_place": {
                "type": "boolean"
              },
              "async": {
                "type": "boolean",
                "default": false,
                "description": "Return the task ID immediately."
              },
              "callback_url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https://",
                "maxLength": 8192,
                "description": "Receive the final JSON result by HTTPS POST; implies async."
              }
            },
            "required": [
              "action",
              "model_id"
            ],
            "oneOf": [
              {
                "required": [
                  "animation"
                ]
              },
              {
                "required": [
                  "animations"
                ]
              }
            ]
          }
        ]
      },
      "TripoRigCheck": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "riggable": {
            "type": "boolean"
          },
          "rig_type": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "riggable"
        ]
      },
      "TripoTask": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "type": {
            "type": "string",
            "enum": [
              "generations",
              "models",
              "animations"
            ]
          },
          "trace_id": {
            "type": "string"
          },
          "created_at": {
            "type": "number",
            "minimum": 0
          },
          "started_at": {
            "type": "number",
            "minimum": 0
          },
          "finished_at": {
            "type": "number",
            "minimum": 0
          },
          "elapsed": {
            "type": "number",
            "minimum": 0
          },
          "progress": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          },
          "request": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/TripoGenerationsRequest"
              },
              {
                "$ref": "#/components/schemas/TripoModelsRequest"
              },
              {
                "$ref": "#/components/schemas/TripoAnimationsRequest"
              }
            ]
          },
          "response": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "success": {
                    "type": "boolean",
                    "enum": [
                      true
                    ]
                  },
                  "task_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "trace_id": {
                    "type": "string"
                  },
                  "data": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/TripoModel"
                        },
                        {
                          "$ref": "#/components/schemas/TripoRigCheck"
                        }
                      ]
                    },
                    "minItems": 1
                  },
                  "cost": {
                    "$ref": "#/components/schemas/TripoCost"
                  }
                },
                "required": [
                  "success",
                  "task_id",
                  "trace_id",
                  "data"
                ]
              },
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "success": {
                    "type": "boolean",
                    "enum": [
                      false
                    ]
                  },
                  "error": {
                    "$ref": "#/components/schemas/TripoError"
                  },
                  "task_id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "trace_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "success",
                  "error",
                  "task_id",
                  "trace_id"
                ]
              }
            ]
          }
        },
        "required": [
          "id",
          "type",
          "trace_id",
          "request",
          "created_at",
          "started_at"
        ]
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/tripo/generations": {
      "post": {
        "operationId": "tripo_generations",
        "summary": "Tripo Generations",
        "description": "Create a 3D model from text, one image or multiple views. Synchronous by default; async or callback_url returns a task receipt.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Tripo"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TripoGenerationsRequest"
              },
              "example": {
                "prompt": "A small wooden dining chair",
                "async": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Completed result or async receipt",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "task_id": {
                          "type": "string",
                          "format": "uuid"
                        }
                      },
                      "required": [
                        "task_id"
                      ]
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "success": {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        "task_id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "trace_id": {
                          "type": "string"
                        },
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/TripoModel"
                          },
                          "minItems": 1
                        },
                        "cost": {
                          "$ref": "#/components/schemas/TripoCost"
                        },
                        "started_at": {
                          "type": "number",
                          "minimum": 0
                        },
                        "finished_at": {
                          "type": "number",
                          "minimum": 0
                        },
                        "elapsed": {
                          "type": "number",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "success",
                        "task_id",
                        "trace_id",
                        "started_at",
                        "finished_at",
                        "elapsed",
                        "data"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden or content rejected",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "404": {
            "description": "Source model not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "409": {
            "description": "Idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "500": {
            "description": "Generation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "503": {
            "description": "Service temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "504": {
            "description": "Task pending after synchronous wait",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          }
        }
      }
    },
    "/tripo/models": {
      "post": {
        "operationId": "tripo_models",
        "summary": "Tripo Models",
        "description": "Import, retexture or convert an existing model. Synchronous by default; async or callback_url returns a task receipt.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Tripo"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TripoModelsRequest"
              },
              "example": {
                "action": "convert",
                "model_id": "5db97adc-a877-4587-af16-bbf443aa55de",
                "format": "FBX",
                "async": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Completed result or async receipt",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "task_id": {
                          "type": "string",
                          "format": "uuid"
                        }
                      },
                      "required": [
                        "task_id"
                      ]
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "success": {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        "task_id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "trace_id": {
                          "type": "string"
                        },
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/TripoModel"
                          },
                          "minItems": 1
                        },
                        "cost": {
                          "$ref": "#/components/schemas/TripoCost"
                        },
                        "started_at": {
                          "type": "number",
                          "minimum": 0
                        },
                        "finished_at": {
                          "type": "number",
                          "minimum": 0
                        },
                        "elapsed": {
                          "type": "number",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "success",
                        "task_id",
                        "trace_id",
                        "started_at",
                        "finished_at",
                        "elapsed",
                        "data"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden or content rejected",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "404": {
            "description": "Source model not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "409": {
            "description": "Idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "500": {
            "description": "Generation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "503": {
            "description": "Service temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "504": {
            "description": "Task pending after synchronous wait",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          }
        }
      }
    },
    "/tripo/animations": {
      "post": {
        "operationId": "tripo_animations",
        "summary": "Tripo Animations",
        "description": "Inspect riggability, rig a model or retarget one to five animation presets. Synchronous by default; async or callback_url returns a task receipt.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Tripo"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TripoAnimationsRequest"
              },
              "example": {
                "action": "rig_check",
                "model_id": "5db97adc-a877-4587-af16-bbf443aa55de",
                "async": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Completed result or async receipt",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "task_id": {
                          "type": "string",
                          "format": "uuid"
                        }
                      },
                      "required": [
                        "task_id"
                      ]
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "success": {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        "task_id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "trace_id": {
                          "type": "string"
                        },
                        "data": {
                          "type": "array",
                          "items": {
                            "oneOf": [
                              {
                                "$ref": "#/components/schemas/TripoModel"
                              },
                              {
                                "$ref": "#/components/schemas/TripoRigCheck"
                              }
                            ]
                          },
                          "minItems": 1
                        },
                        "cost": {
                          "$ref": "#/components/schemas/TripoCost"
                        },
                        "started_at": {
                          "type": "number",
                          "minimum": 0
                        },
                        "finished_at": {
                          "type": "number",
                          "minimum": 0
                        },
                        "elapsed": {
                          "type": "number",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "success",
                        "task_id",
                        "trace_id",
                        "started_at",
                        "finished_at",
                        "elapsed",
                        "data"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden or content rejected",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "404": {
            "description": "Source model not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "409": {
            "description": "Idempotency conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "500": {
            "description": "Generation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "503": {
            "description": "Service temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "504": {
            "description": "Task pending after synchronous wait",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          }
        }
      }
    },
    "/tripo/tasks": {
      "post": {
        "operationId": "tripo_tasks",
        "summary": "Tripo tasks",
        "description": "Retrieve one or several authorized tasks for free. A completed result is nested under response.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Tripo"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "action": {
                        "type": "string",
                        "enum": [
                          "retrieve"
                        ],
                        "default": "retrieve"
                      },
                      "id": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "trace_id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      }
                    },
                    "oneOf": [
                      {
                        "required": [
                          "id"
                        ]
                      },
                      {
                        "required": [
                          "trace_id"
                        ]
                      }
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "action": {
                        "type": "string",
                        "enum": [
                          "retrieve_batch"
                        ]
                      },
                      "ids": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "minItems": 1,
                        "maxItems": 100
                      },
                      "trace_ids": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "minItems": 1,
                        "maxItems": 100
                      }
                    },
                    "oneOf": [
                      {
                        "required": [
                          "ids"
                        ]
                      },
                      {
                        "required": [
                          "trace_ids"
                        ]
                      }
                    ],
                    "required": [
                      "action"
                    ]
                  }
                ]
              },
              "example": {
                "action": "retrieve",
                "id": "0dc1fbad-1bb2-4ee3-a931-ead28fc16fcd"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Task record, batch or empty object",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/TripoTask"
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "oneOf": [
                              {
                                "$ref": "#/components/schemas/TripoTask"
                              },
                              {
                                "type": "object",
                                "nullable": true,
                                "enum": [
                                  null
                                ],
                                "additionalProperties": false
                              }
                            ]
                          },
                          "description": "Matches input order; an unknown or inaccessible ID has a null entry."
                        },
                        "count": {
                          "type": "integer",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "items",
                        "count"
                      ]
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {}
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden or content rejected",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          },
          "503": {
            "description": "Service temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripoErrorResult"
                }
              }
            }
          }
        }
      }
    }
  }
}
