/run and /runsync operations as other Runpod Serverless endpoints. The difference is the input format: vLLM expects prompts, messages, and sampling parameters for text generation.
Input formats
Messages (chat models)
Use for instruction-tuned models. The worker automatically applies the model’s chat template.Prompt (text completion)
Use for base models or when providing raw text without a chat template."apply_chat_template": true.
Send requests
- Async (/run)
- Sync (/runsync)
Submit a job that processes in the background. Poll
/status/{job_id} for results.Streaming
Receive tokens as they’re generated instead of waiting for the complete response.Sampling parameters
Add parameters to control how the model generates text. Include these in thesampling_params object in your request.
Common parameters
Common parameters
Advanced parameters
Advanced parameters
Streaming parameters
Streaming parameters