Token导航 LogoToken导航TokenDH.com
研究检索执行命令clawhub未标认证来源可访问clear审计提醒

tokenrouter-generate-videotokenrouter 生成视频

Agent Skill

用于辅助视频生成、动画合成、脚本化剪辑或 Remotion 等视频项目开发。它适合让 Agent 组织镜头、生成素材说明、维护合成代码或排查渲染问题。使用时需要确认分辨率、时长、素材路径和导出格式;涉及外部素材、人物肖像或商业发布时,应先核对版权授权和内容审核要求。

总安装

5,645

周安装

240

GitHub Stars

公开资料未说明

下载量

1,978
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tokenrouter-generate-video(tokenrouter 生成视频)
来源仓库:https://github.com/yb98k999/tokenrouter-generate-video
安装命令:
openclaw skills install tokenrouter-generate-video
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install tokenrouter-generate-video

简介

指导代理执行视频生成任务的 tokenrouter 通道与模型配置检查。

  • 适用于 Remotion 或其他视频合成项目的初始化与合规校验。
  • 通过 clawhub 安装,需确认分辨率、时长与素材路径设置。
  • 建议核对版权授权要求,特别是人物肖像与商业发布场景。
  • 可参考原始 README 了解模型兼容性与错误处理机制。

SKILL.md

name
tokenrouter-video-usaging
description
>

Tokenrouter Video Usaging

Overview

Find the tokenrouter channel configuration in the current workspace, infer the existing provider/channel schema from neighboring model entries, and add a MiniMax-Hailuo-2.3, kling-v3, kling-v2-6, dreamina-seedance-2-0-fast-260128, or dreamina-seedance-2-0-260128 route with the smallest correct change. Then use the configured tokenrouter endpoint to create a video generation task and fetch task status until a final video URL or terminal state is returned.

Workflow

  1. Channel Check: Discover the tokenrouter config and check whether any configured channel has a baseurl or baseURL containing https://api.tokenrouter.com or https://open.palebluedot.ai.

- If NO such channel exists, STOP immediately and tell the user: "No tokenrouter channel with https://api.tokenrouter.com or https://open.palebluedot.ai was found. Please visit https://www.tokenrouter.com to register and obtain your channel configuration, then add it to the workspace." - If a channel IS found, proceed to step 2.

  1. Model Check: Check whether the requested video model (MiniMax-Hailuo-2.3, kling-v3, kling-v2-6, dreamina-seedance-2-0-fast-260128, or dreamina-seedance-2-0-260128) already exists in the channel's model map or route list.

- If the model IS already configured, skip to step 4. - If the model is NOT configured, proceed to step 3.

  1. Auto-Configuration: Infer the existing provider/channel schema from neighboring model entries, then add the missing model route with the smallest correct change.

- Reuse the existing video provider pattern if one exists; otherwise mirror the closest neighboring provider entry. - Save the config change with the smallest possible edit. Do not rewrite unrelated formatting or reorder large sections unless the file format requires it. - Reload or restart the tokenrouter service if the workspace provides a command to do so.

  1. API Call: Use the detected channel's key and the fixed base URL https://api.tokenrouter.com to call the video generation endpoints.
  2. Polling: Poll task status until success, failure, or timeout.

Config Discovery

Start by searching for likely tokenrouter config files in the current workspace.

  • Prefer files matching names like *tokenrouter*, *channel*, *provider*, *model*, config*.json, config*.yaml, config*.yml, *.toml, *.ts, *.js.
  • Look for keys such as channels, providers, models, routes, baseURL, baseurl, apiKey, key, upstream, model_map, model_name, or similar.
  • Run scripts/find_tokenrouter_config.py first when the workspace is large or the config location is unclear.

Choose the config file that is actually consumed by the running tokenrouter setup, not merely documentation or examples.

Authentication discovery rule:

  • Search current channel/provider configs for a baseurl or baseURL containing https://api.tokenrouter.com or https://open.palebluedot.ai.
  • If found, treat that entry as the tokenrouter channel and reuse its configured key for Authorization.
  • If not found, stop and instruct the user to register at https://www.tokenrouter.com to obtain tokenrouter access and the required channel configuration.

Config Update Rules

