Models & catalogue

Two endpoints describe models. GET /api/v1/models lists what your workers are serving right now. GET /api/v1/catalogue lists everything you can install.

Models you can call

curl https://api.pendra.ai/api/v1/models \
  -H "Authorization: Bearer pdr_sk_..."

The reply is an OpenAI-style list, and updates within seconds of a worker starting or stopping. Add ?type=embedding, or any other type, to list one kind of model.

{
  "object": "list",
  "data": [
    {
      "id": "qwen3.6:27b-q4_k_m",
      "object": "model",
      "created": 1776313891,
      "owned_by": "pendra",
      "type": "chat",
      "capabilities": ["completion", "vision", "tools", "thinking"],
      "parameter_size": "27B",
      "context_window": 32768,
      "context_length": 32768,
      "context_length_source": "served",
      "max_output_tokens": 32768,
      "top_provider": { "context_length": 32768, "max_completion_tokens": 32768 },
      "architecture": { "input_modalities": ["text", "image"] },
      "supported_parameters": ["max_tokens", "temperature", "tools", "reasoning_effort", "enable_thinking", "..."],
      "reasoning": "hybrid",
      "default_thinking": true,
      "reasoning_controls": { "...": "see Reasoning controls" },
      "reasoning_support": { "supported_efforts": [], "default_effort": null, "default_enabled": true, "can_disable": true },
      "sampling_defaults": { "temperature": 1.0, "top_p": 0.95, "top_k": 20, "min_p": 0.05, "...": "..." }
    },
    {
      "id": "embeddinggemma:300m-q8_0",
      "object": "model",
      "created": 1757004175,
      "owned_by": "pendra",
      "type": "embedding",
      "capabilities": ["embedding"],
      "context_length": 2048,
      "context_length_source": "catalogue",
      "architecture": { "input_modalities": ["text"] }
    }
  ]
}

Fields

FieldWhat it is
typeThe one job the model does: chat, image, embedding, rerank, ocr, transcription or speech. Filter on it with ?type=.
capabilitiesEverything the installed size can do: completion, vision, tools, thinking, embedding, rerank, ocr, transcription, image, speech, moderation. Check with includes().
disabled_capabilitiesCapabilities switched off or unsupported on the workers serving it, such as ["vision"]. Absent when there are none.
createdThe model's release date, in Unix seconds. 0 when unknown.
parameter_sizeThe size, such as "27B".
context_windowChat and OCR models. The most tokens a request can use, prompt and reply together. Your workers set it from their memory, and with several workers it's the smallest. Absent until every worker serving the model has loaded it.
context_lengthThe number to plan around. When context_length_source is served it equals context_window. When it's catalogue, it's the model's full length, an upper limit until the workers load it.
max_output_tokens, top_providerChat and OCR models. Both equal context_length, as Pendra has no lower reply limit. Without max_tokens, a reply stops at 32,768 tokens.
architecture.input_modalitiesWhat a request can carry: text, plus image or audio where supported.
supported_parametersChat and OCR models. The chat completions fields the model acts on.
reasoningreasoning (always thinks) or hybrid (thinking you can turn off). Absent on models that don't reason.
default_thinkingHybrid models. Whether it thinks when the request doesn't say. false on a few small models.
reasoning_controlsModels that reason. Which thinking settings it responds to. See Reasoning controls.
reasoning_supportA short version of reasoning_controls, with can_disable saying whether thinking can be turned off.
sampling_defaultsChat models. The sampling values used for any field your request leaves out, usually the model authors' recommended settings.
recommended_size, recommended_stepsImage models. The size and step count to start from. See Image generation.
voices, default_voiceSpeech models. The voices you can pass as voice, and the one used if you don't. See Text to speech.

Codex gets the list in the shape it expects automatically, with nothing to set up.

The /v1/models list

OpenAI and Anthropic clients call GET /v1/models and GET /v1/models/{model_id} instead. These list the same models in a shape both read, but with only each model's id and context_window. created is a placeholder here. Use /api/v1/models to see what a model can do.

{
  "object": "list",
  "data": [
    {
      "id": "qwen3.6:27b-q4_k_m",
      "object": "model",
      "type": "model",
      "display_name": "qwen3.6:27b-q4_k_m",
      "created": 1735689600,
      "created_at": "2025-01-01T00:00:00Z",
      "owned_by": "pendra",
      "context_window": 32768
    }
  ],
  "has_more": false,
  "first_id": "qwen3.6:27b-q4_k_m",
  "last_id": "qwen3.6:27b-q4_k_m"
}

They accept the key as a bearer token or in x-api-key. A model none of your workers is serving returns 404.

The model catalogue

GET /api/v1/catalogue lists every model you can install from the console or with pendra models install <id>. It works without a key. With your key, it also includes models made available only to your organisation.

{
  "data": [
    {
      "id": "gemma4",
      "name": "Gemma 4",
      "publisher": "Google DeepMind",
      "description": "...",
      "capabilities": ["completion", "vision", "thinking", "tools"],
      "context_length": 262144,
      "licence": "apache-2.0",
      "reasoning": "hybrid",
      "publishing_country": "us,gb",
      "release_quarter": "Q2 2026",
      "variants": [
        {
          "id": "gemma4:12b-q4_k_m",
          "is_default": true,
          "label": "12B",
          "parameter_size": "12B",
          "architecture": "dense",
          "architectures": ["dense"],
          "quantization": "Q4_K_M",
          "bits_per_weight": 4.83,
          "original_weights": "google/gemma-4-12B-it",
          "context_length": 262144,
          "disk_size": 7300000000,
          "estimated_vram_bytes": 9500000000,
          "kv_bytes_per_token": 147456,
          "gguf_url": "https://get.pendra.ai/models/...",
          "gguf_sha256": "...",
          "gguf_size_bytes": 7300000000,
          "task": "chat",
          "installable_via": ["dashboard", "cli"],
          "capabilities": ["completion", "vision", "thinking", "tools"],
          "reasoning_controls": { "...": "see Reasoning controls" }
        }
      ]
    }
  ]
}

Model fields

FieldWhat it is
idThe model's Pendra id, such as gemma4.
name, publisher, description, homepage, licenceAbout the model.
capabilitiesWhat the model can do across all its sizes. Read each variant's own list before relying on one.
context_lengthThe model's full context length.
reasoningreasoning or hybrid. Absent on models that don't reason.
publishing_countryThe publisher's country, as one or two ISO country codes, such as "us,gb".
release_quarterWhen it was released, such as "Q2 2026".
variantsEach size and quantisation you can install.

Variant fields

FieldWhat it is
id, label, is_defaultThe variant's full id, its size label, and whether it's the quant Pendra recommends for that size.
capabilitiesWhat this exact variant can do. This is the list to read: a small size can lack tools, for example.
parameter_size, quantization, bits_per_weightSize and quantisation. More bits per weight is closer to the original model.
architecturesChat models. Any of dense, moe, hybrid or diffusion. Check with includes(), as a size can be several.
architectureOne of architectures, for display only.
active_parametersMixture-of-Experts sizes. Parameters used per token, such as "4B".
original_weightsThe repository the model was quantised from, so you can read its own card and licence.
disk_sizeTotal download size in bytes.
estimated_vram_bytesRoughly the GPU memory needed to run it fully on the GPU, including context. Macs and other shared-memory machines can need more.
kv_bytes_per_tokenMemory each token of context adds. 0 for image and most embedding and reranking models. Use estimated_vram_bytes to judge fit.
gguf_url, gguf_sha256, gguf_size_bytesThe model file and its checksum. Very large models list several files in gguf_parts instead.
task, installable_viaThe model's job, and where you can install it from: dashboard, cli or both.
reasoning, default_thinking, reasoning_controlsAs on the live list. A variant's reasoning can be none where it never thinks.

Check for changes

The catalogue changes rarely. To poll it cheaply, send the ETag from your last reply as If-None-Match. You get a 304 with no body until something changes.

curl https://api.pendra.ai/api/v1/catalogue \
  -H 'If-None-Match: "d5f3...a91b"'
# 304 Not Modified, with an empty body, when nothing has changed

Reasoning controls

reasoning_controls says which thinking settings a model responds to, before you send anything. It's on each live model and each catalogue variant.

"reasoning_controls": {
  "mandatory": false,
  "toggle": true,
  "default_enabled": true,
  "supported_efforts": ["low", "high", "max"],
  "default_effort": null,
  "effort_aliases": { "none": "none", "minimal": "none", "medium": "low", "xhigh": "max" },
  "budget": true
}
FieldWhat it is
mandatorytrue when the model always thinks.
toggletrue when "enable_thinking": false or "reasoning_effort": "none" turns thinking off.
default_enabledWhether it thinks when the request doesn't say. Send "enable_thinking": true or any effort to turn it on.
supported_effortsThe reasoning_effort levels the model has, least to most. [] when it has none of its own.
default_effortThe level used when you don't send one, or null.
effort_aliasesEvery other effort word and the level it lands on. "none" turns thinking off, and null means the word changes nothing. The default thinking budget still follows the word you send.
budgettrue when a thinking budget works on this model.

In the example, "medium" thinks like "low" and "xhigh" like "max". The last four fields are null while they aren't known for a model.

Will it fit my GPU?

POST /api/v1/catalogue/fit checks every catalogue variant against your GPU memory at once, using the same rules as your worker. It needs the models:read permission.

curl -X POST https://api.pendra.ai/api/v1/catalogue/fit \
  -H "Authorization: Bearer pdr_sk_..." \
  -H "Content-Type: application/json" \
  -d '{
    "devices": [{"total_bytes": 85899345920}, {"total_bytes": 85899345920}],
    "free_disk_bytes": 500000000000,
    "model_id": "gemma4"
  }'

{ "data": { "gemma4:12b-q4_k_m": "fits", "gemma4:26b-ud-q4_k_m": "partial", "gemma4:31b-q4_k_m": "wont_fit" } }
FieldWhat it is
devicesOne entry per GPU, with total_bytes. For Apple Silicon and other shared-memory machines, add "memory_kind": "unified" and system_memory_bytes.
free_disk_bytesOptional. A variant bigger than this is wont_fit.
model_idOptional. Answer for one model only.
VerdictMeans
fitsRuns fully on the GPU with room to spare.
tightRuns fully on the GPU, using most of its memory.
partialPart of it runs on the CPU. It works, more slowly.
wont_fitYour worker would decline it, or it doesn't fit the disk.
unknownNot enough information, such as a worker with no GPU.

It's a guide. It can't see what your worker already has loaded.

Naming a model

A model id is its name, size and quantisation, such as qwen3.6:27b-q4_k_m. A model with no size is just the name and quantisation, such as bge-m3-q4_k_m. A ud- quantisation is a separate build that gives more bits to the layers that matter most.

You can leave the quantisation off and send qwen3.5:2b. What that does depends on what you have installed:

You sendYou have installedResult
qwen3.5:2b-q8_0That quantisationServed by it, never by another.
qwen3.5:2bOne quantisation of the 2BServed by it.
qwen3.5:2bTwo or more400 model_ambiguous, listing the exact names.
qwen3.5More than one size400 model_ambiguous, listing the sizes.
qwen3.5:2bNothing404 with the command to install it.
  • Only online, approved workers count, and only models with Serving on. To keep a short name working with several quantisations installed, turn Serving off on the ones you don't want.
  • Installing a second quantisation warns you first, in the console, the CLI and the install response's install_notice.
  • Some ids have changed, such as qwen3.8:27b-q6_k to qwen3.8:27b-ud-q6_k. Old ids still work, except in an encrypted request, which gets a 400 naming the id to use.