---
name: nok-idea-to-video
description: "One line of idea becomes a finished short: PhotonSphere writes the script, you confirm the price, it renders."
license: MIT
---

# Idea → video with PhotonSphere

Use when the user gives an idea or a topic and wants a finished short.

1. If the user mentioned a style (facts, story, list, ad…), call `nok_list_formats` and pick the closest format id.
2. Call `nok_write_script` with `topic`, the `format` (optional), `seconds` (30, 45, 60 or 90; 0 = automatic) and `language`. This charges a small amount of credits.
3. Show the script to the user. Adjust it if they ask.
4. Call `nok_estimate_video` with the script and tell the user the price.
5. After a yes, call `nok_create_video` with `name`, `script`, `coverLine1` and `coverLine2` (cover text, up to 40 characters each) and `start: true`.
6. Follow the video as described below.

## 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.
