HERMES + KLING

Hermes Agent で Kling を使う。

Kuaishou の Kling 3.0 は、テキストまたは画像から最大 1080p の動画を生成し、ネイティブ音声、マルチショットシーン、3〜15秒の尺に対応します。Hermes Agent は custom:runapi プロバイダを使って RunAPI 経由で呼び出します——チャット用に設定したものと同じキーとベース URL を使用します。

1つの APIキー · テキスト→動画 + 画像→動画 · 秒単位の課金
Hermes Agent を通じて RunAPI を使い、Kling 3.0 で動画を生成します。

要件:
- Hermes Agent ですでに設定済みの custom:runapi プロバイダを使用する
- POST https://runapi.ai/api/v1/kling/text_to_video を呼び出す
- model を "kling-3.0" に設定する
- RUNAPI_API_KEY 環境変数が認証を提供する
- duration_seconds で尺を制御する(3〜15秒)
- 横向き動画には aspect_ratio を "16:9" に設定する
- ネイティブ音声には enable_sound: true で音声を有効化する
- レスポンスは非同期です——タスクが完了するまでタスクステータスエンドポイントをポーリングし、動画 URL を取得します
curl -X POST https://runapi.ai/api/v1/kling/text_to_video \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling-3.0",
    "prompt": "A drone shot pulling back from a mountain lake at sunrise, mist rising off the water, cinematic lighting",
    "duration_seconds": 5,
    "aspect_ratio": "16:9",
    "enable_sound": true,
    "output_resolution": "1080p"
  }'
{
  "task_id": "tsk_abc123",
  "status": "pending",
  "model": "kling-3.0"
}
curlコマンドをコピーしてテスト kling
仕組み

Hermes Agent で Kling を使う3ステップ

1

Configure RunAPI

Set the RUNAPI_API_KEY environment variable. If you already added RunAPI as a custom:runapi provider in Hermes Agent for chat, the same key and base_url work for video generation — no extra configuration needed.

export RUNAPI_API_KEY=runapi_xxx
2

Call Kling text_to_video

Send a POST to /api/v1/kling/text_to_video with model set to kling-3.0. Include a prompt, duration_seconds (3–15), aspect_ratio, and optionally enable_sound for native audio. For image-driven generation, use /api/v1/kling/image_to_video with a first_frame_image_url instead.

POST /api/v1/kling/text_to_video
3

Poll for the result

The endpoint returns a task_id immediately. Poll the task status endpoint until the status changes to completed, then retrieve the video URL from the response. Generation typically takes 30–120 seconds depending on duration and resolution.

GET /api/v1/kling/text_to_video/tsk_abc123
パラメータ

Kling text_to_video API パラメータ

パラメータ 説明
model string Required. kling-3.0 for the latest version.
prompt string Video description. Required unless multi_shots is enabled.
duration_seconds integer Video length. Kling 3.0 supports 3–15 seconds. Older versions accept 5 or 10.
aspect_ratio string Output aspect ratio: 16:9, 9:16, or 1:1.
output_resolution string Resolution: 720p, 1080p, or 4k. Higher resolution costs more per second.
enable_sound boolean Generate native audio alongside video. Increases per-second cost.
negative_prompt string Elements to exclude from generation.
first_frame_image_url string Image URL to use as the opening frame (single-shot mode).
cfg_scale number Guidance scale (0–1). Higher values follow the prompt more closely.
multi_shots boolean Enable multi-shot scene generation with separate prompts per segment.

Hermes AgentのKlingとは?

KuaishouのKling 3.0はキャラクターの一貫性と優れたモーション物理——布のドレープ・流体力学・リアルなカメラムーブメント——で映画品質のクリップを生成します。Hermes Agentのcustom:runapi providerを通じて、最大1080p・ネイティブ音声でテキスト→動画・画像→動画が可能で、1回の生成で3〜15秒(マルチショットモードで最長3分)のクリップを生成します。

Klingの活用例

長尺ナラティブコンテンツ

Klingのマルチショットモードを使ってシーン長さの映像を最長3分構築し、情景カットとキャラクターシーケンスを各セグメントで一貫したビジュアルで連結します。

旅行・自然コンテンツ

リアルな環境レンダリングで旅行VlogのBロールや自然映像を生成します。Klingは水面・霧・アトモスフェリックライティングなど屋外シーンで特に優れています。

商品デモ動画

商品画像をカメラムーブメントと自然なライティングトランジション付きの短編動画にアニメーション化します——ECサイトのリストやSNS広告に適しています。

FAQ

Kling + Hermes Agent のよくある質問

Hermes Agent の基本設定

まだ設定していませんか?Hermes Agent の RunAPI セットアップガイドから始めましょう。

Hermes Agent セットアップガイド →

Kling モデルカタログ

すべての Kling バリアント、価格帯、API ドキュメントを確認する。

Kling モデル →

今すぐ Hermes Agent で Kling を試す。

無料の RunAPI キーを取得し、custom:runapi プロバイダを設定して、Kling 3.0 での動画生成を始めましょう。