🚀 Introducing MARS8 Series — Four Powerful Variants | Available on All Major Clouds | Learn about the model here
🚀 Introducing MARS8 Series — Four Powerful Variants | Available on All Major Clouds | Learn about the model here
Initialize dubbing projects through the API for seamless editing and management in CAMB.AI Studio. This endpoint creates the foundation for your dubbing workflow by analyzing source media and establishing optimal configuration parameters.
curl --request POST \
--url https://client.camb.ai/apis/project-setup \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"media_url": "<string>",
"source_language": 1,
"target_languages": [
1
],
"project_name": "<string>",
"project_description": "<string>",
"selected_audio_tracks": null,
"add_output_as_an_audio_track": null,
"chosen_dictionaries": null,
"folder_id": 2
}
'{
"task_id": "<string>"
}Bridge the gap between API automation and hands-on creative control with our Project Setup endpoint. This powerful tool allows you to programmatically initialize dubbing projects that seamlessly integrate with CAMB.AI Studio, giving you the best of both worlds: automated project creation through your existing workflows and the flexibility to fine-tune results through our visual interface. Think of this endpoint as your content’s intelligent onboarding system. It analyzes your media, validates configurations, and creates a fully-prepared project ready for detailed editing in CAMB.AI Studio. This approach transforms how content teams work, enabling developers to handle project initialization while creative professionals focus on perfecting the final output.Documentation Index
Fetch the complete documentation index at: https://docs.camb.ai/llms.txt
Use this file to discover all available pages before exploring further.
import requests
import json
# Configure API authentication
headers = {
"x-api-key": "your-api-key", # Replace with your actual API key
"Content-Type": "application/json"
}
# Define project configuration
# This setup creates a project optimized for Studio editing
project_config = {
"project_name": "Product Launch Campaign", # Project name visible in Studio
"project_description": "Multi-language product demo for global markets", # Context for Studio users
"media_url": "https://your-storage.com/product-demo.mp4", # Source media location
"source_language": 1, # English - get IDs from /source-languages
"target_languages": [5, 76, 12], # Spanish, French, German - check /target-languages
}
def create_studio_project(payload):
"""
Creates a project configured for optimal Studio editing experience.
The resulting project appears in CAMB.AI Studio with all technical setup complete.
"""
try:
response = requests.post(
"https://client.camb.ai/apis/project-setup",
headers=headers,
data=json.dumps(payload)
)
response.raise_for_status()
result = response.json()
task_id = result.get("task_id")
return task_id
except requests.exceptions.RequestException as e:
print(f"Project creation failed: {e}")
return None
# Create the project
project_setup_task_id = create_studio_project(project_config)
if not project_setup_task_id:
print(f"Failed to create project '{project_config['project_name']}'. Please check your API key and configuration.")
else:
print(f"Project '{project_config['project_name']}' task is created successfully! Task ID: {project_setup_task_id}")
The x-api-key is a custom header required for authenticating requests to our API. Include this header in your request with the appropriate API key value to securely access our endpoints. You can find your API key(s) in the 'API' section of our studio website.
The source location of your media content. This URI can point to YouTube videos, Google Drive files, or direct media file URLs. The system validates accessibility and begins media analysis immediately upon receipt. Think of this as telling the system where to find your raw material for processing
The language identifier for the original audio in your media. This selection determines which speech recognition models and analysis approaches the system applies to your content. Accurate source language specification ensures optimal transcription quality, which directly impacts the final dubbing results your team will work with in Studio.
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150 An array of language identifiers representing the languages you want your content dubbed into. Each language in this array creates a separate dubbing track in your Studio project, giving your creative team complete control over each language version. The system optimizes voice selection and translation models based on these choices.
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150 Enter a distinctive name for your project that reflects its purpose or content. This name will be displayed in your CAMB.AI workspace dashboard and used to organize related assets, transcriptions, etc.. . Choose something memorable that helps you quickly identify this specific project among your other voice, audio and localization tasks.
3 - 255Provide details about your project's goals and specifications. Include information such as the target languages for translation or dubbing, desired voice characteristics, emotional tones to capture, or specific audio processing requirements, outlining the workflow here can serve as valuable documentation for organizational purposes.
3 - 5000Optional array of one or two zero‑based audio track indices to dub. Only supported for MXF files. If omitted, the first audio track (index 0) is used by default.
1 - 2 elementsOptional flag to append the dubbed audio as a new audio track in the output file. Only supported for MXF files. If true, the dubbed audio is added as an additional track; if false or omitted, the source would be returned with only dubbed audio.
An optional list of dictionary IDs selected by the user. Each entry must be an integer corresponding to a valid dictionary ID. If provided, at least one ID is required.
1Specify the organizational folder within your CAMB.AI workspace where this task should be created and stored. The folder must already exist in your workspace and be accessible through your current API key authentication. This helps maintain project organization by grouping related tasks together, making it easier to manage and locate your projects.
x >= 1Successful Response
A JSON that contains the unique identifier for the task. This is used to query the status of the text to voice task that is running. It is returned when a create request is made for setting up a project task.
curl --request POST \
--url https://client.camb.ai/apis/project-setup \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"media_url": "<string>",
"source_language": 1,
"target_languages": [
1
],
"project_name": "<string>",
"project_description": "<string>",
"selected_audio_tracks": null,
"add_output_as_an_audio_track": null,
"chosen_dictionaries": null,
"folder_id": 2
}
'{
"task_id": "<string>"
}