When using JSON2Video API, you can use your own API keys for the AI models. This is useful if you want to use a specific customization of an AI model (like your cloned voice) or if you want to get charged for the AI models usage instead of using the JSON2Video managed service.

How to setup your own API keys

To use your own API keys, you must create a Connection in your JSON2Video dashboard.

Connections in JSON2Video dashboard

For example, if you want to use your own API keys for ElevenLabs you would do this:

Create a new API key connection

You can repeat this process for any other API Key you want to use.

How to use your own API keys in your JSON2Video API requests

To use your own API keys in your JSON2Video API requests, you need to set the connection property to the ID of the Connection you created.

For example, if you want to use your own API keys for ElevenLabs you would do this:

{
    "resolution": "full-hd",
    "scenes": [
        {
            "elements": [
                {
                    "type": "voice",
                    "model": "elevenlabs",
                    "connection": "my-elevenlabs-apikey",
                    "text": "That's one small step for a man, one giant leap for mankind.",
                    "voice": "Brian"
                }
            ]
        }
    ]
}

Published on January 13th, 2025

Author
Joaquim Cardona
Joaquim Cardona Senior Internet business executive with more than 20 years of broad experience in Internet business, media sector, digital marketing, online video and mobile technologies.