Quick Start
Get started with Modal in under 2 minutes:Tip: You can also set
provider="@modal" in Portkey() and use just model="your-model-name" in the request.Add Provider in Model Catalog
Before making requests, add Modal to your Model Catalog:- Go to Model Catalog → Add Provider
- Select Modal
- Enter your Modal API credentials
- Modal supports API Key (Bearer token) or Custom Headers (
modal-keyandmodal-secret)
- Modal supports API Key (Bearer token) or Custom Headers (
- Custom Host: Enter your Modal deployment endpoint (e.g.,
https://your-modal-deployment.modal.run) - Name your provider (e.g.,
modal)
Note: Custom host configuration is set once in Model Catalog and applies to all requests using this provider.
Complete Setup Guide
See all setup options and detailed configuration instructions
Modal Documentation
Explore the official Modal documentation
Modal Capabilities
Streaming
Stream responses for real-time output:Supported Endpoints and Parameters
| Endpoint | Supported Parameters |
|---|---|
/chat/completions | messages, max_tokens, temperature, top_p, stream, presence_penalty, frequency_penalty |
Next Steps
Gateway Configs
Add fallbacks, load balancing, and more
Observability
Monitor and trace your Modal requests
Prompt Library
Manage and version your prompts
Metadata
Add custom metadata to requests
SDK Reference
Complete Portkey SDK documentation

