API quickstart
Updated 2026-05-31
API quickstart
TelkNet exposes the same REST API used by the web app, GPU bridge, and SDK
generation. Browser sessions authenticate with the telknet_session cookie.
User-managed personal API keys are not part of the current product.
Read the tool catalog
curl http://127.0.0.1:13000/api/v1/tools
Current tool IDs include music-vocal-split, music-smart,
music-six-stem, music-piano-transkun, music-piano-aria,
music-piano-bytedance-pedal, ai-rvc, and midi-converter.
Upload input
Create a presigned upload URL for a selected tool:
curl -X POST http://127.0.0.1:13000/api/v1/tools/music-vocal-split/upload \
-H "Cookie: telknet_session=YOUR_SESSION_COOKIE; telknet_csrf=YOUR_CSRF_TOKEN" \
-H "X-CSRF-Token: YOUR_CSRF_TOKEN" \
-H "X-Requested-With: XMLHttpRequest" \
-H "Origin: http://127.0.0.1:13001" \
-H "Content-Type: application/json" \
-d '{"filename":"sample.mp3","content_type":"audio/mpeg","file_size":1234567}'
Use the returned URL to upload the file, then submit the returned file_key.
Submit a task
curl -X POST http://127.0.0.1:13000/api/v1/tools/music-vocal-split/tasks \
-H "Cookie: telknet_session=YOUR_SESSION_COOKIE; telknet_csrf=YOUR_CSRF_TOKEN" \
-H "X-CSRF-Token: YOUR_CSRF_TOKEN" \
-H "X-Requested-With: XMLHttpRequest" \
-H "Origin: http://127.0.0.1:13001" \
-H "Content-Type: application/json" \
-d '{"tool_id":"music-vocal-split","file_key":"uploads/example.mp3","params":{}}'
The response returns a task id. Poll GET /api/v1/tasks/:taskId until the task
finishes, then use GET /api/v1/tasks/:taskId/download or
GET /api/v1/tasks/:taskId/files/:fileId for results.