> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.videogen.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.videogen.io/_mcp/server.

# ChatGPT (custom GPT)

> Build a custom GPT in ChatGPT that calls the VideoGen API via GPT Actions, using the hosted OpenAPI document and an API key. Includes the AI plugin manifest for plugin hosts.

Build a custom GPT in ChatGPT that can generate videos, images, voiceovers, sound effects, music, and avatars with VideoGen. The GPT calls the VideoGen API directly through [GPT Actions](https://platform.openai.com/docs/actions), driven by the hosted OpenAPI document.

## Create the custom GPT

1. In ChatGPT, open **Explore GPTs → Create**, then the **Configure** tab.
2. Under **Actions**, choose **Create new action**.
3. In the schema field, choose **Import from URL** and paste the OpenAPI document:

```text
https://api.videogen.io/openapi.json
```

4. Under **Authentication**, choose **API Key**, set **Auth Type** to **Bearer**, and paste an API key from [app.videogen.io/api](https://app.videogen.io/api).

That's it. The GPT can now call every VideoGen endpoint. Give it instructions like: *"When asked to make a video, call `scriptToVideo`, poll `getWorkflowRun` until it succeeds, then export the project."*

## How the API fits GPT Actions

* **Workflows** (`POST /v1/workflows/*`) return a `workflowRunId`; poll `GET /v1/workflows/runs/{workflowRunId}` until `status` is `succeeded`, `failed`, or `cancelled`.
* **Media tools** (`POST /v1/tools/*`) return a `toolExecutionId`; poll `GET /v1/tools/executions/{toolExecutionId}`.
* **Export** a finished project to MP4 with `POST /v1/projects/{projectId}/export`.

## AI plugin manifest

For plugin hosts that read the legacy manifest, VideoGen serves one at:

```text
https://api.videogen.io/.well-known/ai-plugin.json
```

It advertises bearer auth and points to the same OpenAPI document above.

## Links

* [OpenAPI document](https://api.videogen.io/openapi.json)
* [AI plugin manifest](https://api.videogen.io/.well-known/ai-plugin.json)
* [Get an API key](https://app.videogen.io/api)
* [Use with AI agents](/use-with-ai-agents)