Setup
- Python
- JavaScript
ENDPOINT_ID and RUNPOD_API_KEY with your actual values.
Supported endpoints
Chat completions
For instruction-tuned models that follow a chat format.- Standard
- Streaming
Text completions
For base models and raw text completion.- Standard
- Streaming
Model name
Themodel parameter must match either:
- The Hugging Face model you deployed (e.g.,
mistralai/Mistral-7B-Instruct-v0.2) - A custom name set via the
OPENAI_SERVED_MODEL_NAME_OVERRIDEenvironment variable
Parameters
Standard OpenAI parameters are supported. Include them directly in your request.Common parameters
Common parameters
Additional vLLM parameters
Additional vLLM parameters
Environment variables
Use these environment variables to customize the OpenAI compatibility:
See environment variables reference for all options.
Differences from OpenAI
- Token counting may differ due to different tokenizers.
- Rate limits follow Runpod’s policies, not OpenAI’s.
- Function/tool calling depends on model and vLLM support.
- Vision/multimodal depends on underlying model support.