GET/v1/models

Models

Returns a list of all available models. Use the model IDs in requests to the Messages endpoint.

Test the models endpoint:

Bash
curl https://api.mr-coder.io/v1/models \
  -H "x-api-key: sk-mr-auth-your-key-here"

Response Format

JSON
{
  "data": [
    {
      "id": "anthropic:claude-opus-4-7",
      "type": "model",
      "created": "2025-01-01T00:00:00Z"
    },
    ...
  ]
}

Model Categories

Model IDs use a provider:model format. A model name sent without a prefix is treated as Anthropic's, so claude-opus-4-8 and anthropic:claude-opus-4-8 are the same model.

Every non-Anthropic model must carry its prefix— write openai:gpt-6 and zhipu:glm-5-3, never the model name on its own. Dropping the prefix makes the name read as a request for an Anthropic model that does not exist. A model is only valid under the provider that serves it.

Use an ID exactly as listed below. Names that look plausible but are not listed — for example claude-opus-4-5 (the real ID is claude-opus-4-5-20250801) — are rejected with 400 Unknown model. Call GET /v1/models to read the live list rather than hard-coding one.

Claude (Anthropic)

Model IDContextTier
anthropic:claude-fable-5-11MPremium
anthropic:claude-fable-51MPremium
anthropic:claude-opus-5-51MPremium
anthropic:claude-opus-51MPremium
anthropic:claude-opus-4-8200KPremium
anthropic:claude-opus-4-7200KPremium
anthropic:claude-opus-4-6200KPremium
anthropic:claude-sonnet-5-51MStandard
anthropic:claude-sonnet-51MStandard
anthropic:claude-sonnet-4-6200KStandard
anthropic:claude-haiku-5-51MFast

OpenAI

Model IDContextTier
openai:gpt-6200KPremium
openai:gpt-6-sol200KPremium
openai:gpt-6-1-sol200KPremium
openai:gpt-6-astra200KPremium

Moonshot AI

Model IDContextTier
moonshot:kimi-k31MPremium

High-Flyer

Model IDContextTier
high-flyer:deepseek-v4-pro131KPremium

Zhipu AI

Model IDContextTier
zhipu:glm-5-31MStandard
zhipu:glm-5-3-flash1MFast

Alibaba

Model IDContextTier
alibaba:qwen-3-8131KStandard
alibaba:qwen-3-8-flash131KFast

Quantel

Model IDContextTier
quantel:quantum-lite-1131KFast

Code Examples

Bash
curl https://api.mr-coder.io/v1/models \
  -H "x-api-key: sk-mr-auth-xxxxxxxx"
TypeScript
const response = await fetch(
  'https://api.mr-coder.io/v1/models',
  {
    headers: {
      'x-api-key': 'sk-mr-auth-xxxxxxxx',
    },
  }
);

const { data } = await response.json();
data.forEach((model: { id: string; type: string; created: string }) => {
  console.log(`Model: ${model.id}`);
});
Python
import requests

response = requests.get(
    'https://api.mr-coder.io/v1/models',
    headers={
        'x-api-key': 'sk-mr-auth-xxxxxxxx',
    }
)

data = response.json()
for model in data['data']:
    print(f"Model: {model['id']}")