跳转到主要内容
POST
/
happyhorse
/
api
/
v1
/
services
/
aigc
/
video-generation
/
image-to-video
cURL
curl --request POST \
  --url https://api.ttapi.io/happyhorse/api/v1/services/aigc/video-generation/image-to-video \
  --header 'Content-Type: application/json' \
  --header 'TT-API-KEY: <api-key>' \
  --data '
{
  "model": "happyhorse-1.0-i2v",
  "input": {
    "media": [
      {
        "type": "first_frame",
        "url": "<string>"
      }
    ],
    "prompt": "<string>"
  },
  "parameters": {
    "resolution": "720P",
    "duration": 5,
    "watermark": false,
    "seed": 12345
  }
}
'
{
  "output": {
    "task_status": "PENDING",
    "task_id": "0385dc79-5ff8-4d82-bcb6-xxxxxx"
  },
  "request_id": "4909100c-7b5a-9f92-bfe5-xxxxxx"
}

Documentation Index

Fetch the complete documentation index at: https://docs.ttapi.io/llms.txt

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

这是 HappyHorse 视频 API 的图生视频接口,基于首帧图像生成视频。

授权

TT-API-KEY
string
header
必填

请前往 TTAPI 控制台 获取 API 密钥。

请求体

application/json
model
string
默认值:happyhorse-1.0-i2v
必填

模型名称

示例:

"happyhorse-1.0-i2v"

input
object
必填

输入的基本信息,如提示词等

parameters
object

视频处理参数,如设置视频分辨率、设置视频时长等。

响应

成功响应

output
object
必填

任务输出信息

request_id
string
必填

请求唯一标识。可用于请求明细溯源和问题排查。

示例:

"4909100c-7b5a-9f92-bfe5-xxxxxx"

Last modified on April 29, 2026