Guides

Create a New API Key

Generate an API key from the Napster dashboard to authenticate with the Napster API

API keys authenticate your requests to the Napster API. Each key is scoped to a project, so you can manage access separately for different environments (e.g. staging vs production). A key also sets the architecture your Omniagent runs on and the per-minute rate for its sessions.

Your API key is a secret. Keep it private and only use it on the server side — never expose it in client-side code.

Open the Napster dashboard and select your organization and project from the top navigation. Then click Keys in the left sidebar under Build.

Navigate to Keys and click Create API key

Create a new API key

Click the + Create API key button in the top right corner.

Configure the key

New API Key form with the Architecture options

Fill in the form:

FieldDescription
Key NameA descriptive label (e.g. Stage API Key, Prod API Key)
ProjectAutomatically set to your current project
ArchitectureHow your Omniagent listens, thinks, and speaks: Realtime, Cascade, or Other (see below). Each architecture has its own provider or platform options.

The Pricing panel beside the form shows the per-minute rate for your current selection. You're only charged while an agent is running.

Architectures

One model listens, thinks, and answers in a single step, so conversations feel quick and natural. Realtime is the default and the simplest way to get a good result.

Choose a Provider:

ProviderDescription
Azure OpenAIDefault provider. Works with all channels including phone. Runs on Napster's managed infrastructure — no credentials needed. Tick Use my own credentials to connect your own Azure OpenAI deployment instead (deployment name, endpoint URL, API key, and optionally a model).
OpenAIConnects directly to OpenAI. Always requires your own OpenAI API key (and optionally a model). Required for MCP connectors.

Realtime sessions cost $0.0583 per minute on Napster's managed infrastructure, or $0.01 per minute when you use your own credentials.

New API Key form with the Cascade architecture selected

Speech recognition, the language model, and the voice run as separate steps instead of one realtime model, and you choose the provider for each one. Use Cascade when you want control over the individual parts.

StageWhat it doesProviders
ASRTurns what the user says into textAzure OpenAI
LLMTakes what the user said and decides what to replyAzure OpenAI, Anthropic
TTSSpeaks the reply out loudAzure OpenAI, OpenAI

Azure OpenAI stages run on Napster's managed infrastructure with a preset model. Tick Use my own credentials on a stage to connect your own Azure OpenAI deployment for that stage. Anthropic and OpenAI stages always require your own API key and a model name.

Some features work differently on Cascade — see Cascade architecture.

Your agent already exists on another platform. The Napster API connects to it and gives it a face — a lifelike video avatar on top of your existing agent logic.

Humain and Microsoft Foundry are not enabled by default. Contact us to request access for your organization.

Choose a Platform:

PlatformDescriptionRequired fields
HumainPowered by Allam, an Arabic-first foundation model built by HUMAIN in Saudi Arabia with strong dialect coverage and cultural alignment. Humain provides speech recognition, the model, and the voice as one package. Best for Arabic-language agents.API URL, API path, API key, LLM base URL, LLM API key, LLM model
Microsoft FoundryConnects to an agent you've built on Microsoft Foundry.Foundry project endpoint, agent name, agent version, tenant ID

New API Key form with the Humain platform selected

For Microsoft Foundry, here's where to find each value:

FieldWhere to find it
Foundry project endpointYour project's Home page in Microsoft Foundry, e.g. https://<resource>.services.ai.azure.com/api/projects/<project>
Agent nameThe Agents page of your project
Agent versionThe Version column on the Agents page, e.g. 1
Tenant IDMicrosoft Entra ID → Overview in the Azure Portal

New API Key form with the Microsoft Foundry platform selected

Before you use a Foundry key, give Napster access to your Foundry resource and make sure your agent has Voice mode on. See Connect a Microsoft Foundry agent.

Click + Create API Key to generate the key.

Copy the key

API Key Generated page with the new key

The API Key Generated page shows your new key. Copy it from the API key field, then click ← Back to keys. The key now appears in your keys list with its provider, deployment, and rate.

Store the key

Save the key as an environment variable in a gitignored .env file:

NAPSTER_API_KEY=your-api-key-here

All API requests use the X-Api-Key header for authentication:

curl https://companion-api.napster.com/public/companions/napster-stock?pageSize=1 \
  -H "X-Api-Key: $NAPSTER_API_KEY"

A 200 response confirms your key is working.

Next steps

On this page