Estimate a lip-sync run
curl --request POST \
--url https://api.rask.ai/v3/projects/{project_id}/lipsync/estimate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "enhanced"
}
'import requests
url = "https://api.rask.ai/v3/projects/{project_id}/lipsync/estimate"
payload = { "model": "enhanced" }
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({model: 'enhanced'})
};
fetch('https://api.rask.ai/v3/projects/{project_id}/lipsync/estimate', 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.rask.ai/v3/projects/{project_id}/lipsync/estimate",
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([
'model' => 'enhanced'
]),
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.rask.ai/v3/projects/{project_id}/lipsync/estimate"
payload := strings.NewReader("{\n \"model\": \"enhanced\"\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://api.rask.ai/v3/projects/{project_id}/lipsync/estimate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"enhanced\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rask.ai/v3/projects/{project_id}/lipsync/estimate")
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 \"model\": \"enhanced\"\n}"
response = http.request(request)
puts response.read_body{
"object": "estimate",
"action": "lipsync",
"project_id": "6f1c2b7e-8a4d-4e3f-9b5c-1d0a7e2f3c58",
"eligible": true,
"reasons": [],
"notices": [],
"costs": [
{
"credit_type": "minutes",
"minutes": 3,
"feature": "lipsync_enhanced",
"charged_when": "on_request",
"basis": {
"billable_seconds": 10,
"multiplier": 3
}
}
],
"total_minutes": 3,
"total_projects": 0,
"balance_after": {
"minutes": 185,
"lipsync_free_minutes": null,
"projects": null
},
"spend_limit": {
"limit_minutes": 500,
"spent_minutes": 120,
"remaining_minutes": 380,
"limit_projects": null,
"spent_projects": 3,
"remaining_projects": null,
"resets_at": "2026-12-01T00:00:00Z"
},
"details": {
"action": "lipsync",
"model": "enhanced",
"free_trial_run": false,
"free_trial_run_available": true,
"multiplier": 3,
"processed_seconds": 10,
"video_has_face": null,
"face_check_required": true,
"previous_run": "none"
}
}Lipsync
Estimate a lip-sync run
Runs every check of createLipsync without writing and returns an Estimate.
POST
/
projects
/
{project_id}
/
lipsync
/
estimate
Estimate a lip-sync run
curl --request POST \
--url https://api.rask.ai/v3/projects/{project_id}/lipsync/estimate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "enhanced"
}
'import requests
url = "https://api.rask.ai/v3/projects/{project_id}/lipsync/estimate"
payload = { "model": "enhanced" }
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({model: 'enhanced'})
};
fetch('https://api.rask.ai/v3/projects/{project_id}/lipsync/estimate', 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.rask.ai/v3/projects/{project_id}/lipsync/estimate",
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([
'model' => 'enhanced'
]),
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.rask.ai/v3/projects/{project_id}/lipsync/estimate"
payload := strings.NewReader("{\n \"model\": \"enhanced\"\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://api.rask.ai/v3/projects/{project_id}/lipsync/estimate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"enhanced\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rask.ai/v3/projects/{project_id}/lipsync/estimate")
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 \"model\": \"enhanced\"\n}"
response = http.request(request)
puts response.read_body{
"object": "estimate",
"action": "lipsync",
"project_id": "6f1c2b7e-8a4d-4e3f-9b5c-1d0a7e2f3c58",
"eligible": true,
"reasons": [],
"notices": [],
"costs": [
{
"credit_type": "minutes",
"minutes": 3,
"feature": "lipsync_enhanced",
"charged_when": "on_request",
"basis": {
"billable_seconds": 10,
"multiplier": 3
}
}
],
"total_minutes": 3,
"total_projects": 0,
"balance_after": {
"minutes": 185,
"lipsync_free_minutes": null,
"projects": null
},
"spend_limit": {
"limit_minutes": 500,
"spent_minutes": 120,
"remaining_minutes": 380,
"limit_projects": null,
"spent_projects": 3,
"remaining_projects": null,
"resets_at": "2026-12-01T00:00:00Z"
},
"details": {
"action": "lipsync",
"model": "enhanced",
"free_trial_run": false,
"free_trial_run_available": true,
"multiplier": 3,
"processed_seconds": 10,
"video_has_face": null,
"face_check_required": true,
"previous_run": "none"
}
}Runs every check of createLipsync without writing and returns an Estimate: price (minutes x model multiplier, or the free run), processed seconds, whether a face check is needed or already found a face, and the previous run’s state.
When to use: before createLipsync; send
total_minutes as expected_cost_minutes.
Side effects: None.
Cost: Free. Does not need credits:spend.
Idempotency: no side effects; an Idempotency-Key is accepted and ignored, so every call is fresh.
Required scopes: lipsync:writeAuthorizations
Headers
Path Parameters
Body
application/json
Body of estimateLipsync.
Response
OK: Estimate.
A side-effect-free quote produced by the action's own checks. Transient: carries object, no id.
The action an estimate prices. Discriminator of details.
create_project: createProjectcreate_project_copies: createProjectCopiesdub: createDublipsync: createLipsynconscreen: createOnscreensegment_generation: generateSegmentslocalization: createLocalization, resumeJob
Available options:
create_project, create_project_copies, dub, lipsync, onscreen, segment_generation, localization