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

# Vapi

> Build a low-latency voice agent in Vapi using Mercury 2.

This tutorial creates a voice agent, integrating the realtime reasoning intelligence of Mercury 2 with Vapi. For this demo, you will need an **Inception** [API key](https://platform.inceptionlabs.ai/dashboard/api-keys) and a [Vapi account](https://vapi.ai).

## Authentication

1. Navigate to **Integrations** in the Vapi sidebar.

<Frame>
  <img src="https://mintcdn.com/inception/OGaMS-JNZcOVrEl7/images/Screenshot2026-04-02at2.22.06PM.png?fit=max&auto=format&n=OGaMS-JNZcOVrEl7&q=85&s=df379726fa0078cfa346cfc55790771a" alt="Vapi sidebar with the Integrations section open" className="mx-auto" style={{ width:"54%" }} width="348" height="840" data-path="images/Screenshot2026-04-02at2.22.06PM.png" />
</Frame>

2. Under **Model Providers**, click into **Custom LLM** (bottom right).

<Frame>
  <img src="https://mintcdn.com/inception/OGaMS-JNZcOVrEl7/images/Screenshot2026-04-02at11.50.58AM.png?fit=max&auto=format&n=OGaMS-JNZcOVrEl7&q=85&s=46435be05e4bcd78a4d31a92f1ede547" alt="Custom LLM option under Model Providers in Vapi" width="1882" height="804" data-path="images/Screenshot2026-04-02at11.50.58AM.png" />
</Frame>

3. Fill in your Inception API key and click **Save**.

<Frame>
  <img src="https://mintcdn.com/inception/OGaMS-JNZcOVrEl7/images/Screenshot2026-04-02at11.54.58AM.png?fit=max&auto=format&n=OGaMS-JNZcOVrEl7&q=85&s=044829f2f01e96886b06b7c0f6df48bc" alt="Entering the Inception API key in Vapi's Custom LLM provider" width="1712" height="892" data-path="images/Screenshot2026-04-02at11.54.58AM.png" />
</Frame>

## Setting up your Mercury voice agent

1. Navigate to **Agents** in the Vapi sidebar and select **Create Assistant.**

<Frame>
  <img src="https://mintcdn.com/inception/OGaMS-JNZcOVrEl7/images/Screenshot2026-04-02at11.15.14AM.png?fit=max&auto=format&n=OGaMS-JNZcOVrEl7&q=85&s=e3be479c27d38f5517b7febca3d2aa35" alt="Creating a new assistant in Vapi" width="3840" height="1724" data-path="images/Screenshot2026-04-02at11.15.14AM.png" />
</Frame>

2. Name your assistant and select your desired assistant template.

<Frame>
  <img src="https://mintcdn.com/inception/OGaMS-JNZcOVrEl7/images/Screenshot2026-04-02at11.16.50AM.png?fit=max&auto=format&n=OGaMS-JNZcOVrEl7&q=85&s=a1d8dfc39c58b6c7aacc7a93d37fd76e" alt="Naming the assistant and choosing a template in Vapi" style={{ width:"49%" }} width="1210" height="1878" data-path="images/Screenshot2026-04-02at11.16.50AM.png" />
</Frame>

3. Select **Custom LLM** from the Model dropdown:

<Frame>
  <img src="https://mintcdn.com/inception/OGaMS-JNZcOVrEl7/images/Screenshot2026-04-02at11.18.17AM.png?fit=max&auto=format&n=OGaMS-JNZcOVrEl7&q=85&s=a1692e7a5402dd31d5ac86771a577ee8" alt="Selecting Custom LLM from the model dropdown in Vapi" width="3332" height="1770" data-path="images/Screenshot2026-04-02at11.18.17AM.png" />
</Frame>

4. Fill in model details as follows:
   * Set **Custom LLM URL** as `https://api.inceptionlabs.ai/v1`
   * Set **Model** as `mercury-2`
   * Set **Temperature** to `0.75`
   * Set **Max Tokens** to a slightly higher value, like `4096`. This is because the default reasoning effort is `medium`, and Max Tokens includes reasoning tokens.
   * Configure **First Message Mode**, **First Message** and **System Prompt** as desired.
     * Scroll down to manage **Tools**, **Structured Outputs** and more.

<Frame>
  <img src="https://mintcdn.com/inception/OGaMS-JNZcOVrEl7/images/Screenshot2026-04-02at2.23.34PM.png?fit=max&auto=format&n=OGaMS-JNZcOVrEl7&q=85&s=4ad02a497f4ac05eda364c855c95f692" alt="Configuring the Custom LLM URL, model, temperature, and max tokens in Vapi" width="1612" height="1440" data-path="images/Screenshot2026-04-02at2.23.34PM.png" />
</Frame>

5. When you're ready, hit **Publish** in the top right corner, and **Talk** to speak to Mercury 2!

<Frame>
  <img src="https://mintcdn.com/inception/OGaMS-JNZcOVrEl7/images/Screenshot2026-04-02at11.34.27AM.png?fit=max&auto=format&n=OGaMS-JNZcOVrEl7&q=85&s=15645b7e25632983d4197a30a13cc196" alt="Publishing the Vapi assistant and talking to Mercury 2" className="mx-auto" style={{ width:"69%" }} width="1926" height="1740" data-path="images/Screenshot2026-04-02at11.34.27AM.png" />
</Frame>
