plaingateway
API reference

Models

List model IDs and prices with GET /models, and embedding models with GET /embeddings/models.

GET /models returns the model catalog, with each model's context limit, modalities, supported parameters and prices. A listed model answers only when an AI provider key (your own or a partner's) serves it. Today that is the openai/ and deepseek/ models served from Azure. Any other listed model answers 400 is not a valid model ID. It needs no key. Use id (author/slug) as model in a request. Prices are USD per token, as decimal strings, at the provider's list price. input_cache_read and input_cache_write are the prices of cached and cache-writing input tokens. supported_parameters lists what at least one host accepts; a given host may accept fewer. To list a model's hosts, follow links.details, which is GET /models/{author}/{slug}/endpoints for the id. output_modalities picks the kinds of model listed, as on OpenRouter: text (the default), embeddings, a comma-separated list such as text,embeddings, or all. Without it, embedding models are left out. An embedding model has architecture.output_modalities ["embeddings"], pricing.completion "0", and endpoints ["/api/v1/embeddings"]: the API paths it answers. A model with no endpoints field answers the chat endpoints.

Request

sh
curl https://api.plaingateway.com/api/v1/models
curl 'https://api.plaingateway.com/api/v1/models?output_modalities=embeddings'

Response

One data item, shortened. The prices shown are list prices.

http
HTTP/1.1 200
{
  "data": [
    {
      "id": "openai/gpt-5.6-luna",
      "canonical_slug": "openai/gpt-5.6-luna-20260709",
      "hugging_face_id": null,
      "name": "OpenAI: GPT-5.6 Luna",
      "created": 1783590864,
      "context_length": 1050000,
      "architecture": {
        "modality": "text+image+file->text",
        "input_modalities": ["file", "image", "text"],
        "output_modalities": ["text"],
        "tokenizer": "GPT",
        "instruct_type": null
      },
      "pricing": {
        "prompt": "0.0000002",
        "completion": "0.0000012",
        "input_cache_read": "0.00000002",
        "input_cache_write": "0.00000025"
      },
      "top_provider": {
        "context_length": 1050000,
        "max_completion_tokens": 128000,
        "is_moderated": true
      },
      "per_request_limits": null,
      "supported_parameters": ["max_tokens", "reasoning", "response_format", "structured_outputs", "tool_choice", "tools"],
      "links": {
        "details": "/api/v1/models/openai/gpt-5.6-luna/endpoints"
      }
    }
  ],
  "total_count": 26,
  "links": {
    "next": null
  }
}

Embedding models

GET /embeddings/models lists the embedding models, in the same shape as GET /models. It holds the same models as GET /models?output_modalities=embeddings. It needs no key. offset skips that many models and limit caps how many come back; without either, the whole list comes back. links.next is the path of the next page, or null on the last one. How to call them is in Embeddings.

Request

sh
curl 'https://api.plaingateway.com/api/v1/embeddings/models?limit=2'

Response

Shortened. The price shown is the list price.

http
HTTP/1.1 200
{
  "data": [
    {
      "id": "openai/text-embedding-3-small",
      "name": "OpenAI: Text Embedding 3 Small",
      "context_length": 8192,
      "architecture": {
        "modality": "text->embeddings",
        "input_modalities": ["text"],
        "output_modalities": ["embeddings"],
        "tokenizer": "Other",
        "instruct_type": null
      },
      "pricing": {
        "prompt": "0.00000002",
        "completion": "0"
      },
      "supported_parameters": [],
      "links": {
        "details": "/api/v1/models/openai/text-embedding-3-small/endpoints"
      },
      "endpoints": ["/api/v1/embeddings"]
    }
  ],
  "total_count": 3,
  "links": {
    "next": "/api/v1/embeddings/models?offset=2&limit=2"
  }
}