Learning resourcesReviewed · OpenRouter

OpenRouter Distillation Guide

OpenRouter’s Distillation guide is a reference for developers collecting model outputs for training, but its permission labels still require checking against the relevant licences. It explains the Distillable model filter and an API routing restriction for text distillation; it does not provide a model-training pipeline.

Researched 24 Nov 2026

In short.

OpenRouter’s Distillation guide helps developers choose models for training-data generation, but its best-effort permission metadata does not establish rights for every use. It documents a catalogue filter and a request-level routing restriction, with examples for several programming environments. It is useful for selecting sources of training text, while dataset preparation, model training, costs and downstream results remain outside its coverage. No examples were executed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage is the complete selected page at [https://openrouter.ai/docs/cookbook/evaluate-and-optimize/distillation.md], including its best-effort licensing notice, client examples and incomplete sample response. The linked documentation index, model catalogue, provider-routing guide, model overview and underlying model or provider terms are excluded. No code or API request was executed; routing behaviour, current eligibility, compatibility and downstream training outcomes remain untested.

The overview

Identity

This OpenRouter documentation page explains how to find models whose authors permit using generated text to train other models. The original page is [https://openrouter.ai/docs/cookbook/evaluate-and-optimize/distillation.md]. Its subject is permission-aware model selection, rather than the mechanics of training a smaller model.

Assessment

The guide provides a concrete way to apply a text-training permission requirement when choosing models and making API requests. Its usefulness depends on OpenRouter’s metadata and the terms governing the intended use. It offers implementation guidance, but no independent evidence of metadata accuracy, routing reliability or successful downstream training.

Users

The intended users include developers collecting generated training examples, teams building smaller specialist models, and organizations applying restrictions across API requests. Beginners get a short explanation of distillation. Developers get parameter names and client examples, although they must supply their own dataset preparation, training and evaluation procedures.

Capabilities

The page describes a Distillable catalogue filter, the is_trainable_text permission indicator, and the enforce_distillable_text routing parameter. It supplies TypeScript SDK, TypeScript fetch, Python, cURL and Go examples. These features help select models for generating training text; the page does not describe dataset storage, fine-tuning jobs or trained-model deployment.

Using it

Requirements

The programmatic examples require an OpenRouter API key, a model identifier and a suitable client environment. The TypeScript SDK example imports @openrouter/sdk, Python uses requests, and Go uses standard-library HTTP and JSON packages. Supported runtime and package versions, account prerequisites, quotas and required credit balances are not specified.

Mechanism

OpenRouter says is_trainable_text identifies models whose authors explicitly permit text distillation. Setting provider.enforce_distillable_text to true in an HTTP request restricts routing to eligible models. The TypeScript SDK expresses this as responsesRequest.provider.enforceDistillableText.

The documented behaviour is to return an error when no eligible model is available for the request. The page does not specify an error code, response schema or default enforcement value, so an implementation should set the parameter explicitly.

Setup

For manual discovery, the page points to the filtered catalogue at [https://openrouter.ai/models?distillable=true]. For API use, its examples send a model identifier and input to [https://openrouter.ai/api/v1/responses], authenticate with an API key, and enable the restriction inside the provider object.

An implementation also needs handling for requests with no eligible model. The page does not supply a complete application, dependency installation instructions or a training environment.

Example

The examples request an explanation of quantum computing from meta-llama/llama-3.1-70b-instruct with the distillation restriction enabled. This illustrates collecting a teacher model’s response for possible later training; it does not demonstrate training a student model.

The embedded response includes generated text and response metadata, but the captured JSON ends before its closing structure. It is an incomplete response illustration, and neither the request nor its output was independently executed or verified.

Assessment & evidence

Limitations

The documented restriction concerns text distillation. Permissions for images, audio or other outputs are not established. The page also leaves error details, metadata update frequency and current eligible-model availability unspecified.

There are no dataset-quality procedures, training recipes, benchmarks or measurements of downstream model performance. The sample output does not demonstrate that a resulting dataset would be accurate or suitable for a particular training objective.

Reasoning

The guide’s practical value is making a training-permission requirement explicit in each generation request. This could reduce reliance on manual catalogue choices, although that benefit is an inference from the documented mechanism rather than a measured result. Its fit is strongest when a team already has a training workflow and needs a way to constrain its sources of generated text.

Alternatives

Within the page, the main choice is between manually finding candidates with the catalogue filter and enforcing eligibility in API requests. Manual discovery helps with model selection; request-level enforcement applies the documented restriction during generation. The SDK and direct HTTP examples are different interfaces to the same restriction. Competing services and other distillation methods are not assessed.

Evidence

The evidence is OpenRouter’s own Distillation documentation, including its licensing warning, parameter description, client examples and partial response illustration. It supports statements about documented behaviour. It does not supply independent execution results, the underlying model terms or evidence that a distillation project succeeded.

Access & freshness

Costs

The page provides no API prices, free allowances, charges for the routing restriction or model-training costs. Per-request spending and the budget for collecting a dataset are unknown. It supplies no basis for estimating the compute cost or savings of a resulting smaller model.

Rights

The page warns that model providers and creators may restrict training on their outputs. OpenRouter describes its distillation information as best effort and tells users to verify the specific licence terms for their use case. A positive permission label therefore does not establish that every intended training use is permitted.

The page does not reproduce the governing terms for its example model or state a redistribution licence for the documentation and sample code. Permission concerning generated text should not be treated as evidence of rights to model weights or other materials.

Freshness

The supplied page capture is dated 24 November 2026. The page itself states no publication date, last-update date or SDK version. The example model identifier does not establish its current availability or permission status, and compatibility with current clients has not been assessed.

Actions

Before collecting training text, check the applicable model and provider terms for the intended use, identify eligible candidates, and enable the restriction explicitly in generation requests. Plan how the application will handle an unavailable eligible model.

Check current pricing and client compatibility before budgeting or implementation. Dataset quality checks, student-model training and evaluation need separate plans because this guide does not cover them.

Evidence for this report

selected-page.txtselected · checked 2026-11-24