Models & Aliases

Curated aliases, listing models, the alias echo guarantee, and the deprecation lifecycle.

Curated aliases only

model in any request must be a curated alias from the catalogue. A model ID not listed in the catalogue (e.g. unlisted-model) is rejected:

404 not_found_error
code: model_not_found
param: model

There is no pinning to a provider id and no way to bypass the catalogue.

Aliases are visible in the portal under Models (with per-model pricing and capabilities), or programmatically via GET /v1/models.

Listing available models

GET /v1/models returns every enabled alias your key can call — as a model card with OpenAI and OpenRouter fields and per-unit prices (full field list: List Models):

curl https://api.<domain>/v1/models \
  -H "Authorization: Bearer $TOKENFACTORY_API_KEY"
{
  "object": "list",
  "data": [
    {
      "id": "qwen/qwen3-embedding-8b",
      "name": "Qwen3 Embedding 8B",
      "object": "model",
      "created": 1756684800,
      "owned_by": "Token Factory",
      "architecture": { "modality": "text->embeddings", "input_modalities": ["text"], "output_modalities": ["embeddings"] },
      "top_provider": { "is_moderated": false }
    }
  ]
}

The alias echo guarantee

Every JSON response echoes the alias you sent in model — independent of the internal serving model ID:

{
  "model": "google/gemma-4-31b-it",
  "provider_metadata": {
    "provider": "openai"
  }
}
  • model — your alias, byte-identical.
  • provider_metadata.provider — the serving provider. The public model ID stays unchanged.

The same values ride in the X-TF-Model and X-TF-Provider response headers on every response (JSON, streams, and audio bodies), so streaming and binary clients get one code path.

Deprecation lifecycle

PhaseBehaviour
ActiveServed normally.
Inside deprecation windowServed normally and carries provider_metadata.deprecation plus the X-TF-Deprecation: sunset=<RFC3339>; replacement=<alias> response header.
After sunsetRejected: 410 not_found_error, code: model_deprecated, message names the replacement.
{
  "provider_metadata": {
    "provider": "openai",
    "deprecation": {
      "alias": "google/gemma-4-31b-it",
      "sunset": "2026-12-01T00:00:00Z",
      "replacement": "openai/gpt-oss-20b",
      "message": "Use openai/gpt-oss-20b after the sunset date."
    }
  }
}

Clients should treat the header / provider_metadata.deprecation as the signal to migrate — the alias keeps working until sunset.

We use strictly necessary cookies to record your choice and run this site. We do not use cookies for advertising or tracking. See the Cookie Policy.