Tomoviee Text to Video

👤 wondershare-boop 📦 v1.0.6 ⭐ 4.2 ⬇️ 1.1K 下載
🎨 設計多媒體 免費 🔑 需 API Key

📖 技能介紹


name: tomoviee-text-to-video description: Generate 5-second videos from text prompts using Tomoviee Text-to-Video API (tm_text2video_b) via Wondershare OpenAPI gateway (https://openapi.wondershare.cc). Use when users request text-to-video creation with control over resolution, aspect ratio, and camera movement.


Tomoviee AI Text-to-Video

Overview

Generate 5-second videos from text descriptions.

  • API capability: tm_text2video_b
  • Supported resolutions: 720p, 1080p
  • Supported aspect ratios: 16:9, 9:16, 4:3, 3:4, 1:1
  • Optional camera control: camera_move_index (1-46)

Provider and Endpoints

Use the following provider and endpoint mapping to keep credentials and routing consistent:

  • Vendor portals: https://www.tomoviee.ai and https://www.tomoviee.cn
  • API gateway host used by this skill: https://openapi.wondershare.cc
  • Create-task endpoint pattern: https://openapi.wondershare.cc/v1/open/capacity/application/<capacity_id>
  • Result endpoint: https://openapi.wondershare.cc/v1/open/pub/task

This skill sends API requests only to openapi.wondershare.cc.

Quick Start

Install dependencies

pip install -r requirements.txt

Authentication

python scripts/generate_auth_token.py YOUR_APP_KEY YOUR_APP_SECRET

Python Client

from scripts.tomoviee_text2video_client import TomovieeText2VideoClient

client = TomovieeText2VideoClient("app_key", "app_secret")

API Usage

想要更強大的技能外掛,就來小蔥技能站7w4.net看看吧。

Basic Example

task_id = client.text_to_video(
    prompt="Golden retriever running through sunlit meadow, slow motion, cinematic",
    resolution="720p",
    aspect_ratio="16:9",
    camera_move_index=5,
)

result = client.poll_until_complete(task_id)
import json
video_url = json.loads(result["result"])["video_path"][0]
print(video_url)

Parameters

  • prompt (required): Text description (subject + action + scene + camera + lighting)
  • resolution: 720p or 1080p (default: 720p)
  • duration: duration in seconds (currently 5)
  • aspect_ratio: 16:9, 9:16, 4:3, 3:4, 1:1
  • camera_move_index: camera movement type (1-46, optional)
  • callback: callback URL (optional)
  • params: transparent passthrough params (optional)

Async Workflow

  1. Create task: call text_to_video() and get task_id
  2. Poll status: call poll_until_complete(task_id)
  3. Parse result: read video URL from returned JSON

Status codes: - 1 queued - 2 processing - 3 success - 4 failed - 5 cancelled - 6 timeout

Typical generation time is 1-5 minutes per 5-second video.

Resources

scripts/

  • tomoviee_text2video_client.py - Text-to-Video API client
  • generate_auth_token.py - auth token generator

references/

  • video_apis.md - detailed video API documentation
  • camera_movements.md - camera movement index reference
  • prompt_guide.md - prompt writing best practices

External Resources

  • Developer portal (global): https://www.tomoviee.ai/developers.html
  • API docs (global): https://www.tomoviee.ai/doc/
  • Developer portal (mainland): https://www.tomoviee.cn/developers.html
  • API docs (mainland): https://www.tomoviee.cn/doc/
  • API host used by this skill: https://openapi.wondershare.cc

🤖 AI 評測

這是一款質量不錯的AI影片生成技能。做得好的地方包括文件清晰易懂、示例豐富實用、提供了詳細的提示詞編寫指南和鏡頭引數參考,小白也能快速學會怎麼寫提示詞生成想要的影片。不足之處是目前只支援文字生成影片一種模式,功能相對單一。如果你需要更多型別的影片創作功能,可能需要等後續版本更新。整體而言,這是一個值得嘗試的影片生成工具。

📊 多維度評分

適應性4.1
規範性4.3
有效性4.2
可靠性4
可信度4.8

📁 包含檔案 (8 個)

📄 SKILL.md 3.2 KB
📄 _meta.json 141 B
📄 references/camera_movements.md 2.7 KB
📄 references/prompt_guide.md 14.9 KB
📄 references/video_apis.md 7.2 KB
📄 requirements.txt 25 B
📄 scripts/generate_auth_token.py 1.1 KB
📄 scripts/tomoviee_text2video_client.py 5.4 KB