The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "litellm_model Data Source - terraform-provider-litellm" subcategory: "" description: |- Retrieves information about a model deployment on the LiteLLM proxy.
litellm_model (Data Source)
Retrieves information about a single model deployment via /v1/model/info. Sensitive litellm_params fields (API keys and other credentials) are never exposed; only safe routing metadata is exported.
Example Usage
data "litellm_model" "gpt4o" {
model_id = "0e5x74fab24a7a5245d2ced3536dd8f5"
}
output "gpt4o_provider" {
value = data.litellm_model.gpt4o.custom_llm_provider
}
Argument Reference
The following arguments are supported:
model_id- (Required) LiteLLM model ID (thex-litellm-model-idresponse header value).
Attributes Reference
In addition to all arguments above, the following attributes are exported:
model_name- Public model name used for routing.model- The underlyinglitellm_paramsmodel, e.g.openai/gpt-4o.custom_llm_provider- Provider for the model.model_api_base- API base URL, if configured.api_version- API version, if configured.tpm- Tokens per minute limit for the deployment.rpm- Requests per minute limit for the deployment.base_model- Base model used for pricing and capabilities.tier- Model tier (freeorpaid).mode- Model mode, e.g.chatorembedding.team_id- Team the deployment is scoped to, if any.display_name- Human-readable name returned by/v1/models, if configured.db_model- Whether the deployment is stored in the database (as opposed to config).
Security Note
Credential material inside litellm_params (such as api_key, aws_secret_access_key, and vertex_credentials) is never exported by this data source.