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

# Bring your own key (BYOK)

> Run your generations on your own provider accounts

Add your own API key from a platform like fal or OpenAI, and Argil runs your generations on your account. The platform bills you directly; Argil debits no credits for those generations.

### Add a key

**1. Open your provider keys**

Go to **Settings → Provider keys**.

**2. Add the key**

Pick the platform, paste the key, then click **Add key**. Argil checks the key before saving it.

**3. Set the order**

Drag the keys to set their order: Argil tries the first one first.

### Platforms

The main ones: **fal**, **Replicate**, **OpenAI**, **Anthropic**, **Google Gemini**, **xAI**. The **Add a key** form in the app lists them all.

One key can serve many models: a fal key covers every model fal hosts.

### Example: one model, several platforms

Grok Imagine is hosted on xAI, fal and Replicate. You added two keys, in this order: **1. xAI**, **2. fal**. You generate an image with Grok Imagine:

1. Argil runs it on your xAI key.
2. If that fails (quota used up, invalid key), Argil retries on your fal key.
3. If both fail, the generation fails. Turn on **Fall back to Argil's keys** to run on Argil's keys instead, paid with credits.

A model none of your keys covers always runs on Argil's keys, paid with credits.


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