Estimate copies of a project
curl --request POST \
--url https://api.rask.ai/v3/projects/{project_id}/copies/estimate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"targets": [
{
"target_language": "fr-fr"
},
{
"target_language": "de-de"
}
],
"auto_dub": true,
"expected_cost_minutes": 2
}
'import requests
url = "https://api.rask.ai/v3/projects/{project_id}/copies/estimate"
payload = {
"targets": [{ "target_language": "fr-fr" }, { "target_language": "de-de" }],
"auto_dub": True,
"expected_cost_minutes": 2
}
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({
targets: [{target_language: 'fr-fr'}, {target_language: 'de-de'}],
auto_dub: true,
expected_cost_minutes: 2
})
};
fetch('https://api.rask.ai/v3/projects/{project_id}/copies/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}/copies/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([
'targets' => [
[
'target_language' => 'fr-fr'
],
[
'target_language' => 'de-de'
]
],
'auto_dub' => true,
'expected_cost_minutes' => 2
]),
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}/copies/estimate"
payload := strings.NewReader("{\n \"targets\": [\n {\n \"target_language\": \"fr-fr\"\n },\n {\n \"target_language\": \"de-de\"\n }\n ],\n \"auto_dub\": true,\n \"expected_cost_minutes\": 2\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}/copies/estimate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"targets\": [\n {\n \"target_language\": \"fr-fr\"\n },\n {\n \"target_language\": \"de-de\"\n }\n ],\n \"auto_dub\": true,\n \"expected_cost_minutes\": 2\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rask.ai/v3/projects/{project_id}/copies/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 \"targets\": [\n {\n \"target_language\": \"fr-fr\"\n },\n {\n \"target_language\": \"de-de\"\n }\n ],\n \"auto_dub\": true,\n \"expected_cost_minutes\": 2\n}"
response = http.request(request)
puts response.read_body{
"object": "estimate",
"action": "create_project_copies",
"project_id": "6f1c2b7e-8a4d-4e3f-9b5c-1d0a7e2f3c58",
"eligible": true,
"reasons": [],
"notices": [],
"costs": [
{
"credit_type": "projects",
"projects": 0,
"feature": "project_copy",
"charged_when": "on_request"
},
{
"credit_type": "projects",
"projects": 0,
"feature": "project_copy",
"charged_when": "on_request"
},
{
"credit_type": "minutes",
"minutes": 1,
"feature": "dub",
"charged_when": "after_translation",
"basis": {
"billable_seconds": 10,
"multiplier": null
}
},
{
"credit_type": "minutes",
"minutes": 1,
"feature": "dub",
"charged_when": "after_translation",
"basis": {
"billable_seconds": 10,
"multiplier": null
}
}
],
"total_minutes": 2,
"total_projects": 0,
"balance_after": {
"minutes": 186,
"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": "create_project_copies",
"billable_seconds": 10,
"target_count": 2,
"reused_dub_targets": 0,
"text_adaptation": "context"
}
}Projects
Estimate copies of a project
Runs every check of createProjectCopies without writing and returns an Estimate.
POST
/
projects
/
{project_id}
/
copies
/
estimate
Estimate copies of a project
curl --request POST \
--url https://api.rask.ai/v3/projects/{project_id}/copies/estimate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"targets": [
{
"target_language": "fr-fr"
},
{
"target_language": "de-de"
}
],
"auto_dub": true,
"expected_cost_minutes": 2
}
'import requests
url = "https://api.rask.ai/v3/projects/{project_id}/copies/estimate"
payload = {
"targets": [{ "target_language": "fr-fr" }, { "target_language": "de-de" }],
"auto_dub": True,
"expected_cost_minutes": 2
}
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({
targets: [{target_language: 'fr-fr'}, {target_language: 'de-de'}],
auto_dub: true,
expected_cost_minutes: 2
})
};
fetch('https://api.rask.ai/v3/projects/{project_id}/copies/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}/copies/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([
'targets' => [
[
'target_language' => 'fr-fr'
],
[
'target_language' => 'de-de'
]
],
'auto_dub' => true,
'expected_cost_minutes' => 2
]),
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}/copies/estimate"
payload := strings.NewReader("{\n \"targets\": [\n {\n \"target_language\": \"fr-fr\"\n },\n {\n \"target_language\": \"de-de\"\n }\n ],\n \"auto_dub\": true,\n \"expected_cost_minutes\": 2\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}/copies/estimate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"targets\": [\n {\n \"target_language\": \"fr-fr\"\n },\n {\n \"target_language\": \"de-de\"\n }\n ],\n \"auto_dub\": true,\n \"expected_cost_minutes\": 2\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rask.ai/v3/projects/{project_id}/copies/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 \"targets\": [\n {\n \"target_language\": \"fr-fr\"\n },\n {\n \"target_language\": \"de-de\"\n }\n ],\n \"auto_dub\": true,\n \"expected_cost_minutes\": 2\n}"
response = http.request(request)
puts response.read_body{
"object": "estimate",
"action": "create_project_copies",
"project_id": "6f1c2b7e-8a4d-4e3f-9b5c-1d0a7e2f3c58",
"eligible": true,
"reasons": [],
"notices": [],
"costs": [
{
"credit_type": "projects",
"projects": 0,
"feature": "project_copy",
"charged_when": "on_request"
},
{
"credit_type": "projects",
"projects": 0,
"feature": "project_copy",
"charged_when": "on_request"
},
{
"credit_type": "minutes",
"minutes": 1,
"feature": "dub",
"charged_when": "after_translation",
"basis": {
"billable_seconds": 10,
"multiplier": null
}
},
{
"credit_type": "minutes",
"minutes": 1,
"feature": "dub",
"charged_when": "after_translation",
"basis": {
"billable_seconds": 10,
"multiplier": null
}
}
],
"total_minutes": 2,
"total_projects": 0,
"balance_after": {
"minutes": 186,
"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": "create_project_copies",
"billable_seconds": 10,
"target_count": 2,
"reused_dub_targets": 0,
"text_adaptation": "context"
}
}When to use: before createProjectCopies.
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: projects:write
Errors: glossary_not_found (404)Authorizations
Headers
Path Parameters
Body
application/json
Same body as createProjectCopies.
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