gongxiangp2/yedir/tripo3d-api.md
chenpei d0dc94e36d feat: 将弹幕功能替换为AI聊天助手
新功能:
- 创建AI聊天助手组件(AIChatWidget)
- 支持文字+图片多模态对话
- 集成Gemini AI API
- 支持图片编辑和内容生成
- 实时对话历史管理
- 优雅的UI设计,支持黑夜模式

技术实现:
- 后端API代理Gemini API(/api/ai-chat)
- 支持最多5张图片上传
- 流式响应处理
- 对话历史管理
- Base64图片处理

配置:
- 在.env中添加Gemini API配置
- GEMINI_API_KEY
- GEMINI_API_BASE_URL
- GEMINI_MODEL

替换原弹幕功能,提供更强大的AI助手体验!
2025-10-27 17:45:37 +08:00

55 KiB
Executable File
Raw Blame History

General
Server URL
The current host URL is:
https://api.tripo3d.ai/v2/openapi
Request Body
Unless otherwise specified, the body of all requests should be in JSON format.
Response Structure
All endpoints adhere to a unified response structure for both success and failure scenarios, with the exception of those enabled for Server-Sent Events (SSE).
Succeeded
{
"code": 0,
"data": {}
}
For all succeeded requests, the code will always be 0, and the data is varied by the corresponding endpoint.
Error
{
"code": 2002,
"message": "This task type is not supported",
"suggestion": "Refer to API documentation for supported task types"
}
For every request that encounters an error, the code field will be non-zero, indicating a specific error has occurred. Accompanying this, the message and suggestion fields are provided to assist in diagnosing the error and guiding you toward rectifying your code.
For all error codes and their meaning, please refer to the Error Handling page.
Trace ID
All responses, whether successful or unsuccessful, include a standard header field named X-Tripo-Trace-ID:
X-Tripo-Trace-ID: 20516a36-f45c-4454-83c8-45877b75eac8
This ID is randomly generated for each request. We recommend logging this value for tracking purposes.
In the event of an error, please provide this ID when reporting the issue to us, enabling a more effective investigation.

Task
Given that generation occurs asynchronously, we advise familiarizing yourself with the Task endpoints initially.
The typical workflow is outlined as follows:

Websocket Streaming
Watch a Specific Task
wss://api.tripo3d.ai/v2/openapi/task/watch/:task_id
Request
*
Response
The response adheres to the event stream format, detailed below:
*
*
*
*
Example
Library: Select librarypythongojavascript
import asyncio
import websockets
import json
api_key = "tsk_***"
task_id = "ef731ad6-aeb0-4950-9a2e-2298359dfaf8"
async def receive_one(tid):
url = f"wss://api.tripo3d.ai/v2/openapi/task/watch/{tid}"
headers = {
"Authorization": f"Bearer {api_key}"
}
async with websockets.connect(url, extra_headers=headers) as websocket:
while True:
message = await websocket.recv()
try:
data = json.loads(message)
status = data['data']['status']
if status not in ['running', 'queued']:
break
except json.JSONDecodeError:
print("Received non-JSON message:", message)
break
return data
result = asyncio.run(receive_one(task_id))
print(result)
Watch all tasks
wss://api.tripo3d.ai/v2/openapi/task/watch/all/:time
All similar to Watch a Task. time is used to continue watch since last time. If time is not provided, you will watch all tasks from now. The time format is YYYY-MM-DDThh:mm:ssTZD (eg 1997-07-16T19:20:30+01:00).
Polling
Get a Specific Task
GET https://api.tripo3d.ai/v2/openapi/task/:task_id
Request
*
Response
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
Example
Library: Select librarycurlpythongojavascript

export TASK_ID="ef731ad6-aeb0-4950-9a2e-2298359dfaf8"
curl https://api.tripo3d.ai/v2/openapi/task/${TASK_ID} \
-H "Authorization: Bearer ${APIKEY}"

{
"code": 0,
"data": {
"task_id": "ef731ad6-aeb0-4950-9a2e-2298359dfaf8",
"type": "text_to_model",
"status": "running",
"input": {
"prompt": "a small cat"
},
"output": {},
"progress": 99,
"create_time": 1709048933
}
}

