> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vidguy.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Authentication

> Send your API key as a Bearer token on every request.

Every request needs your API key. Send it in the `Authorization` header as a Bearer token. Make a key under **API & MCP** in the user menu (see [Introduction](https://docs.vidguy.ai/api/introduction.md)).

The base URL is `https://www.vidguy.ai/api/v1`. Always use the `www.` host.

```bash theme={null}
curl https://www.vidguy.ai/api/v1/credits \
  -H "Authorization: Bearer vf_live_YOUR_KEY"
```

A missing, wrong or revoked key returns `401`. A valid key on the Free plan returns `403`.

## Keeping your key safe

* **Keep it on the server.** Never put a key in browser code, a mobile app or a public repo.
* **One key per use.** Make a separate key for production, for CI and for each agent, so you can revoke one without breaking the rest.
* **Revoke what leaks.** Click **Revoke** next to a key under **API & MCP**. It stops working at once.
* **Keys spend your credits.** Anyone holding a key can start paid jobs on your account.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.