Skip to navigation

OpenAI

Use OpenAI GPT models with your Vapi voice agent

OpenAI provides language models for Vapi voice agents.

You can use OpenAI through Vapi’s default integration, or connect your own account in Integrations.

Supported capability

CapabilityProvider value
Language modelopenai

Language model

Set model.provider to openai and model.model to a GPT model.

curl -X PATCH "https://api.vapi.ai/assistant/ASSISTANT_ID" \
-H "Authorization: Bearer $VAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": { "provider": "openai", "model": "gpt-4.1" }
}'

For additional API configuration options, review the OpenAIModel fields in the Create Assistant API reference.

ModelModel ID
GPT 6.1 Terragpt-6.1-terra
GPT 6 Lunagpt-6-luna
GPT 5.6 Solgpt-5.6-sol
GPT 5.6 Terragpt-5.6-terra
GPT 5.6 Lunagpt-5.6-luna
GPT 5.5gpt-5.5
GPT Instant (latest)chat-latest
GPT 5.4gpt-5.4
GPT 5.4 Minigpt-5.4-mini
GPT 5.2gpt-5.2
GPT 5gpt-5
GPT 5 Minigpt-5-mini
GPT 5 Nanogpt-5-nano
GPT 4.1gpt-4.1
GPT 4.1 Minigpt-4.1-mini
GPT 4ogpt-4o
GPT 4o Minigpt-4o-mini
GPT Realtime Clustergpt-realtime-2025-08-28
GPT Realtime Minigpt-realtime-mini-2025-12-15
GPT Realtime 2gpt-realtime-2
o3o3

You can also set model.temperature from 0 to 2. If omitted, Vapi uses 0.5.

Regional models

To keep model requests in one region, set model.model to a region-qualified model ID. The value after the colon is the Azure region that serves the request. You can also select these IDs in the model picker for assistants, squads, evals, and structured outputs.

curl -X PATCH "https://api.vapi.ai/assistant/ASSISTANT_ID" \
-H "Authorization: Bearer $VAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": { "provider": "openai", "model": "gpt-5.4:eastus2" }
}'

If you’ve added an Azure OpenAI credential for the selected region, Vapi routes the request through it. Otherwise, Vapi uses its own deployment in that region. A region-qualified request never falls back to another region.

ModelRegion-qualified model IDs
GPT 5.6 Solgpt-5.6-sol:westus3
GPT 5.6 Terragpt-5.6-terra:westus3
GPT 5.6 Lunagpt-5.6-luna:westus3
GPT 5.4gpt-5.4:eastus2
gpt-5.4:swedencentral
GPT 5.4 Minigpt-5.4-mini:australiaeast
gpt-5.4-mini:eastus2
gpt-5.4-mini:swedencentral
GPT 5.2gpt-5.2:eastus2
gpt-5.2:swedencentral
GPT 5gpt-5:canadaeast
gpt-5:eastus
gpt-5:eastus2
gpt-5:germanywestcentral
gpt-5:polandcentral
gpt-5:spaincentral
gpt-5:swedencentral
gpt-5:westeurope
GPT 5 Minigpt-5-mini:eastus2
gpt-5-mini:germanywestcentral
gpt-5-mini:polandcentral
gpt-5-mini:spaincentral
gpt-5-mini:swedencentral
gpt-5-mini:westeurope
GPT 5 Nanogpt-5-nano:eastus2
gpt-5-nano:swedencentral

Prompt caching

Prompt caching lets OpenAI reuse the unchanged beginning of a prompt, such as your assistant’s instructions and tool definitions, instead of processing it again on every request. Cache hits can reduce input-token costs and latency, but are not guaranteed.

For supported GPT 4.1 and GPT 5.x models, open the assistant’s model Advanced settings in the Dashboard to configure Prompt cache retention and Prompt cache key. For more information about supported models, check the Dashboard or the OpenAIModel fields.

By default, both settings are unset. On supported models, OpenAI then uses its default in_memory retention policy. Automatic prompt caching still works without a promptCacheKey.

  • promptCacheKey: An optional hint to help OpenAI reuse matching prompt prefixes across requests. It does not store a prompt or guarantee a cache hit. Vapi does not generate a key automatically.
  • promptCacheRetention: Choose in_memory for OpenAI’s in-memory cache policy or 24h to keep cached prefixes available for up to 24 hours on models that support extended caching.

For example, include these fields in your assistant’s model configuration:

{
"model": {
"provider": "openai",
"model": "gpt-4.1",
"promptCacheKey": "support-assistant-v1",
"promptCacheRetention": "24h"
}
}

Reasoning effort

Reasoning models think before they answer. Set model.reasoningEffort to control how much. A lower effort reduces latency and cost, which suits most voice calls. A higher effort can help with harder tasks.

Each model accepts only the efforts OpenAI supports for it:

ModelAccepted values
GPT 6.1 Terra, GPT 6 Lunanone, low, medium, high, xhigh
GPT 5.6 Sol, GPT 5.6 Terra, GPT 5.6 Lunanone, low, medium, high, xhigh
GPT 5.4, GPT 5.4 Mini, GPT 5.2none, low, medium, high, xhigh
GPT 5, GPT 5 Mini, GPT 5 Nanominimal, low, medium, high

Region-qualified model IDs, such as gpt-5.6-luna:westus3, accept the same values as the base model. Saving a value the model doesn’t support returns a 400 error.

curl -X PATCH "https://api.vapi.ai/assistant/ASSISTANT_ID" \
-H "Authorization: Bearer $VAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": { "provider": "openai", "model": "gpt-5.6-luna", "reasoningEffort": "none" }
}'

In the Dashboard, the Reasoning effort setting appears for GPT 6 models. For other models, set reasoningEffort through the API.

Service tier

For latency-sensitive assistants, you can run supported OpenAI models in OpenAI’s faster processing tier. In the assistant’s model settings, turn on Priority processing. Through the API, set model.serviceTier on a supported model.

ValueBehavior
fastRequests OpenAI’s fast processing tier for lower latency, billed at OpenAI’s fast-tier rates. If OpenAI downgrades the request under load, the call is billed at standard rates. The Priority processing switch sets this value.
autoUses the service tier configured for your OpenAI project.
defaultStandard processing and billing.

The serviceTier field applies only to models that support fast processing: gpt-6.1-terra, gpt-6-luna, gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, and gpt-5.5. It is ignored for other models. When unset, Vapi uses the service tier configured for your OpenAI project. See OpenAI’s pricing for fast-tier rates, and the OpenAIModel fields in the Create Assistant API reference.

curl -X PATCH "https://api.vapi.ai/assistant/ASSISTANT_ID" \
-H "Authorization: Bearer $VAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": { "provider": "openai", "model": "gpt-5.6-sol", "serviceTier": "fast" }
}'

When OpenAI reports the tier it served for a Fast-mode request, the model’s cost in the call includes a serviceTierBreakdown that splits usage by served tier.