Model extraction is copying an AI model by asking it many questions and training a new model on the answers.
This guide is for anyone whose organisation offers an AI model or AI feature to customers, or is thinking about it. You do not need to build AI to be affected: if your business pays to train a model and sells access to it, its answers are worth protecting.
In short
- Nobody needs to steal the model's files. The copier uses the same service paying customers use.
- They save the answers and use them to teach their own model to answer the same way.
- Heavy, repetitive or coordinated use across many accounts is the main warning sign.
- Account checks, request limits, returning less detail and watching usage make copying slower and costlier, but may not stop it.
What you will learn
- Explain how a model can be copied without anyone taking its files.
- Spot the usage patterns that may point to copying.
- Check what your AI service sends back in each answer.
- Ask your team the right questions about limits and monitoring.
- Trained AI program (model)
- the part of an AI system that turns a question into an answer.
- Question-and-answer service (inference API)
- the doorway where software sends a model a question and gets an answer back, often paid per request.
What is model extraction?
Think of a rival chef who wants a famous restaurant's secret recipe. They cannot get the recipe card, so they order the dish again and again. Each time, they taste it and adjust their own version until it is close.
Model extraction works the same way. A company trains an AI model. Customers use it through an inference API, a doorway where software sends a question and gets an answer. The copier never sees the model's files. They send lots of chosen questions and save every answer. Then they train their own model to give similar answers.
Training a model on another model's answers is called distillation. It has honest uses, such as making a smaller version of your own model. It becomes extraction when someone does it to another company's model without permission.
Where the comparison stops working: a restaurant would notice one diner ordering the same dish 500 times. An AI service may handle huge numbers of requests a day, so copying can hide in normal traffic unless someone looks for it.
Why does it matter?
Training a good model takes a lot of money, data and time. Extraction lets someone skip much of that cost and walk away with a working copy, which can be used, sold or studied for weaknesses.
It happens at scale. In February 2026, the AI company Anthropic reported copying by three AI labs. It said they used about 24,000 fake accounts for over 16 million exchanges with its model.[3] These figures are the company's own report.
If you run a business that sells an AI feature
What could happen: a rival copies the skill you paid to build, then offers it more cheaply.
Check this: ask who can use your model, how many requests they may send and who reviews heavy use.
If you look after the AI service
What could happen: costs jump because many new accounts are quietly sending long lists of questions.
Check this: set request limits per key and per account, including free trials.
If you manage a product team
What could happen: the service sends back extra detail that customers never use, which makes copying easier.
Check this: agree what each answer needs to include, and drop the rest.
What does it look like?
Here is a made-up weekly usage report for an AI service. It shows the kind of pattern that should get a second look.
Example only. All values are made up.
Weekly usage report: ExampleAI contract reader New trial accounts this week: 40 (1) Requests from those accounts: 0000 per day each, all near the limit Request style: short, varied clauses, no follow-ups (2) Answer detail asked for: "maximum", with scores (3) Payment cards: same small set, [email protected] (4) Use of the normal web app: none
- In a real file, this line would show how many new accounts appeared at once.
- Questions that cover many topics, with no follow-up, look more like data collection than normal work.
- Asking for the most detailed answers every time gives a copier more to learn from.
- Shared payment details across many accounts can suggest one group behind them.
Why this is risky: each account looks normal on its own. Together, they may be collecting answers to train a copy.
The safer way: look at accounts as groups, not one at a time. Set limits, check new accounts and send back only the detail the product needs.
How does it work?
Here is the general pattern, so you know where controls fit. It is not a set of instructions.
- Get access. The copier signs up for the service, often with many accounts so no single one stands out.
- Send many questions. They send large numbers of questions chosen to cover the skills they want to copy.
- Save the answers. Every answer is kept. Extra detail, such as scores showing how sure the model was, gives them more to learn from.
- Train a copy. The saved questions and answers become training material for their own model.[1]
- Use the copy. The copy can now run without paying the original company, and without its safety controls.

