After deciding to outsource AI development, many companies stall at the contract stage. What will be delivered, who owns what gets built, and whether payment is due if the accuracy falls short of expectations. If you use a standard system development contract template as-is, the AI-specific parts are left blank.
Below, I will first organize the forms of contract (ukukei contract for work and juninine contract for quasi-mandate) under the Civil Code, then cover in order: six items to decide in an outsourcing contract, rights to deliverables, additional items when incorporating generative AI, and rules for acceptance and termination mid-project. Legal conclusions vary with individual circumstances, so what is written here is an organization to help the ordering party discuss issues with their legal staff or lawyers.
The decision between in-house development and outsourcing is covered in Should AI development be in-house or outsourced?, and the process from request to operation in The AI development process. This article deals only with what to write in the contract for those who have decided to outsource.
First, decide the form of the AI development outsourcing contract
Under the Civil Code, a contract for work (ukukei) is formed when "one party promises to complete a certain work and the other party promises to pay remuneration for the results of that work" (Article 632). Remuneration is paid at the same time as delivery of the work product (Article 633). A quasi-mandate (juninine) is the delegation of affairs that are not juristic acts (Article 656), and the party receiving it bears the duty to handle the affairs with the care of a good manager (Article 644). Even under a quasi-mandate, it is possible to agree to pay remuneration for results (Article 648-2).
| Contract form | What is paid for | Suitable situations | Notes for the ordering party |
|---|---|---|---|
| Contract for work | Completion of the work | Parts where specifications and acceptance criteria are fixed | If the criteria for "completion" cannot be written into the contract, disputes arise at acceptance |
| Quasi-mandate (paying for effort) | Time or working hours | Exploratory stages, development without fixed acceptance criteria | Completion is not guaranteed. Decide how progress will be reported |
| Quasi-mandate (paying for results) | Agreed results | When results can be defined but the method is left to the developer | A definition of results as rigorous as in a contract for work is needed |
The table is my own organization. It is hard to fit AI development into a contract for work because performance is difficult to promise before building. The "Contract Guidelines on the Utilization of AI and Data" published by METI in June 2018, recognizing that the content and performance of trained models often cannot be specified at the time of contract, proposed an "exploratory staged" approach divided into assessment, PoC, development, and additional training stages. In its model contracts, both the PoC-stage introduction verification agreement and the development-stage software development agreement are quasi-mandate type, and it also presents drafts in which the developer bears no obligation to complete deliverables or guarantee performance.
These guidelines were written with machine learning in mind and do not directly anticipate today's development, which incorporates off-the-shelf large language models into business operations. Even so, in my view, the point that you cannot know whether the acceptance criteria will be met until you build it is the same, and the idea of splitting the contract by stage can be used as-is. How to run a PoC is covered in What is an AI PoC?.
Six items to decide in the outsourcing contract
A June 2018 newsletter from Nishimura & Asahi (authored by a member of the METI guideline study group) lists as common issues in AI software development contracts: raw data provided by the ordering party, feasibility of completion and quality, ownership of intellectual property rights and conditions of use, and allocation of responsibility. Translated into the ordering party's terms, these become the following six items.
| Item | What to decide | If left blank |
|---|---|---|
| Scope of work | What the contractor does and what the ordering party does. Who prepares data and who makes business decisions | Every missing task becomes an additional estimate |
| Deliverables | Which of code, prompts, evaluation data, procedure documents, and design rationale will be handed over | Things remain that cannot be fixed without the contractor |
| Acceptance criteria and acceptance | Evaluation data, how much must pass for acceptance, who judges | You cannot decide whether to accept the deliverables |
| Rights and conditions of use | Ownership of copyright, the extent to which the ordering party may modify and keep using it, the extent to which the contractor may reuse it elsewhere | Permission is needed for every modification or migration |
| Handling of data | Scope of data provided, prohibition of use beyond the purpose, return and deletion after completion | You cannot trace how the data you provided was used |
| Responsibility and termination | Rules for when development fails, when third-party rights are infringed, and for termination mid-project | Disputes are decided only by default Civil Code rules |
For the deliverables column, if the development involves training a model, candidates are the trained model, training program, inference program, trained parameters, and training dataset listed in the same newsletter. For development incorporating an off-the-shelf model, code, prompts, and evaluation data are central. In either case, I recommend including evaluation data among the items handed over. It leaves the ordering party with a means to verify output quality after the engagement ends.
For rights to deliverables, write ownership and conditions of use separately
For programs built under outsourcing, it is best to assume that copyright does not transfer to the ordering company unless the contract says so. Article 15, Paragraph 2 of the Copyright Act provides that for programs created by employees as part of their duties at an employer's initiative, the employer is the author unless otherwise provided by contract or work rules. For code written by the contractor's employees, the contractor is the author.
When receiving a transfer, there is another provision. In a contract transferring copyright, if the rights of adaptation (Article 27) and the rights concerning use of derivative works (Article 28) are not specifically stated as objects of the transfer, these rights are presumed reserved by the transferor (Article 61, Paragraph 2). If you are receiving a transfer, the contract should state that the rights under Articles 27 and 28 are included in the transfer.
However, it is not always best to take all rights. METI's model contracts show a framework for adjusting the interests of the ordering and development parties by deciding not only ownership but also detailed conditions of use for deliverables. The same newsletter also notes that there is demand for reuse of trained models, and that in early-stage development there is a tendency for clauses to "discuss" ownership of rights and distribution of profits.
In my view, what the ordering party really needs is the ability to modify and keep using it in-house, and the ability to switch to another vendor. Demanding transfer of the contractor's own components and generic mechanisms raises the estimate or prolongs negotiations. In some cases, leaving ownership with the contractor but writing a license allowing the ordering party to modify and keep using it settles things faster. My summary of how copyright applies to text and images generated by AI is in Generative AI and copyright.
Additional items for development incorporating generative AI
In development incorporating a large language model API, there is a contract with one more company besides the contractor: the company providing the API. If this is not settled, once operations begin you will be unsure about the billing addressee and the handling of data.
| What to decide | Content |
|---|---|
| Name on the API contract | Whether to contract under the client's name or have the vendor contract for everything. I recommend putting anything used in production under the client's name, because you can keep it running even after ending the outsourcing. |
| Who bears usage costs | Who pays how much during development and in production, and who to notify when the limit is exceeded. |
| Data that may be sent | Whether to send personal information or customer information, and if so, how the destination's terms handle training and retention. |
| Model changes | When the provider updates or discontinues a model, who verifies it and who bears the cost. |
The destination's terms differ by service. For example, OpenAI states that data sent to the API on or after March 1, 2023 is not used for training unless the user explicitly opts in. On the other hand, logs for monitoring abuse are retained by default for up to 30 days. It is a good idea to have the vendor write out these points for the services they plan to use before the contract.
On February 18, 2025, the Ministry of Economy, Trade and Industry published the "Contract Checklist for AI Use and Development." It summarizes the points users of AI services should verify when contracting, and is intended not only for legal departments and outside counsel but also for business division staff. It also includes basic knowledge for considering the scope of use of provided data and the conditions for using AI-generated output. Once a draft outsourcing contract is ready, you should at least check it against the items on data handling and generated output.
Acceptance and rules for stopping midway
Matters not written in the contract are governed by the principles of the Civil Code. Those principles differ between a work contract (ukeoi) and a quasi-mandate (juninin).
| Situation | Work contract (ukeoi) | Quasi-mandate (juninin) |
|---|---|---|
| Deliverable does not match the contract | You can demand cure of the nonconformity, such as repair (Article 559 applies Article 562 on sales mutatis mutandis). If you do not notify within one year of learning of the nonconformity, you lose the right to demand cure or a price reduction (Article 637) | Since completion is not promised, the question is whether due care of a prudent manager was exercised (Article 644) |
| Client stops midway | The client may rescind at any time before completion of the work by compensating for damages (Article 641). If the client benefits from the part already done, they pay remuneration proportional to that benefit (Article 634) | Either party may rescind at any time. Rescission at a time disadvantageous to the other party requires compensation for damages unless there is an unavoidable reason (Article 651) |
| Defects caused by the client's instructions | Nonconformity caused by materials or instructions provided by the client is, in principle, not the contractor's responsibility (Article 636) | The instructions themselves are treated as part of the handling of the affairs |
This table summarizes the key points of the articles as I see them, and most can be changed by different provisions in the contract. Article 636 is the one that matters in AI development. If the quality of data provided by the client prevents the model from reaching the required accuracy, it is hard to hold the vendor responsible even under a work contract. This is one reason to decide in the scope of work who prepares the data.
The rules for stopping midway become lighter if the contract is split into phases. When the PoC contract ends, you simply decide whether to proceed to the next phase or not. I recommend writing "conditions for proceeding to the next phase" into each phase's contract. If you decide upfront that you will not proceed unless the conditions are met, discussions about whether to continue become shorter.
Order for putting the contract together internally
An outsourcing contract spans the business division, information systems, and legal. Since it is hard for one person to decide everything, it is realistic to set an order and work through it.
- The business division writes the draft of the target numbers and pass criteria. Without this, the acceptance criteria cannot be written
- Information systems decides the data and permissions to provide, and the name on the API contract
- The vendor provides a list of deliverables and the key points of the terms of the external services to be used
- Legal checks the six items above against the data and generated-output items in METI's checklist
- Split the contract into phases and write the conditions for proceeding to the next phase
In my view, items 1 and 5 are the ones most likely to be left blank before contracting. Even if legal has contract templates, only someone who knows the business can write the pass criteria and the conditions for proceeding.
When there is no one to set the pass criteria together with the vendor
In the table above, the pass criteria, evaluation data, and conditions for proceeding to the next phase cannot be written without understanding both the business and AI. If you outsource without such a person in-house, the vendor fills them in as placeholders, and those placeholders become the contract as-is.
The role of working on-site to bridge business and AI is called an FDE (Forward Deployed Engineer). I described what this role is in What is an FDE. How to compare potential providers is summarized in How to choose an FDE support company.
The details and pricing of our support are summarized on the services page.