> ## 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://www.google.com/aclk?sa=L\&pf=1\&ai=DChsSEwjLwOWh7M-TAxXAKa0GHT5lPZAYACICCAEQABoCcHY\&co=1\&ase=2\&gclid=Cj0KCQjwp7jOBhDGARIsABe7C4f-qDhHW788QcWCYBd583bC4Gpo4laM0LLv_BsBjRE2BD-_5ygoip0aAjfJEALw_wcB\&ei=AbzOaciABqOh0PEP9p2F6Ac\&cid=CAASWuRoXJCWLNPBZD6y4USgryROi0niu0LFXfnNnM13W9Mpb_4GdglqL11d0RpiY7rfiN6gSOZo4I9bDozBnvktudqJEdX6GfL1K-K8-p5wNkaPwenLuXzJG_5icg\&cce=2\&category=acrcp_v1_32\&sig=AOD64_38_dy3U8tsH8NRhjk1BI1Uvux0DQ\&q\&sqi=2\&nis=4\&adurl=https://vapi.ai/?utm_cid%3D23592298723%26utm_adgroupid%3D192762299759%26utm_adid%3D798055046387%26utm_targetid%3Dkwd-4189710133%26hstk_creative%3D798055046387%26hstk_campaign%3D23592298723%26hstk_network%3DgoogleAds%26utm_source%3Dgsearch%26utm_term%3Dvapi%26utm_medium%3Dppc%26utm_campaign%3Dvapi_brand%26hsa_acc%3D4500971697%26hsa_cam%3D23592298723%26hsa_grp%3D192762299759%26hsa_ad%3D798055046387%26hsa_src%3Dg%26hsa_tgt%3Dkwd-4189710133%26hsa_kw%3Dvapi%26hsa_mt%3Dp%26hsa_net%3Dadwords%26hsa_ver%3D3%26gad_source%3D1%26gad_campaignid%3D23592298723%26gbraid%3D0AAAAA-2cnbw5m6YA9Sm-hP8rcECgBzB2N%26gclid%3DCj0KCQjwp7jOBhDGARIsABe7C4f-qDhHW788QcWCYBd583bC4Gpo4laM0LLv_BsBjRE2BD-_5ygoip0aAjfJEALw_wcB\&ved=2ahUKEwiIhd-h7M-TAxWjEDQIHfZOAX0Q0Qx6BAgcEAE).

### 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="Screenshot2026 04 02at2 22 06PM" title="Screenshot2026 04 02at2 22 06PM" 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="Screenshot2026 04 02at11 50 58AM" 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="Screenshot2026 04 02at11 54 58AM" 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="Screenshot2026 04 02at11 15 14AM" 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="Screenshot2026 04 02at11 16 50AM" title="Screenshot2026 04 02at11 16 50AM" 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="Screenshot2026 04 02at11 18 17AM" 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="Screenshot2026 04 02at2 23 34PM" 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="Screenshot2026 04 02at11 34 27AM" title="Screenshot2026 04 02at11 34 27AM" className="mx-auto" style={{ width:"69%" }} width="1926" height="1740" data-path="images/Screenshot2026-04-02at11.34.27AM.png" />
</Frame>