This has been known for years. A 2016 research paper showed that models offered through online prediction services could be copied very closely using only their answers. Sending back confidence scores made copying easier, and hiding them did not fully stop it.[2]
A widely used list of risks for AI chat services names model extraction through the API as a risk to a company's ideas and work. Its advice includes request limits, quotas and sending back fewer detailed probabilities.[1]
A worked example
Lila Pereira runs a small, fictional start-up that sells an AI model for summarising legal contracts. Her team spent two years building training material with lawyers. Customers connect through a paid API, and new users get a free trial.
One Monday, Malik Silva, the engineer on call, sees that running costs have jumped. He opens the usage dashboard. Forty new trial accounts appeared last week. All of them send long lists of short, varied contract clauses. All ask for the most detailed answer option. Their cards come from a small set of matching payment details.
Malik cannot be sure it is copying. It could be one large customer testing the service. He treats it as possible extraction and tells Lila.
Lila thinks of the rival chef ordering the same dish over and over. Each order looks fine, but the pattern does not. She agrees four changes with Malik.
First, they pause the new trial accounts while they check them, with a clear way for genuine users to get back in. Second, they lower the free-trial request limit. Third, they stop sending detailed confidence scores unless a paying customer asks for them. Fourth, Malik adds an alert for groups of accounts that behave alike.
Some answers have already left, and the changes cannot take those back. Lila also asks her lawyer to check that the terms of service forbid using outputs to train a competing model.
The changes make copying slower and costlier, and give the team earlier warning next time.
Myths and mistakes
| What people think | What is true |
|---|---|
| Our model is safe because nobody can reach its files. | Extraction needs only the answers, through the normal service. |
| A request limit on each account is enough. | Copiers may spread requests over many accounts. Look at accounts as groups too. |
| Sending back extra detail is harmless. | Detailed scores give copiers more to learn from. Send only what the product needs.[1] |
| Only giant AI companies get copied. | Any paid model with useful answers can be worth copying, including small, specialist ones. |
| Once we spot it, we can get the copy back. | Collected answers usually stay with whoever took them. Controls slow future copying. |
What can I do this week?
- Find out who can use your model and how accounts and keys are handed out.
- Check the request limits per key, per account and for free trials.
- Look at what each answer sends back, and list any detail customers do not use.
- Ask for a weekly report of the heaviest users and of new accounts that behave alike.
Checklist
- Every request is tied to a known account and key.
- Request limits and quotas are set per key, per account and for free trials.
- Answers include only the detail the product needs.
- Usage is recorded and reviewed for heavy, repetitive or matching patterns.
- Terms of service clearly forbid using outputs to train a competing model.
- There is an approved, recorded way to pause suspicious accounts and restore genuine ones.
- Model files and training systems are open only to the people who need them.
Common questions
Is model extraction illegal?
Sometimes. It depends on where you are and on the service's terms, so ask a lawyer. Many AI services forbid using their outputs to build a competing model. Clear terms of service give you more options if copying happens, alongside the technical controls on this page.
How is extraction different from someone stealing the model files?
Extraction uses the answers, not the files. Stealing files needs a break-in or leaked access. Extraction can happen through the normal paid service. Locks on servers and storage do not catch it, so you also need usage limits and someone watching use.
Can we stop extraction completely?
Probably not, if people can use the model at all. The aim is to make copying slow, costly and easy to notice. Account checks, request limits and sending back less detail all help. Watching use gives you earlier warning.
Is distillation always an attack?
No. Distillation is a normal way to train a model. Firms often use it to make a smaller, cheaper copy of their own model. It is a problem when someone does it to another firm's model without permission, often against its terms.
What signs should we look for first?
Start with groups of new accounts that behave alike. Watch for heavy, repetitive questions that cover many topics, constant requests for maximum detail and shared payment details. No single sign proves copying, so look for several together and check before you act.
Where next?
Ready for the detail? Read the practitioner guide: Model Extraction and Distillation Defence Guide. It goes further into detection signals, output and rate-limit design, and how to respond when copying is suspected.
Also useful:
- Model Extraction vs Inversion vs Membership Inference
- OWASP LLM Top 10 LLM10 Unbounded Consumption Guide
- AI Security for Beginners
- API Keys for Beginners
Related NHI Mgmt Group resources: AI Agent Rate Limits · API Security for Beginners · How Large Language Models Work
Key terms
- Model extraction
- Copying a model's behaviour by sending it many questions, often through its API, without access to its files.
- Inference API
- The interface used to send questions to a trained model and get answers back.
- Distillation
- Training one model on the answers of another, which is normal in honest use and a risk when done without permission.
- Rate limit
- A cap on how many requests an account, key or token may make in a set time.
- Quota
- A set limit on how much a user or application can use a service over a period.
- API key
- A secret code that identifies the software calling a service, so its use can be tracked and limited.
Sources and further reading
- LLM10:2025 Unbounded Consumption. OWASP Top 10 for LLM Applications 2025, OWASP GenAI Security Project. https://genai.owasp.org/llmrisk/llm102025-unbounded-consumption/, accessed 28 Nov 2026.
- Stealing Machine Learning Models via Prediction APIs. Tramèr, Zhang, Juels, Reiter and Ristenpart, 25th USENIX Security Symposium, 2016. https://www.usenix.org/conference/usenixsecurity16/technical-sessions/presentation/tramer, accessed 28 Nov 2026.
- Detecting and preventing distillation attacks. Anthropic, 23 February 2026. https://www.anthropic.com/news/detecting-and-preventing-distillation-attacks, accessed 28 Nov 2026.