Infer the schema from the file instead of assuming a fixed format.

  • If the requested model (MiniMax-Hailuo-2.3, kling-v3, kling-v2-6, dreamina-seedance-2-0-fast-260128, or dreamina-seedance-2-0-260128) already exists, update only missing or incorrect fields.
  • If there is an existing video-generation entry (MiniMax, Hailuo, Kling, Seedance, or another video model), copy that shape and adapt it.
  • Preserve existing auth conventions. If an existing https://api.tokenrouter.com or https://open.palebluedot.ai channel is present, reuse that channel's key exactly as configured instead of introducing a new env var name.
  • Prefer adding the new model alongside existing channel/provider definitions rather than introducing a second config mechanism.
  • Do not invent fallback compatibility fields unless the surrounding config already uses them.

Minimum target behavior:

  • The tokenrouter config must recognize the requested model name (MiniMax-Hailuo-2.3, kling-v3, kling-v2-6, dreamina-seedance-2-0-fast-260128, or dreamina-seedance-2-0-260128).
  • Requests for that model must reach the upstream path POST /v1/video/generations.
  • Status checks must use GET /video/generations/:task_id.

If the local tokenrouter schema distinguishes between chat/completions/image/video APIs, make sure this model is wired into the video path rather than a text generation path.

API Calls

Use the fixed tokenrouter base URL https://api.tokenrouter.com for all API calls.

Auth rule:

  • Base URL is always https://api.tokenrouter.com.
  • If a matching channel exists, use that channel's configured key directly.
  • If no matching channel exists, do not fabricate placeholders like TOKENROUTER_API_KEY; instead tell the user to register at https://www.tokenrouter.com and add tokenrouter config first.

Model: MiniMax-Hailuo-2.3

Create video task:

{
  "path": "/v1/video/generations",
  "method": "POST",
  "params": {
    "model": "MiniMax-Hailuo-2.3",
    "prompt": "A man picks up a book [Pedestal up], then reads [Static shot].",
    "size": "1080P",
    "duration": 6
  }
}

size and duration must be chosen as one of the supported Hailuo combinations:

  • 1080P with 6
  • 768P with 10
  • 768P with 6

Do not mix unsupported combinations. If the user asks for another pair, ask them to choose one of the three valid options.

Model: kling-v3

Supports both text-to-video and image-to-video.

Text-to-video:

{
  "path": "/v1/video/generations",
  "method": "POST",
  "params": {
    "model": "kling-v3",
    "prompt": "A silver robot walking through a rainy neon alley",
    "mode": "pro",
    "duration": "5",
    "metadata": {
      "aspect_ratio": "16:9",
      "sound": "on",
      "negative_prompt": "blurry, low quality"
    }
  }
}

Image-to-video:

{
  "path": "/v1/video/generations",
  "method": "POST",
  "params": {
    "model": "kling-v3",
    "prompt": "The girl smiles slightly and the camera slowly pushes in",
    "image": "https://example.com/portrait.png",
    "mode": "pro",
    "duration": "5",
    "metadata": {
      "sound": "off",
      "negative_prompt": "flicker, blur"
    }
  }
}

duration is a string. Common values include "5". mode is a string such as "pro". metadata is optional but may include aspect_ratio, sound, and negative_prompt. image is optional; when present, it triggers image-to-video generation. Do not send Hailuo-only fields (size) when using kling-v3.

Model: kling-v2-6

Supports both text-to-video and image-to-video.

Text-to-video:

{
  "path": "/v1/video/generations",
  "method": "POST",
  "params": {
    "model": "kling-v2-6",
    "prompt": "A silver robot walking through a rainy neon alley",
    "mode": "pro",
    "duration": "5",
    "metadata": {
      "aspect_ratio": "16:9",
      "sound": "on",
      "negative_prompt": "blurry, low quality"
    }
  }
}

Image-to-video:

{
  "path": "/v1/video/generations",
  "method": "POST",
  "params": {
    "model": "kling-v2-6",
    "prompt": "The girl smiles slightly and the camera slowly pushes in",
    "image": "https://example.com/portrait.png",
    "mode": "pro",
    "duration": "5",
    "metadata": {
      "sound": "off",
      "negative_prompt": "flicker, blur"
    }
  }
}

duration is a string. mode is a string such as "pro". metadata is optional but may include aspect_ratio, sound, and negative_prompt. image is optional; when present, it triggers image-to-video generation. Do not send Hailuo-only fields (size) when using kling-v2-6.

Model: dreamina-seedance-2-0-fast-260128

Supports both text-to-video and image-to-video.

Text-to-video:

