happyhorse-1.0-video-edit
HappyHorse 1.0 支持按提示词和参考图修改已有视频,可输出 720P 或 1080P,并查询异步结果。
更新于:相同输入,两版 HappyHorse 结果
Using Image 1 as the reference, replace the woman's clothing in the source video with the misty-blue Ming dynasty hanfu. Keep the garment fitted to her body and motion, let the wide sleeves move naturally with her arms, and preserve the layered collar and front panels as she turns. Match the crane and floral embroidery, fabric sheen, shadows, and material response to the original lighting. Keep her expression, hairstyle, skin tone, environment, and camera path completely unchanged.
Using the visual characteristics of Image 1, transform the entire source video into a traditional black-and-white Chinese ink-wash painting. Rebuild the mountains, mist, architecture, and every visible element with expressive brushwork and varied ink density while keeping the original camera movement and scene structure unchanged. The result should feel monochromatic, atmospheric, and spatially coherent.
Transform the entire video into the Minecraft voxel style based on the visual aesthetic of Image 1. Convert every subject, character, and environment into 3D blocks with low-resolution pixel textures, and match the lighting and colors of the reference world. Keep the original movement, character actions, and camera tracking path completely unchanged so the scene feels rebuilt inside a Minecraft world.
happyhorse-1.0-video-edit 能做什么
根据提示词生成
提交简洁提示词,通过一个 TTAPI 任务获取视频结果。
常用参数
设置提示词、模型、输出参数和回调即可接入。
异步查询
通过轮询或 Webhook 接收结果,避免耗时生成阻塞界面。
接入产品
HappyHorse 的输出可以展示、保存或交给后续流程处理。
按操作计费,单位为 quota
按模型、操作和输出设置扣除 quota。
请求头与提交参数
使用 TTAPI 密钥,按下方字段向接口发送请求。
/happyhorse/api/v1/services/aigc/video-generation/video-edit提交 HappyHorse 视频编辑任务。
查看接口文档/happyhorse/api/v1/tasks/{task_id}取回 HappyHorse 任务结果。
查看接口文档请求头
TT-API-KEYstring必填填写 TTAPI API 密钥。
Content-Typestring必填使用 application/json。
请求体
modelstring必填HappyHorse 任务的模型 ID,例如 happyhorse-1.1-t2v。
input.promptstring按条件填写描述生成或编辑内容的提示词。
input.mediaobject[]按条件填写按所选操作传入首帧图、参考图或源视频。
parameters.resolutionenum选填输出分辨率为 720P 或 1080P。
parameters.durationinteger选填视频时长,单位为秒。
parameters.ratioenum选填所选工作流支持的输出宽高比。
parameters.watermarkboolean选填是否添加 HappyHorse 水印。
parameters.seedinteger选填随机种子,范围 0 至 2147483647。
发送请求并获取结果
复制当前模型的请求地址、鉴权请求头和请求体。
curl --request POST \
--url https://api.ttapi.io/happyhorse/api/v1/services/aigc/video-generation/video-edit \
--header "TT-API-KEY: $TTAPI_KEY" \
--header 'Content-Type: application/json' \
--data '{"model":"happyhorse-1.0-video-edit","input":{"prompt":"slow dolly shot through a lantern-lit alley","media":[{"type":"video","url":"https://example.com/source.mp4"},{"type":"reference_image","url":"https://example.com/reference.jpg"}]},"parameters":{"resolution":"720P","watermark":false,"audio_setting":"auto"}}'