LLM Models

An overview of the LLM providers and models you can use with the Voice Agent API.

Defines the LLM (Large Language Model) to be used with your Agent. The provider.type field specifies the format or protocol of the API.

For example:

  • open_ai means the API follows OpenAI’s Chat Completions format.
  • This option can be used with OpenAI, Azure OpenAI, or Amazon Bedrock — as long as the endpoint behaves like OpenAI’s Chat Completion API.

You can set your Voice Agent’s LLM model in the Settings Message See the docs for more information.

Supported LLM providers

You can query the following endpoint to check the supported models for each provider:

1curl https://agent.deepgram.com/v1/agent/settings/think/models

Example Payload

1{
2 "models": [
3 {
4 "id": "gpt-5.4-nano",
5 "name": "GPT-5.4 nano",
6 "provider": "open_ai"
7 },
8 {
9 "id": "gpt-5.4-mini",
10 "name": "GPT-5.4 mini",
11 "provider": "open_ai"
12 },
13 {
14 "id": "gpt-5.4",
15 "name": "GPT 5.4",
16 "provider": "open_ai"
17 },
18 {
19 "id": "gpt-5.3-chat-latest",
20 "name": "GPT-5.3 Instant",
21 "provider": "open_ai"
22 },
23 {
24 "id": "gpt-5.2-chat-latest",
25 "name": "GPT-5.2 Instant",
26 "provider": "open_ai"
27 },
28 {
29 "id": "gpt-5.2",
30 "name": "GPT 5.2",
31 "provider": "open_ai"
32 },
33 {
34 "id": "gpt-5.1-chat-latest",
35 "name": "GPT-5.1 Instant",
36 "provider": "open_ai"
37 },
38 {
39 "id": "gpt-5.1",
40 "name": "GPT-5.1 Thinking",
41 "provider": "open_ai"
42 },
43 {
44 "id": "gpt-5-nano",
45 "name": "GPT-5 nano",
46 "provider": "open_ai"
47 },
48 {
49 "id": "gpt-5-mini",
50 "name": "GPT-5 mini",
51 "provider": "open_ai"
52 },
53 {
54 "id": "gpt-5",
55 "name": "GPT-5",
56 "provider": "open_ai"
57 },
58 {
59 "id": "gpt-4.1-nano",
60 "name": "GPT-4.1 nano",
61 "provider": "open_ai"
62 },
63 {
64 "id": "gpt-4.1-mini",
65 "name": "GPT-4.1 mini",
66 "provider": "open_ai"
67 },
68 {
69 "id": "gpt-4.1",
70 "name": "GPT-4.1",
71 "provider": "open_ai"
72 },
73 {
74 "id": "gpt-4o-mini",
75 "name": "GPT-4o mini",
76 "provider": "open_ai"
77 },
78 {
79 "id": "gpt-4o",
80 "name": "GPT-4o",
81 "provider": "open_ai"
82 },
83 {
84 "id": "claude-4-5-haiku-latest",
85 "name": "Claude Haiku 4.5",
86 "provider": "anthropic"
87 },
88 {
89 "id": "claude-sonnet-4-6",
90 "name": "Claude Sonnet 4.6",
91 "provider": "anthropic"
92 },
93 {
94 "id": "claude-sonnet-4-5",
95 "name": "Claude Sonnet 4.5",
96 "provider": "anthropic"
97 },
98 {
99 "id": "claude-3-5-haiku-latest",
100 "name": "Claude Haiku 3.5",
101 "provider": "anthropic"
102 },
103 {
104 "id": "claude-sonnet-4-20250514",
105 "name": "Claude Sonnet 4",
106 "provider": "anthropic"
107 },
108 {
109 "id": "gemini-3.1-flash-lite-preview",
110 "name": "Gemini 3.1 Flash Lite",
111 "provider": "google"
112 },
113 {
114 "id": "gemini-3-flash-preview",
115 "name": "Gemini 3.0 Flash Preview",
116 "provider": "google"
117 },
118 {
119 "id": "gemini-3-pro-preview",
120 "name": "Gemini 3.0 Pro Preview",
121 "provider": "google"
122 },
123 {
124 "id": "gemini-2.5-flash-lite",
125 "name": "Gemini 2.0 Flash Lite",
126 "provider": "google"
127 },
128 {
129 "id": "gemini-2.5-flash",
130 "name": "Gemini 2.5 Flash",
131 "provider": "google"
132 },
133 {
134 "id": "gemini-2.0-flash",
135 "name": "Gemini 2.0 Flash",
136 "provider": "google"
137 },
138 {
139 "id": "openai/gpt-oss-20b",
140 "name": "GPT OSS 20B",
141 "provider": "groq"
142 },
143 {
144 "id": "llama-nemotron-super-49B",
145 "name": "Llama Nemotron Super 49B",
146 "provider": "nvidia"
147 },
148 {
149 "id": "nemotron-3-nano-30B-A3B",
150 "name": "Nemotron 3 Nano 30B A3B",
151 "provider": "nvidia"
152 }
153 ]
154}

