跳到正文
FunCoding

搜索

搜索文档、文章、Skill 和 MCP

Kie AI

Kie AI video generation setup and supported models

OpenClaw includes the bundled kie plugin, enabled by default, for Kie AI video generation.

PropertyValue
Provider idkie
Auth env varKIE_API_KEY
Onboarding flag--auth-choice kie-api-key
Direct CLI flag--kie-api-key <key>
Base URLhttps://api.kie.ai
Default modelkie/kling-2.6/text-to-video

Setup

Run onboarding or set the environment variable:

openclaw onboard --auth-choice kie-api-key
export KIE_API_KEY="example-kie-key-not-real"

Video generation

Kie supports text-to-video and image-to-video, with one video per request. Choose a model using its full kie/<model> reference:

FamilyText-to-video modelImage-to-video model
Grok Imaginegrok-imagine/text-to-videogrok-imagine/image-to-video
Hailuo 02hailuo/02-text-to-video-standardhailuo/02-image-to-video-standard
Hailuo 02 Prohailuo/02-text-to-video-prohailuo/02-image-to-video-pro
Hailuo 2.3-hailuo/2-3-image-to-video-standard
Hailuo 2.3 Pro-hailuo/2-3-image-to-video-pro
Kling 2.6kling-2.6/text-to-video (default)kling-2.6/image-to-video
Seedance 1.5 Probytedance/seedance-1.5-probytedance/seedance-1.5-pro
Wan 2.6wan/2-6-text-to-videowan/2-6-image-to-video

For paired models, adding one reference image automatically switches to the matching image-to-video model; omitting it selects the text-to-video model. Hailuo 2.3 models always require an image. Seedance uses the same model id for both modes.

FamilyDuration (seconds)Resolution controlsAudio toggle
Grok Imagine6–30480P, 720P, 1080PNo
Hailuo 026 or 10Image mode: 512P, 768PNo
Hailuo 02 ProProvider-managedProvider-managedNo
Hailuo 2.3 / Pro6 or 10768P, 1080P (1080P requires 6 seconds)No
Kling 2.65 or 10Provider-managedYes
Seedance 1.5 Pro4–12480P, 720P, 1080PYes
Wan 2.65, 10, or 15720P, 1080PNo

Aspect-ratio controls are available for text-only Kling and Grok models, and both Seedance modes. Run video_generate action=list for the model's supported controls. Kling and Seedance default to no generated audio.

Reference images can be remote HTTP(S) URLs or local files. OpenClaw uploads local images through Kie's base64 file upload API and passes the returned URL to generation. This initial plugin supports one image up to 10 MB: JPEG or PNG for Kling; JPEG, PNG, or WebP for the other models. Video-to-video and audio reference inputs are not supported.

Set the default video model:

{
  agents: {
    defaults: {
      mediaModels: {
        video: {
          primary: "kie/kling-2.6/text-to-video",
        },
      },
    },
  },
}

Kie jobs can take several minutes. OpenClaw polls until completion and waits up to ten minutes by default. Override this with agents.defaults.mediaModels.video.timeoutMs when needed. Provider error messages are surfaced even when Kie returns HTTP 200.

Veo is not included yet; its dedicated and market API contracts need to be reconciled before support is added.

Live testing

The shared video smoke supports Kie. Allow time for the provider queue:

OPENCLAW_LIVE_VIDEO_GENERATION_TIMEOUT_MS=600000 \
  pnpm test:live:media video --video-providers kie

Set OPENCLAW_LIVE_VIDEO_GENERATION_FULL_MODES=1 to also exercise local image upload and image-to-video generation.