跳转到主要内容
POST
/
v1
/
videos
/
generations
sora-character接口
curl --request POST \
  --url https://api.evolink.ai/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "sora-character",
  "video_url": "https://example.com/video.mp4",
  "timestamps": "1,3"
}
'
{
  "created": 1767917446,
  "id": "task-unified-1767917446-5lqy8zzv",
  "model": "sora-character",
  "object": "video.generation.task",
  "progress": 0,
  "status": "pending",
  "task_info": {
    "can_cancel": true,
    "estimated_time": 150,
    "video_duration": 8
  },
  "type": "video",
  "usage": {
    "billing_rule": "per_call",
    "credits_reserved": 0.1,
    "user_group": "vip"
  },
  "result_data": {
    "character_name": "chr_Axtjik3O#",
    "profile_picture_url": "https://example.com/profile.jpg"
  }
}

授权

Authorization
string
header
必填

##所有接口均需要使用Bearer Token进行认证##

获取 API Key :

访问 API Key 管理页面 获取您的 API Key

使用时在请求头中添加:

Authorization: Bearer YOUR_API_KEY

请求体

application/json
model
string
默认值:sora-character
必填

模型名称

示例:

"sora-character"

video_url
string<uri>
必填

视频URL地址

注意:

  • 视频URL需要服务器能直接访问
  • 支持的视频格式:.mp4.mov.webm
示例:

"https://example.com/video.mp4"

timestamps
string

时间戳,指定从视频的哪些时间点提取角色

格式说明:

  • 使用逗号分隔多个时间点,如 1,3 表示第1秒和第3秒
  • 时间单位为秒
  • 时间范围限制: 所选时间点之间的跨度不能超过 2秒
  • 默认值: 0,2(即第0秒到第2秒)
示例:

"1,3"

响应

角色生成任务创建成功

created
integer

任务创建时间戳

示例:

1767917446

id
string

任务ID,用于查询任务状态

示例:

"task-unified-1767917446-5lqy8zzv"

model
string

实际使用的模型名称

示例:

"sora-character"

object
enum<string>

任务的具体类型

可用选项:
video.generation.task
progress
integer

任务进度百分比 (0-100)

必填范围: 0 <= x <= 100
示例:

0

status
enum<string>

任务状态

可用选项:
pending,
processing,
completed,
failed
示例:

"pending"

task_info
object

任务详细信息

type
enum<string>

任务的输出类型

可用选项:
video
示例:

"video"

usage
object

使用量和计费信息

result_data
object

任务完成后的结果数据(仅在 status 为 completed 时返回)