Skip to main content

Authentication Setup

1. Get Started

First, create an account on https://openbeta.mor.org and head over to the admin dashboard. Home Page

2. Create an API Key

Within the admin dashboard, you can create and manage your API Keys. Admin Dashboard Once you name and create your first key, SAVE IT - you won’t see it again!

Making Your First Request

List Available Models

curl --request GET \
  --url https://api.mor.org/api/v1/models \
  --header 'Authorization: Bearer sk-YOUR_API_KEY'

Create a Chat Completion

curl --request POST \
  --url https://api.mor.org/api/v1/chat/completions \
  --header 'Authorization: Bearer sk-YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "llama-3.3-70b",
    "messages": [
      {"role": "user", "content": "Hello!"}
    ]
  }'

Using the OpenAI SDK

The Morpheus Gateway is fully compatible with the OpenAI SDK:
from openai import OpenAI

client = OpenAI(
    api_key="sk-YOUR_API_KEY",
    base_url="https://api.mor.org/api/v1"
)

# List models
models = client.models.list()

# Create a chat completion
completion = client.chat.completions.create(
    model="llama-3.3-70b",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

print(completion.choices[0].message.content)

Next Steps

Support

Need help? Reach out to us: