curl --request POST \
--url https://cue.vibeset.ai/v1/videos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"video_url": "<string>",
"filename": "<string>",
"content_type": "video/mp4"
}
'import requests
url = "https://cue.vibeset.ai/v1/videos"
payload = {
"video_url": "<string>",
"filename": "<string>",
"content_type": "video/mp4"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({video_url: '<string>', filename: '<string>', content_type: 'video/mp4'})
};
fetch('https://cue.vibeset.ai/v1/videos', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://cue.vibeset.ai/v1/videos",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'video_url' => '<string>',
'filename' => '<string>',
'content_type' => 'video/mp4'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://cue.vibeset.ai/v1/videos"
payload := strings.NewReader("{\n \"video_url\": \"<string>\",\n \"filename\": \"<string>\",\n \"content_type\": \"video/mp4\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://cue.vibeset.ai/v1/videos")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"video_url\": \"<string>\",\n \"filename\": \"<string>\",\n \"content_type\": \"video/mp4\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cue.vibeset.ai/v1/videos")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"video_url\": \"<string>\",\n \"filename\": \"<string>\",\n \"content_type\": \"video/mp4\"\n}"
response = http.request(request)
puts response.read_body{
"video_id": "69e5a58e73370adad5a10dc9",
"status": "processing",
"poll": "/v1/videos/69e5a58e73370adad5a10dc9"
}{
"error": {
"type": "invalid_request",
"message": "Provide either 'video_id' or 'video_url'.",
"request_id": "a1b2c3d4e5f6"
}
}{
"error": {
"type": "invalid_request",
"message": "Provide either 'video_id' or 'video_url'.",
"request_id": "a1b2c3d4e5f6"
}
}{
"error": {
"type": "invalid_request",
"message": "Provide either 'video_id' or 'video_url'.",
"request_id": "a1b2c3d4e5f6"
}
}{
"error": {
"type": "invalid_request",
"message": "Provide either 'video_id' or 'video_url'.",
"request_id": "a1b2c3d4e5f6"
}
}Ingest a video
Pass a video_url and we fetch it for you. Or pass a filename to get a
presigned upload URL, then PUT the bytes there and call
POST /v1/videos/{video_id}/ingest.
This is where the per-minute analysis charge is incurred. It does not accept an
Idempotency-Key. The meter dedupes it on a server-generated key instead.
Only the URL’s SHAPE is checked here. The fetch runs in a worker, so an oversized
source, or one that is not a video, fails long after this 202 and surfaces as
status: failed plus a reason on GET /v1/videos/{video_id}. There is no 413
or 415 on this request.
curl --request POST \
--url https://cue.vibeset.ai/v1/videos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"video_url": "<string>",
"filename": "<string>",
"content_type": "video/mp4"
}
'import requests
url = "https://cue.vibeset.ai/v1/videos"
payload = {
"video_url": "<string>",
"filename": "<string>",
"content_type": "video/mp4"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({video_url: '<string>', filename: '<string>', content_type: 'video/mp4'})
};
fetch('https://cue.vibeset.ai/v1/videos', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://cue.vibeset.ai/v1/videos",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'video_url' => '<string>',
'filename' => '<string>',
'content_type' => 'video/mp4'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://cue.vibeset.ai/v1/videos"
payload := strings.NewReader("{\n \"video_url\": \"<string>\",\n \"filename\": \"<string>\",\n \"content_type\": \"video/mp4\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://cue.vibeset.ai/v1/videos")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"video_url\": \"<string>\",\n \"filename\": \"<string>\",\n \"content_type\": \"video/mp4\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cue.vibeset.ai/v1/videos")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"video_url\": \"<string>\",\n \"filename\": \"<string>\",\n \"content_type\": \"video/mp4\"\n}"
response = http.request(request)
puts response.read_body{
"video_id": "69e5a58e73370adad5a10dc9",
"status": "processing",
"poll": "/v1/videos/69e5a58e73370adad5a10dc9"
}{
"error": {
"type": "invalid_request",
"message": "Provide either 'video_id' or 'video_url'.",
"request_id": "a1b2c3d4e5f6"
}
}{
"error": {
"type": "invalid_request",
"message": "Provide either 'video_id' or 'video_url'.",
"request_id": "a1b2c3d4e5f6"
}
}{
"error": {
"type": "invalid_request",
"message": "Provide either 'video_id' or 'video_url'.",
"request_id": "a1b2c3d4e5f6"
}
}{
"error": {
"type": "invalid_request",
"message": "Provide either 'video_id' or 'video_url'.",
"request_id": "a1b2c3d4e5f6"
}
}Authorizations
Your API key as a Bearer token, e.g. Authorization: Bearer vbsk_live_...
Body
Provide either video_url or filename.
A public https video URL to fetch. Redirecting share links (Google Drive, Dropbox, S3, CDNs) are followed to the underlying file.
2048Ask for a presigned upload URL instead of fetching.
256Response
Ingest started (VideoJob, poll poll), or an upload target was created
(UploadTarget, PUT the bytes then call the ingest endpoint).
- Option 1
- Option 2
A video being ingested. Carries NO job_id. Poll poll until the video is ready, then call the endpoint you wanted again.