# Can I use a Hugging Face model commercially?

**Short answer:** An Apache-2.0 model, deployed commercially: Yes. A Llama 3.1 model: Yes. An OpenRAIL-M model (Stable Diffusion family): Yes.

Each model card states its own license. Pass the model URL as source_url and Rightshold reads the declared license.

## An Apache-2.0 model, deployed commercially — Yes

License: [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0) (`Apache-2.0`, curated)

- Every use you described is granted by Apache 2.0, and nothing you described is prohibited.

Duties: attribution, license_notice, state_changes
## A Llama 3.1 model — Yes

License: [Llama 3.1 Community License Agreement](https://www.llama.com/llama3_1/license/) (`LicenseRef-Llama-3.1-Community`, curated)

- Every use you described is granted by Llama 3.1 Community, and nothing you described is prohibited.

Duties: attribution, license_notice, acceptable_use_policy, model_name_prefix, user_threshold
## An OpenRAIL-M model (Stable Diffusion family) — Yes

License: [CreativeML Open RAIL-M License](https://huggingface.co/spaces/CompVis/stable-diffusion-license) (`LicenseRef-CreativeML-OpenRAIL-M`, curated)

- Every use you described is granted by CreativeML OpenRAIL-M, and nothing you described is prohibited.

Duties: license_notice, state_changes, use_restrictions, pass_on_restrictions

## Context
- Fine-tunes inherit the base model's license; check the base model named on the card.

## Sources
- [Hugging Face: licenses](https://huggingface.co/docs/hub/repositories-licenses)

## Check it yourself (free, no key)
```json
{
  "tool": "check_license",
  "arguments": {
    "license": "Apache-2.0",
    "intended_use": {
      "commercial_use": true,
      "deployment": true
    }
  }
}
```
REST: POST https://www.rightshold.com/v1/licenses/check

_Computed from Rightshold's license profiles; not legal advice. Updated 2026-10-19. JSON: https://www.rightshold.com/answers/can-i-use-a-hugging-face-model-commercially.json_