Skip to main content

Base URLs

MegaLLM supports two API formats:

OpenAI Format

Compatible with OpenAI SDKs and tools

Anthropic Format

Compatible with Anthropic Claude SDKs

Authentication

All API endpoints require authentication using one of these methods:

API Key Header (Anthropic Format)

Get your API key from the MegaLLM Dashboard.

Core Endpoints

Chat Completions

OpenAI-compatible chat API with streaming, function calling, and vision support

Messages

Anthropic-compatible API with extended thinking, tools, and prompt caching

Models

List all 70+ AI models with capabilities, pricing, and context windows

Advanced Features

Streaming

Real-time streaming responses with Server-Sent Events

Function Calling

Enable AI to interact with external tools and APIs

Authentication Guide

Comprehensive authentication methods and security best practices

Quick Start

Rate Limits

Rate limits vary by plan tier:

SDK Support

MegaLLM is compatible with popular AI SDKs:
  • Python: openai, anthropic, langchain
  • JavaScript/TypeScript: openai, @anthropic-ai/sdk
  • Go: go-openai
  • Ruby: anthropic-rb
  • Rust: async-openai
  • Java: openai-java
  • C#: OpenAI-DotNet

Need Help?

Developer Docs

Comprehensive guides and tutorials

Models Catalog

Browse all 70+ available models