OpenRouter

Connect OpenRouter and configure any model available to your account.

What is OpenRouter

OpenRouter provides a single API for language models from multiple model developers. Use the OpenRouter integration when you want your Vapi assistant to use a model available through your OpenRouter account.

Connect OpenRouter

Before using OpenRouter, connect your account on the Integrations page.

Language model

Set model.provider to openrouter. Set model.model to the exact text-generation model ID from the OpenRouter model catalog that your connected account can access.

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

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