Math2Video - Turn Your Math Into Animation API
🎬✨ Turn the math inside your document into a visual story!(Abyss Hackathon 2025) Math2Video takes your math-heavy PDF pages and transforms them into animated
- Id:
widget_321 - Price: Free to run, plus the Call Price, Ƀ 0.1 an API run. Your first 100 API runs carry no Call Price.
- Widget page: Run it in your browser
- Docs: Call Abyss from your code
Input
Send these Fields as input. A Field not listed here is refused.
input
Upload PDF
An https URL or an upload id.
- Type: string
- Required: yes
- Length in characters: at least 1
start_page
From Page
- Type: number
- Required: yes
end_page
To Page
- Type: number
- Required: yes
user_prompt
What do you want explained?
- Type: string
- Required: yes
- Length in characters: 1 to 30000
Run it
One call presses the Widget and answers the run once its status is succeeded or failed, however long it takes. The key is read from ABYSS_API_KEY. Install the library with npm install abysshub or pip install abysshub; cURL sends the Fields as a form.
JavaScript
// index.mjs
import Abyss, { file } from "abysshub";
const abyss = new Abyss();
const run = await abyss.run("widget_321", {
input: file("report.pdf"),
start_page: 8,
end_page: 9,
user_prompt: "Explain Example 9 like I am 5 don't use complicated words",
});
for (const path of await run.save("output")) {
console.log(path);
}Python
from abysshub import Abyss, file
abyss = Abyss()
run = abyss.run("widget_321", {
"input": file("report.pdf"),
"start_page": 8,
"end_page": 9,
"user_prompt": "Explain Example 9 like I am 5 don't use complicated words",
})
for path in run.save("output"):
print(path)cURL
curl https://api.abysshub.com/v1/widgets/widget_321/runs \
-H "Authorization: Bearer $ABYSS_API_KEY" \
-F input=@report.pdf \
-F start_page=8 \
-F end_page=9 \
-F 'user_prompt=Explain Example 9 like I am 5 don'\''t use complicated words'A succeeded run carries its result and its output_files. Their URLs are signed for each read: re-read the run, never store a URL. A run still queued or running in the answer (after an hour, or when the API is busy) is read again at its Location with ?wait=true.
More
Keys, files, errors and limits: API access.