Medlm Large API Pricing
vertex_ai/medlm-large- Context
- 8K tokens
- Max output
- 1K tokens
Medlm Large is available through LiteLLM. It has an 8,192-token context window and returns up to 1,024 tokens per response.
Medlm Large pricing by provider
1 listing across 1 provider. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.
| Provider | Model name in LiteLLM | Per 1M chars | Context |
|---|---|---|---|
| Google Vertex AI | vertex_ai/medlm-large | $5.00 | 8K |
Medlm Large features
Input: text. Output: text.
Use Medlm Large with LiteLLM
Call Medlm Large through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.
from litellm import completion
response = completion(
model="vertex_ai/medlm-large",
messages=[{"role": "user", "content": "Hello!"}],
)curl http://0.0.0.0:4000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LITELLM_API_KEY" \
-d '{
"model": "medlm-large",
"messages": [{"role": "user", "content": "Hello!"}]
}'Medlm Large FAQ
What is the context window of Medlm Large?
Medlm Large has an 8,192-token context window and returns up to 1,024 tokens per response.
When did LiteLLM add Medlm Large?
Medlm Large was added to LiteLLM's model price file in July 2024.
Sources
Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change. Provider pricing pages:
LiteLLM docs: Google Vertex AI.
Provider pages: Google Vertex AI.