Standard software contract templates do not cover the risks peculiar to AI projects. An AI company needs to add specific clauses — on training restrictions, liability for hallucination, and the discontinuation of models — across five categories of core contract.

The AI development agreement: eight core clauses

Clause list

No.ClauseCore point
1Ownership of intellectual propertyAllocation of rights in the model architecture, training parameters and derivative works
2Data ownershipAllocation of rights in customer data, training data and model output
3Service levelsDefinition of model accuracy, response time and availability
4Data privacy and securityRequirements for processing, storage, transmission and destruction
5Infringement liabilityAllocation of liability for infringing output, data leakage and algorithmic discrimination
6Discontinuation and retirementProvision for model updates, discontinuation and replacement
7Regulatory undertakingsCompliance with the generative AI measures and other regulations
8AcceptanceDeliverables, acceptance procedure and handling of defects

Key risk points

Liability for hallucination: an AI model may produce incorrect information (“hallucination”) and cause loss to the user. The development agreement must address:

Disclosure of API dependencies: in a 2025 case before the Shenzhen Intermediate People’s Court, the core functionality of the software called a non-open-source external API without disclosing the dependency, and the source code was not delivered. The court ordered rescission of the agreement, repayment of RMB 300,000 and compensation for loss.

The model licence: five key restrictions

RestrictionDescriptionTypical case
Commercial authorisationWhether commercial use is permittedPermitted under Apache 2.0; restricted under some licences
Monthly active user thresholdA separate application is required above the thresholdLlama 3 requires an application to Meta above 700 million monthly active users
Competing-product restrictionTraining competing models is prohibitedExpressly prohibited under Llama 3
Naming of derivativesNaming rules apply to derivative modelsLlama derivatives must carry the “Llama” name
Background IPScope of the licence over the supplier’s background IPTerm and assignability must be specified

The data processing agreement: eleven mandatory clauses

The 2025 model text of the Data Processing Services Contract issued by the National Data Administration and the State Administration for Market Regulation, together with Article 28 of the GDPR.

Mandatory clause list

No.ClauseCore requirement
1Purpose and termThe purpose, scope and term of processing must be specified
2Subject matterThe type, category and volume of data must be listed
3Security measuresEncryption, access control and audit logging
4Personnel securityConfidentiality obligations of personnel with access
5Sub-processingNo sub-processing without consent
6Return and deletionWritten confirmation of deletion within 30 days of termination
7Breach notificationImmediate notification of any leakage
8Cross-border transferHandled in accordance with the cross-border data rules
9LiabilitySpecific performance, remediation and compensation
10Audit rightsThe controller may audit the processor
11Assistance with data subject rightsAssistance in responding to requests from data subjects

API terms of use: nine core clauses

ClausePoint
Scope of useCall scope, quotas and call frequency
AuthenticationAPI key, OAuth 2.0 and other methods
Service levelsAvailability, response time and service credits
Content safetyContent moderation and filtering policy
Data useWhether the API provider may use customer data to train models
Intellectual propertyOwnership of API output
Limitation of liabilityLiability for loss arising from API failure or incorrect output
Termination and changeNotice period for discontinuation or change, and transitional arrangements
Regulatory undertakingsCompliance with applicable law

Important note: calling an offshore large-model API, such as OpenAI, to serve the domestic public requires not only API terms but also algorithm filing, large-model registration and a data export security assessment. In a Chongqing case, direct calls to an offshore API resulted in a fine of RMB 30,000 to 50,000.

The AI SaaS contract: ten special clauses

Traditional SaaS clauses do not cover the risks peculiar to AI. The following clauses must be negotiated separately:

ClauseRisk
Restriction on trainingA conventional “improvement of the services” clause may be read as permitting the use of customer data to train AI
Ownership of outputIntellectual property in AI-generated content
Liability for hallucinationCompensation for loss caused by incorrect output
ExplainabilityThe supplier should provide an explanation of model behaviour
Bias and discriminationMonitoring and mitigation of bias by the supplier
Discontinuation and replacementNotice period, data migration and replacement arrangements
Compliance certificationSOC 2, ISO 27001 and similar
Audit rightsAudit of processing activities
Data sovereigntyLocation of storage and restrictions on transfer
Cap on compensationSpecific provision for AI-related risk

Key risk

The “hidden training licence” trap: conventional SaaS wording such as “improve”, “build upon” or “enhance” may be construed as permitting the supplier to use customer data to train AI models. The customer must restrict this expressly in the contract.

Contract disputes

Case one: AI digital human development agreement (Shenzhen Intermediate People’s Court, 2025)

Facts: the core functionality of the software called a non-open-source external API; the dependency was not disclosed; the source code was not delivered. Decision: rescission of the agreement, repayment of RMB 300,000 and compensation for loss. The shareholder of the one-person company was held jointly liable.

Case two: AI server computing power sale (Beijing Huairou Court, 2026)

Facts: the buyer paid a deposit of RMB 3 million and then failed to pay the balance; the seller removed and resold the servers. Decision: the buyer was ordered to pay RMB 16.4 million.

Lessons

  1. API calls must be expressly provided for in the contract — source, open-source status and commercial authorisation.
  2. The obligation to deliver source code must be stated expressly.
  3. Liquidated damages and the scope of compensation must be specified.
  4. The shareholder of a one-person company must attend to the independence of company property.

Frequently asked questions

Q: Can a standard SaaS contract be used for an AI product? A: No. A standard SaaS contract lacks the AI-specific clauses on training restrictions, hallucination liability, discontinuation and bias monitoring. Used unchanged, it may permit customer data to be used to train the supplier’s models.

Q: When must a DPA be signed? A: Before processing begins. Where personal information is processed, a DPA is a statutory requirement rather than an optional clause.

Q: If we call a third-party API and our customer data is used for training, what can we do? A: The API terms should state expressly that the provider may not use customer data for model training. Anthropic and others have undertaken not to train on data of customers of paid services. Where training has already occurred, a claim for breach of contract may be brought.


This article is prepared on the basis of the 2025 model DPA text issued by the National Data Administration and the State Administration for Market Regulation, Article 28 of the GDPR and the judicial decisions referred to above. For assistance with the review or drafting of contracts for an AI company, please contact Geason Law Offices.

Geason Law Offices AI Industry Research Group | Reviewed by Ho Qianggao