TRIVERSE Docs

Common Response Structures

This section details the common data structures you will encounter when interacting with the Triverse API. These payloads are consistently used across various endpoints to provide standardized information regarding task creation, status updates, and asset downloads.

Task Creation Response Payload (TaskCreationResponsePayload)

All task creation endpoints (e.g., Image to 3D, Text to 3D) return a StandardResponse containing this payload. It provides immediate details about the newly initiated task.

FieldTypeDescription
task_uuidUUIDThe unique identifier for the task. Use this for status queries, downloads, or WebSocket subscriptions.
nameStringThe name of the task; defaults to task_uuid if not provided.
created_atDateThe UTC timestamp when the task was created.
is_publicBooleanIndicates whether the task is publicly visible.
task_priorityIntegerThe scheduling priority of the task (0 is default).
statusStringThe initial status of the task, typically PENDING.
flow_nameStringThe name of the underlying workflow (e.g., image-to-model).
inputObjectA snapshot of the standardized request parameters (e.g., image_url, prompt).
costCreditsInteger / NullThe number of credits frozen for this task. Credits are unfrozen if the task fails and officially deducted upon success.

Example:

{
  "code": 0,
  "message": "success",
  "data": {
    "task_uuid": "92483a80-236c-4889-9a95-4c90bb64dfd8",
    "name": "image-to-model-92483a80",
    "created_at": "2025-08-05T12:39:48.228522Z",
    "is_public": true,
    "task_priority": 0,
    "status": "PENDING",
    "flow_name": "image-to-model",
    "input": {
      "image_url": "https://triverse-public.oss-cn-beijing.aliyuncs.com/tasks/.../input.png",
      "model_version": "v2",
      "polygon_limit": 1000000,
      "texture_size": 1024
    },
    "costCredits": 120
  }
}

Flow Status Payload (FlowStatusPayload)

This payload is returned by GET /api/v1/tasks/{task_uuid} and pushed via WebSocket updates. It provides comprehensive details about the current state and progress of an ongoing task.

FieldTypeDescription
flowNameStringThe name of the Prefect flow executing the task.
taskIdUUIDThe unique identifier of the task.
statusStringThe current status of the task (e.g., PENDING, RUNNING, SUCCESS, FAILED, CANCELLED).
inputObjectA snapshot of the input parameters used to trigger the task.
outputObjectThe execution results or intermediate states returned by Prefect. The structure varies depending on the flow.
createTimeDateThe UTC creation time of the flow run.

Example:

{
  "code": 0,
  "message": "success",
  "data": {
    "flowName": "image-to-model",
    "taskId": "92483a80-236c-4889-9a95-4c90bb64dfd8",
    "status": "RUNNING",
    "input": {
      "image_url": "https://triverse-public.oss-cn-beijing.aliyuncs.com/tasks/.../input.png",
      "model_version": "v2",
      "polygon_limit": 1000000,
      "texture_size": 1024
    },
    "output": {
      "geometry_job_status": "COMPLETED",
      "texture_job_status": "IN_PROGRESS",
      "preprocessed_image_url": [
        "https://triverse-public.oss-cn-beijing.aliyuncs.com/tasks/.../preprocessed_input_image_0.png"
      ],
      "geometry_model_url": [
        "https://triverse-public.oss-cn-beijing.aliyuncs.com/tasks/.../textureless_model_0.glb"
      ],
      "textured_model_url": null
    },
    "createTime": "2025-08-05T12:39:48.228522Z"
  }
}

Download Response (DownloadResponse)

This payload is returned by GET /api/v1/tasks/url/{task_uuid} and provides URLs for downloading generated assets.

FieldTypeDescription
download_urlStringA direct URL to download the asset file.
preview_urlString(Optional) A URL to a preview image of the asset.
asset_idUUID(Optional) The unique identifier for the asset.
kindString(Optional) The type of asset (e.g., model, image).

Example:

{
  "code": 0,
  "message": "success",
  "data": {
    "download_url": "https://triverse-public.oss-cn-beijing.aliyuncs.com/tasks/.../model.glb",
    "preview_url": "https://triverse-public.oss-cn-beijing.aliyuncs.com/tasks/.../preview.png",
    "asset_id": "c3b5b8a0-5b1f-4b7e-8c1a-9a8b7c6d5e4f",
    "kind": "model"
  }
}

On this page