Home
Welcome to the Morpheus API Gateway Documentation.
Introduction
This gateway serves as a bridge, connecting standard Web2 clients and applications to the decentralized Morpheus Lumerin AI Marketplace.
It simplifies interaction with the underlying blockchain infrastructure, providing familiar RESTful API endpoints for key operations.
Key Features
User & API Key Management
Securely manage user accounts and API keys for accessing the gateway's features. Includes endpoints for:
- User Registration & Login (JWT-based)
- API Key Creation & Deletion
- Secure Storage & Management of Blockchain Private Keys (optional)
For programmatic access or use with Language Models, the raw documentation content is available at the /llms.txt
endpoint.
Getting Started
- Register & Login: Use the
/auth/register
and/auth/login
endpoints to create an account and obtain a JWT access token. - Create API Key: Generate an API key using
/auth/keys
while authenticated with your JWT. - Interact: Use your API key (as a Bearer token) to access other endpoints like
/chat/completions
or/models
. - (For Inference): Before using
/chat/completions
, you'll typically need to:- Approve MOR spending (
/session/approve
). - Create a session with a provider (
/session/bidsession
or/session/modelsession
).
- Approve MOR spending (
Explore the API section in the sidebar for detailed information on each endpoint.
How is this guide?