LM0
API Reference API

API Overview

Public endpoints, auth, and maintenance behavior for the LM0 gateway.

LM0 exposes a unified public surface under /v1/*, plus a health check.

Base URL

Text 2 lines
https://api.17.wtf

Public endpoints

Endpoint Compatibility Auth Maintenance pause
GET /healthz LM0 native No No
GET /v1/models OpenAI or Anthropic shaped Yes No
GET /v1/models/* OpenAI or Anthropic shaped Yes No
POST /v1/chat/completions OpenAI Chat Completions Yes Yes
POST /v1/responses OpenAI Responses (stateless subset) Yes Yes
POST /v1/messages Anthropic Messages Yes Yes
POST /v1/messages/count_tokens Anthropic count_tokens Yes No

Authentication

Either header style works on /v1/*:

  • OpenAI: Authorization: Bearer <api-key>
  • Anthropic: x-api-key: <api-key> (and typically anthropic-version: 2023-06-01)

See Authentication for details.

Maintenance pause

When API maintenance mode is enabled, generation endpoints are paused:

  • POST /v1/chat/completions
  • POST /v1/responses
  • POST /v1/messages

Model listing, token counting, dashboard, and admin APIs are not blocked by maintenance pause.

How requests flow

  1. Authenticate the key
  2. Translate inbound wire format → canonical request
  3. Authorize model / pool access
  4. Route to upstream (retry / fallback as configured)
  5. Translate canonical response → client wire format
  6. Record usage (DB-backed production mode)

Read more in Architecture.

LM0 · Documentation for every model you ship

api.17.wtf