Requirements
- A Runpod account with available credits.
- A Runpod API key.
Step 1: Set up your environment
Choose your preferred method for interacting with Runpod. If using the CLI or REST API, you’ll need to configure your API key.- Runpod CLI
- REST API
- Web
Install and configure the Runpod CLI.macOS/Linux:Windows:Verify the installation:
Step 2: Deploy an endpoint
Deploy a vLLM worker with a small, fast language model.- Runpod CLI
- REST API
- Web
First, create a Serverless template with the vLLM worker image:Note the template ID from the output. Then create an endpoint using that template:The output includes your endpoint ID:
Step 3: Send a request
Once your endpoint shows Ready status, send a test request. If you haven’t already, export your API key in your terminal:- cURL
- Python
Run this command in your terminal, replacing
YOUR_ENDPOINT_ID with your actual endpoint ID:Step 4: Clean up
To avoid ongoing charges, delete your endpoint when you’re done testing.- Runpod CLI
- REST API
- Web
List your endpoints to find the ID:Delete the endpoint:Optionally, delete the template you created:
You’ve successfully deployed and tested your first Serverless endpoint.
Next steps
Build a custom worker
Create your own handler function and Docker image.
Send requests
Learn about sync, async, and streaming requests.
Endpoint settings
Configure scaling, timeouts, and GPU selection.
Configure vLLM
Customize your vLLM deployment for different models.