Why Distillation Compliance Matters
When you use model outputs to train or fine-tune other models, you need to ensure you have permission to do so. Using outputs from models that prohibit distillation could violate terms of service agreements and potentially expose you to legal liability. OpenRouter tracks which models allow their outputs to be used for training purposes through theis_trainable_text property. Models where the author has explicitly allowed text distillation are marked as distillable.
Finding Distillable Models on the Model Page
The easiest way to find models that allow distillation is to use the Distillable filter on the Models page.- Navigate to the Models page with the distillable filter enabled
- The Distillable filter in the filter panel will be set to Yes, showing only models that allow distillation
Using the Routing Parameter
For programmatic control, you can use theenforce_distillable_text parameter in your API requests. When set to true, OpenRouter will only route your request to models that allow text distillation.
When
enforce_distillable_text is set to true, the request will only be routed to models where the author has explicitly enabled text distillation. If no distillable models are available for your request, you’ll receive an error.
Example: Enforcing Distillable Models
Use Cases
The distillable filter is particularly useful for:- Building training datasets: When collecting model outputs to train or fine-tune your own models, ensure you only use outputs from models that permit this use.
- Distillation pipelines: When creating smaller, specialized models from larger teacher models, filter for models that allow their outputs to be used for training.
- Compliance workflows: Organizations with strict compliance requirements can enforce distillation policies programmatically across all API requests.
Related Documentation
- Provider Routing - Learn more about the
enforce_distillable_textparameter and other provider routing options - Models - Browse all available models and their capabilities