API Keys
Generate a key to authenticate your API requests. Your key has the same credit balance as your account.
Available Endpoints
GET/v1/creditsCredit balance
POST/v1/upload-urlUpload URL
POST/v1/jobsStart dubbing
GET/v1/jobsList jobs
GET/v1/jobs/:idJob status
DEL/v1/jobs/:idCancel job
POST/v1/ttsText to speech
GET/v1/voicesList voices
Quick Start
Dub a video in 3 steps.
1
Get an upload URL
# Request a pre-signed upload URL POST https://api.glotix.ai/v1/upload-url Authorization: Bearer gl_live_your_key Content-Type: application/json { "filename": "video.mp4", "content_type": "video/mp4" }
2
Upload your file
# PUT your file to the returned upload_url PUT {upload_url} Content-Type: video/mp4 # --binary-data your_video.mp4
3
Start dubbing
POST https://api.glotix.ai/v1/jobs Authorization: Bearer gl_live_your_key Content-Type: application/json { "file_key": "{file_key from step 1}", "target_language": "ar", "voice_mode": "default" }
4
Poll for result
GET https://api.glotix.ai/v1/jobs/{job_id} Authorization: Bearer gl_live_your_key # Response when done: { "status": "completed", "output_url": "https://..." }