Skip to main content
POST
/
video
/
submit
/
{taskId}
重新提交视频任务
curl --request POST \
  --url https://api.example.com/video/submit/{taskId}
{
  "success": true
}

Documentation Index

Fetch the complete documentation index at: https://tech.illasoft.com/llms.txt

Use this file to discover all available pages before exploring further.

概述

当视频任务因 Credits 不足 (insufficient_credits) 或方案不支持 (insufficient_plan) 被阻塞时,用户充值或升级后可通过此接口重新提交任务。

请求

taskId
string
required
视频任务 ID (UUID)

处理流程

1

验证任务状态

确认任务处于 insufficient_creditsinsufficient_plan 状态
2

重新检查资格

验证用户当前 Credits 余额和订阅等级
3

更新状态

thread_version.videos 中对应任务状态更新为 pending
4

派发 Inngest event

publishVideoTask(task, userPlan)video/generation-{provider}.requested,kira-video-worker 消费

响应

success
boolean
重新提交是否成功

错误码

状态码说明
200重新提交成功,或返回 { error: "insufficient_credits" } / { error: "insufficient_plan" }
400任务状态不允许重新提交
404任务不存在