Create a new video
Changed onStarts generating a new AI video from a script, an idea, or the text of an article or document. The video is created in the background and typically takes 1-3 minutes depending on length and media type.
Three ways to create a video:
1. From a script (you write the narration):
{
"script": "The human brain is the most complex organ in the body. It contains roughly 86 billion neurons, each connected to thousands of others. Every thought, memory, and emotion is the result of electrical signals racing through this incredible network.",
"voiceId": "nPczCjzI2devNBz1zQrb",
"imageStyleId": "cinematic"
}
2. From an idea (AI writes the script for you):
{
"script": "5 mind-blowing facts about black holes",
"inputType": "idea",
"expectedDurationSeconds": 60
}
3. From a source (LIMITED PREVIEW, returns 403 until it opens to all accounts). You send the text of an article or a document, the AI writes a short video script from it:
{
"script": "<the full text of the article or document>",
"inputType": "source",
"expectedDurationSeconds": 60,
"source": { "kind": "url", "title": "Why the ocean is loud" }
}
The script stays faithful to the text you send. Nothing is invented. Use this for a blog post, a news story, a report, or a PDF you already turned into text.
Or let us read the page for you. Send the link instead of the text and we fetch and read it while the video is being made:
{
"inputType": "source",
"expectedDurationSeconds": 60,
"source": { "kind": "url", "url": "https://example.com/why-the-ocean-is-loud", "mode": "summarize" }
}
The same works for a PDF you uploaded: { "kind": "document", "assetId": "<id>" }. The page must be public. If it cannot be read, the video fails and the credits go back.
Workflow after calling this endpoint:
- You receive a videoId with status: "pending".
- Poll GET /videos/{videoId} every 5-10 seconds.
- When status changes to completed, the video is ready.
- Call POST /exports to render the MP4, then GET /exports/download to get the file.
Credit cost: Depends on media type, duration, and quality tier. A typical 60-second video with basic quality costs about 50 credits. Check your balance with GET /subscription before generating.
Request
- Base URLhttps://app.aituber.app/api/v1
- AuthHTTP bearer
Request body
Response
OK
Changes
- info
api operation id
scenes.generateremoved and replaced withgenerateNarrationVideo
- info
- info
added the non-success response with the status
- info