Skip to main content

SDKs

Official SDKs are coming soon. In the meantime, you can use the REST API directly with any HTTP client.

Quick example with curl

curl -X POST https://api.vidocu.ai/v1/videos/upload \
-H "Authorization: Bearer vdo_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"filename": "demo.mp4", "contentType": "video/mp4"}'

Quick example with fetch (TypeScript)

const response = await fetch("https://api.vidocu.ai/v1/videos/upload", {
method: "POST",
headers: {
Authorization: "Bearer vdo_live_your_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({
filename: "demo.mp4",
contentType: "video/mp4",
}),
});

const { id, uploadUrl } = await response.json();

Quick example with Python

import requests

response = requests.post(
"https://api.vidocu.ai/v1/videos/upload",
headers={"Authorization": "Bearer vdo_live_your_key_here"},
json={"filename": "demo.mp4", "contentType": "video/mp4"},
)

data = response.json()
print(data["id"], data["uploadUrl"])

Stay updated

Follow the changelog for SDK announcements.