Docs

Documentation

Everything you need to call the MarsAI API — quickstart, authentication, SDKs, and reference.

Quickstart
Authentication
Models
Chat Completions
Errors
Rate limits
SDKs
Data & retention

MarsAI is a unified, OpenAI-compatible API for AI model inference. One endpoint and one key give you frontier and open-source models, served on our own GPU infrastructure.

If you've used the OpenAI API before, you already know ours. Point your existing client at the base URL below, swap in your MarsAI key, and every request, response, and streaming format behaves exactly as you expect.

Base URL

HTTPS
https://api.marsai.com/v1

What you get

  • One API for frontier and open models, with automatic failover
  • Drop-in OpenAI compatibility — no rewrites required
  • Usage-based pricing with no markup on premium models

Next steps

Continue to the Quickstart to make your first request.