Can I use a Hugging Face model commercially?
Last updated
TL;DR: 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 a2ally reads the declared license.
Is an Apache-2.0 model, deployed commercially allowed under Apache License 2.0?
Yes. Every use you described is granted by Apache 2.0, and nothing you described is prohibited.
License: Apache License 2.0 (Apache-2.0, curated)
Duties: attribution, license_notice, state_changes
Is a Llama 3.1 model allowed under Llama 3.1 Community License Agreement?
Yes. Every use you described is granted by Llama 3.1 Community, and nothing you described is prohibited.
License: Llama 3.1 Community License Agreement (LicenseRef-Llama-3.1-Community, curated)
Duties: attribution, license_notice, acceptable_use_policy, model_name_prefix, user_threshold
Is an OpenRAIL-M model (Stable Diffusion family) allowed under CreativeML Open RAIL-M License?
Yes. Every use you described is granted by CreativeML OpenRAIL-M, and nothing you described is prohibited.
License: CreativeML Open RAIL-M License (LicenseRef-CreativeML-OpenRAIL-M, curated)
Duties: license_notice, state_changes, use_restrictions, pass_on_restrictions
What else should I know?
- Fine-tunes inherit the base model's license; check the base model named on the card.
What are the sources?
How can I check it myself (free, no key)?
{
"tool": "check_license",
"arguments": {
"license": "Apache-2.0",
"intended_use": {
"commercial_use": true,
"deployment": true
}
}
}Computed from a2ally's license profiles; not legal advice. JSON · Markdown
Get a free API key in one call
No card and no email needed. 100 free credits; the license and policy checks stay free without a key.
curl -s -X POST https://www.a2ally.com/v1/accounts/signup -H "Content-Type: application/json" -d '{"accept_terms":true}'
export A2ALLY_API_KEY=rs_... # the api_key from the reply (shown once)
curl -s https://www.a2ally.com/v1/licenses/check -H "Authorization: Bearer $A2ALLY_API_KEY" \
-H "Content-Type: application/json" -d '{"license":"MIT","intended_use":{"commercial_use":true}}'
