API Reference
Comprehensive documentation for the Martian API, including endpoint specifications, authentication methods, supported models, and advanced features.
All Martian endpoints are compatible with both OpenAI and Anthropic client libraries, making it easy to integrate with your existing codebase.
Need an API key? Get yours from the Martian Dashboard.
API Documentation
API Endpoints
Detailed reference for all endpoints including parameters, request formats, and responses.
Advanced Features
Explore cost optimization, streaming, caching, prompt caching, and function calling capabilities.