In short
To procure AI in a Spanish public body, a minor contract (services under 15,000 euros excluding VAT, one year at most, no extensions) works for an assessment or a narrow pilot. A system that has to reach production and be maintained usually exceeds that limit and calls for a simplified open or open procedure, with tender documents that define the need and measure the result.
AI public procurement in Spain comes down to choosing the procedure by the contract’s estimated value and by how well the solution is defined. A minor contract suits small, short engagements such as an assessment or a pilot on real data. A system that must run in production, with support and maintenance, almost always needs a tender: a simplified open procedure, an open procedure or, if the solution is still unclear, a procedure with negotiation.
Every figure and article in this text comes from the consolidated text of Law 9/2017 on Public Sector Contracts (LCSP), Spain’s public procurement act, and from the thresholds published in Order HAC/1517/2025, in force since 1 January 2026. They are current as of October 2026. Before starting a procedure, check your specific case with the procurement department and with the legal and financial control officers.
When is a minor contract enough for an AI project?
A minor contract (contrato menor) is enough when the engagement is a service with an estimated value below 15,000 euros excluding VAT and lasts one year at most, with no extension. It fits a process assessment, a proof of concept on a narrow use case or a training course. It does not fit a system that has to be built, deployed and maintained for years.
What the LCSP says:
- Value. Minor contracts are services or supplies with an estimated value below 15,000 euros and works below 40,000 euros, excluding VAT (Article 118.1).
- Duration. They cannot last more than one year or be extended (Article 29.8).
- Paperwork. The contracting authority must issue a report justifying the need and confirming that the subject is not being altered to avoid the thresholds, approve the expenditure and file the invoice (Articles 118.2 and 118.3).
- Award. The contract can be awarded directly to any company with legal capacity and the required professional qualification (Article 131.3).
- Transparency. Minor contracts are published at least quarterly on the contracting authority’s profile: subject, duration, amount including VAT and the contractor’s identity (Article 63.4).
The limit most often forgotten is contract splitting. Article 99.2 forbids dividing a contract to lower its value and avoid publicity or the applicable procedure. An assessment under one minor contract followed by development under another is only defensible if they meet different needs. If the assessment is already part of the project, the estimated value is calculated for the whole.
Which procedure fits each AI project budget?
The value sets the minimum procedure, and the estimated value includes everything expected to be paid excluding VAT: extensions, options and foreseen modifications (Article 101). For an AI system that adds up development, deployment, support, maintenance and, if the contractor pays for them, model usage and infrastructure.
| Estimated value of the service (excl. VAT) | Usual procedure | LCSP articles |
|---|---|---|
| Below 15,000 euros | Minor contract, one year at most, no extension | 118, 29.8, 131.3 |
| Below 60,000 euros, unless it is an intellectual service | Abridged simplified open procedure: 10 working days, formula-based criteria only, no proof of financial or technical standing | 159.6 |
| Below 140,000 euros | Simplified open procedure: notice only on the contracting profile and at least 15 days to bid | 159.1 to 159.4 |
| From 140,000 euros (central government) or 216,000 euros (rest of the public sector) | Open or restricted procedure, subject to EU harmonised rules | 22.1, 131.2 |
Two points specific to AI projects:
- The abridged procedure (Article 159.6) excludes intellectual services. Custom development or AI consultancy may be treated as such, so the procurement department should assess this before choosing it.
- The simplified open procedure caps judgement-based criteria at 25% of the score, or 45% when the contract covers intellectual services (Article 159.1.b). For a system judged mainly on technical quality, that cap matters when designing the criteria.
The 140,000 and 216,000 euro figures apply from 1 January 2026 under Order HAC/1517/2025, which replaced the previous 143,000 and 221,000 euro thresholds.
What if you don’t yet know which AI solution you need?
If the public body knows the problem but not the solution, it has tools both before and within the tender. The first is a preliminary market consultation; then, if needed, a procedure that allows negotiation or the development of something that does not yet exist.
- Preliminary market consultation (Article 115). It lets the authority talk to companies to prepare the tender. It is announced on the contracting profile, documented in a report that goes into the file, and cannot end in specifications tailored to one participant.
- Competitive procedure with negotiation (Article 167). It can be used, among other cases, when the service includes innovative solutions or when technical specifications cannot be set precisely enough. It fits when the system has to be adapted to the body’s own data and applications.
- Innovation partnership (Article 177). It is for developing a product or service not available on the market and then buying it, provided it meets the agreed performance levels and maximum costs.
- Pre-commercial procurement. Research and development contracts fall outside the LCSP unless the benefits belong exclusively to the contracting authority and it pays for the whole service (Article 8). It is a route for R&D projects, not for deploying a known tool.
For most AI projects in a public body (classifying submissions, drafting documents, extracting data from documents, answering from the body’s own regulations) the technology already exists. What has to be built is the integration with that body’s systems and data, and that fits in a well-designed open procedure.
How do you write tender documents that measure results?
AI tender documents measure results when they describe the need and the acceptance criteria rather than a specific technology. The LCSP expressly allows this: Article 99.1 lets the subject be defined by the needs or functions to be met, without locking it to a single solution, especially when technological innovation is possible.
In practice, the technical specifications for an AI system should cover:
- The process and its volume. Which task staff do today, how many files or documents per month and which systems are involved (case management, registry, e-government portal).
- Measurable acceptance criteria. For example, the percentage of documents correctly classified on a test set prepared by the public body, or processing time before and after. The test set belongs to the public body and is used to accept each delivery.
- Human oversight. What a person always decides and what the system may prepare. If the system may be high-risk under the Artificial Intelligence Act, Regulation (EU) 2024/1689, Article 26 requires the deployer to assign human oversight to people with the necessary competence, training and authority, and to keep automatically generated logs for at least six months.
- Logs and documentation. A record of every action the system takes and enough technical documentation to audit it and for in-house staff to understand it.
- Deployment and data. Where the system runs (the contractor’s cloud, the public body’s cloud or its own servers) and which data leaves the organisation. If personal data is processed on the body’s behalf, Article 122.2 requires a declaration of where the servers will be and where the service will be provided from, and Article 202.1 requires a special performance condition on data protection.
- Ownership and exit. Who owns the code, configurations and evaluation sets, and how the system is handed over at the end of the contract. Article 122.2 allows the transfer of intellectual property rights to be required.
- Staff training. Article 4 of the AI Act requires deployers of an AI system to ensure their staff have a sufficient level of AI literacy.
To avoid starting from scratch, on 5 March 2025 the European Commission published the model contractual clauses for the public procurement of AI (MCC-AI), with a full version for high-risk systems and a light version for the rest, available in English and Spanish among other EU languages.
Which award criteria work in an AI contract?
In an AI contract, quality should carry more weight than price. Article 145.3 requires several criteria when the contract involves particularly advanced technology, and Article 145.4 requires quality criteria to make up at least 51% of the score for intellectual services.
Criteria that allow AI bids to be compared with some objectivity:
- A test on the public body’s data. Bidders process a set of anonymised cases and the result is scored with a formula known in advance.
- Work plan and team. Who does the assessment, who builds and who maintains; ideally the same people.
- Deployment and operation plan. How the system moves from pilot to production, how results are measured and what support follows.
- Handover plan. Training and documentation so the in-house team can run the system.
What documentation does an AI contract file need?
Besides the tender documents, the file for an AI services contract must justify the decisions taken. Article 116.4 lists what has to be reasoned:
- The need to be met and its direct, clear and proportionate link with the subject of the contract.
- The choice of procedure.
- The selection and award criteria and the special performance conditions.
- The estimated value, with every item it includes.
- The report on insufficient in-house resources, mandatory for services contracts.
- The decision not to divide the contract into lots, if taken.
If the AI system is high-risk and the authority is a body governed by public law, Article 27 of the AI Act adds a fundamental rights impact assessment before deployment. Check the application timeline of those obligations with your legal team, because it depends on the type of system. To see how other public bodies have structured similar contracts, the Public Sector Procurement Platform (Plataforma de Contratación del Sector Público) lets you search published tender documents.
How do you get started?
The safest approach is to separate two decisions: which problem to solve and how to procure it. A short assessment, procured as a minor contract if it is an independent need, provides the data to write realistic specifications: volume, systems involved, acceptance criteria and estimated value.
If the system will work with internal documents, it is worth understanding first how AI answers from an organisation’s documents, because it shapes which data needs preparing and which permissions must be respected.
At Referent we work with public bodies through both tenders and minor contracts. We deploy on the public body’s own infrastructure when data cannot leave it, and we deliver the technical documentation and traceability an audit requires. Whoever does the assessment builds, deploys and maintains the system: see how we work with the public sector and our method.
Frequently asked questions
Can an assessment under a minor contract be followed by another minor contract for development?
Only if they are genuinely separate services. Article 99.2 of Law 9/2017 forbids splitting a contract to lower its value and avoid the publicity or procedure that would otherwise apply. If assessment and development meet a single need, the estimated value is calculated for the whole and the procedure is chosen on that figure.
Do bidders need to be on a register to take part in a simplified open procedure?
Yes. Article 159.4.a) of Law 9/2017 requires bidders to be listed in the Official Register of Bidders and Classified Companies of the Public Sector (ROLECE) or the equivalent regional register by the bid deadline. Proof that the registration request was filed before that date is also accepted.
What counts towards the estimated value of an AI contract?
The total amount expected to be paid, excluding VAT, including extensions, options and any modifications foreseen in the tender documents, under Article 101 of Law 9/2017. For an AI system that means adding development, deployment, support and maintenance, plus model usage and infrastructure costs if the contractor pays them.
Can the tender documents require data to stay in Spain or the European Union?
The documents can set where data is processed if this is justified and linked to the subject of the contract. In addition, Article 122.2 of Law 9/2017 requires the successful bidder to declare, before signing, where the servers will be located and where the related services will be provided from, and to report any change during the contract.
Sources
Consulted while writing this article.
- Ley 9/2017, de 8 de noviembre, de Contratos del Sector Público (texto consolidado). Boletín Oficial del Estado (Spanish Official State Gazette).
- Orden HAC/1517/2025, de 18 de diciembre, por la que se publican los límites de los distintos tipos de contratos a efectos de la contratación del sector público a partir del 1 de enero de 2026. Boletín Oficial del Estado (Spanish Ministry of Finance).
- Regulation (EU) 2024/1689 of the European Parliament and of the Council of 13 June 2024 (Artificial Intelligence Act). Official Journal of the European Union (copy in the BOE).
- Updated EU AI model contractual clauses. European Commission (Public Buyers Community).