{"id":"ai-bom-license-resolver","title":"AI-BOM License Chain Resolver for Hugging Face Models","description":"Walks the Hugging Face lineage of up to 10 models (base_model chain, training datasets; at most 30 nodes, 4 generations) and applies a curated, hash-pinned table of license clauses (Apache-2.0, MIT, CC-BY, CC-BY-NC, CC-BY-SA, OpenRAIL variants, Llama 2 / 3 / 3.1 / 3.2 / 3.3, Gemma, Mistral Research License) to each intended use: commercial or not, API, weights or on-prem, fine-tuning, monthly active users, jurisdiction, sensitive fields of use. Per use it returns ALLOWED, CONFLICT or UNDETERMINED with the conflicting nodes, the clause, a verbatim quote, and the license source URL and SHA-256; the unsatisfiable core comes from the hub's deterministic SAT/LRA solver, with no LLM. Unknown, custom, missing or unreadable licenses are UNDETERMINED, never ALLOWED. Not legal advice.","roi":"Tells you whether a model stack may be used for your stated use, names the conflicting model and clause, and ships a CycloneDX-style AI-BOM.","audience":"developer","channels":["x402","mcp","rapidapi","apify"],"endpoint":{"method":"POST","url":"https://agents.writerslogic.com/api/v1/ai-bom-license-resolver","path":"/api/v1/ai-bom-license-resolver","contentType":"application/json"},"price":{"amount":"0.50","currency":"USDC","network":"base","perCall":true,"failedCallsCharged":false},"inputSchema":{"type":"object","additionalProperties":false,"required":["models","uses"],"properties":{"models":{"type":"array","minItems":1,"maxItems":10,"items":{"type":"string","minLength":1,"maxLength":200},"description":"Hugging Face model repo ids (owner/name) used together in the system."},"datasets":{"type":"array","maxItems":10,"items":{"type":"string","minLength":1,"maxLength":200},"description":"Extra Hugging Face dataset repo ids; datasets named on the model cards are followed automatically."},"uses":{"type":"array","minItems":1,"maxItems":6,"items":{"type":"object","additionalProperties":false,"required":["commercial","distribution"],"properties":{"id":{"type":"string","minLength":1,"maxLength":40,"description":"Label echoed in the result; defaults to use-1, use-2, ..."},"commercial":{"type":"boolean","description":"Any commercial activity, revenue, or business operations connected to the use."},"distribution":{"type":"string","enum":["api","weights","on_prem"],"description":"api: hosted service, weights stay with you. weights: you redistribute model weights. on_prem: internal use only."},"fine_tune":{"type":"boolean","description":"You will fine-tune, merge, quantize or otherwise modify the models. Default false."},"monthly_active_users":{"type":"integer","minimum":0,"maximum":10000000000000,"description":"Monthly active users of your products and affiliates; compared with user-count thresholds such as Llama's 700 million. Required to evaluate those clauses."},"jurisdiction":{"type":"string","pattern":"^[A-Za-z]{2}$","description":"ISO 3166-1 alpha-2 country of the licensee's domicile or principal place of business, e.g. DE. Required for regional clauses."},"trains_other_models":{"type":"boolean","description":"Outputs of these models will train or improve a different model that is not a derivative of the same family (distillation). Default false."},"fields_of_use":{"type":"array","maxItems":4,"items":{"type":"string","enum":["medical_advice","law_enforcement_justice","military","automated_legal_decisions"]},"description":"Sensitive fields the use touches; checked against field-of-use clauses."}}},"description":"Intended uses to decide, each evaluated independently."},"dataset_terms":{"type":"string","enum":["advisory","binding"],"description":"advisory (default): a dataset license restriction yields UNDETERMINED because it is unsettled whether it binds trained weights. binding: treat it as binding and report CONFLICT."}}},"resultSchema":{"type":"object","properties":{"verdict":{"type":"string","enum":["ALLOWED","CONFLICT","UNDETERMINED"],"description":"Worst per-use verdict: CONFLICT, then UNDETERMINED, then ALLOWED. Unknown, custom, or missing licenses are never ALLOWED."},"confidence":{"type":"string","enum":["high","low"],"description":"Completeness of the rule evaluation, not legal certainty: low when any use is UNDETERMINED."},"deterministic":{"type":"boolean","description":"Always true: no LLM touches the verdict path."},"evidence":{"type":"array","items":{"type":"object","description":"Top sources behind the verdict: kind (license_clause, hf_api, license_text), url, sha256, node and verbatim quote for clauses. Full list in source_manifest."}},"summary":{"type":"string"},"next_step":{"type":"string"},"not_legal_advice":{"type":"string"},"uses":{"type":"array","items":{"type":"object","description":"id, verdict, confidence, conflicts[] (tier, nodes, clauses[{node, license, clause, ref, quote, source_url, source_sha256}], use_facts, unsat_core, minimal, cure), undetermined[] (code, node, detail), obligations[], by_model[{model, verdict}], solver_calls."}},"missing_license_nodes":{"type":"array","items":{"type":"object","description":"node, kind, reason, declared, license_file {url, sha256, bytes}."}},"license_mismatches":{"type":"array","items":{"type":"object","description":"A node whose declared license differs from its base model's; the base license terms still apply."}},"lineage":{"type":"object","description":"nodes (key, id, kind, depth, license status and id, source_url), edges (from, to, relation), truncations, limits."},"ai_bom":{"type":"object","description":"CycloneDX 1.6 style ML-BOM: components, licenses, dependencies."},"license_table":{"type":"object","description":"Table version, verification date, and for every license used: sources with URL and SHA-256."},"source_manifest":{"type":"array","items":{"type":"object","description":"url, kind, sha256, bytes, digest_basis, fetched_at for every source read."}},"partial":{"type":"object","description":"complete flag and the list of what is missing when an upstream read failed or a limit cut the lineage."},"solver":{"type":"object","description":"Solver name, version, and total solver calls."}}},"outputSchema":{"type":"object","properties":{"data":{"type":"object","properties":{"verdict":{"type":"string","enum":["ALLOWED","CONFLICT","UNDETERMINED"],"description":"Worst per-use verdict: CONFLICT, then UNDETERMINED, then ALLOWED. Unknown, custom, or missing licenses are never ALLOWED."},"confidence":{"type":"string","enum":["high","low"],"description":"Completeness of the rule evaluation, not legal certainty: low when any use is UNDETERMINED."},"deterministic":{"type":"boolean","description":"Always true: no LLM touches the verdict path."},"evidence":{"type":"array","items":{"type":"object","description":"Top sources behind the verdict: kind (license_clause, hf_api, license_text), url, sha256, node and verbatim quote for clauses. Full list in source_manifest."}},"summary":{"type":"string"},"next_step":{"type":"string"},"not_legal_advice":{"type":"string"},"uses":{"type":"array","items":{"type":"object","description":"id, verdict, confidence, conflicts[] (tier, nodes, clauses[{node, license, clause, ref, quote, source_url, source_sha256}], use_facts, unsat_core, minimal, cure), undetermined[] (code, node, detail), obligations[], by_model[{model, verdict}], solver_calls."}},"missing_license_nodes":{"type":"array","items":{"type":"object","description":"node, kind, reason, declared, license_file {url, sha256, bytes}."}},"license_mismatches":{"type":"array","items":{"type":"object","description":"A node whose declared license differs from its base model's; the base license terms still apply."}},"lineage":{"type":"object","description":"nodes (key, id, kind, depth, license status and id, source_url), edges (from, to, relation), truncations, limits."},"ai_bom":{"type":"object","description":"CycloneDX 1.6 style ML-BOM: components, licenses, dependencies."},"license_table":{"type":"object","description":"Table version, verification date, and for every license used: sources with URL and SHA-256."},"source_manifest":{"type":"array","items":{"type":"object","description":"url, kind, sha256, bytes, digest_basis, fetched_at for every source read."}},"partial":{"type":"object","description":"complete flag and the list of what is missing when an upstream read failed or a limit cut the lineage."},"solver":{"type":"object","description":"Solver name, version, and total solver calls."}}},"_provenance":{"type":"object","description":"C2PA-aligned manifest and W3C VC 2.0 (eddsa-jcs-2022) issued by the hub DID; verify at POST /api/v1/verify-provenance"}},"required":["data","_provenance"]},"example":{"models":["NousResearch/Hermes-3-Llama-3.1-8B","mistralai/Mistral-7B-Instruct-v0.2"],"uses":[{"id":"api-above-700m-mau","commercial":true,"distribution":"api","monthly_active_users":800000000},{"id":"api-below-700m-mau","commercial":true,"distribution":"api","monthly_active_users":50000000}]},"openapiOperation":{"operationId":"ai_bom_license_resolver","summary":"AI-BOM License Chain Resolver for Hugging Face Models","description":"Walks the Hugging Face lineage of up to 10 models (base_model chain, training datasets; at most 30 nodes, 4 generations) and applies a curated, hash-pinned table of license clauses (Apache-2.0, MIT, CC-BY, CC-BY-NC, CC-BY-SA, OpenRAIL variants, Llama 2 / 3 / 3.1 / 3.2 / 3.3, Gemma, Mistral Research License) to each intended use: commercial or not, API, weights or on-prem, fine-tuning, monthly active users, jurisdiction, sensitive fields of use. Per use it returns ALLOWED, CONFLICT or UNDETERMINED with the conflicting nodes, the clause, a verbatim quote, and the license source URL and SHA-256; the unsatisfiable core comes from the hub's deterministic SAT/LRA solver, with no LLM. Unknown, custom, missing or unreadable licenses are UNDETERMINED, never ALLOWED. Not legal advice.\n\nPrice: 0.50 USDC on Base (x402).","x-x402-price-usdc":"0.50","x-x402-amount":"500000","x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.50"}},"x-audience":"developer","x-sample-url":"https://agents.writerslogic.com/api/v1/samples/ai-bom-license-resolver","security":[{"x402":[]},{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["models","uses"],"properties":{"models":{"type":"array","minItems":1,"maxItems":10,"items":{"type":"string","minLength":1,"maxLength":200},"description":"Hugging Face model repo ids (owner/name) used together in the system."},"datasets":{"type":"array","maxItems":10,"items":{"type":"string","minLength":1,"maxLength":200},"description":"Extra Hugging Face dataset repo ids; datasets named on the model cards are followed automatically."},"uses":{"type":"array","minItems":1,"maxItems":6,"items":{"type":"object","additionalProperties":false,"required":["commercial","distribution"],"properties":{"id":{"type":"string","minLength":1,"maxLength":40,"description":"Label echoed in the result; defaults to use-1, use-2, ..."},"commercial":{"type":"boolean","description":"Any commercial activity, revenue, or business operations connected to the use."},"distribution":{"type":"string","enum":["api","weights","on_prem"],"description":"api: hosted service, weights stay with you. weights: you redistribute model weights. on_prem: internal use only."},"fine_tune":{"type":"boolean","description":"You will fine-tune, merge, quantize or otherwise modify the models. Default false."},"monthly_active_users":{"type":"integer","minimum":0,"maximum":10000000000000,"description":"Monthly active users of your products and affiliates; compared with user-count thresholds such as Llama's 700 million. Required to evaluate those clauses."},"jurisdiction":{"type":"string","pattern":"^[A-Za-z]{2}$","description":"ISO 3166-1 alpha-2 country of the licensee's domicile or principal place of business, e.g. DE. Required for regional clauses."},"trains_other_models":{"type":"boolean","description":"Outputs of these models will train or improve a different model that is not a derivative of the same family (distillation). Default false."},"fields_of_use":{"type":"array","maxItems":4,"items":{"type":"string","enum":["medical_advice","law_enforcement_justice","military","automated_legal_decisions"]},"description":"Sensitive fields the use touches; checked against field-of-use clauses."}}},"description":"Intended uses to decide, each evaluated independently."},"dataset_terms":{"type":"string","enum":["advisory","binding"],"description":"advisory (default): a dataset license restriction yields UNDETERMINED because it is unsettled whether it binds trained weights. binding: treat it as binding and report CONFLICT."}}},"example":{"models":["NousResearch/Hermes-3-Llama-3.1-8B","mistralai/Mistral-7B-Instruct-v0.2"],"uses":[{"id":"api-above-700m-mau","commercial":true,"distribution":"api","monthly_active_users":800000000},{"id":"api-below-700m-mau","commercial":true,"distribution":"api","monthly_active_users":50000000}]}}}},"responses":{"200":{"description":"Paid result with provenance","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"verdict":{"type":"string","enum":["ALLOWED","CONFLICT","UNDETERMINED"],"description":"Worst per-use verdict: CONFLICT, then UNDETERMINED, then ALLOWED. Unknown, custom, or missing licenses are never ALLOWED."},"confidence":{"type":"string","enum":["high","low"],"description":"Completeness of the rule evaluation, not legal certainty: low when any use is UNDETERMINED."},"deterministic":{"type":"boolean","description":"Always true: no LLM touches the verdict path."},"evidence":{"type":"array","items":{"type":"object","description":"Top sources behind the verdict: kind (license_clause, hf_api, license_text), url, sha256, node and verbatim quote for clauses. Full list in source_manifest."}},"summary":{"type":"string"},"next_step":{"type":"string"},"not_legal_advice":{"type":"string"},"uses":{"type":"array","items":{"type":"object","description":"id, verdict, confidence, conflicts[] (tier, nodes, clauses[{node, license, clause, ref, quote, source_url, source_sha256}], use_facts, unsat_core, minimal, cure), undetermined[] (code, node, detail), obligations[], by_model[{model, verdict}], solver_calls."}},"missing_license_nodes":{"type":"array","items":{"type":"object","description":"node, kind, reason, declared, license_file {url, sha256, bytes}."}},"license_mismatches":{"type":"array","items":{"type":"object","description":"A node whose declared license differs from its base model's; the base license terms still apply."}},"lineage":{"type":"object","description":"nodes (key, id, kind, depth, license status and id, source_url), edges (from, to, relation), truncations, limits."},"ai_bom":{"type":"object","description":"CycloneDX 1.6 style ML-BOM: components, licenses, dependencies."},"license_table":{"type":"object","description":"Table version, verification date, and for every license used: sources with URL and SHA-256."},"source_manifest":{"type":"array","items":{"type":"object","description":"url, kind, sha256, bytes, digest_basis, fetched_at for every source read."}},"partial":{"type":"object","description":"complete flag and the list of what is missing when an upstream read failed or a limit cut the lineage."},"solver":{"type":"object","description":"Solver name, version, and total solver calls."}}},"_provenance":{"type":"object","description":"C2PA-aligned manifest and W3C VC 2.0 (eddsa-jcs-2022) issued by the hub DID; verify at POST /api/v1/verify-provenance"}},"required":["data","_provenance"]}}}},"400":{"description":"Invalid request (no payment consumed)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}}}}}},"401":{"description":"Invalid X-API-KEY","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}}}}}},"402":{"description":"Payment required or invalid","content":{"application/json":{"schema":{"type":"object","description":"x402 v2 PaymentRequired (also base64 in the PAYMENT-REQUIRED header)","properties":{"x402Version":{"type":"integer"},"error":{"type":"string"},"code":{"type":"string"},"resource":{"type":"object"},"accepts":{"type":"array","items":{"type":"object"}},"extensions":{"type":"object"}}}}}},"502":{"description":"Upstream failure; the payment is released or not settled","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}}}}}}}},"links":{"docs":"https://agents.writerslogic.com/docs/ai-bom-license-resolver/","docsJson":"https://agents.writerslogic.com/docs/ai-bom-license-resolver.json","sample":"https://agents.writerslogic.com/api/v1/samples/ai-bom-license-resolver","openapi":"https://agents.writerslogic.com/openapi.json","catalog":"https://agents.writerslogic.com/api/v1/catalog","verifyProvenance":"https://agents.writerslogic.com/api/v1/verify-provenance","index":"https://agents.writerslogic.com/docs/index.json"}}