Martian logo

Martian

Martian operates an LLM model router and gateway that dynamically routes each request to the best underlying model across providers for the optimal balance of quality, latency, and cost. The Martian Gateway exposes a drop-in, OpenAI-compatible REST API (and an Anthropic Messages-compatible surface) so applications can route across a large catalog of models by changing only the base URL.

3 APIs 0 Features
AILLMModel RouterGatewayCost Optimization

APIs

Martian Chat Completions API

OpenAI-compatible chat completions routed dynamically across a large catalog of provider models. Models are addressed with a provider/model-name string, with optional routing co...

Martian Messages API

Anthropic Messages-compatible endpoint that accepts the Anthropic Messages request shape and routes it through the Martian Gateway, enabling Anthropic SDKs and frameworks to use...

Martian Models API

Lists every model currently supported by the Martian Gateway, returning the provider/model-name identifiers usable as routing targets in chat completions and messages requests.

Event Specifications

Martian Gateway Chat Completions Streaming (HTTP + SSE)

AsyncAPI 2.6 description of the Martian Gateway's **chat completion streaming** surface. Martian does not publish a WebSocket API. The Martian Gateway is an OpenAI-compatible mo...

ASYNCAPI

Resources

👥
GitHubOrganization
GitHubOrganization
🔗
LinkedIn
LinkedIn
🔗
Website
Website
🔗
Documentation
Documentation
🔗
Plans
Plans
🔗
RateLimits
RateLimits
🔗
FinOps
FinOps

Sources

Raw ↑
aid: martian-ai
url: https://raw.githubusercontent.com/api-evangelist/martian-ai/refs/heads/main/apis.yml
name: Martian
kind: company
description: Martian operates an LLM model router and gateway that dynamically routes
  each request to the best underlying model across providers for the optimal balance
  of quality, latency, and cost. The Martian Gateway exposes a drop-in,
  OpenAI-compatible REST API (and an Anthropic Messages-compatible surface) so
  applications can route across a large catalog of models by changing only the
  base URL.
image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/apis-json-logo.jpg
tags:
- AI
- LLM
- Model Router
- Gateway
- Cost Optimization
created: '2026-06-20'
modified: '2026-06-20'
specificationVersion: '0.19'
apis:
- aid: martian-ai:martian-chat-completions-api
  name: Martian Chat Completions API
  tags:
  - Chat
  - Completions
  - Routing
  - LLM
  image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/apis-json-logo.jpg
  humanURL: https://docs.withmartian.com/api-reference/endpoints
  baseURL: https://api.withmartian.com/v1
  properties:
  - url: https://docs.withmartian.com/quickstart
    type: Documentation
  - url: https://docs.withmartian.com/api-reference/endpoints
    type: APIReference
  - url: openapi/martian-ai-openapi.yml
    type: OpenAPI
  - url: collections/martian-ai.postman_collection.json
    type: Postman
  description: OpenAI-compatible chat completions routed dynamically across a large
    catalog of provider models. Models are addressed with a provider/model-name
    string, with optional routing controls (e.g. willingness-to-pay) to trade
    quality against cost, plus automatic cross-provider failover and streaming.
- aid: martian-ai:martian-messages-api
  name: Martian Messages API
  tags:
  - Messages
  - Anthropic Compatible
  - Routing
  image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/apis-json-logo.jpg
  humanURL: https://docs.withmartian.com/api-reference/endpoints
  baseURL: https://api.withmartian.com/v1
  properties:
  - url: https://docs.withmartian.com/api-reference/endpoints
    type: APIReference
  - url: openapi/martian-ai-openapi.yml
    type: OpenAPI
  - url: collections/martian-ai.postman_collection.json
    type: Postman
  description: Anthropic Messages-compatible endpoint that accepts the Anthropic
    Messages request shape and routes it through the Martian Gateway, enabling
    Anthropic SDKs and frameworks to use Martian routing without code changes.
- aid: martian-ai:martian-models-api
  name: Martian Models API
  tags:
  - Models
  - Catalog
  - Routing
  image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/apis-json-logo.jpg
  humanURL: https://docs.withmartian.com/api-reference/endpoints
  baseURL: https://api.withmartian.com/v1
  properties:
  - url: https://docs.withmartian.com/api-reference/endpoints
    type: APIReference
  - url: openapi/martian-ai-openapi.yml
    type: OpenAPI
  - url: collections/martian-ai.postman_collection.json
    type: Postman
  description: Lists every model currently supported by the Martian Gateway,
    returning the provider/model-name identifiers usable as routing targets in
    chat completions and messages requests.
common:
- type: GitHubOrganization
  url: https://github.com/withmartian
- type: LinkedIn
  url: https://www.linkedin.com/company/withmartian
- type: Website
  url: https://www.withmartian.com
- type: Documentation
  url: https://docs.withmartian.com
- type: Plans
  url: plans/martian-ai-plans-pricing.yml
- type: RateLimits
  url: rate-limits/martian-ai-rate-limits.yml
- type: FinOps
  url: finops/martian-ai-finops.yml
maintainers:
- FN: Kin Lane
  email: kin@apievangelist.com