If you don’t specify agent.think.provider.type the Voice Agent will use Deepgram’s default managed LLMs. For managed LLMs, supported model names are predefined in our configuration.

Parameteropen_aianthropicaws_bedrockgooglegroqnvidia
agent.think.provider.typeopen_aianthropicaws_bedrockgooglegroqnvidia
agent.think.endpointoptionaloptionalrequiredoptionalrequiredoptional

The agent.think.endpoint is optional or required based on the provider type:

  • For open_ai, anthropic, google, and nvidia, the endpoint field is optional because Deepgram provides managed LLMs for these providers.
  • For groq and aws_bedrock provider types, endpoint is required because Deepgram does not manage those LLMs.
  • If an endpoint is provided the url is required but headers are optional.

When using aws_bedrock as the provider type, you must also provide AWS credentials in the agent.think.provider.credentials field. This should include:

  • type: Either “iam” or “sts”
  • region: AWS region (e.g., “us-east-2”)
  • access_key_id: Your AWS access key ID
  • secret_access_key: Your AWS secret access key
  • session_token: Required only when type is “sts”

Supported LLM models

OpenAI

ProviderModelPricing Tier
open_aigpt-5.4-nanoStandard
open_aigpt-5.4-miniStandard
open_aigpt-5.4Advanced
open_aigpt-5.3-chat-latestAdvanced
open_aigpt-5.2-chat-latestAdvanced
open_aigpt-5.2Advanced
open_aigpt-5.1-chat-latestAdvanced
open_aigpt-5.1Advanced
open_aigpt-5-nanoStandard
open_aigpt-5-miniStandard
open_aigpt-5Advanced
open_aigpt-4.1-nanoStandard
open_aigpt-4.1-miniStandard
open_aigpt-4.1Advanced
open_aigpt-4o-miniStandard
open_aigpt-4oAdvanced

Anthropic

ProviderModelPricing Tier
anthropicclaude-sonnet-4-6Advanced
anthropicclaude-sonnet-4-5Advanced
anthropicclaude-4-5-haiku-latestStandard
anthropicclaude-3-5-haiku-latestStandard
anthropicclaude-sonnet-4-20250514Advanced

Google

ProviderModelPricing Tier
googlegemini-3.1-flash-lite-previewStandard
googlegemini-3-flash-previewStandard
googlegemini-3-pro-previewAdvanced
googlegemini-2.5-flashStandard
googlegemini-2.0-flashStandard (Deprecated)
googlegemini-2.0-flash-liteStandard

Example using Deepgram’s managed Google LLM

JSON
1 // ... other settings ...
2 "think": {
3 "provider": {
4 "type": "google",
5 "model": "gemini-2.5-flash",
6 "temperature": 0.5
7 }
8 }
9 // ... other settings ...

Example using a custom Google endpoint (BYO)

When using a custom endpoint, the model property is not supported. The desired model is specified as part of the endpoint URL instead.

Use API keys from Google AI Studio for Gemini models. Keys from Vertex AI, Workspace Gemini, or Gemini Enterprise will not work with the Agent API.

