Docs
Get an API key
API reference›Models

Get Model By Author And Slug

GET /v1/model/{author}/{slug} No API key needed View .md

Retrieves one model in OpenRouter's public model shape, for OpenRouter's models.get({author, slug}). Model IDs have no author, so the slug is matched against the model ID and any author is accepted (vultr is the documented one). The whole author/slug also matches a model ID that holds a slash, a model's Hugging Face ID (case-insensitively) and a legacy model ID that redirects to the model that replaced it. A :variant suffix on the slug is accepted and ignored. A slug that holds a slash can be percent-encoded. Public like GET /v1/models, which lists the same entry. An unknown model, one that is not currently served and a private model are a 404 in the error envelope.

  • author string required

    The model's organization. Any value is accepted; use vultr.

  • slug string required

    The model ID, optionally with a :variant suffix.

OK

application/json · openrouter-public-model-response

1 field
  • data object required

    A model in OpenRouter's public Model shape, which OpenRouter's SDKs parse. Built from the same entry as the provider document, so context length, price and modalities match it. pricing.prompt and pricing.completion are USD per token as strings; OpenRouter has no field for a price per second or per megapixel, so image (per megapixel), video and speech (per second generated) put their price in completion, transcription (per second of audio read) in prompt, and the other is "0". Embeddings, rerank and decision models put the price per input token in prompt.

    16 fields
    • id string required
    • canonical_slug string required

      The model id.

    • hugging_face_id string or null
    • name string required
    • created integer required

      Unix timestamp.

    • description string
    • context_length integer or null required

      Tokens the model reads. Null for models that have no token context (image, video, speech, transcription).

    • architecture object required
      5 fields
      • input_modalities array of strings required
      • output_modalities array of strings required
      • modality string required
      • tokenizer string
      • instruct_type string or null
    • pricing object required
      4 fields
      • prompt string required
      • completion string required
      • internal_reasoning string
      • input_cache_read string
    • top_provider object required
      3 fields
      • context_length integer or null
      • max_completion_tokens integer or null
      • is_moderated boolean required
    • per_request_limits object or null required
    • supported_parameters array of strings required
    • default_parameters object or null required

      The model row's sampling defaults, limited to temperature, top_p, top_k, frequency_penalty, presence_penalty and repetition_penalty.

      6 fields
      • temperature number
      • top_p number
      • top_k integer
      • frequency_penalty number
      • presence_penalty number
      • repetition_penalty number
    • supported_voices array of strings or null required

      A speech model's voice ids; null for every other model.

    • links object required
      1 field
      • details string required
    • reasoning object

      Present on reasoning models. Fields the gateway does not know are left out, never null.

      5 fields
      • mandatory boolean required
      • supports_max_tokens boolean
      • supported_efforts array of strings
      • default_effort string
      • default_enabled boolean
curl https://api.vultrinference.com/v1/model/vultr/glm-5.3
Response · 200
{
    "data": {
        "id": "glm-5.3",
        "canonical_slug": "string",
        "name": "string",
        "created": 0,
        "context_length": 0,
        "architecture": {
            "input_modalities": [
                "text"
            ],
            "output_modalities": [
                "text"
            ],
            "modality": "text+image->text",
            "tokenizer": "Other"
        },
        "pricing": {
            "prompt": "0.00000055",
            "completion": "0.00000275"
        },
        "top_provider": {
            "is_moderated": false
        },
        "per_request_limits": {},
        "supported_parameters": [
            "temperature",
            "top_p",
            "max_tokens",
            "tools"
        ],
        "default_parameters": {
            "temperature": 0.0,
            "top_p": 0.0,
            "top_k": 0,
            "frequency_penalty": 0.0,
            "presence_penalty": 0.0,
            "repetition_penalty": 0.0
        },
        "supported_voices": [
            "string"
        ],
        "links": {
            "details": "/v1/model/vultr/glm-5.3"
        }
    }
}