{
  "path": "/v1/video/generations",
  "method": "POST",
  "params": {
    "model": "dreamina-seedance-2-0-fast-260128",
    "prompt": "A vintage sports car driving along a coastal road at sunset",
    "metadata": {
      "duration": 5,
      "resolution": "1080p",
      "ratio": "16:9",
      "generate_audio": true
    }
  }
}

Image-to-video:

{
  "path": "/v1/video/generations",
  "method": "POST",
  "params": {
    "model": "dreamina-seedance-2-0-fast-260128",
    "prompt": "The subject looks up toward the camera while hair moves gently in the wind",
    "images": [
      "https://example.com/input-image.png"
    ],
    "metadata": {
      "duration": 5,
      "resolution": "720p",
      "ratio": "9:16"
    }
  }
}

prompt is required for text-to-video, optional but recommended for image-to-video. metadata is optional but may include duration, resolution, ratio, and generate_audio. images is optional; when present, it triggers image-to-video generation. Do not send Hailuo-only fields (size) or Kling-only fields (mode, image) when using Seedance models.

Model: dreamina-seedance-2-0-260128

Supports both text-to-video and image-to-video.

Text-to-video:

{
  "path": "/v1/video/generations",
  "method": "POST",
  "params": {
    "model": "dreamina-seedance-2-0-260128",
    "prompt": "A vintage sports car driving along a coastal road at sunset",
    "metadata": {
      "duration": 5,
      "resolution": "1080p",
      "ratio": "16:9",
      "generate_audio": true
    }
  }
}

Image-to-video:

{
  "path": "/v1/video/generations",
  "method": "POST",
  "params": {
    "model": "dreamina-seedance-2-0-260128",
    "prompt": "The subject looks up toward the camera while hair moves gently in the wind",
    "images": [
      "https://example.com/input-image.png"
    ],
    "metadata": {
      "duration": 5,
      "resolution": "720p",
      "ratio": "9:16"
    }
  }
}

prompt is required for text-to-video, optional but recommended for image-to-video. metadata is optional but may include duration, resolution, ratio, and generate_audio. images is optional; when present, it triggers image-to-video generation. Do not send Hailuo-only fields (size) or Kling-only fields (mode, image) when using Seedance models.

Parameter Validation Rule

Before calling the create endpoint, always validate the request according to the chosen model:

For MiniMax-Hailuo-2.3:

  1. Check that prompt is present and is a string.
  2. Check that size is exactly "1080P" or "768P".
  3. Check that duration is exactly 6 or 10.
  4. Check that the pair belongs to the allowed set: (1080P, 6), (768P, 10), (768P, 6).
  5. Ensure mode, image, images, and metadata are NOT present (these fields belong to other models).
  6. If validation fails, stop and tell the user the allowed combinations instead of sending the request.

For kling-v3:

  1. Check that mode is present and is a string.
  2. Check that duration is a string value such as "5".
  3. Ensure size, images are NOT present.
  4. If image is present (image-to-video mode):

- Check that image is a valid URL string. - prompt is optional but recommended. - metadata.aspect_ratio should NOT be present.

  1. If image is NOT present (text-to-video mode):

- Ensure prompt is present and is a string.

  1. If validation fails, stop and tell the user the correct kling-v3 parameters instead of sending the request.

For kling-v2-6:

  1. Check that mode is present and is a string.
  2. Check that duration is a string value such as "5".
  3. Ensure size, images are NOT present.
  4. If image is present (image-to-video mode):

- Check that image is a valid URL string. - prompt is optional but recommended. - metadata.aspect_ratio should NOT be present.

  1. If image is NOT present (text-to-video mode):

- Ensure prompt is present and is a string.

  1. If validation fails, stop and tell the user the correct kling-v2-6 parameters instead of sending the request.

For dreamina-seedance-2-0-fast-260128:

  1. Ensure size, mode, image are NOT present.
  2. If images is NOT present (text-to-video mode):

- Check that prompt is present and is a string. - metadata.generate_audio is optional boolean.

  1. If images is present (image-to-video mode):

- Check that images is a non-empty array of valid URL strings. - prompt is optional but recommended. - metadata.generate_audio should NOT be present.

  1. If metadata.duration is present, check that it is an integer such as 5.
  2. If validation fails, stop and tell the user the correct Seedance parameters instead of sending the request.

For dreamina-seedance-2-0-260128:

  1. Ensure size, mode, image are NOT present.
  2. If images is NOT present (text-to-video mode):

- Check that prompt is present and is a string. - metadata.generate_audio is optional boolean.

  1. If images is present (image-to-video mode):