Behaviour
This endpoint facilitates tracking your task’s progress and accessing its output.
It is essential that the task should be accessed using the same API key that initiated the task. In other words, if you initiate a task with API key A and attempt to query it with API key B—even if both keys belong to the same user—an error indicating that the task could not be found will occur.
For real-time tracking of task generation progress, we recommend utilizing our streaming method over traditional polling for a more efficient update mechanism. Further details and examples are provided below.
Be aware that the output field might sometimes contain additional, undocumented fields. These fields can vary and may not always be available, so depending on them for essential processes is not recommended.
Errors
HTTP STATUS CODE
429
For more infomation, please refer to Generation Rate Limit section below.
404
Upload
Endpoint overview:
POST https://api.tripo3d.ai/v2/openapi/upload
Upload Image
Request
The request body should be in multipart form and Content-Type in the HTTP Header should be multipart/form-data
*
Response
*
Behaviour
The upload process typically completes within a few seconds.
Example
Request:

export APIKEY="tsk_***"
curl -X POST 'https://api.tripo3d.ai/v2/openapi/upload' \
-H 'Content-Type: multipart/form-data' \
-H "Authorization: Bearer ${APIKEY}" \
-F "file=@cat.jpeg"
unset APIKEY

{
"code": 0,
"data": {
"image_token": "ce85f375-3ccc-440b-b847-571588872ec2"
}
}

