Video Editor 配置
tong_video_editor_config选择配置前,请查看支持的模型、设置和输入要求。
/v1/tools/tong_video_editor_config/operations请求示例#
curl -X POST 'https://platform.tongai.io/v1/tools/tong_video_editor_config/operations' \ -H "Authorization: Bearer $TONG_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "input": {}}'配置
curl --version权限#
为自己的账户使用服务器端 API 密钥,为各客户的账户使用 OAuth。切勿将密钥放入提示词或工具参数。
catalog:read请求正文#
REST 请求将工具参数封装在 input 中。MCP 调用直接发送相同参数。
请求标头#
Authorization: Bearer $TONG_API_KEYContent-Type: application/json每项操作保留一个 UUID,超时或重试时重复使用。同一 UUID 对应不同输入会被拒绝。
响应字段#
请求被接受不代表生成已完成。请跟踪已保存的任务,直到输出就绪。
已接受表示请求已保存。读取操作以跟踪执行。
{ "id": "e8aa0a87-6cd9-42eb-975a-b72bf43218c8", "tool": "tong_video_editor_config", "category": "discovery", "channel": "api", "state": "queued", "status": "accepted", "stage": "admission", "dispatch_status": "pending", "created_at": "2026-10-22T09:00:00.000Z", "updated_at": "2026-10-22T09:00:00.000Z", "detail_expires_at": null, "detail_expired": false, "timing": { "dispatch_started_at": null, "acknowledged_at": null, "completed_at": null, "dispatch_acknowledgement_ms": null, "end_to_end_ms": null }, "review": null, "result": null, "error": null, "billing": { "status": "pending", "usage_credits": "0.000000", "wallet_debited_credits": "0.000000" }}idstring必填已保存操作的唯一 ID。
UUID,例如 e8aa0a87-6cd9-42eb-975a-b72bf43218c8。
toolstring必填categorystring必填channelstring必填"api""mcp"statestring必填已保存任务当前的执行状态。
"queued""running""waiting""needs_review""paused""reconciling""succeeded""failed""cancelled"statusstring必填跟踪操作时使用的总体状态。
"accepted""running""needs_review""paused""reconciling""succeeded""failed""cancelled"stagestring必填操作当前所处的阶段。
"admission""dispatch""review""generation""reconciliation""complete"dispatch_statusstring必填表示工具是否接受了请求。确认接受并不代表生成已完成。
"pending""unknown""acknowledged"created_atstring必填ISO 8601 日期和时间,例如 2026-10-22T09:00:00Z。
updated_atstring必填ISO 8601 日期和时间,例如 2026-10-22T09:00:00Z。
detail_expires_atstring | null必填已存储操作详情的到期时间。null 表示当前未设置到期时间。
ISO 8601 日期和时间,例如 2026-10-22T09:00:00Z。
detail_expiredboolean必填已存储的操作详情是否已到期。
timingobject必填用于跟踪此操作的时间戳和耗时。
显示嵌套字段
dispatch_started_atstring | null必填ISO 8601 日期和时间,例如 2026-10-22T09:00:00Z。
acknowledged_atstring | null必填ISO 8601 日期和时间,例如 2026-10-22T09:00:00Z。
completed_atstring | null必填ISO 8601 日期和时间,例如 2026-10-22T09:00:00Z。
dispatch_acknowledgement_msnumber | null必填最小值:0。
end_to_end_msnumber | null必填最小值:0。
reviewJSON | null必填操作需要人工输入时的审核信息;否则为 null。
resultJSON | null必填此工具返回的输出,尚无输出时为 null。
errorobject | null必填操作失败时的公开错误代码;否则为 null。
显示嵌套字段
codestring必填billingobject必填客户积分用量和钱包扣费。输出就绪与账单结算是独立状态。
显示嵌套字段
statusstring必填"none""pending""settled""released""reconciling"usage_creditsstring必填保留六位小数的十进制字符串,例如 1.250000。
wallet_debited_creditsstring必填保留六位小数的十进制字符串,例如 1.250000。
released_creditsstring可选保留六位小数的十进制字符串,例如 1.250000。
refunded_creditsstring可选保留六位小数的十进制字符串,例如 1.250000。
unfunded_creditsstring可选保留六位小数的十进制字符串,例如 1.250000。
pending_creditsstring可选保留六位小数的十进制字符串,例如 1.250000。
tokensobject可选显示嵌套字段
inputnumber可选最小值:0。
outputnumber可选最小值:0。
cachednumber可选最小值:0。
cache_writenumber可选最小值:0。
componentsobject[]可选显示嵌套字段
idstring可选source_idstring必填toolstring必填modelstring | null必填channelstring必填"api""mcp"credential_idstring必填kindstring必填"text_pool""reasoning""generation"usage_creditsstring必填保留六位小数的十进制字符串,例如 1.250000。
wallet_debited_creditsstring必填保留六位小数的十进制字符串,例如 1.250000。
evidence_atstring可选ISO 8601 日期和时间,例如 2026-10-22T09:00:00Z。
updated_atstring可选ISO 8601 日期和时间,例如 2026-10-22T09:00:00Z。
quoteobject可选报价可用时返回的配置、价格和提交值。
显示嵌套字段
idstring必填UUID,例如 e8aa0a87-6cd9-42eb-975a-b72bf43218c8。
operation_idstring必填UUID,例如 e8aa0a87-6cd9-42eb-975a-b72bf43218c8。
toolstring必填operationstring | null必填modelstring | null必填configurationobject必填submit_valuestring必填submit_fieldstring必填quoted_creditsstring | null必填保留六位小数的十进制字符串,例如 1.250000。
expires_atstring | null必填ISO 8601 日期和时间,例如 2026-10-22T09:00:00Z。
MCP 调用#
{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "tong_video_editor_config", "arguments": {} }}REST 请求将工具参数封装在 input 中。MCP 调用直接发送相同参数。
响应
{ "jsonrpc": "2.0", "id": 1, "result": { "structuredContent": { "id": "e8aa0a87-6cd9-42eb-975a-b72bf43218c8", "tool": "tong_video_editor_config", "category": "discovery", "channel": "mcp", "state": "queued", "status": "accepted", "stage": "admission", "dispatch_status": "pending", "created_at": "2026-10-22T09:00:00.000Z", "updated_at": "2026-10-22T09:00:00.000Z", "detail_expires_at": null, "detail_expired": false, "timing": { "dispatch_started_at": null, "acknowledged_at": null, "completed_at": null, "dispatch_acknowledgement_ms": null, "end_to_end_ms": null }, "review": null, "result": null, "error": null, "billing": { "status": "pending", "usage_credits": "0.000000", "wallet_debited_credits": "0.000000" } }, "content": [ { "type": "text", "text": "{\"id\":\"e8aa0a87-6cd9-42eb-975a-b72bf43218c8\",\"tool\":\"tong_video_editor_config\",\"category\":\"discovery\",\"channel\":\"mcp\",\"state\":\"queued\",\"status\":\"accepted\",\"stage\":\"admission\",\"dispatch_status\":\"pending\",\"created_at\":\"2026-10-22T09:00:00.000Z\",\"updated_at\":\"2026-10-22T09:00:00.000Z\",\"detail_expires_at\":null,\"detail_expired\":false,\"timing\":{\"dispatch_started_at\":null,\"acknowledged_at\":null,\"completed_at\":null,\"dispatch_acknowledgement_ms\":null,\"end_to_end_ms\":null},\"review\":null,\"result\":null,\"error\":null,\"billing\":{\"status\":\"pending\",\"usage_credits\":\"0.000000\",\"wallet_debited_credits\":\"0.000000\"}}" } ] }}错误与限制#
| HTTP | 错误 | 恢复 |
|---|---|---|
400 | 无效请求REQUEST_INVALID | 重试前请修正错误指出的字段。 |
401 | 无效凭据CREDENTIAL_INVALID | 检查凭据、有效期以及是否已被撤销。 |
402 | 积分不足INSUFFICIENT_CREDITS | 为凭据所属账户充值积分,然后继续已保存的任务。 |
403 | 权限被拒绝SCOPE_REQUIRED | 使用具有所需权限且可访问所选资源的凭据。 |
404 | 资源不可用RESOURCE_UNAVAILABLE | 检查资源 ID,并确认其属于已授权账户。 |
409 | 操作意图冲突IDEMPOTENCY_CONFLICT | 仅为原始请求复用意图标识。不同操作请使用新的 UUID。 |
429 | 已达速率限制RATE_LIMITED | 等待 Retry-After 指定的时间后再重试同一请求。 |
503 | 暂时不可用DEPENDENCY_UNAVAILABLE | 等待 Retry-After 指定时间并使用同一意图重试。超时后检查已保存的操作。 |