Write the script first
preview_scriptWrites the script of a video in about 15 seconds without making it: it uses very few credits. Show the lines to the user, change what they want, then make the video with make_video (script_id + lines). One script at a time; the free trial has 5 unused scripts a day, paid plans 15. The user needs enough usage left for one video. Optional, for this video only (as «This video only» in the app): length_seconds, word_for_word, keep_order, opening, ending, last_line, music, voice_speed, video_language; the script is written with them and make_video keeps them. Waits up to 25 seconds; if it isn't ready yet, call get_script.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"idea": "<idea>"
},
"name": "preview_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| idea | Yes | What the video is about, in a sentence | |
| facts | No | Facts, numbers or the true story it must use | |
| music | No | The background music, always well below the voice: none, or a mood. Default: HypeFox picks the mood. | |
| sales | No | A sales video for a Business project: it ends with the call to action | |
| style | No | A style id from get_catalog (its name works too, e.g. "Editorial"). Default: the project's style. | |
| voice | No | Voice id; default: the project's voice | |
| ending | No | The kind of last line: loop (it leads back into the first line), consiglio (a tip), domanda (a question to the viewer), mandalo (who to send it to). Not in sales videos, which end with their call to action. Default: HypeFox picks one. | |
| keyword | No | Sales video with DMs: the word people write in a DM or a comment to get the offer in private, with the project's link when it has one (3 to 12 letters or numbers). Default: the project's keyword (sells.keyword) | |
| opening | No | The kind of first line (hook): fatto_forte (Bold fact), numero (Number), contrario (Hot take), mito_verita (Myth vs truth), errore_comune (Common mistake), domanda (Question), storia_in_mezzo (Story), risultato_prima (Result first), prima_dopo (Before & after), pov (POV), e_se (What if), confronto (A vs B), perche_nascosto (Hidden reason), lista (Short list), avviso (Warning), chiamata (Call out). Each style has its own list (the error says it); chiamata only in sales videos. Default: HypeFox picks one. | |
| project | No | Project id or name (optional if the user has one project) | |
| last_line | No | The user's own last line, said word for word at the end (e.g. «Follow me for part 2»), instead of ending. Not in sales videos. | |
| keep_order | No | The script tells the user's points in the order they wrote them: no point moved up for the hook or kept for the end. | |
| references | No | Optional: web pages to take the facts from, and the user's uploaded photos to show in the video | |
| voice_speed | No | The speed of the voice in this video, 0.7 to 1.5 (the usual is 1.1). | |
| word_for_word | No | This video only: the user's own text is the script, said exactly as written (facts, or idea when there are no facts), up to about a minute (1,300 characters). HypeFox doesn't rewrite it, shorten it or check its facts. Not with length_seconds, keep_order, opening, ending or last_line: the text decides those. | |
| length_seconds | No | This video only: about 15, 30 (the usual), 45 or 60 seconds. It uses about the same credits. | |
| video_language | No | This video only, without changing the project: English or Italian. The voice must speak it (one of that language's voices, or mia); without voice, the first voice of that language. |