Errors
HTTP STATUS CODE
429
For more infomation, please refer to Generation Rate Limit.
400
400
Generation
The overall endpoint is:
POST https://api.tripo3d.ai/v2/openapi/task
Image to Model
Request
*
*
*
*
*
*
*
*
*
*
*
*
The options below are only valid for model_version>=v2.0-20240919
*
*
*
*
*
*
*
*
*
*
*
*
*
STYLE TYPES
person:person2cartoon
object:clay
object:steampunk
animal:venom
object:barbie
object:christmas
gold
ancient_bronze
Response
*
Behaviour
You can expect the same behaviour with text to model.
Example
Request:
Library: Select librarycurlpythongojavascript
curl -X POST 'https://api.tripo3d.ai/v2/openapi/task' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer ${APIKEY}" \
-d '{ "type": "image_to_model",
"file": {
"type": "jpg",
"file_token": "***"
}
}'
Response:
{
"code": 0,
"data": {
"task_id": "1ec04ced-4b87-44f6-a296-beee80777941"
}
}
Errors
HTTP STATUS CODE
429
For more infomation, please refer to Generation Rate Limit.
400
400
400
400
If you believe the input should be valid, please contact us.
403
400
Text to Model
Request
*
*
*
*
*
*
*
*
*
*
*
*
*
The options below are only valid for model_version>=v2.0-20240919
*
*
*
*
*
*
*
*
*
Response
*
Behaviour
Once the task moves out of the waiting queue, it typically completes within a few seconds.
Below are options you can use to customize the behavior and appearance of models in your prompts.
Specifying Poses
To set your model in a specific pose, you can append T-pose or A-pose to the end of your prompt. For example, godzilla, A-pose will position Godzilla in an A-pose.
For more detailed customization, you can specify additional ratios for the T-pose using the format T-pose:A:B:C:D:E, where:
*
*
*
*
*
Using T-pose without additional parameters implies the default ratios: T-pose:1:1:1:1:9.
The parameters are now “relative” values, e.g., to increase the leg length, you may try something like T/A-pose:1:1:1.05:1
Please ensure your input matches the specified format exactly. For instance, the following examples will not be recognized:
*
*
*
This format allows precise control over the model’s posture, enhancing the specificity and quality of your generated content.
Example
Request:
Library: Select librarycurlpythongojavascript
export APIKEY="tsk_***"
curl https://api.tripo3d.ai/v2/openapi/task \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer ${APIKEY}" \
-d '{"type": "text_to_model", "prompt": "a small cat"}'
unset APIKEY
Response:
{
"code": 0,
"data": {
"task_id": "1ec04ced-4b87-44f6-a296-beee80777941"
}
}
Errors
HTTP STATUS CODE
429
For more infomation, please refer to Generation Rate Limit.
400
400
If you believe the input should be valid, please contact us.
403
400
Multiview to Model
Request
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
Note: The directions of object in images should be [0°, 90°, 180°, 270°] and the object should be consistent among these images. left means the left arm of the input character for example.
FRONT
Response
*
Behaviour
You can expect the same behaviour with text to model.
Example
Request:
Library: Select librarycurlpythongojavascript
curl -X POST 'https://api.tripo3d.ai/v2/openapi/task' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer ${APIKEY}" \
-d '{ "type": "multiview_to_model",
"files": [
{
"type": "jpg",
"file_token": "***"
},
{},
{
"type": "jpg",
"file_token": "***"
},
{
"type": "jpeg",
"url": "***"
}
],
"model_version": "v2.5-20250123"
}'
Response:
{
"code": 0,
"data": {
"task_id": "1ec04ced-4b87-44f6-a296-beee80777941"
}
}
Errors
HTTP STATUS CODE
429
For more infomation, please refer to Generation Rate Limit.
400
400
400
400
If you believe the input should be valid, please contact us.
403
400
Texture Model
Request
*
*
*
*
*
*
*
*
*
*
*
*
Response
*
Behaviour
You can expect the same behaviour with text to model.
Example
Request:
Library: Select librarycurlpythongojavascript
curl -X POST 'https://api.tripo3d.ai/v2/openapi/task' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer ${APIKEY}" \
-d '{"type": "texture_model", "original_model_task_id": "1ec04ced-4b87-44f6-a296-beee80777941"}'
Response:
{
"code": 0,
"data": {
"task_id": "e3046989-e69d-4e0d-b192-7573227e3ce5"
}
}
Errors
HTTP STATUS CODE
429
For more infomation, please refer to Generation Rate Limit.
400
400
400
403
Refine Model
Request
*
*
*
*
*
Note: models of model_version>=v2.0-20240919 for refine is not suppoted.
Response
*
Behaviour
The refinement process, being considerably more complex than initial drafting, yields a lower throughput and necessitates longer wait times, which are typically about 2 minutes in addition to queueing time.
We are actively enhancing our system to improve performance, which may cause these figures to vary over time. If you require increased throughput, please contact us for further assistance.
Example
Request:
Library: Select librarycurlpythongojavascript
curl -X POST 'https://api.tripo3d.ai/v2/openapi/task' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer ${APIKEY}" \
-d '{"type": "refine_model", "draft_model_task_id": "1ec04ced-4b87-44f6-a296-beee80777941"}'
Response:
{
"code": 0,
"data": {
"task_id": "e3046989-e69d-4e0d-b192-7573227e3ce5"
}
}
Errors
HTTP STATUS CODE
429
For more infomation, please refer to Generation Rate Limit.
400
400
It is not supported to refine a model from a non-draft model, e.g., refine a model twice.
400
403
Animation
The animation task enhances the output of your previous generation tasks (draft or refine) by automatically rigging your model and adding animation. To give you an idea of what to expect, here’s a preview video showcasing the potential results:
Understanding the capabilities and limitations of our models is essential for achieving optimal results, especially when generating images that may not closely resemble human or quadruped figures. To help you navigate these challenges, we recommend adhering to the following guidelines:
*
*
*
*
*
*
*
*
While these guidelines are designed to enhance the quality of the outcomes, we also value creativity and exploration. There are no strict limitations, so feel free to experiment with different concepts and ideas.
Bonus Tip: Unsure about what might work best? Try our newly introduced feature that allows for specifying A/T-poses in your text prompts. This can be a great starting point for characters and models suited for animation.
The old animate interface is split into the following three new interfaces, which means animate = prerigcheck + rigging + retarget.
PreRigCheck
POST https://api.tripo3d.ai/v2/openapi/task
Request
*
*
*
*
*
*
*
Response
*
Behaviour
The prerigcheck task checks if a model can be rigged and tries to distinguish the topology of the model (bipedal or quadruped).
Upon completion, the output will include the following elements, as detailed in our task definition:
*
*
It is important to note that a task can be rigged prior to its check, and a result of 0 in the PreRigCheck task output doesn’t necessarily mean it cannot be rigged. If you are confident with the content of your model, you do not need to call it.
Example
Request:
Library: Select librarycurlpythongojavascript
curl -X POST 'https://api.tripo3d.ai/v2/openapi/task' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer ${APIKEY}" \
-d '{ "type": "animate_prerigcheck",
"original_model_task_id": "1ec04ced-4b87-44f6-a296-beee80777941"
}'
Response:
{
"code": 0,
"data": {
"task_id": "e3046989-e69d-4e0d-b192-7573227e3ce5"
}
}
Rig
POST https://api.tripo3d.ai/v2/openapi/task
Request
*
*
*
*
*
*
*
*
*
*
Response
*
Behaviour
The rig task accepts a model as input and outputs a version of the model that has been rigged. You should specify the topology (bip or quad, you can guess it with prerigcheck) of the model. For bipedal models, tripo and mixamo specifications are supported.
Upon completion, the output will include the following elements, as detailed in our task definition:
*
Example
Request:
Library: Select librarycurlpythongojavascript
curl -X POST 'https://api.tripo3d.ai/v2/openapi/task' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer ${APIKEY}" \
-d '{ "type": "animate_rig",
"original_model_task_id": "1ec04ced-4b87-44f6-a296-beee80777941",
"out_format": "glb"
}'
Response:
{
"code": 0,
"data": {
"task_id": "e3046989-e69d-4e0d-b192-7573227e3ce5"
}
}
Retarget
POST https://api.tripo3d.ai/v2/openapi/task
Request
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
Response
*
Behaviour
A retarget task actuates a rigged model to conform to a predefined animation sequence.
Upon completion, the output will include the following elements, as detailed in our task definition:
*
Example
Request:
Library: Select librarycurlpythongojavascript
curl -X POST 'https://api.tripo3d.ai/v2/openapi/task' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer ${APIKEY}" \
-d '{ "type": "animate_retarget",
"original_model_task_id": "1ec04ced-4b87-44f6-a296-beee80777941",
"out_format": "glb",
"animation": "preset:run"
}'
Response:
{
"code": 0,
"data": {
"task_id": "e3046989-e69d-4e0d-b192-7573227e3ce5"
}
}
Errors
HTTP STATUS CODE
429
For more infomation, please refer to Generation Rate Limit.
400
400
400
403
Post Process
Stylization
POST https://api.tripo3d.ai/v2/openapi/task
Request
*
*
*
*
*
*
*
*
Only the task IDs of the tasks below are supported:
*
*
*
*
*
*
*
Response
*
Behaviour
Once the task moves out of the waiting queue, it typically completes within a few seconds.
Example
Request:
Library: Select librarycurlpythongojavascript
export APIKEY="tsk_***"
curl https://api.tripo3d.ai/v2/openapi/task \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer ${APIKEY}" \
-d '{
}'
unset APIKEY
Response:
{
"code": 0,
"data": {
"task_id": "1ec04ced-4b87-44f6-a296-beee80777941"
}
}
Conversion
POST https://api.tripo3d.ai/v2/openapi/task
Request
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
Note:
*
*
Response
*
Behaviour
Once the task moves out of the waiting queue, it typically completes within a few seconds. If quad=true, it will take about 1 min.
Example
Request:
Library: Select librarycurlpythongojavascript
export APIKEY="tsk_***"
curl https://api.tripo3d.ai/v2/openapi/task \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer ${APIKEY}" \
-d '{
}'
unset APIKEY
Response:
{
"code": 0,
"data": {
"task_id": "1ec04ced-4b87-44f6-a296-beee80777941"
}
}
Errors
HTTP STATUS CODE
429
For more infomation, please refer to Generation Rate Limit.
400
400
400
403
OpenAPI Schema
Library: Select libraryyamljson
openapi: 3.0.1
info:
title: Tripo 3D Generation
description: use tripo to generate 3d models
version: 1.0.0
servers:
- url: https://api.tripo3d.ai/v2/openapi
paths:
/task/{task_id}:
get:
summary: use the task_id created by createTask to get the status of a task
operationId: getTask
parameters:
- name: task_id
in: path
required: true
schema:
type: string
responses:
'200':
description: succeed
content:
application/json:
schema:
type: object
properties:
code:
type: integer
enum:
- 0
data:
$ref: '#/components/schemas/Task'
required:
- code
- data
'400':
description: failed
content:
application/json:
schema:
type: object
properties:
code:
type: integer
enum:
- 2000
- 2001
message:
type: string
suggestion:
type: string
required:
- code
- message
- suggestion
/upload:
post:
summary: upload a file
operationId: uploadFile
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
required:
- file
encoding:
profileImage:
contentType: image/png, image/jpeg
responses:
'200':
description: succeed
content:
application/json:
schema:
type: object
properties:
code:
type: integer
enum:
- 0
data:
type: object
properties:
image_token:
type: string
required:
- image_token
required:
- code
- data
'400':
description: failed
content:
application/json:
schema:
type: object
properties:
code:
type: integer
enum:
- 2000
- 2002
- 2004
message:
type: string
suggestion:
type: string
required:
- code
- message
- suggestion
/task:
post:
summary: create a task
operationId: createTask
requestBody:
content:
application/json:
schema:
oneOf:
- type: object
properties:
type:
type: string
enum:
- text_to_model
prompt:
type: string
maxLength: 1024
negative_prompt:
type: string
maxLength: 1024
model_version:
type: string
enum:
- v2.5-20250123
- v2.0-20240919
- v1.4-20240625
default: default
face_limit:
type: integer
texture:
type: boolean
default: true
pbr:
type: boolean
default: true
text_seed:
type: integer
model_seed:
type: integer
texture_seed:
type: integer
texture_quality:
type: string
enum:
- standard
- detailed
default: standard
style:
type: string
enum:
- person:person2cartoon
- animal:venom
- object:clay
- object:steampunk
- object:christmas
- object:barbie
- gold
- ancient_bronze
auto_size:
type: boolean
default: false
quad:
type: boolean
default: false
required:
- type
- prompt
- type: object
properties:
type:
type: string
enum:
- image_to_model
file:
type: object
properties:
type:
type: string
file_token:
type: string
required:
- type
- file_token
model_version:
type: string
enum:
- v2.5-20250123
- v2.0-20240919
- v1.4-20240625
default: default
face_limit:
type: integer
texture:
type: boolean
default: true
pbr:
type: boolean
default: true
model_seed:
type: integer
texture_seed:
type: integer
texture_quality:
type: string
enum:
- standard
- detailed
default: standard
texture_alignment:
type: string
enum:
- original_image
- geometry
default: original_image
style:
type: string
enum:
- person:person2cartoon
- animal:venom
- object:clay
- object:steampunk
- object:christmas
- object:barbie
- gold
- ancient_bronze
auto_size:
type: boolean
default: false
orientation:
type: string
enum:
- align_image
- default
default: default
quad:
type: boolean
default: false
required:
- type
- file
- type: object
properties:
type:
type: string
enum:
- multiview_to_model
files:
type: array
items:
type: object
properties:
type:
type: string
file_token:
type: string
required:
- type
- file_token
mode:
type: string
enum:
- LEFT
- RIGHT
model_version:
type: string
enum:
- v2.5-20250123
- v2.0-20240919
- v1.4-20240625
default: default
orthographic_projection:
type: boolean
default: false
face_limit:
type: integer
texture:
type: boolean
default: true
pbr:
type: boolean
default: true
model_seed:
type: integer
texture_seed:
type: integer
texture_quality:
type: string
enum:
- standard
- detailed
default: standard
texture_alignment:
type: string
enum:
- original_image
- geometry
default: original_image
auto_size:
type: boolean
default: false
orientation:
type: string
enum:
- align_image
- default
default: default
quad:
type: boolean
default: false
required:
- type
- files
- type: object
properties:
type:
type: string
enum:
- texture_model
texture:
type: boolean
default: true
pbr:
type: boolean
default: true
model_seed:
type: integer
texture_seed:
type: integer
texture_quality:
type: string
enum:
- standard
- detailed
texture_alignment:
type: string
enum:
- original_image
- geometry
default: original_image
original_model_task_id:
type: string
required:
- type
- original_model_task_id
- type: object
properties:
type:
type: string
enum:
- refine_model
draft_model_task_id:
type: string
required:
- type
- draft_model_task_id
- type: object
properties:
type:
type: string
enum:
- animate_prerigcheck
original_model_task_id:
type: string
required:
- type
- original_model_task_id
- type: object
properties:
type:
type: string
enum:
- animate_rig
original_model_task_id:
type: string
out_format:
type: string
enum:
- glb
- fbx
default: glb
topology:
type: string
enum:
- "bip"
- "quad"
spec:
type: string
enum:
- "mixamo"
- "tripo"
default: "tripo"
required:
- type
- original_model_task_id
- type: object
properties:
type:
type: string
enum:
- animate_retarget
original_model_task_id:
type: string
out_format:
type: string
enum:
- glb
- fbx
default: glb
animation:
type: string
enum:
- preset:idle
- preset:walk
- preset:climb
- preset:jump
- preset:run
- preset:slash
- preset:shoot
- preset:hurt
- preset:fall
- preset:turn
bake_animation:
type: boolean
default: true
required:
- type
- original_model_task_id
- animation
- type: object
properties:
type:
type: string
enum:
- stylize_model
style:
type: string
enum:
- lego
- voxel
- voronoi
- minecraft
original_model_task_id:
type: string
block_size:
type: integer
default: 80
required:
- type
- style
- original_model_task_id
- type: object
properties:
type:
type: string
enum:
- convert_model
format:
type: string
enum:
- GLTF
- USDZ
- FBX
- OBJ
- STL
- 3MF
original_model_task_id:
type: string
quad:
type: boolean
default: false
force_symmetry:
type: boolean
default: false
face_limit:
type: integer
default: 10000
flatten_bottom:
type: boolean
default: false
flatten_bottom_threshold:
type: number
default: 0.01
texture_size:
type: integer
default: 4096
texture_format:
type: string
enum:
- BMP
- DPX
- HDR
- JPEG
- OPEN_EXR
- PNG
- TARGA
- TIFF
- WEBP
default: JPEG
pivot_to_center_bottom:
type: boolean
default: false
required:
- type
- format
- original_model_task_id
responses:
'200':
description: succeed
content:
application/json:
schema:
$ref: '#/components/schemas/SuccessTask'
'400':
description: failed
content:
application/json:
schema:
type: object
properties:
code:
type: integer
enum:
- 2000
- 2002
- 2003
- 2004
- 2006
- 2007
- 2008
- 2010
message:
type: string
suggestion:
type: string
required:
- code
- message
- suggestion
/user/balance:
get:
summary: get user balance
operationId: getBalance
responses:
"200":
description: succeed
content:
application/json:
schema:
type: object
properties:
code:
type: integer
enum: [0]
data:
$ref: "#/components/schemas/Balance"
required:
- code
- data
"500":
description: failed
content:
application/json:
schema:
type: object
properties:
code:
type: integer
enum: [1001]
message:
type: string
suggestion:
type: string
required:
- code
- message
- suggestion
components:
schemas:
Task:
type: object
properties:
task_id:
type: string
type:
type: string
status:
type: string
enum:
- queued
- running
- success
- failed
- cancelled
- unknown
- banned
- expired
input:
type: object
output:
type: object
properties:
model:
type: string
base_model:
type: string
pbr_model:
type: string
rendered_image:
type: string
riggable:
type: boolean
topology:
type: string
enum:
- "bip"
- "quad"
progress:
type: integer
minimum: 0
maximum: 100
create_time:
type: integer
required:
- task_id
- type
- status
- input
- output
- progress
- create_time
SuccessTask:
type: object
properties:
code:
type: integer
enum:
- 0
data:
type: object
properties:
task_id:
description: used for getTask
type: string
required:
- task_id
required:
- code
- data
Balance:
type: object
properties:
code:
type: integer
enum: [0]
data:
type: object
properties:
balance:
type: number
frozen:
type: number
required: ["balance", "frozen"]
required: ["code", "data"]

Error Handling
Common Errors
Below is a list of common errors not specific to any single endpoint. For errors related to a particular endpoint, please refer to the corresponding documentation.
HTTP STATUS CODE
500
500
401
400
400
403