Spiral gives your agent every tool with one account. Browse the tools →

opencode · Video

How to Use Kling O3 4K Text to Video in opencode

Create native 4K footage from a written scene, including stylized and anime looks. Unlike Kling O3 4K Image to Video, it builds the opening composition from your description.

Prompts to try with Kling O3 4K Text to Video in opencode

Copy an example into opencode, or ask in your own words.

Use Kling O3 4K Text to Video to create a 9-second cel-shaded sequence for the game's teaser: 3 seconds on an empty station, 3 seconds as a courier arrives, and 3 seconds on the courier noticing a glowing parcel.

Kling O3 4K Text to Videoopencode
Try asking
  • Use Kling O3 4K Text to Video to create a 5-second 1080p background clip for the landing page in this project: dawn light crosses an empty greenhouse as the camera slowly pushes forward. No speech.

  • Estimate, then generate a 5-second 9:16 clip with Kling O3 4K Text to Video: a paper boat drifting down a rainy street. Save the result in ./assets.

  • Make a 10-second product teaser with Kling O3 4K Text to Video for a smartwatch, slow orbit shot, studio lighting.

  • Generate three 5-second b-roll clips of a busy coffee shop with Kling O3 4K Text to Video and list what each cost.

How to set up Kling O3 4K Text to Video in opencode

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Kling O3 4K Text to Video

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "fal",
        "model": "fal-ai/kling-video/o3/4k/text-to-video",
        "input": {
          "prompt": "A mecha lands on the ground to save the city, and says \"I'\''m here\", in anime style"
        }
      }'

Then paste one of the prompts above: opencode finds Kling O3 4K Text to Video on Spiral, shows the price and runs it.

Kling O3 4K Text to Video providers and prices

Spiral runs Kling O3 4K Text to Video through fal. Open a card for today's price, with every fee included.

falVideo
Kling Video 4K · Text to Video
fal-ai/kling-video/o3/4k/text-to-video

Settings you can ask for

Kling O3 4K Text to Video works from your prompt. Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Duration3 to 155

Video duration in seconds (3-15s).

Aspect ratio16:9, 9:16, or 1:116:9

Aspect ratio of the generated video.

Generate audioon or offoff

Whether to generate native audio for the video.

Shot typecustomize or intelligentcustomize

The type of multi-shot video generation. 'intelligent' lets the model automatically determine shot structure.

Every API field of Kling Video 4K · Text to Video is on its tool page: open its card above.

What can you do with Kling O3 4K Text to Video in opencode?

Turn a project's creative brief and visual assets into short scenes or footage revisions with Kling O3. Keep the intended action and visual direction beside the project so each result can be reviewed against the brief.

Product reveal concepts

Create or revise a short product scene to test framing, lighting, and the reveal before committing to a campaign.

Storyboard scene tests

Explore a scene's blocking, composition, and visual direction through generated shots or revisions to existing footage.

Stylized short scenes

Develop a brief illustrated or anime scene, either by generating footage or restyling a supplied clip.

Setting and mood studies

Test how a short scene reads in different environments, weather, or lighting before selecting its visual direction.

B-roll from a written brief

Create a short establishing shot or atmospheric insert from a written description of the scene and camera movement.

Questions about Kling O3 4K Text to Video in opencode

Can opencode use Kling O3 4K Text to Video?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Kling O3 4K Text to Video like any built-in tool.

How much does Kling O3 4K Text to Video cost in opencode?

$0.546 per second. Billed on `duration`, default 5. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

Do I need a fal account to use Kling O3 4K Text to Video in opencode?

No. Spiral runs Kling O3 4K Text to Video on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up Kling O3 4K Text to Video in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while Kling O3 4K Text to Video runs?

Kling O3 4K Text to Video runs in the background. opencode starts the run, checks on it and gives you the video when it's ready.

What is Kling O3 useful for?

Use Kling O3 for short advertising scenes, storyboard experiments, and visual storytelling. Choose a concrete scene to create or revise, such as a product reveal or a character entering a room.

How long should I plan each scene?

Plan around short clips: generation supports 3 to 15 seconds, and video editing accepts footage within that range. Break a longer story into separate scenes.

What should a Kling O3 prompt describe?

Describe the subject, visible action, setting, lighting, and camera intention. When revising footage, state the exact change and what you want preserved.

What should I review before using a clip?

Watch the entire clip and check whether the intended action, appearance, and camera direction hold throughout. Treat requests to preserve details as instructions to verify during review.

Is Kling O3 the same as Kling VIDEO 3.0 Omni?

Yes. Kling O3 is the name used for VIDEO 3.0 Omni, which follows Kling O1.

Get started

Start using Kling O3 4K Text to Video in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options