Skip to main content
The GET /v1/models endpoint returns the live catalog of every model available through Lightweight. Use it to discover models, check context windows, and get real-time pricing.

Endpoint

GET https://api.lightweight.one/v1/models
curl https://api.lightweight.one/v1/models \
  -H "Authorization: Bearer lw_sk_your-key-here"

Response Schema

Each model object in the response data array contains:
FieldTypeDescription
idstringUnique model identifier (e.g. claude-sonnet-4.5)
objectstringAlways "model"
createdintegerUnix timestamp of when the model was added
owned_bystringProvider name (e.g. openai, anthropic, google, xai)
namestringHuman-readable display name
descriptionstringShort description of the model’s capabilities
context_lengthintegerMaximum context window in tokens
max_completion_tokensintegerMaximum output tokens per request
pricing.inputnumberCost per 1M input tokens (USD)
pricing.outputnumberCost per 1M output tokens (USD)
capabilities.chatbooleanSupports chat completions
capabilities.streamingbooleanSupports streaming responses
capabilities.function_callingbooleanSupports function/tool calling
capabilities.visionbooleanSupports image inputs
capabilities.extended_thinkingbooleanSupports chain-of-thought reasoning
categorystringModel category (e.g. flagship, balanced, budget, code)
statusstringAvailability status (available, preview, deprecated)
aliasesarrayShort alias names that resolve to this model
providerstringUpstream provider identifier

Example Response

{
  "object": "list",
  "data": [
    {
      "id": "claude-sonnet-4.5",
      "object": "model",
      "created": 1710000000,
      "owned_by": "anthropic",
      "name": "Claude Sonnet 4.5",
      "description": "Anthropic's balanced model — excellent for everyday coding and analysis tasks.",
      "context_length": 200000,
      "max_completion_tokens": 8192,
      "pricing": {
        "input": 3.0,
        "output": 15.0
      },
      "capabilities": {
        "chat": true,
        "streaming": true,
        "function_calling": true,
        "vision": true,
        "extended_thinking": true
      },
      "category": "balanced",
      "status": "available",
      "aliases": ["claude-sonnet"],
      "provider": "anthropic"
    },
    {
      "id": "gpt-5.4",
      "object": "model",
      "created": 1710000000,
      "owned_by": "openai",
      "name": "GPT-5.4",
      "description": "OpenAI's flagship model — state-of-the-art reasoning and generation.",
      "context_length": 128000,
      "max_completion_tokens": 16384,
      "pricing": {
        "input": 2.5,
        "output": 10.0
      },
      "capabilities": {
        "chat": true,
        "streaming": true,
        "function_calling": true,
        "vision": true,
        "extended_thinking": false
      },
      "category": "flagship",
      "status": "available",
      "aliases": ["gpt"],
      "provider": "openai"
    }
  ]
}