curl --request PUT \
--url https://api.tella.com/v1/videos/{id}/thumbnail \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"inpointMs": 4500,
"sourceId": "su_abc123def456"
}
'import requests
url = "https://api.tella.com/v1/videos/{id}/thumbnail"
payload = {
"inpointMs": 4500,
"sourceId": "su_abc123def456"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({inpointMs: 4500, sourceId: 'su_abc123def456'})
};
fetch('https://api.tella.com/v1/videos/{id}/thumbnail', 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://api.tella.com/v1/videos/{id}/thumbnail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'inpointMs' => 4500,
'sourceId' => 'su_abc123def456'
]),
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://api.tella.com/v1/videos/{id}/thumbnail"
payload := strings.NewReader("{\n \"inpointMs\": 4500,\n \"sourceId\": \"su_abc123def456\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.tella.com/v1/videos/{id}/thumbnail")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"inpointMs\": 4500,\n \"sourceId\": \"su_abc123def456\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tella.com/v1/videos/{id}/thumbnail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"inpointMs\": 4500,\n \"sourceId\": \"su_abc123def456\"\n}"
response = http.request(request)
puts response.read_body{
"customThumbnailURL": "https://ucarecdn.com/12345678-abcd-4ef0-9012-3456789abcde/",
"inpointMs": 4500
}{
"docsUrl": "https://docs.tella.com/",
"error": "bad_request",
"message": "The request was malformed or contained invalid parameters."
}{
"docsUrl": "https://docs.tella.com/",
"error": "unauthorized",
"message": "Authentication is required. Provide a valid API key."
}{
"docsUrl": "https://docs.tella.com/",
"error": "forbidden",
"message": "You don't have permission to access this resource."
}{
"docsUrl": "https://docs.tella.com/",
"error": "not_found",
"message": "The requested resource was not found."
}{
"docsUrl": "https://docs.tella.com/",
"error": "rate_limited",
"message": "You have exceeded the rate limit. Please slow down."
}{
"docsUrl": "https://docs.tella.com/",
"error": "server_error",
"message": "An unexpected error occurred"
}{
"docsUrl": "https://docs.tella.com/",
"error": "not_implemented",
"message": "The requested operation is not implemented."
}Set a video's thumbnail
Sets the video’s thumbnail from either an uploaded image or a frame of the video itself. Provide exactly one of sourceId (an image source from POST /v1/sources with kind: "image" — upload the image bytes to its uploadUrl first) or inpointMs (a time on the video’s playback timeline). Setting one mode clears the other.
curl --request PUT \
--url https://api.tella.com/v1/videos/{id}/thumbnail \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"inpointMs": 4500,
"sourceId": "su_abc123def456"
}
'import requests
url = "https://api.tella.com/v1/videos/{id}/thumbnail"
payload = {
"inpointMs": 4500,
"sourceId": "su_abc123def456"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({inpointMs: 4500, sourceId: 'su_abc123def456'})
};
fetch('https://api.tella.com/v1/videos/{id}/thumbnail', 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://api.tella.com/v1/videos/{id}/thumbnail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'inpointMs' => 4500,
'sourceId' => 'su_abc123def456'
]),
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://api.tella.com/v1/videos/{id}/thumbnail"
payload := strings.NewReader("{\n \"inpointMs\": 4500,\n \"sourceId\": \"su_abc123def456\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.tella.com/v1/videos/{id}/thumbnail")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"inpointMs\": 4500,\n \"sourceId\": \"su_abc123def456\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tella.com/v1/videos/{id}/thumbnail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"inpointMs\": 4500,\n \"sourceId\": \"su_abc123def456\"\n}"
response = http.request(request)
puts response.read_body{
"customThumbnailURL": "https://ucarecdn.com/12345678-abcd-4ef0-9012-3456789abcde/",
"inpointMs": 4500
}{
"docsUrl": "https://docs.tella.com/",
"error": "bad_request",
"message": "The request was malformed or contained invalid parameters."
}{
"docsUrl": "https://docs.tella.com/",
"error": "unauthorized",
"message": "Authentication is required. Provide a valid API key."
}{
"docsUrl": "https://docs.tella.com/",
"error": "forbidden",
"message": "You don't have permission to access this resource."
}{
"docsUrl": "https://docs.tella.com/",
"error": "not_found",
"message": "The requested resource was not found."
}{
"docsUrl": "https://docs.tella.com/",
"error": "rate_limited",
"message": "You have exceeded the rate limit. Please slow down."
}{
"docsUrl": "https://docs.tella.com/",
"error": "server_error",
"message": "An unexpected error occurred"
}{
"docsUrl": "https://docs.tella.com/",
"error": "not_implemented",
"message": "The requested operation is not implemented."
}Authorizations
API key obtained from your Tella account settings
Path Parameters
Unique video identifier
"vid_abc123def456"
Body
Request body for setting a video's thumbnail. Provide exactly one of sourceId (uploaded image) or inpointMs (frame from the video).
Pick a video frame as the thumbnail: time in ms on the video's playback timeline (cuts applied, cumulative across clips). Clears any previously uploaded thumbnail image. Mutually exclusive with sourceId.
0 <= x <= 90071992547409914500
Use an uploaded image as the thumbnail. Source ID from POST /v1/sources (kind: 'image'); upload the image bytes to the source's uploadUrl first. Mutually exclusive with inpointMs.
1"su_abc123def456"
Response
Thumbnail set successfully
The thumbnail that was set
CDN URL of the uploaded thumbnail image. Only present when the thumbnail was set from a sourceId.
"https://ucarecdn.com/12345678-abcd-4ef0-9012-3456789abcde/"
The thumbnail frame time in ms. Only present when the thumbnail was set from an inpointMs.
-9007199254740991 <= x <= 90071992547409914500
Related topics
Model Context Protocol (MCP)How to change the thumbnail of your Tella videoGet a video thumbnail or animated previewRemove a video's custom thumbnailSet default video permissionsWas this page helpful?