curl --request POST \
--url https://kodisc.com/api/v2/render \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"code": "from manim import *\n\nclass HelloKodisc(Scene):\n def construct(self):\n self.play(Write(Text(\"Hello, Kodisc\")))\n self.wait(1)\n",
"className": "HelloKodisc"
}
'{
"jobId": "clx9f0a1b0000abcd1234efgh",
"status": "queued",
"endpoint": "render"
}Enqueue a render
Submits a Manim scene for rendering and returns immediately with a jobId. The job runs asynchronously on Kodisc’s render fleet.
A successful enqueue reserves a minimum number of credits up-front; the final cost is settled (and any unused credits refunded) when the render completes. If your balance is below the minimum reserve, the request fails with 402.
Track progress by polling GET /api/v2/render/{jobId} or by configuring a webhook (see Webhooks).
curl --request POST \
--url https://kodisc.com/api/v2/render \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"code": "from manim import *\n\nclass HelloKodisc(Scene):\n def construct(self):\n self.play(Write(Text(\"Hello, Kodisc\")))\n self.wait(1)\n",
"className": "HelloKodisc"
}
'{
"jobId": "clx9f0a1b0000abcd1234efgh",
"status": "queued",
"endpoint": "render"
}Authorizations
Send your API key in the Authorization header as Bearer kdsc_live_<...>. Generate keys from the developer dashboard. Keys are returned in plaintext only once at creation time — store them like a password.
Body
Manim Python source containing your Scene subclass. Imports, helpers, and the scene class can all live in this string. Maximum payload size for the whole request body is roughly 200 KB.
1"from manim import *\n\nclass HelloKodisc(Scene):\n def construct(self):\n self.play(Write(Text(\"Hello, Kodisc\")))\n self.wait(1)\n"
Was this page helpful?