Skip to main content
All CollectionsFAQ
Getting Started with the Camb.AI API
Getting Started with the Camb.AI API

A Developer's Guide to Seamless Integration

Support Team avatar
Written by Support Team
Updated over 2 weeks ago

Overview

Camb.AI's API enables seamless integration of advanced dubbing and transcription features into your applications. This guide provides an introduction to using the API, including setup, authentication, and basic requests.


🛠️ Setting Up the API

  1. Sign Up and Get Your API Key

    • Create an account on Camb.AI if you haven’t already.

    • Navigate to the API Settings section in your dashboard.

    • Generate and securely save your API Key.

  2. Authentication

    • The API uses Bearer Token Authentication for secure access.

    • Include your token in the header of each request:

      Authorization: Bearer YOUR_API_KEY

📋 Common API Endpoints

  1. Upload a File for Transcription or Dubbing

    • Endpoint:

      POST /files/upload
    • Parameters:

      • file: Video or audio file to be processed.

      • language: Source language code.

      • mode: Transcription or dubbing mode.

  2. Check Processing Status

    • Endpoint:

      GET /jobs/{job_id}/status
    • Response Example:

      { "status": "in_progress", "progress": 50 }
  3. Download Processed Files

    • Endpoint:

      GET /files/{file_id}/download

⚙️ Best Practices for Using the API

  • Optimize File Sizes: Compress large files before uploading to speed up processing.

  • Retry Requests: Use exponential backoff strategies for failed requests due to network issues.

  • Monitor Usage: Track API limits and credit consumption via the dashboard.

  • Error Handling: Check error codes (e.g., 400 for invalid input, 401 for unauthorized access) and log responses.


📞 Need Help?

If you encounter any issues, feel free to reach out to our support team at [email protected].

Did this answer your question?