GET /models/{canonicalId}/providers

Changed on

List available providers and pricing for a model that supports provider selection

Request

  • Base URL
    https://nano-gpt.com/api
  • URL
    https://nano-gpt.com/api/models/{canonicalId}/providers
  • Auth
    • HTTP bearer
    • or API key in header x-api-key

Path parameters

canonicalIdstring required

Canonical model ID

Response

Provider availability and pricing for the model

canonicalIdstring

Canonical model identifier

displayNamestring

Human-readable model name

supportsProviderSelectionboolean

Whether the model supports provider selection

Example response

{
  "canonicalId": "model-id",
  "displayName": "Model Name",
  "supportsProviderSelection": true,
  "defaultPrice": {
    "inputPer1kTokens": 0.0004,
    "outputPer1kTokens": 0.00175
  },
  "providers": [
    {
      "provider": "provider-id",
      "pricing": {
        "inputPer1kTokens": 0.0004,
        "outputPer1kTokens": 0.00175
      },
      "available": true,
      "maxInputTokens": 262144,
      "maxOutputTokens": 131072,
      "quantization": "fp8",
      "uptime": {
        "uptimePct": 99.42,
        "windowHours": 72
      },
      "verification": {
        "tokenizer": {
          "status": "passed",
          "checks": 24,
          "matches": 24,
          "windowDays": 7
        }
      },
      "distillationPolicy": {
        "status": "allowed",
        "label": "License permits distillation",
        "basis": "permissive-open-weights",
        "sourceUrl": "https://example.com/license-or-terms",
        "note": "Short explanation of the policy signal."
      }
    }
  ]
}

Changes