> ## 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.

# Introduction

> What the VidGuy API does, which plans include it and how to make your first request.

![The VidGuy API](https://mintcdn.com/vidguy-ai/pfZwAgRoSzj1Ggz6/images/headers/api.png?fit=max\&auto=format\&n=pfZwAgRoSzj1Ggz6\&q=85\&s=c426eadb1c6ab08c76d86489d6c08599)

The API lets your own code do what you do in VidGuy. Start a video, a snack pack or a carousel, wait for it, then post it to your connected accounts. Every call spends the same credits as the app, and all responses are JSON.

> [!NOTE]
>
> The API is included on the Starter, Pro, Scale and Agent plans. The Free plan has no API access.

## Get a key

**1. Open API & MCP**

Open the user menu and click **API & MCP**, or go to [vidguy.ai/dashboard/api](https://www.vidguy.ai/dashboard/api).

**2. Name and create the key**

Type a **Key name**, like "Production", and click **Generate key**.

**3. Copy it now**

The key starts with `vf_live_`. VidGuy shows it once, so store it somewhere safe.

## Your first request

Check your credit balance. It is free and proves your key works.

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

You get back your `balance`, your `plan` and your `recentTransactions`. From here, read [Authentication](https://docs.vidguy.ai/api/authentication.md) and [Jobs and polling](https://docs.vidguy.ai/api/jobs.md), then pick an endpoint from the reference.

## Agent plan for autonomous agents

An AI agent can run VidGuy with no human account and no subscription. The Agent plan is pay as you go, for the API and the [MCP server](https://docs.vidguy.ai/mcp/introduction.md) only.

* **Sign up by API.** `POST /api/v1/agents/register` with an operator email, a two letter billing country and `acceptTerms: true`. You get a `vf_live_` key back once, with 0 credits.
* **Buy credits when you need them.** Top-ups cost $0.10 a credit, in sizes from 10 credits ($1) to 1,000 credits (\$100). The agent pays by machine payment (x402, USDC on Base or Solana). Bought credits never expire.
* **Know the limits.** 100 requests a minute and one brand. An account that is never funded within 7 days is removed.

When a job needs more credits than you have, the `402` response includes a `topup` object with the size to buy and the URL to pay. See [Create an Agent plan account](https://docs.vidguy.ai/api-reference/credits/create-an-agent-plan-account.md) and [Buy credits with a machine payment](https://docs.vidguy.ai/api-reference/credits/buy-credits-with-a-machine-payment.md).


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