Spaces:
Running on Zero
Running on Zero
Download dubify_api_tests.http from abi3420/dubify-backend: direct link, hf CLI and curl.
- Browser
- Download file 4.9 kB
-
https://huggingface.co/spaces/abi3420/dubify-backend/resolve/main/dubify_api_tests.http
- Command line
-
hf download hf://spaces/abi3420/dubify-backend/dubify_api_tests.http
-
curl -L -o dubify_api_tests.http https://huggingface.co/spaces/abi3420/dubify-backend/resolve/main/dubify_api_tests.http
4.9 kB
| ### Dubify AI Backend API - VS Code REST Client Test Collection | |
| ### Base URL for Hugging Face Spaces Live Server | |
| @baseUrl = https://abi3420-dubify-backend.hf.space | |
| ### 1. Root Status Endpoint | |
| GET {{baseUrl}}/ | |
| Accept: application/json | |
| ### | |
| ### 2. API Health Check Endpoint | |
| GET {{baseUrl}}/api/health | |
| Accept: application/json | |
| ### | |
| ### 3. Text Translation Endpoint (English to Tamil) | |
| POST {{baseUrl}}/api/translate/text | |
| Content-Type: application/json | |
| { | |
| "text": "Hello, welcome to Dubify AI speech transcription and video dubbing!", | |
| "target_lang": "ta" | |
| } | |
| ### | |
| ### 4. AI Assistant Help Chatbot Endpoint | |
| POST {{baseUrl}}/api/assistant/chat | |
| Content-Type: application/json | |
| { | |
| "message": "How do I dub a video into Tamil?", | |
| "context": "general" | |
| } | |
| ### | |
| ### 5. MiniMax AI Music Generator Endpoint | |
| POST {{baseUrl}}/api/music/generate | |
| Content-Type: application/json | |
| { | |
| "prompt": "Relaxing Acoustic Guitar BGM", | |
| "lyrics": "வணக்கம் தமிழ் நெஞ்சங்களே", | |
| "genre": "Cinematic Ambient BGM", | |
| "duration": 15 | |
| } | |
| ### | |
| ### 6. Live QR Chat Room Sync Endpoint | |
| POST {{baseUrl}}/api/chat/sync/TEST_ROOM_101 | |
| Content-Type: application/json | |
| { | |
| "user_id": "user_001", | |
| "user_name": "Abi", | |
| "native_lang": "ta", | |
| "target_lang": "en", | |
| "last_msg_count": 0 | |
| } | |
| ### | |
| ### 7. Send Live QR Chat Message Endpoint | |
| POST {{baseUrl}}/api/chat/send | |
| Content-Type: application/json | |
| { | |
| "session_id": "TEST_ROOM_101", | |
| "sender_id": "user_001", | |
| "sender_name": "Abi", | |
| "text": "வணக்கம்! நீங்கள் எப்படி இருக்கிறீர்கள்?", | |
| "sender_lang": "ta", | |
| "target_lang": "en" | |
| } | |
| ### | |
| ### 8. Voice Clone Profiles Library | |
| GET {{baseUrl}}/api/voice-clone/profiles | |
| Accept: application/json | |
| ### | |
| ### 9. Dubbing Task Progress Status Endpoint | |
| GET {{baseUrl}}/api/dub/status/task_demo_123 | |
| Accept: application/json | |
| ### | |
| ### 10. Audio / Video Transcription API (Multipart File Upload) | |
| ### Note: Replace 'sample.mp4' path with your actual local file path in VS Code | |
| POST {{baseUrl}}/api/transcribe | |
| Content-Type: multipart/form-data; boundary=WebAppBoundary | |
| --WebAppBoundary | |
| Content-Disposition: form-data; name="whisper_model" | |
| base | |
| --WebAppBoundary | |
| Content-Disposition: form-data; name="target_lang" | |
| ta | |
| --WebAppBoundary | |
| Content-Disposition: form-data; name="file"; filename="sample_audio.mp3" | |
| Content-Type: audio/mpeg | |
| < ./sample_audio.mp3 | |
| --WebAppBoundary-- | |
| ### | |
| ### 11. Full Video Dubbing API (Multipart File Upload) | |
| POST {{baseUrl}}/api/dub | |
| Content-Type: multipart/form-data; boundary=WebAppBoundary | |
| --WebAppBoundary | |
| Content-Disposition: form-data; name="voice_gender" | |
| female | |
| --WebAppBoundary | |
| Content-Disposition: form-data; name="target_lang" | |
| ta | |
| --WebAppBoundary | |
| Content-Disposition: form-data; name="speech_rate" | |
| +0% | |
| --WebAppBoundary | |
| Content-Disposition: form-data; name="whisper_model" | |
| base | |
| --WebAppBoundary | |
| Content-Disposition: form-data; name="file"; filename="sample_video.mp4" | |
| Content-Type: video/mp4 | |
| < ./sample_video.mp4 | |
| --WebAppBoundary-- | |
| ### | |
| ### 12. Video Cut & Trim Endpoint (Multipart Upload) | |
| POST {{baseUrl}}/api/video/cut | |
| Content-Type: multipart/form-data; boundary=WebAppBoundary | |
| --WebAppBoundary | |
| Content-Disposition: form-data; name="start_time" | |
| 0.0 | |
| --WebAppBoundary | |
| Content-Disposition: form-data; name="end_time" | |
| 10.0 | |
| --WebAppBoundary | |
| Content-Disposition: form-data; name="speed" | |
| 1.0 | |
| --WebAppBoundary | |
| Content-Disposition: form-data; name="file"; filename="sample_video.mp4" | |
| Content-Type: video/mp4 | |
| < ./sample_video.mp4 | |
| --WebAppBoundary-- | |
| ### | |
| ### 13. Video Batch Split into ZIP Archive Endpoint (Multipart Upload) | |
| POST {{baseUrl}}/api/video/split-batch | |
| Content-Type: multipart/form-data; boundary=WebAppBoundary | |
| --WebAppBoundary | |
| Content-Disposition: form-data; name="num_parts" | |
| 3 | |
| --WebAppBoundary | |
| Content-Disposition: form-data; name="file"; filename="sample_video.mp4" | |
| Content-Type: video/mp4 | |
| < ./sample_video.mp4 | |
| --WebAppBoundary-- | |
| ### | |
| ### 14. Video Size Compression Endpoint (Multipart Upload) | |
| POST {{baseUrl}}/api/video/compress | |
| Content-Type: multipart/form-data; boundary=WebAppBoundary | |
| --WebAppBoundary | |
| Content-Disposition: form-data; name="crf" | |
| 23 | |
| --WebAppBoundary | |
| Content-Disposition: form-data; name="preset" | |
| faster | |
| --WebAppBoundary | |
| Content-Disposition: form-data; name="file"; filename="sample_video.mp4" | |
| Content-Type: video/mp4 | |
| < ./sample_video.mp4 | |
| --WebAppBoundary-- | |
| ### | |
| ### 15. Merge Video Clips Endpoint (Multipart Upload) | |
| POST {{baseUrl}}/api/video/merge | |
| Content-Type: multipart/form-data; boundary=WebAppBoundary | |
| --WebAppBoundary | |
| Content-Disposition: form-data; name="crf" | |
| 23 | |
| --WebAppBoundary | |
| Content-Disposition: form-data; name="files"; filename="clip1.mp4" | |
| Content-Type: video/mp4 | |
| < ./sample_video.mp4 | |
| --WebAppBoundary | |
| Content-Disposition: form-data; name="files"; filename="clip2.mp4" | |
| Content-Type: video/mp4 | |
| < ./sample_video.mp4 | |
| --WebAppBoundary-- | |