Centralized Provider Configuration
Configure self-hosted LlamaCloud LLM and embedding providers through config.llms.providerConfigs, supporting API gateways, custom credentials, and per-tier LlamaParse model ordering.
Self-Hosting Documentation Access
This section requires a password to access. Interested in self-hosting? Contact sales to learn more.
Centralized LLM provider configuration is the deploy-time registry of model endpoints your self-hosted LlamaParse deployment can call.
The simpler provider settings under config.llms.* register the default
endpoints for each provider. config.llms.providerConfigs adds explicit
entries when you need multiple credentials, custom endpoints, custom headers,
provider-native model names, or an API gateway such as Bifrost, Portkey, or
LiteLLM.
Each entry maps a LlamaParse model_id to one provider endpoint:
model_idis the LlamaParse model identifier that platform features request.providersays which client implementation to use.provider_model_nameis the model or deployment name sent to the upstream provider or gateway. If omitted, LlamaParse uses its built-in provider-native name for thatmodel_id.priorityorders rows of the same model, highest first.tagsare the legacy way to order Parse tiers; see Model policy.
A recognized model_id is not an upstream availability guarantee. The provider
account, region, Azure deployment, Vertex location, or gateway must still be
able to serve the configured provider-native model.
Use Cases
Section titled “Use Cases”- Custom API Gateways: Route LLM requests through gateways like Bifrost, Portkey, or LiteLLM
- Custom Endpoints: Use custom base URLs for proxies or regional endpoints
- Custom Headers: Add custom HTTP headers per provider instance (e.g., for gateway authentication)
- Multiple Credentials: Configure multiple provider instances with different API keys
- Managed Embeddings: Route managed Index embeddings through centrally configured OpenAI-compatible embedding providers
Configuration Structure
Section titled “Configuration Structure”Add provider configurations to your Helm values under config.llms.providerConfigs:
config: llms: providerConfigs: - id: "my-config-name" # User-defined identifier (can be anything) provider: "openai" # Provider type accepted by this config entry model_id: "openai-gpt-4o" # Recognized LlamaParse model identifier (fixed values, see below) provider_model_name: "gpt-4o" # Optional: Provider-specific model name override, usually only needed if using an LLM gateway that requires a specific model name enabled: true # Enable/disable this configuration priority: 100 # Optional: higher wins among rows of the same model (default 100) credentials: # Provider-specific credentials api_key: "sk-..." base_url: "https://custom.api.endpoint" # Optional custom endpoint headers: # Custom HTTP headers (optional) X-Custom-Header: "value"Most entries do not need tags. Use tags when a feature documents a specific tag convention, such as parsing tier tags.
Supported Providers
Section titled “Supported Providers”These provider sections document the provider values covered by this guide and
the recognized model_id values for each provider.
OpenAI
Section titled “OpenAI”- id: "openai-primary" provider: "openai" model_id: "openai-gpt-4o" credentials: api_key: "sk-..." # Required org_id: "org-..." # Optional base_url: "https://api.openai.com/v1" # Optional headers: # Optional X-Custom-Header: "value"Recognized model_id values:
openai-gpt-6-1-terraopenai-gpt-6-1-solopenai-gpt-6-solopenai-gpt-6-lunaopenai-gpt-6-astraopenai-gpt-5-6-terraopenai-gpt-5-6-solopenai-gpt-5-6-lunaopenai-gpt-5-5openai-gpt-5-4-nanoopenai-gpt-5-4-miniopenai-gpt-5-4openai-gpt-5-2openai-gpt-5-nanoopenai-gpt-5-miniopenai-gpt-5openai-gpt-4-1-nanoopenai-gpt-4-1-miniopenai-gpt-4-1openai-gpt-4o-mini-text-onlyopenai-gpt-4o-mini-multimodalopenai-gpt-4o-miniopenai-gpt-4oopenai-text-embedding-3-smallopenai-text-embedding-3-large
The openai-gpt-4o-mini-text-only and openai-gpt-4o-mini-multimodal ids both
route to the gpt-4o-mini model; they select the text-only vs screenshot-based
cost_effective parsing path, while the bare
openai-gpt-4o-mini remains the legacy text-only binding.
Anthropic
Section titled “Anthropic”- id: "anthropic-primary" provider: "anthropic" model_id: "anthropic-sonnet-4.5" credentials: api_key: "sk-ant-..." # Required base_url: "https://api.anthropic.com" # Optional headers: # Optional X-Custom-Header: "value"Recognized model_id values:
anthropic-sonnet-5.5anthropic-opus-5.5anthropic-haiku-5.5anthropic-sonnet-5anthropic-opus-5anthropic-opus-4.8anthropic-sonnet-4.6anthropic-opus-4.6anthropic-sonnet-4.5anthropic-opus-4.5anthropic-haiku-4.5
Azure OpenAI
Section titled “Azure OpenAI”- id: "azure-sweden" provider: "azure" model_id: "openai-gpt-4o" credentials: api_key: "..." # Required endpoint: "https://your-resource.openai.azure.com" # Required deployment_id: "gpt-4o" # Optional api_version: "2025-04-01-preview" # Optional Azure API version, not model version headers: # Optional X-Custom-Header: "value"Recognized model_id values:
openai-gpt-6-1-solopenai-gpt-6-solopenai-gpt-6-lunaopenai-gpt-6-astraopenai-gpt-5-6-terraopenai-gpt-5-6-solopenai-gpt-5-6-lunaopenai-gpt-5-5openai-gpt-5-4-nanoopenai-gpt-5-4-miniopenai-gpt-5-4openai-gpt-5-2openai-gpt-5-nanoopenai-gpt-5-miniopenai-gpt-5openai-gpt-4-1-nanoopenai-gpt-4-1-miniopenai-gpt-4-1openai-gpt-4o-mini-text-onlyopenai-gpt-4o-mini-multimodalopenai-gpt-4o-miniopenai-gpt-4oopenai-text-embedding-3-smallopenai-text-embedding-3-large
The openai-gpt-4o-mini-text-only and openai-gpt-4o-mini-multimodal ids both
route to the gpt-4o-mini model (default deployment name gpt-4o-mini); they
select the text-only vs screenshot-based cost_effective parsing path, while
the bare openai-gpt-4o-mini remains the legacy text-only binding.
For Azure-hosted embedding models, set model_id to the LlamaParse model identifier and credentials.deployment_id to your Azure deployment name.
Google Gemini
Section titled “Google Gemini”- id: "gemini-primary" provider: "gemini" model_id: "gemini-2.5-flash" credentials: api_key: "AIza..." # Required base_url: "https://generativelanguage.googleapis.com" # Optional headers: # Optional X-Custom-Header: "value"Recognized model_id values:
gemini-4-argongemini-3.8-flashgemini-3.7-flashgemini-3.6-flashgemini-3.5-flash-litegemini-3.5-flashgemini-3.1-progemini-3.1-flash-litegemini-3.0-progemini-3.0-flashgemini-2.5-progemini-2.5-flash-litegemini-2.5-flashgemini-2.0-flash-litegemini-2.0-flash
Google Vertex AI
Section titled “Google Vertex AI”Vertex AI serves both Gemini and Anthropic Claude models. By default, Vertex
configs use service-account authentication with project_id + location +
credentials (JSON-serialised service account key). Set
credentials_type: "proxy" when a configured gateway handles Vertex
authentication.
- id: "vertex-primary" provider: "vertexai" model_id: "gemini-2.5-flash" credentials: project_id: "your-gcp-project-id" # Required location: "us-central1" # Required credentials: |- # Required (service account key JSON) { "type": "service_account", "project_id": "your-gcp-project-id", "private_key_id": "...", "private_key": "-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n", "client_email": "...@your-gcp-project-id.iam.gserviceaccount.com", "client_id": "..." } base_url: "https://us-central1-aiplatform.googleapis.com" # Optional headers: # Optional X-Custom-Header: "value"Recognized model_id values (Gemini on Vertex):
gemini-4-argongemini-3.6-flashgemini-3.5-flash-litegemini-3.5-flashgemini-3.1-progemini-3.1-flash-litegemini-3.0-progemini-3.0-flashgemini-2.5-progemini-2.5-flash-litegemini-2.5-flashgemini-2.0-flash-litegemini-2.0-flash
Recognized model_id values (Anthropic on Vertex):
anthropic-sonnet-5.5anthropic-opus-5.5anthropic-haiku-5.5anthropic-sonnet-5anthropic-opus-5anthropic-opus-4.8anthropic-sonnet-4.6anthropic-opus-4.6anthropic-sonnet-4.5anthropic-opus-4.5anthropic-haiku-4.5anthropic-sonnet-4.0
Model policy
Section titled “Model policy”Use config.llms.modelPolicy to choose which configured providers Parse and
Extract use for each tier and version. Leave it unset to use each product’s
built-in model choices.
config: llms: providerConfigs: - id: "sonnet-direct" provider: "anthropic" model_id: "anthropic-sonnet-4.5" credentials: api_key: "sk-ant-..." - id: "gpt-direct" provider: "openai" model_id: "openai-gpt-4-1" credentials: api_key: "sk-..." modelPolicy: "parse/agentic/**": model: ["sonnet-direct", "gpt-direct"] # primary first "extract/agentic/2.6": models: agent: "sonnet-direct" "extract/**": vendors: ["anthropic", "openai"]Use a provider configuration’s id to select that entry. Use a model_id,
such as anthropic-sonnet-4.5, to select any enabled entry for that model.
A name that matches neither fails validation.
Changing the policy restarts the pods that read it.
Write keys as product/tier/version. The product is parse or extract.
Use ** to match the rest of a key and * to match any characters within
one segment.
| Key | Matches |
|---|---|
extract/** |
Every Extract job |
parse/agentic/* |
Every job on the Parse agentic tier |
extract/agentic/2.6 |
Extract agentic 2.6.x; 2 matches 2.x.x |
extract/agentic/2026-10-13 |
That dated version only |
Numeric versions match a semantic version prefix, as shown above. Other versions must match the version name exactly.
LlamaCloud chooses the most specific matching key separately for each role. Keys with more literal segments take precedence, followed by longer versions. Avoid equally specific keys that set the same role for the same job. Those keys fail validation.
Entries
Section titled “Entries”| Field | Sets |
|---|---|
model |
The default role. Use one ID or a list, primary first. |
models |
Other roles by name. Use one ID or a list for each role, primary first. |
vendors |
Extract only. Use built-in model choices from the listed vendors (openai, anthropic, google, …), in the listed order. |
A list replaces the built-in list for that role only.
Extract versions use agent, vision and citations, or default for
a single-model version. The admin System Status page lists each Extract
version’s roles and the provider configuration selected for each role.
Parse uses default for transcription, plus charts and forms, on the
cost_effective, agentic and agentic_plus tiers. Agentic Plus also uses
planner and specialist.
Models without a row
Section titled “Models without a row”Configure provider entries before selecting them in a policy. LlamaCloud tries entries in the listed order and skips unavailable entries.
If no usable entry is available for a role, Parse uses the tier’s built-in list and Extract fails the job.
Tier tags
Section titled “Tier tags”You can still use llamaparse-tier:<tier> tags with priority on provider
entries. Higher priorities come first.
| Tag | Equivalent policy entry |
|---|---|
llamaparse-tier:cost_effective, llamaparse-tier:agentic, llamaparse-tier:agentic_plus |
parse/<tier>/*, model |
llamaparse-tier:specialized_chart_parsing |
parse/*/*, models.charts |
llamaparse-tier:form_parsing |
parse/*/*, models.forms |
An explicit modelPolicy setting takes precedence over a tag for the same
role and job.
Common Use Cases
Section titled “Common Use Cases”Custom API Gateway
Section titled “Custom API Gateway”Use a custom API gateway or proxy (e.g., Bifrost, Portkey, LiteLLM):
config: llms: providerConfigs: - id: "portkey-openai" provider: "openai" model_id: "openai-gpt-4o-mini" provider_model_name: "@openai/gpt-4o-mini" enabled: true credentials: api_key: "your-portkey-api-key" base_url: "https://api.portkey.ai/v1" headers: x-portkey-api-key: "your-portkey-api-key"
- id: "portkey-anthropic" provider: "anthropic" model_id: "anthropic-sonnet-4.5" provider_model_name: "@anthropic/claude-sonnet-4-5" enabled: true credentials: api_key: "your-portkey-api-key" base_url: "https://api.portkey.ai" headers: x-portkey-api-key: "your-portkey-api-key" x-portkey-strict-open-ai-compliance: "False"
- id: "portkey-vertex-gemini" provider: "vertexai" model_id: "gemini-2.5-flash" provider_model_name: "gemini-2.5-flash" enabled: true credentials: credentials_type: "proxy" project_id: "your-gcp-project-id" location: "us-central1" base_url: "https://api.portkey.ai/v1" headers: x-portkey-api-key: "your-portkey-api-key" x-portkey-provider: "@your-portkey-vertex-provider-id" x-portkey-strict-open-ai-compliance: "false"Verification
Section titled “Verification”After configuration, verify your setup:
-
Verify in Admin UI: Check the LlamaCloud admin interface for available models
-
Test parsing: Upload a document to LlamaParse to confirm the configured providers are working