text.script — a capability that watches a video, researches the topic,
fact-checks its claims and returns a finished script.
Prerequisites
- A Sigmora workspace. Sign up if you do not have one.
- An API key for that workspace, created in the dashboard under Settings → API keys.
- For the Python examples,
requests(pip install requests). The TypeScript examples use the built-infetchin Node.js 18 or later.
Make your first calls
1
Set your API key
Export your key as an environment variable. Every example in these docs reads
it from A key is shown once, when you create it. If you cannot open Settings → API
keys, ask a workspace owner to create one for you.
SIGMORA_API_KEY.2
See what you can call, and what it costs
GET /v1/capabilities returns every capability with its current price in
credits, whether it can run right now, and your credit balance. Reading it is
free.Response
3
Create a project
Every capability files its output in a project, so create one first. Creating
a project is free.
mediaType is video or audio; a video project also
names the production path that fits the work (general fits anything).Response
Idempotency-Key is required here. If the request times out, send it again
with the same key and you get the same project back instead of a second one.4
Run a capability
Send a seed video and an angle to
POST /v1/text/script. Pass the project id
from the previous step as projectId. The call is synchronous and can take
a few minutes, so use a generous client timeout.Response
credits is what was actually charged and creditBalance is what is left. A
call that fails before producing a usable result is free.5
Read the project back
Pass the same
projectId to every related call and the script, renders and
thumbnails collect in one place you can read with one request.Long-running work returns a job
Rendering video takes minutes, soPOST /v1/video/render, POST /v1/video/edit
and the 3D capabilities answer immediately with a jobId. Poll
GET /v1/jobs/{jobId} until status is terminal:
Jobs & polling covers every status and artifact, and
From a document to a video walks a render end to end.
Next steps
From a document to a video
Send writing you already have and collect a narrated video file.
Client libraries
Complete TypeScript and Python clients with retries and polling.
Errors
The error envelope, every code, and how to retry safely.
Core concepts
Workspaces, Brands, projects, jobs and artifacts in plain language.