- Check that images is a non-empty array of valid URL strings. - prompt is optional but recommended. - metadata.generate_audio should NOT be present.

  1. If metadata.duration is present, check that it is an integer such as 5.
  2. If validation fails, stop and tell the user the correct Seedance parameters instead of sending the request.

Fetch task (all models)

{
  "path": "/video/generations/:task_id",
  "method": "GET"
}

Implementation notes:

  • Treat the create call as asynchronous.
  • Extract task_id from the create response using the actual response schema returned by the server.
  • Poll the fetch endpoint until a terminal state is reached.
  • Report the full terminal payload and any resulting video URL(s).
  • When extracting video URLs from the response, preserve the complete URL including the query string.
  • If the URL contains the escaped sequence \&, decode it to & before presenting or returning the URL.

Execution Pattern

  1. Confirm there is an existing channel whose baseurl contains https://api.tokenrouter.com or https://open.palebluedot.ai.
  2. If absent, stop and ask the user to get tokenrouter access from https://www.tokenrouter.com.
  3. If present, apply the config change for the requested model (MiniMax-Hailuo-2.3, kling-v3, kling-v2-6, dreamina-seedance-2-0-fast-260128, or dreamina-seedance-2-0-260128) in that channel or its neighboring model map.
  4. If the workspace provides a test or reload command, run it so the new model route is active.
  5. Submit a generation request with the detected channel key.
  6. Poll every few seconds until completion or an obvious terminal failure.

Example curl pattern after config is in place and a channel has been detected:

Hailuo:

curl -X POST "https://api.tokenrouter.com/v1/video/generations" \
  -H "Authorization: Bearer $DETECTED_CHANNEL_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "MiniMax-Hailuo-2.3",
    "prompt": "A man picks up a book [Pedestal up], then reads [Static shot].",
    "size": "1080P",
    "duration": 6
  }'

Kling text-to-video:

curl -X POST "https://api.tokenrouter.com/v1/video/generations" \
  -H "Authorization: Bearer $DETECTED_CHANNEL_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling-v3",
    "prompt": "A silver robot walking through a rainy neon alley",
    "mode": "pro",
    "duration": "5",
    "metadata": {
      "aspect_ratio": "16:9",
      "sound": "on",
      "negative_prompt": "blurry, low quality"
    }
  }'

Kling image-to-video:

curl -X POST "https://api.tokenrouter.com/v1/video/generations" \
  -H "Authorization: Bearer $DETECTED_CHANNEL_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling-v3",
    "prompt": "The girl smiles slightly and the camera slowly pushes in",
    "image": "https://example.com/portrait.png",
    "mode": "pro",
    "duration": "5",
    "metadata": {
      "sound": "off",
      "negative_prompt": "flicker, blur"
    }
  }'

Seedance text-to-video:

curl -X POST "https://api.tokenrouter.com/v1/video/generations" \
  -H "Authorization: Bearer $DETECTED_CHANNEL_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "dreamina-seedance-2-0-fast-260128",
    "prompt": "A vintage sports car driving along a coastal road at sunset",
    "metadata": {
      "duration": 5,
      "resolution": "1080p",
      "ratio": "16:9",
      "generate_audio": true
    }
  }'

Seedance image-to-video:

curl -X POST "https://api.tokenrouter.com/v1/video/generations" \
  -H "Authorization: Bearer $DETECTED_CHANNEL_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "dreamina-seedance-2-0-260128",
    "prompt": "The subject looks up toward the camera while hair moves gently in the wind",
    "images": [
      "https://example.com/input-image.png"
    ],
    "metadata": {
      "duration": 5,
      "resolution": "720p",
      "ratio": "9:16"
    }
  }'

Then:

curl "https://api.tokenrouter.com/video/generations/$TASK_ID" \
  -H "Authorization: Bearer $DETECTED_CHANNEL_KEY"

Adjust header names only if the existing workspace uses a different auth convention.

Resources

Use references/api_reference.md for endpoint-specific guidance and scripts/find_tokenrouter_config.py to quickly identify likely tokenrouter config files.

scripts/

find_tokenrouter_config.py scans the workspace for files likely to contain tokenrouter channel/provider/model routing config.

references/

api_reference.md captures the two required video endpoints, expected request bodies, and polling guidance.

assets/

No assets are required for this skill.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

97.52%
按下载量换算1,929

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install tokenrouter-generate-video 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills