Skip to main content
GET
/
models
List Models
curl --request GET \
  --url https://api.redpill.ai/v1/models \
  --header 'Authorization: Bearer <token>'

Documentation Index

Fetch the complete documentation index at: https://docs.redpill.ai/llms.txt

Use this file to discover all available pages before exploring further.

List All Models

Returns the current model catalog, including model IDs, context windows, providers, modalities, and token pricing.
GET https://api.redpill.ai/v1/models
Try it now! Click the “Try it” button above to test the API in the playground. You’ll need your API key (add it when prompted).

Example

curl https://api.redpill.ai/v1/models \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "data": [
    {
      "id": "z-ai/glm-5",
      "name": "GLM 5",
      "created": 1677652288,
      "description": "Z.AI flagship model running through a GPU TEE provider",
      "context_length": 202752,
      "pricing": {
        "prompt": "0.0000012",
        "completion": "0.0000035"
      },
      "providers": ["near-ai"],
      "metadata": {
        "tee": true,
        "appid": "..."
      },
      "architecture": {
        "modality": "text->text",
        "input_modalities": ["text"],
        "output_modalities": ["text"]
      }
    }
  ]
}

Model Object Fields

FieldDescription
idModel identifier for API calls
nameHuman-readable name
context_lengthMaximum context window
pricing.promptPrice per prompt token. Multiply by 1,000,000 for the per-million-token price shown in docs
pricing.completionPrice per completion token. Multiply by 1,000,000 for the per-million-token price shown in docs
providersAvailable infrastructure providers, such as phala, near-ai, tinfoil, or chutes
metadata.appidPresent when the model supports RedPill TEE attestation
quantizationFP8, FP16, etc.
modalityInput/output types

Finding Verifiable TEE Models

Use the model catalog before you build verification into production code:
curl https://api.redpill.ai/v1/models \
  -H "Authorization: Bearer YOUR_API_KEY" | \
  jq '.data[] | select(.metadata.appid != null or any(.providers[]?; test("phala|near-ai|tinfoil|chutes"))) | {id, providers, appid: .metadata.appid}'
For models with metadata.appid, use /v1/attestation/report and /v1/signature/{request_id} to verify TEE execution for a specific API response. Some GPU TEE providers may appear in providers before their RedPill attestation format is supported; test /v1/attestation/report for the exact model before relying on production verification.

All Models

Browse complete model catalog →