---
title: "How do open-weights labels and license filters work in the model catalog?"
answer: "Coolhand classifies model weights into three tiers: closed, open_permissive for OSI-compliant licenses, and open_restricted for community licenses with usage conditions. You can filter models in the catalog UI, via the list_inference_apis MCP tool using open_weights, or through the REST API using the weights_access query parameters to identify candidates for self-hosting and fine-tuning."
category: "Logs \u0026 API"
tags: ["model-catalog","open-weights","licensing","inference-apis","mcp","rest-api"]
published: 2026-11-29T14:17:30Z
updated: 2026-11-29T14:15:23Z
canonical_url: https://coolhandlabs.com/help/how-do-open-weights-labels-and-license-filters-work
index_url: https://coolhandlabs.com/help.md
---

# How do open-weights labels and license filters work in the model catalog?

Coolhand classifies model weights into three tiers: closed, open_permissive for OSI-compliant licenses, and open_restricted for community licenses with usage conditions. You can filter models in the catalog UI, via the list_inference_apis MCP tool using open_weights, or through the REST API using the weights_access query parameters to identify candidates for self-hosting and fine-tuning.

Coolhand tracks weights availability and licensing metadata across all models in the model catalog. This metadata enables engineering teams evaluating data residency, fine-tuning, or dedicated self-hosting to quickly determine whether a model's weights are downloadable and what legal terms apply.

## Weights access tiers

Every model in the catalog is assigned a `weights_access` status:

- **`open_permissive`**: The model weights are publicly available for download under an OSI-approved permissive open-source license, such as Apache-2.0 or MIT. These models permit self-hosting, fine-tuning, commercial deployment, and modification without proprietary use restrictions.
- **`open_restricted`**: The model weights are downloadable, but the accompanying license imposes custom or community conditions. Common examples include the Llama Community License, which places limits on commercial monthly active users and restricts using outputs to train other models.
- **`closed`**: The model weights are proprietary and cannot be downloaded or self-hosted. The model can only be accessed through hosted API endpoints provided by the vendor or cloud gateways.
- **`null` (Unknown)**: The model's weights status has not yet been cataloged or verified. Unclassified models are excluded from open-weights query filters.

### The weights license field

For models with open weights (`open_permissive` or `open_restricted`), the `weights_license` field contains the specific license identifier, such as `Apache-2.0`, `MIT`, or `Llama 3.3 Community License`. For closed models or models with unverified status, `weights_license` is `null`.

## Hosted API endpoints versus self-hosting

The `weights_access` attribute describes the licensing of the underlying model weights, not how a specific catalog entry is hosted.

Many cloud providers and inference gateways host open-weights models (such as Llama, DeepSeek, or Mistral) alongside proprietary models. When you send requests to these hosted endpoints, you pay per-token inference rates.

A status of `open_permissive` or `open_restricted` confirms that the model's raw weights can also be acquired directly for:
- **Self-hosting**: Deploying the model on your own infrastructure or dedicated GPU instances to meet strict data residency or compliance boundaries.
- **Fine-tuning**: Training domain-specific adapters or specialized weights on private datasets.
- **Volume economics**: Replacing high-throughput hosted API calls with fixed-cost dedicated compute once traffic scale warrants it.

When planning self-hosted deployments, verify the terms recorded in `weights_license` against your intended application, especially for `open_restricted` models.

## Filtering in the catalog UI

In the web interface under the model catalog:
- Use the **Weights Access** filter to switch between all models, open-weights models, or closed models.
- Select specific license categories to narrow results to permissive OSI models or community-licensed variants.
- Each model card and detail page displays an access badge indicating its tier alongside the named license in `weights_license`.

## Querying over the REST API

You can filter models by weights access and license using the public endpoint:

`GET /api/v2/inference_apis`

Authentication is optional for public reads. If you have configured keys, you can provide your key in the `X-API-Key` or `Authorization: Bearer` header (see [How do I create and manage multiple public API keys for different environments?](https://coolhandlabs.com/help/how-do-i-manage-multiple-public-api-keys-for-different-environments.md)).

### Filter parameters

- **Specific weights access**: Filter by exact status:
  ```http
  GET /api/v2/inference_apis?q[weights_access_eq]=open_permissive
  ```
  ```http
  GET /api/v2/inference_apis?q[weights_access_eq]=open_restricted
  ```
  ```http
  GET /api/v2/inference_apis?q[weights_access_eq]=closed
  ```

- **All open-weights models**: Combine both open tiers using array syntax:
  ```http
  GET /api/v2/inference_apis?q[weights_access_in][]=open_permissive&q[weights_access_in][]=open_restricted
  ```

- **Filter by license name**: Query the `weights_license` field directly:
  ```http
  GET /api/v2/inference_apis?q[weights_license_eq]=Apache-2.0
  ```

- **Exclude deprecated models**: The REST endpoint includes deprecated models by default. To return only active models, pass `include_deprecated=false`:
  ```http
  GET /api/v2/inference_apis?q[weights_access_eq]=open_permissive&include_deprecated=false
  ```

### Example response payload

```json
[
  {
    "id": 142,
    "source_api": "deepseek",
    "model": "deepseek-chat",
    "display_name": "DeepSeek-V3",
    "provider": "deepseek",
    "model_type": "llm",
    "size_tier": "extra_large",
    "context_window": 65536,
    "max_output_tokens": 8192,
    "per_input_cost_per_token": 0.00000014,
    "per_output_cost_per_token": 0.00000028,
    "weights_access": "open_permissive",
    "weights_license": "Apache-2.0",
    "available_for_bakeoff": false,
    "deprecated_at": null,
    "deprecation_notes": null
  }
]
```

To fetch a single model's complete record including history and comparison models, request the model by slug at `GET /api/v2/inference_apis/{slug}`.

## Querying via MCP tools

If you interact with Coolhand from an AI agent or editor using the Model Context Protocol (MCP), call the `list_inference_apis` tool with weights parameters:

- **Filter for any open-weights model**: Set `open_weights: true` (returns models with either `open_permissive` or `open_restricted` access).
- **Filter for closed models**: Set `open_weights: false` (returns `closed` models).
- **Filter by exact access tier**: Set `weights_access: "open_permissive"`, `weights_access: "open_restricted"`, or `weights_access: "closed"`.

Example MCP tool call:

```json
{
  "name": "list_inference_apis",
  "arguments": {
    "open_weights": true,
    "min_context_window": 32768
  }
}
```

Unlike the REST API, the MCP tool excludes deprecated models by default. You can pass `"include_deprecated": true` if you need to query retired models.

For more details on request logging and model metadata across providers, see [What every field on an LLM request log means](https://coolhandlabs.com/help/llm-request-log-fields.md) and [LLMs and System One models: what's different, and when to use which](https://coolhandlabs.com/help/llms-vs-system-one-models.md).


---

Related:
- [How do I claim, complete, or dismiss an optimization using the REST API or MCP?](https://coolhandlabs.com/help/how-do-i-claim-complete-or-dismiss-an-optimization.md)
- [What does the 'aliased model' label mean on my LLM request logs?](https://coolhandlabs.com/help/what-does-the-aliased-model-label-mean.md)
- [How do I list and search optimizations using the REST API?](https://coolhandlabs.com/help/list-and-search-optimizations-api.md)
- [How do I calculate and retrieve realized cost savings using the API?](https://coolhandlabs.com/help/how-to-retrieve-realized-cost-savings-api.md)

[← All help articles](https://coolhandlabs.com/help.md) · [Logs & API](https://coolhandlabs.com/help/category/logs-and-api.md)
