Skip to main content
Prerequisite: You’ll need an account on Morph to obtain an API key.

Authentication

All Morph API endpoints require authentication using Bearer tokens:
To get your API key:
  1. Visit the Morph dashboard
  2. Create an account or sign in
  3. Navigate to your API keys section
  4. Generate a new API key
Keep your API key secure and never expose it in client-side code or public repositories.

Base URL

All Morph API endpoints use the following base URL:

Test Your API Key

Verify your setup with a simple test request:
If the test succeeds, you should see the updated code with “Hello Morph!” instead of “Hello World”.

Alternative Access Methods

You can also access Morph through these platforms:

OpenRouter

Access Morph models through OpenRouter’s unified API platform

Opper

Access Morph models through Opper’s EU-hosted AI gateway

MCP Integration

Use Morph with Model Context Protocol servers and Claude Desktop

Next Steps

Now that you’ve tested your API key, explore Morph’s specialized models:

Apply Model

Apply code changes with precision at 10,500 tokens per second and 98% accuracy

WarpGrep

Find relevant code with a search subagent that explores the repo in ~6 seconds
For access to our latest models, self-hosting, or business inquiries, please contact us at info@morphllm.com.