JSON
1 // ... other settings ...
2 "think": {
3 "provider": {
4 "type": "google",
5 "temperature": 0.5
6 },
7 "endpoint": {
8 "url": "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:streamGenerateContent?alt=sse",
9 "headers": {
10 "x-goog-api-key": "xxxxxxxxx"
11 }
12 }
13 }
14 // ... other settings ...

NVIDIA

ProviderModelPricing Tier
nvidiallama-nemotron-super-49BStandard
nvidianemotron-3-nano-30B-A3BStandard

Example using Deepgram’s managed NVIDIA LLM

JSON
1 // ... other settings ...
2 "think": {
3 "provider": {
4 "type": "nvidia",
5 "model": "llama-nemotron-super-49B",
6 "temperature": 0.5
7 }
8 }
9 // ... other settings ...

Groq

ProviderModelPricing Tier
groqopenai/gpt-oss-20bStandard

Example Payload

JSON
1// ... other settings ...
2 "think": {
3 "provider": {
4 "type": "open_ai",
5 "model": "gpt-4o-mini",
6 "temperature": 0.7
7 },
8 "endpoint": { // Optional if LLM provider is open_ai, anthropic, or google. Required for 3rd party LLM providers such as groq
9 "url": "https://api.example.com/llm", // Required if endpoint is provided
10 "headers": { // Optional if an endpoint is provided
11 "authorization": "Bearer {{token}}"
12 }
13 },
14 }
15// ... other settings ...

Passing a custom (BYO) LLM through a Cloud Provider

For Bring Your Own (BYO) LLMs, any model string provided is accepted without restriction.

Deepgram tests against major LLM providers including OpenAI, Anthropic, and Google. When bringing your own LLM, you have two options:

  • Use an OpenAI-compatible LLM service or gateway. Set provider.type to open_ai and point the endpoint.url to your service. Any LLM endpoint that conforms to the OpenAI Chat Completions API format will work, including third-party LLM gateways.
  • Use a custom endpoint from one of the supported major LLM providers. If you have your own contract or deployment with a supported provider (such as OpenAI, Anthropic, or Google), set the provider.type to match that provider and supply your own endpoint.url and endpoint.headers.

In both cases, configure the provider.type to one of the supported provider values and set the endpoint.url and endpoint.headers fields to the correct values for your provider or gateway.

JSON
1 // ... other settings ...
2"think": {
3 "provider": {
4 "type": "open_ai",
5 "model": "gpt-4",
6 "temperature": 0.7
7 },
8 "endpoint": { // Required for a custom LLM
9 "url": "https://cloud.provider.com/llm", // Required for a custom LLM
10 "headers": { // Optional for a custom LLM
11 "authorization": "Bearer {{token}}"
12 }
13 },
14 }
15 // ... other settings ...

Using multiple LLM providers

The think object accepts both a single provider and an array of providers. When you supply an array, the Voice Agent uses the providers as an ordered fallback chain: it sends each LLM request to the first provider in the list and automatically falls back to the next provider if the request fails.

How fallback works

  1. The agent sends the request to the first provider in the array.
  2. If that provider returns an error or times out, the agent sends a THINK_REQUEST_FAILED warning over the WebSocket and retries with the next provider.
  3. This continues through every provider in the array.
  4. If all providers fail, the agent sends a FAILED_TO_THINK error and the turn produces no LLM response.

The fallback is per-request — each new conversational turn starts again from the first provider. Provider order matters, so place your preferred provider first and your most reliable fallback last.

Fallback providers do not need to use the same provider.type. You can mix providers (for example, open_ai primary with an anthropic fallback) to maximize availability across independent infrastructure.

Example

JSON
1{
2 "agent": {
3 "think": [
4 {
5 "provider": {
6 "type": "open_ai",
7 "model": "gpt-4o-mini",
8 "temperature": 0.7
9 }
10 },
11 {
12 "provider": {
13 "type": "anthropic",
14 "model": "claude-4-5-haiku-latest",
15 "temperature": 0.7
16 }
17 }
18 ]
19 }
20}