OpenAI
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
Language model
Set model.provider to openai and model.model to a GPT model.
For additional API configuration options, review the OpenAIModel fields in the Create Assistant API reference.
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.
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.
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: Choosein_memoryfor OpenAI’s in-memory cache policy or24hto 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:
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:
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.
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.
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.
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.