Skip to main content

Get API Key

Portkey AI Configuration

1

Create a new Provider in Model Catalog

Portkey Setup
2

Select OpenAI as the base provider

Portkey Setup
3

Add Custom Host under Advanced Options

Portkey Setup
4

Once the provider is created, Click on Models Tab

Portkey Setup
5

Click on Manage Models

Portkey Setup
6

Click on Add Model

Portkey Setup
7

Fill the below details in Add Custom Model

| Field | Value | | Model Slug | axon-base | | Base Model | gpt-4o | | Input Cost | 0.5 | | Output Cost | 1.0 |
Portkey Setup
8

Test the setup in Getting Started

Portkey Setup
When using Portkey AI, you need to use the @matterai/axon-base model slug.
  const response = await portkey.chat.completions.create({
    messages: [
      { role: "system", content: "You are a helpful assistant" }
      { role: "user", content: "What is Portkey" }
    ],
    model: "@matterai/axon-base",
    max_tokens: 512
  });