Setting Up a Custom Provider
To add a custom provider to your workspace:- Navigate to Settings → Custom Providers and Models
- Click the Add Custom Provider button
-
Configure the provider with the following details:
- Name: A descriptive name for your provider (e.g., “DeepSeek”)
- Client: Select the appropriate client type for your provider’s base URL
- Base URL: The endpoint URL for your custom provider
- API Key

Creating Custom Models
Once your provider is configured, you can define models for it:- In Settings → Custom Providers and Models, click on your custom provider row to expand it
- Click Create Custom Model
-
Fill in the model configuration:
- Provider: Select the custom provider you created earlier
- Model Name: Choose from known models or enter a custom identifier
- Display Name: A friendly name that appears in the prompt playground
- Model Type: Specify whether this is a Chat or Completion model

Using Custom Models
After setup, your custom models seamlessly integrate with PromptLayer’s features. You can:- Select them in the Playground alongside standard models
- Use them in the Prompt Editor for template creation
- Track requests and analyze performance just like any other model

Examples
OpenRouter
OpenRouter provides access to a wide variety of cutting-edge models through a unified API, including models like DeepSeek, Claude, GPT-4, and many others that may not be available through standard providers. Configuration Instructions:- Get an OpenRouter API Key: Sign up at OpenRouter and obtain your API key from their dashboard.
-
Add OpenRouter as a Custom Provider in PromptLayer:
- Navigate to Settings → Custom Providers and Models
- Click Add Custom Provider
- Configure with these settings:
- Name: OpenRouter
- Client: OpenAI (OpenRouter uses OpenAI-compatible endpoints)
- Base URL:
https://openrouter.ai/api/v1
- API Key: Your OpenRouter API key
-
Save Custom OpenRouter Models (Recommended):
- In Settings → Custom Providers and Models, find your OpenRouter provider in the list
- Click on the OpenRouter row to expand it
- Click Create Custom Model in the expanded section
- Configure each model:
- Model Name: Enter the OpenRouter model identifier (e.g.,
deepseek/deepseek-chat
,anthropic/claude-3.5-sonnet
) - Display Name: A friendly name like “DeepSeek Chat” or “Claude 3.5 Sonnet”
- Model Type: Choose “Chat” for most models
- Model Name: Enter the OpenRouter model identifier (e.g.,
- Repeat for each model you want to use
- The full list of available models can be found in OpenRouter’s documentation
-
Use Your Models:
- Your custom models will now appear in the model dropdown in the Playground
- Select your models directly from the dropdown - no manual typing needed
- All requests will be routed through OpenRouter