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

# V1 and V2

> What each version is for, and how they work together.

V1 and V2 cover different products and run side by side. Nothing changes for V1 integrations.

| | V1 — `api.argil.ai/v1` | V2 — `api.argil.ai/v2` |
| - | - | - |
| Product | Avatar videos of the Argil editor: script, moments, gestures, B-rolls, captions, render | Every model of the playground: video, image, audio generation |
| Main resource | `video` (an editor project) | `generation` (one model run) |
| Avatars and voices | Create, train, list | Used from V1: a voice by its V1 `id` (`voice.id`, with its `model` and `settings` as in V1’s moments), an avatar by its image URL (see [Voices and avatars](https://docs.argil.ai/v2/generate/inputs.md#voices-and-avatars)) |
| Errors | `{ "error": "…" }` | RFC 9457 problem details with stable codes |

## Keys

The same key works on both versions, unchanged. V2 also accepts it as `Authorization: Bearer <key>`.

## Shared objects

* **Credits:** one balance for the app, V1 and V2.
* **Voices and avatars:** listed and created with V1 (`/v1/voices`, `/v1/avatars`), used by V2's speech models and Argil Atom.
* **Assets:** V2 assets are the files of the new Argil library. V1 `/assets` (B-roll uploads for editor videos) stay in V1.

## When to use which

* You render avatar videos from scripts with the editor’s layouts, captions and B-rolls: **V1**.
* You generate clips, images or music with any playground model, from your own files or Argil elements: **V2**.


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