返回顶部
t

tomoviee-tail-to-video首尾帧转视频

Generate videos from first and last frame images using Tomoviee First-Last Frame API (`tm_tail2video_b`) via Wondershare OpenAPI gateway (`https://openapi.wondershare.cc`). Requires `app_key` and `app_secret`. Use when users request first-last keyframe interpolation, start-end frame animation, or two-image to 5-second video generation.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.3
安全检测
已通过
283
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

tomoviee-tail-to-video

Tomoviee AI 首尾帧生成视频

概述

从两个关键帧图像生成5秒视频:

  • - image:首帧
  • image_tail:尾帧

API能力:tmtail2videob

提供商与端点来源

使用以下映射验证来源后再使用生产环境凭证:

  • - 供应商门户:https://www.tomoviee.ai 和 https://www.tomoviee.cn
  • 此技能使用的运行时API网关主机:https://openapi.wondershare.cc
  • 创建端点:https://openapi.wondershare.cc/v1/open/capacity/application/tmtail2videob
  • 结果端点:https://openapi.wondershare.cc/v1/open/pub/task

此技能仅向 openapi.wondershare.cc 发送运行时API请求。

凭证处理

  • - 所需敏感凭证:appkey 和 appsecret。
  • 凭证仅用于构建 Authorization: Basic key:appsecret)>。
  • 凭证仅保留在进程内存中,此技能不会写入磁盘。
  • 请勿在源文件中硬编码凭证或将其提交到git。

必需输入

  • - 凭证:appkey、appsecret
  • 生成输入:prompt、image、image_tail

范围

  • - 此技能仅涵盖 tmtail2videob(首尾帧生成视频)。
  • 根据API设计,输出时长固定为5秒。
  • 此技能不实现文本转视频、图像转视频或视频续接API。

依赖项

  • - 运行时依赖:requests>=2.31.0,<3.0.0
  • 安装方式:pip install -r requirements.txt

快速开始

安装依赖

bash
pip install -r requirements.txt

认证辅助工具

bash
python scripts/generateauthtoken.py YOURAPPKEY YOURAPPSECRET

Python客户端

python
from scripts.tomovieefirstlast2videoclient import TomovieeFirstLast2VideoClient

client = TomovieeFirstLast2VideoClient(appkey, appsecret)

API使用

基本示例

python
taskid = client.firstlastto_video(
prompt=场景从首帧到尾帧自然过渡,动作流畅,
image=https://example.com/first-frame.jpg,
image_tail=https://example.com/last-frame.jpg,
resolution=720p,
duration=5,
aspect_ratio=original,
)

result = client.polluntilcomplete(task_id)
import json
videourl = json.loads(result[result])[videopath][0]
print(video_url)

参数

  • - prompt(必需):运动引导文本。
  • image(必需):首帧图像URL。
  • imagetail(必需):尾帧图像URL。
  • resolution(可选):720p 或 1080p,默认 720p。
  • duration(可选):仅支持 5。
  • aspectratio(可选):16:9、9:16、4:3、3:4、1:1、original。
  • cameramoveindex(可选):摄像机运动类型 1-46。
  • callback(可选):回调URL。
  • params(可选):透明回调参数。

图像限制

  • - 文件大小:每张图像必须小于 200M
  • 格式:JPG、JPEG、PNG、WEBP
  • 推荐分辨率:至少720p源质量

异步工作流

  1. 1. 创建任务并获取 taskid
  2. 使用 polluntilcomplete(taskid) 轮询
  3. 从 result 解析视频URL

状态码:

  • - 1 排队中
  • 2 处理中
  • 3 成功
  • 4 失败
  • 5 已取消
  • 6 超时

资源

  • - scripts/tomovieefirstlast2videoclient.py - 主API客户端
  • scripts/generateauthtoken.py - 认证令牌辅助工具
  • references/videoapis.md - API参考和限制
  • references/cameramovements.md - 摄像机运动索引参考
  • references/prompt_guide.md - 提示词编写指南

外部资源

  • - 开发者门户(全球):https://www.tomoviee.ai/developers.html
  • API文档(全球):https://www.tomoviee.ai/doc/ai-video/first-and-last-frame-to-video.html
  • 开发者门户(中国大陆):https://www.tomoviee.cn/developers.html
  • API文档(中国大陆):https://www.tomoviee.cn/doc/ai-video/first-and-last-frame-to-video.html

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 tomoviee-tail-to-video-1776194708 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 tomoviee-tail-to-video-1776194708 技能

通过命令行安装

skillhub install tomoviee-tail-to-video-1776194708

下载

⬇ 下载 tomoviee-tail-to-video v1.0.3(免费)

文件大小: 14.34 KB | 发布时间: 2026-4-15 10:51

v1.0.3 最新 2026-4-15 10:51
- Skill renamed from "tomoviee-firstlast2video" to "tomoviee-tail-to-video".
- Description updated to clarify credential requirements and usage scope.
- Added "Scope" and "Required Inputs" sections to make limitations and required parameters clear.
- Dependency information made explicit (only supports requests 2.x).
- Emphasized the skill covers only the "first-last frame to video" endpoint and does not support other video generation features.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部