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

# Getting Started

> Make your first Vidgo API request and learn the request lifecycle for image, video, audio, music, 3D, and LLM models.

# Build with Vidgo API

Access image, video, audio, music, 3D, and LLM models through **one API key**. Generation models share one asynchronous submit-and-query workflow; LLM models use OpenAI-, Claude-, and Gemini-compatible endpoints.

> [card] [Get an API key](https://vidgo.ai/apis/dashboard/api-key)
>
> Create and manage your keys in the Vidgo dashboard.

> [card] [Make your first request](https://docs.vidgo.ai/api-manual/quickstart.md)
>
> Submit a task and poll its result with cURL, Python, or JavaScript.

> [card] [Check pricing](https://vidgo.ai/apis/api-pricing)
>
> See current model rates.

> [card] [Handle errors](https://docs.vidgo.ai/api-manual/error-codes.md)
>
> Response formats and HTTP status codes.

> [card] [Build with your AI agent](https://vidgo.ai/apis/agent-setup)
>
> Connect Claude Code, Codex, Cursor or OpenCode to the Vidgo docs MCP server (`https://docs.vidgo.ai/mcp`) and copy a setup prompt that works in any coding agent.

## 1. Available models

Each model category has an overview listing every model and its model IDs:

> [card] [Image](https://docs.vidgo.ai/api-manual/image-series/overview.md)
>
> Text-to-image and image editing.

> [card] [Video](https://docs.vidgo.ai/api-manual/video-series/overview.md)
>
> Text, image, and reference to video.

> [card] [Audio](https://docs.vidgo.ai/api-manual/music-series/audio-overview.md)
>
> Text-to-speech.

> [card] [LLM](https://docs.vidgo.ai/api-manual/chat-series/overview.md)
>
> GPT, Claude, Gemini, Grok, and Kimi.

> [card] [3D](https://docs.vidgo.ai/api-manual/3d-series/overview.md)
>
> Text and image to 3D models.

> [card] [Music](https://docs.vidgo.ai/api-manual/music-series/overview.md)
>
> Suno music actions and music models.

## 2. Authentication

Create your API key on the [API key page](https://vidgo.ai/apis/dashboard/api-key). Every request must include:

```http theme={"dark"}
Authorization: Bearer VIDGO_API_KEY
Content-Type: application/json
```

[Claude Messages](https://docs.vidgo.ai/api-manual/chat-series/claude-messages.md) also accepts `x-api-key`, and [Gemini Native Format](https://docs.vidgo.ai/api-manual/chat-series/gemini-native-format.md) also accepts `x-goog-api-key`.

> [!WARNING]
>
> **Never expose your API key** in frontend code (browser, mobile apps, public repositories). Keep it on your server.

## 3. Submit a generation task

Generation is asynchronous. Submit a task to `POST /api/generate/submit` and save the returned `task_id`.

```bash theme={"dark"}
curl https://api.vidgo.ai/api/generate/submit \
  -H "Authorization: Bearer $VIDGO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4o-image",
    "input": {
      "prompt": "A paper-cut illustration of a city at sunrise",
      "size": "1:1"
    }
  }'
```

> [!NOTE]
>
> A successful submit response means the task was accepted, not that generation has finished.

## 4. Retrieve the result

```bash theme={"dark"}
curl "https://api.vidgo.ai/api/generate/status/TASK_ID" \
  -H "Authorization: Bearer $VIDGO_API_KEY"
```

**1. Submit**

Send the generation request and save the returned `task_id`.

**2. Wait for the result**

Poll [Get Task Status](https://docs.vidgo.ai/api-manual/task-management/status.md), or pass a `callback_url` and receive a [webhook](https://docs.vidgo.ai/api-manual/task-management/webhooks.md) when the task reaches `finished` or `failed`.

**3. Store the output**

Download the files in `files` and store them on your side.

Suno music actions use [Query Music Detail](https://docs.vidgo.ai/api-manual/music-series/query-music-detail.md) and the [Music Webhook](https://docs.vidgo.ai/api-manual/music-series/music-webhook.md) instead of the unified task status endpoint.

## 5. Data retention

> [!WARNING]
>
> Generated files are valid for **24 hours**. Download and store results promptly.

## 6. Before production

> [!TIP]
>
> Keep API keys on your server; never expose them in browser or mobile code.

> [!TIP]
>
> Validate inputs against the selected model page before submitting.

> [!TIP]
>
> Handle `400`, `401`, `429`, and transient `5xx` responses explicitly; see [Error Codes](https://docs.vidgo.ai/api-manual/error-codes.md).

> [!TIP]
>
> Treat every submission retry as potentially new paid work; confirm whether the original request created a task before resubmitting.

> [!TIP]
>
> Check your remaining credits with [Query User Balance](https://docs.vidgo.ai/api-manual/account-management/user-balance.md).

## 7. Support

> [card] [Email](mailto:support@vidgo.ai)
>
> `support@vidgo.ai`

> [card] [FAQs](https://docs.vidgo.ai/faqs.md)
>
> Billing, models, and common questions.


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