Skip to main content
Prerequisites: You’ll need a MegaLLM API key to use our services.

Installation

1

Get Your API Key

First, you’ll need to obtain your MegaLLM API key. This key will be used to authenticate all your API requests.
See our Authentication Guide for detailed instructions on obtaining your API key.
2

Choose Your API Format

MegaLLM supports both OpenAI and Anthropic API formats. Choose the one that best fits your needs:
Set your base URL to use OpenAI-compatible endpoints:
3

Make Your First Request

Now you’re ready to make your first API call!
4

Verify Your Setup

If everything is set up correctly, you should receive a response like this:

Next Steps

Authentication

Learn about authentication methods and API key management

OpenAI API

Explore the OpenAI-compatible endpoints

Anthropic API

Discover Anthropic Claude API features

Best Practices

Common questions and best practices

Common Issues

Rate Limiting: If you encounter rate limit errors, check our FAQ for guidance.
Authentication Failed: Make sure your API key is valid and has the necessary permissions. Check our Authentication Guide for solutions.