Vercel is a cloud platform for static sites and serverless functions. It’s an easy way to host your LMNT speech-enabled apps.

The steps we’ll cover in this guide go from adding the integration to your Vercel account, retreiving your LMNT API key, and using LMNT Speech and Voice in your application development.

Adding the integration

  1. Sign into your Vercel account and navigate to the LMNT Vercel integration page.
  2. Click the Add integration button.
  3. Select the Vercel project(s) you want to integrate with LMNT.
  4. Sign into your LMNT account in the popup to complete the integration.

You’re all set! You’ll now find a LMNT_API_KEY environment variable in your Vercel project(s).

Accessing your LMNT API key

In requests to our servers, you’ll need to reference the LMNT API key that was added by the integration. Here are some examples of how to do so by runtime language:

Learn more about environment variables in Vercel here.

Using LMNT

With your key as enviroment variable, you can now either directly call the LMNT REST and WebSocket APIs or use our SDKs, referenced here:

Adding the integration to additional Vercel projects

First, give the integration access permissions to your project(s)

  1. Sign into your Vercel account and navigate to the Integrations tab.
  2. Select Manage on the LMNT integration.
  3. In your LMNT integration page, select Manage Access on the right-hand side of the title row.
  4. Select the projects that you would like to add the LMNT integration to (or select All Projects).

Second, configure the integration to add LMNT_API_KEY environment variable to permissions projects.

  1. Back in the LMNT integration page, select Configure on the right-hand side of the title row.
  2. Select the projects that you would like to set up with an LMNT API key environment variable.
If you initially gave the LMNT integration access to all your Vercel projects, any new project you create will not get the LMNT_API_KEY environment variable automatically. You will need to configure the integration to add the variable to new projects (steps 5 and 6 above).

Was this page helpful?