zf-kbot/math-to-video
Public
217
runs
Run zf-kbot/math-to-video with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
| Field | Type | Default value | Description |
|---|---|---|---|
| api_key |
string
|
API key
|
|
| manim_code |
string
|
完整 Manim 场景代码(scene.py 内容)
|
|
| quality |
None
|
qh
|
渲染画质
|
| scene_name |
string
|
MathScene
|
场景类名
|
| audio_urls |
string
|
[]
|
JSON 格式的 TTS 音频 URL 数组
|
| audio_gap |
number
|
0.4
|
音频片段之间的静音间隔(秒)
|
{
"type": "object",
"title": "Input",
"required": [
"api_key",
"manim_code"
],
"properties": {
"api_key": {
"type": "string",
"title": "Api Key",
"x-order": 0,
"description": "API key"
},
"quality": {
"enum": [
"ql",
"qm",
"qh"
],
"type": "string",
"title": "quality",
"description": "\u6e32\u67d3\u753b\u8d28",
"default": "qh",
"x-order": 2
},
"audio_gap": {
"type": "number",
"title": "Audio Gap",
"default": 0.4,
"x-order": 5,
"description": "\u97f3\u9891\u7247\u6bb5\u4e4b\u95f4\u7684\u9759\u97f3\u95f4\u9694\uff08\u79d2\uff09"
},
"audio_urls": {
"type": "string",
"title": "Audio Urls",
"default": "[]",
"x-order": 4,
"description": "JSON \u683c\u5f0f\u7684 TTS \u97f3\u9891 URL \u6570\u7ec4"
},
"manim_code": {
"type": "string",
"title": "Manim Code",
"x-order": 1,
"description": "\u5b8c\u6574 Manim \u573a\u666f\u4ee3\u7801\uff08scene.py \u5185\u5bb9\uff09"
},
"scene_name": {
"type": "string",
"title": "Scene Name",
"default": "MathScene",
"x-order": 3,
"description": "\u573a\u666f\u7c7b\u540d"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output",
"format": "uri"
}