Install
openclaw skills install tomoviee-text-to-videoGenerate 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.
openclaw skills install tomoviee-text-to-videoGenerate 5-second videos from text descriptions.
tm_text2video_b720p, 1080p16:9, 9:16, 4:3, 3:4, 1:1camera_move_index (1-46)Use the following provider and endpoint mapping to keep credentials and routing consistent:
https://www.tomoviee.ai and https://www.tomoviee.cnhttps://openapi.wondershare.cchttps://openapi.wondershare.cc/v1/open/capacity/application/<capacity_id>https://openapi.wondershare.cc/v1/open/pub/taskThis skill sends API requests only to openapi.wondershare.cc.
pip install -r requirements.txt
python scripts/generate_auth_token.py YOUR_APP_KEY YOUR_APP_SECRET
from scripts.tomoviee_text2video_client import TomovieeText2VideoClient
client = TomovieeText2VideoClient("app_key", "app_secret")
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)
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:1camera_move_index: camera movement type (1-46, optional)callback: callback URL (optional)params: transparent passthrough params (optional)text_to_video() and get task_idpoll_until_complete(task_id)Status codes:
1 queued2 processing3 success4 failed5 cancelled6 timeoutTypical generation time is 1-5 minutes per 5-second video.
tomoviee_text2video_client.py - Text-to-Video API clientgenerate_auth_token.py - auth token generatorvideo_apis.md - detailed video API documentationcamera_movements.md - camera movement index referenceprompt_guide.md - prompt writing best practiceshttps://www.tomoviee.ai/developers.htmlhttps://www.tomoviee.ai/doc/https://www.tomoviee.cn/developers.htmlhttps://www.tomoviee.cn/doc/https://openapi.wondershare.cc