> For the complete documentation index, see [llms.txt](https://help.contouron.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.contouron.com/settings/api-keys.md).

# API keys

> For the complete documentation index, see [llms.txt](https://docs.contouron.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.contouron.com/settings/api-keys.md).

## API keys

All plans include unlimited AI text generation.

All plans include generous quotas for AI image, video, and voice generation ([details](https://www.contouron.com/#pricing)).

### Contouron API Key

Your API key is used for Claude Code, Cursor, n8n, Make.com, and REST API integrations. If you use Claude.ai Web, Claude Desktop, or Claude Cowork, you connect via OAuth and do not need an API key (see MCP Setup).

To get your Contouron API key, go to [Settings > API](https://my.contouron.com/settings/api) and click "Copy API Key".

Your API key sometimes ends with one or more `=` characters (base64 padding). The `=` is part of your key. Copy the full key including the trailing `=`, and do not remove it. When you paste the key into a shell, `.env` file, or script, wrap it in single quotes (for example `'abc123=='`), because `=` is a special character in those contexts. A dropped or stripped trailing `=` causes a 401 "invalid API key" error.

#### How to revoke or regenerate your API key

To revoke your current API key, go to [Settings > API](https://my.contouron.com/settings/api) and click "Regenerate API Key." This creates a new key and immediately invalidates the old one.

After regenerating, update the new key in all your automation workflows (n8n, Make.com, Claude Code, Cursor, etc.). OAuth-connected clients (Claude.ai, Claude Desktop, Claude Cowork) are not affected by API key changes.

#### Social account IDs

You'll also need your social account IDs. First connect your social accounts, then next to each account, click the button "Copy Account ID".

For Facebook Pages an Linked Pages, you'll also need to copy the respective Page IDs.

<figure><img src="/files/Q6nQbVps1GQVYQ1jjkpr" alt=""><figcaption></figcaption></figure>

The Contouron API allows you to upload media assets and publish to your social media accounts.

Typical use cases include:

* automated content creation & publishing
* automated publishing of AI avatar videos
* automated cross-posting across social accounts (e.g. Tiktok to IG Reels)

***

### Troubleshooting Contouron API Errors

Here are 2 ways to check what JSON data format is required by the Contouron API:

1. Download an existing Make blueprint with the HTTP nodes already configured. For example, here's a Make workflow automation for an AI Social Media System: <https://www.sabrina.dev/p/i-built-an-ai-social-media-system>
2. In the AI Agent, click "Schedule", and switch the dropdown "Where do you want to publish it?" to "Webhook" and you will see the exact JSON payload required by the Contouron API to publish to that particular platforms.

<figure><img src="/files/dIOq0C2pPiZssUJA5llv" alt=""><figcaption></figcaption></figure>

***

### Setup Replicate API Key

If you are on the Creator or Agency plan, you get unlimited AI image generation in Contouron by using your Replicate API key. Replicate.com hosts many open-source AI models. It's one of my favorite platforms!

It has simple pay-per-usage, so it costs $0 if you don't use it.

To set up your API key and configure billing on Replicate, follow these steps:

**1. Create a Replicate Account:**

* Visit [Replicate](https://replicate.com/) and sign up for an account.

**2. Generate an API Key:**

* Go to <https://replicate.com/signin?next=/account/api-tokens>
* Click "Create" to generate a new API key.
* Copy your API key into Contouron.

**3. Set Up Billing:**

* While logged in, go to your Billing Settings.
* Add a valid payment method to your account.
* Replicate operates on a pay-as-you-go model, billing you at the beginning of each month for the previous month's usage ([more info](https://replicate.com/docs/billing))

By following these steps, you'll have your Replicate API key configured in Contouron.

***

### Elevenlabs API Key

If you have custom voices in Elevenlabs, you can use them in the Contouron video web app.

In Settings, input your Elevenlabs API key:

![](/files/5qielzrnN8YBoti44t0o)

When you create a new video in the web app, all your custom Elevenlabs voices will be listed and available for you to select.

Note: Custom Elevenlabs voices are only available in the Contouron web app. Native API support is on the roadmap. For a workaround using the ElevenLabs API + Combine Existing Clips template, see Voice IDs.

***

### Troubleshooting API Key Errors

If you're seeing API key errors in Contouron, double check the following:

* setup Billing correctly for each account
* add your credit card to each account

If that still didn't work, I suggest removing your API keys for now. Remember to click **Save**.

Contact Sabrina via in-app chat in the bottom right corner for further assistance.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.contouron.com/settings/api-keys.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
