---
name: nok-script-to-video
description: "The user already has the text: turn it into PhotonSphere scenes, estimate and render."
license: MIT
---

# Script → video with PhotonSphere

Use when the user already wrote what the video should say.

1. Split the text into scenes of one or two sentences. For each scene write a visual description in English (what the viewer sees).
2. Keep the user's words in the narration. Do not rewrite their meaning.
3. Call `nok_estimate_video` and tell the user the price.
4. After a yes, call `nok_create_video` with `start: true` and two short cover lines (up to 40 characters each).

## Script format PhotonSphere expects
Each scene is two lines: a scene line with the visual description in English, then the narration.
```
[SCENE 1: close-up of an octopus heart beating, dark blue water]
An octopus has three hearts, and two of them stop when it swims.
[SCENE 2: octopus gliding over a coral reef, soft light]
That is why it prefers to crawl.
```

## Rules that always apply
- Anything that generates (videos, scripts, ideas, media, voices) spends the user's PhotonSphere credits. Before spending, call `nok_estimate_video` (for videos) and tell the user the price. Only start after a clear yes.
- Never buy credits (`nok_buy_credits`) or post (`nok_publish`) without an explicit yes from the user for that exact action.
- Scripts must be original. Viral videos are inspiration only: never copy their words.
- If a tool answers that credits are missing or that the plan does not include something, tell the user and stop.

## Waiting for the video
After starting, call `nok_get_video` with the id every 20 to 30 seconds. When `ready` is true, give the user the `downloadPath` (it needs the same login or API key to download). If the status is `error`, report the progress message: failed generations are refunded automatically.
