Gateway
The Martian Gateway provides unified access to 200+ AI models through a single API, so you can pick the most effective model for each use case while staying compatible with popular frameworks.
- Access to 200+ models from leading providers
- Compatibility with OpenAI and Anthropic APIs
curl https://api.withmartian.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MARTIAN_API_KEY" \
-d '{
"model": "openai/gpt-4.1-nano",
"messages": [
{
"role": "user",
"content": "What is Olympus Mons?"
}
]
}'
Track usage in the Martian Dashboard: real-time usage, model performance, and request history.
Getting started
Get your API key from the Martian Dashboard and start using the Gateway. The API is compatible with existing OpenAI and Anthropic SDKs.
Resources
Integrations
SDK and code editor integrations for OpenAI, Anthropic, Cursor, Claude Code, Cline, Aider, and more.
Code Examples
Practical examples and code snippets for common use cases, from basic chat to advanced tool use.
Ready to get started? Get your API key and follow the Quickstart to make your first request in minutes.