# What is verifiable AI?

**Verifiable AI is AI whose model, code, hardware and outputs can be checked by someone other than the provider, using cryptographic evidence instead of a promise. Today that evidence comes from four places: hardware attestation in trusted execution environments (TEEs), zero-knowledge proofs, signed outputs with audit logs, and independent re-execution.**

## Why verifiable AI matters

You pay for one model. Are you sure that's the one answering?

In 2024, Stanford researchers tested [31 commercial API endpoints](https://arxiv.org/abs/2410.20247) serving four Llama models. Eleven returned outputs whose distribution differed from Meta's released weights. The people calling those APIs had no way to tell.

That's the gap verifiable AI closes.

Most AI services run on a promise: a privacy page, a model card. You can read them. You can't check them. Verifiable AI swaps "do I trust this company?" for "does the evidence check out?"

Not to be confused with AI detection, as in "was this written by a chatbot?" This guide covers the other direction: proving what an AI system did with your request.

## What can be verified

"Verifiable" sounds like one property. It's five:

- **The model.** Which model and weights answered, at full precision or a cheaper quantized copy.
- **The code.** The exact serving software that handled your request.
- **The hardware.** Genuine, up-to-date chips with their security protections on.
- **The output.** The response you got is the one the system produced, unaltered.
- **Privacy.** Nobody outside a protected boundary, the operator included, could read your prompt or the answer.

No single technique covers all five. Each approach below trades speed, cost and model size for a different set.

## The four ways to verify AI

### 1. TEE attestation: trust the chip

A trusted execution environment (TEE) is a sealed area inside a processor that the host system and its operators can't read. Intel TDX seals a whole virtual machine on the CPU. NVIDIA's confidential computing extends the seal to the GPU, with every CPU-to-GPU transfer [encrypted and signed](https://developer.nvidia.com/blog/confidential-computing-on-h100-gpus-for-secure-and-trustworthy-ai/).

**Attestation** proves you're inside. The chip signs a report of the software it's running, with keys rooted in Intel and NVIDIA, not the cloud provider. You add a random nonce so an old report can't be replayed, then check the signature and the measurements.

**What it proves:** genuine hardware, the measured code running, and a signing key bound to it. Also privacy: the operator can't read an intact TEE.

**What it does not prove:** that the code is bug-free, or that the hardware vendor can't be broken.

**Trade-off:** small. Under 7% overhead for most typical LLM queries in a [benchmark on NVIDIA Hopper GPUs](https://arxiv.org/abs/2409.03992), close to zero for larger models. That's why it's the practical choice today for full-size open-weight models.

**Evidence:** Attestation proves the model only as far as the measured configuration pins it, so check what it pins. NEAR AI [builds its inference stack this way](https://near.ai/blog/building-next-gen-near-ai-infrastructure-with-tees), starting from the open-source Private ML SDK that Phala Network built with NEAR AI. On the limits: the [TEE.fail](https://tee.fail/) team, publishing at IEEE S&P 2026, built a DDR5 memory bus interposer for under $1,000 that extracted keys from Intel TDX and AMD SEV-SNP, in some cases attestation keys, with physical access to the server. Stolen attestation keys can also compromise NVIDIA's GPU confidential computing, whose trust is anchored in the CPU's confidential VM. TEEs make attacks far harder and more costly. They don't make them impossible.

### 2. Zero-knowledge proofs (ZKML): trust the math

A zero-knowledge proof is a receipt for a computation. The server proves that a committed model, on a given input, produced a given output. You check a small proof and learn nothing about the weights.

**What it proves:** correct execution, mathematically, with no hardware vendor to trust.

**What it does not prove:** privacy. The server doing the proving sees your input.

**Trade-off:** speed. Published research proves one inference pass of a 13 billion parameter model in under 15 minutes. Too slow for chat today.

**Evidence:** The [zkLLM paper](https://arxiv.org/abs/2404.16109) (Sun, Li and Zhang) reports a full inference pass of a 13 billion parameter model in under 15 minutes, with a proof under 200 kB. A chat answer arrives token by token, so proving a whole response costs more than one pass, and today's frontier open-weight models are many times larger. ZKML fits small models and high-value, low-frequency decisions.

### 3. Signed outputs and audit logs: trust the key

The service signs a hash of your exact request and its exact response. Anyone with the public key can confirm who signed it and that nothing changed. Add a tamper-evident log, in the style of [Certificate Transparency](https://www.rfc-editor.org/rfc/rfc6962), and nobody can quietly rewrite the history.

**What it proves:** integrity and origin. These bytes, from this key, at this moment.

**What it does not prove:** which model ran or who saw your prompt, unless the signing key is bound to an attested TEE. That's why signatures and TEEs pair so well.

**Trade-off:** close to free in latency and cost.

**Evidence:** NEAR AI's [Proof of Response](https://near.ai/blog/announcing-proof-of-response) paper extends signing to delivery. A requester either receives a signed response or gets proof that the service failed to answer. Services become accountable for answering. Whether the answer is correct is left to the protocols built on top.

### 4. Consensus and re-execution: trust the crowd

Don't trust one machine? Ask several. Independent nodes run the same model on the same input, or one answers and the others can challenge it, as in [opML](https://arxiv.org/abs/2401.17555). A lighter cousin, statistical testing, compares an API's outputs with the reference weights. That's how the Stanford team caught the altered endpoints.

**What it proves:** that independent parties got the same answer, or that nobody successfully challenged it.

**What it does not prove:** privacy, since every node that re-executes sees your prompt.

**Trade-off:** every check multiplies compute, and challenge windows delay the final result.

**Evidence:** Re-execution leans on determinism, which LLMs don't give you for free. [Thinking Machines showed](https://thinkingmachines.ai/blog/defeating-nondeterminism-in-llm-inference/) that the same prompt at temperature 0 can produce different outputs depending on server batch size, unless the kernels are built to be batch-invariant. Statistical tests need many queries and, as a [Berkeley study](https://arxiv.org/abs/2504.04715) found, can miss subtle substitutions. opML settles disputes with a fraud proof, a design borrowed from optimistic rollups.

## The four approaches compared

| Approach                   | What it proves                                                                           | What it does not prove                                                             | Cost and latency                            | Large LLMs today?        |
| -------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ------------------------------------------- | ------------------------ |
| TEE attestation            | Genuine hardware, measured code, key bound to the environment, privacy from the operator | Bug-free code; security against a compromised hardware vendor or physical attacker | Under 7% in a published Hopper benchmark    | Yes                      |
| Zero-knowledge proofs      | The committed model produced this output                                                 | Privacy of the input from the server                                               | Minutes per inference in published research | Not at interactive speed |
| Signed outputs and logs    | These bytes came from this key and were not changed                                      | Which model ran, or who saw the data, unless the key is attested                   | Negligible                                  | Yes                      |
| Consensus and re-execution | Independent parties agree on the result                                                  | Privacy; exact agreement without deterministic inference                           | Multiplies compute                          | Yes, at higher cost      |

The approaches stack. For large models today, the practical pairing is TEE attestation plus signed responses: the hardware proves what's running, and the signature ties each answer to it. The Berkeley team that studied model substitution found software-only checks unreliable and proposed TEEs as a practical fix with modest overhead.

## Which approach should you use?

Start from what you need proven:

- **Sensitive data, a large model, and proof of what ran:** TEE attestation with signed responses.
- **A small model and no hardware vendor to trust:** zero-knowledge proofs.
- **Only that the answer wasn't altered after it left the provider:** signed outputs.
- **No single operator to trust, and public data:** consensus or re-execution.
- **A spot-check of an API you already use:** statistical testing against the reference weights.

## How to verify an AI response yourself

Enough theory. Here's the TEE route end to end, on [NEAR AI Cloud](https://cloud.near.ai/?utm_source=organic&utm_medium=seo&utm_campaign=verifiable-ai). Models marked Private TEE run in Intel TDX confidential virtual machines with NVIDIA H200 GPUs in confidential computing mode, behind an OpenAI-compatible API. The Gateway that receives your request runs in its own TEE. Step 1 is the quick check. Steps 2 to 6 are the full one.

**1. Check in the browser.** Open the [Verification Center](https://cloud.near.ai/verify?model=z-ai%2Fglm-5.3-flash&utm_source=organic&utm_medium=seo&utm_campaign=verifiable-ai). It fetches fresh evidence for the Gateway and the model and checks it in your browser, with no API key.

**2. Request evidence with your own nonce.** Ask the Gateway for a report, with 32 random bytes as the nonce. From the [Gateway attestation guide](https://docs.near.ai/cloud/verification/cloud-api/gateway-attestation):

```bash
NONCE="$(openssl rand -hex 32)"

curl --fail-with-body -G 'https://cloud-api.near.ai/v1/attestation/report' \
  --data-urlencode 'signing_algo=ecdsa' \
  --data-urlencode "nonce=${NONCE}" \
  -H 'Accept: application/json'
```

For the model's attestation too, add `model=<MODEL_ID>`, `provider=near` and the `x-no-aliasing: true` header.

**3. Verify the report.** Check the Intel TDX quote with an Intel DCAP verifier. Confirm it binds your nonce and the signing address. Replay the event log, then compare the measured configuration with the public [deployment manifests](https://github.com/nearai/cvm-compose-files).

**4. Send your request and keep the exact bytes.** The signature covers the exact request and response bodies. Re-serialize either one and the hashes won't match.

**5. Verify the response signature.** Fetch it with `GET /v1/signature/<CHAT_ID>` and compare its SHA-256 hashes with your saved bytes. Then check the signer matches a key from step 3: the model's key for a `provider_tee` signature, the Gateway's for a `gateway` signature. See the [response signatures guide](https://docs.near.ai/cloud/verification/cloud-api/response-signatures).

**6. Get an independent verdict.** [Intel Trust Authority](https://near.ai/blog/near-ai-cloud-integrates-intel-trust-authority) appraises the evidence against Intel's reference values and returns an Intel-signed token. NEAR AI runs the workload. Intel checks it.

Rather not do it by hand? The [NEAR AI Inference SDK](https://docs.near.ai/cloud/verification/verify-with-sdk) runs these checks for you, in JavaScript, Python, Rust and Go.

Go deeper: [Assume We're Lying: How to Verify Private Inference](https://near.ai/blog/assume-were-lying-how-to-verify-private-ai) follows one prompt through the system, and [What is private AI inference?](https://near.ai/private-ai-inference) explains how TEEs keep it private.

## What this route does not prove

Every method has edges. This one's:

- **You trust the hardware vendors.** The chain of trust ends at Intel and NVIDIA. GPU attestation is anchored in the CPU's confidential VM, so a CPU-side break can reach the GPU too.
- **Attestation is not a code audit.** It shows which software runs, not that it's correct. That's why the manifests are public.
- **Not every model is in a TEE.** On [near.ai/models](https://near.ai/models), each model shows its tier: Private TEE runs in NEAR AI's enclaves, Private 3P TEE in a third party's attested enclave, and Incognito at its provider with no hardware guarantee.

## Verifiable AI vs explainable AI vs trustworthy AI

Three terms that get mixed up, and three different questions.

- **Explainable AI** asks _why_ a model produced an output: which features or reasoning steps drove the answer.
- **Verifiable AI** asks _what_ ran and whether the output is authentic. It says nothing about why.
- **Trustworthy AI** is the umbrella. The [NIST AI Risk Management Framework](https://airc.nist.gov/airmf-resources/airmf/3-sec-characteristics/) lists its characteristics: valid and reliable, safe, secure and resilient, accountable and transparent, explainable and interpretable, privacy-enhanced, and fair with harmful bias managed.

Verifiability supports security, accountability and privacy. It doesn't make a model accurate or fair. A verified answer can still be wrong. What you get is narrower, and more useful than it sounds: the answer came from the model you chose, on the hardware you checked, untouched.

## Frequently asked questions

### What is verifiable AI?

Verifiable AI is AI whose model, code, hardware and outputs can be checked independently with cryptographic evidence, rather than taken on the provider's word. The main approaches are TEE attestation, zero-knowledge proofs, signed outputs with audit logs, and consensus or re-execution. It matters because users usually cannot see which model an API actually served, or who could read their data.

### What is verifiable inference?

Verifiable inference is verifiable AI applied to running a model. It means you can check that a specific request was processed by a specific model, in a specific environment, and that the response was not changed. On NEAR AI Cloud this combines hardware attestation of the Gateway and model with a signature over each request and response.

### Is verifiable AI the same as confidential AI?

No, but they overlap. Confidential AI keeps data encrypted while it is processed, usually in a TEE. Verifiable AI is about proving what happened. TEEs deliver both at once: isolation keeps the data private, and attestation lets you verify that isolation. Zero-knowledge proofs and re-execution are verifiable without being confidential.

### Can zero-knowledge proofs verify large language models?

In research, yes. The zkLLM paper reports proving a full inference pass of a 13 billion parameter model in under 15 minutes. That is too slow for interactive use, and current frontier open-weight models are much larger. For large LLMs today, TEE attestation with signed responses is the more practical option.

### ZKML vs TEE: which should I use?

Use TEE attestation for large language models at interactive speed, and when you also need your prompt kept private from the operator. Use zero-knowledge proofs when the model is small, the decision is high-value, and you want no hardware vendor in the trust chain. ZK proofs remove that hardware trust, but they are far slower and do not keep your input private from the server.

### Does verifiable AI prove that an answer is correct?

No. It proves which model and code produced the answer and that it was not altered. It does not prove the answer is true, safe or unbiased. Those need evaluation, testing and human review.

### How do I verify an AI response on NEAR AI Cloud?

Open the Verification Center in your browser for a no-code check. In code, request an attestation report with your own nonce, verify the Intel and NVIDIA evidence, send your request, then fetch the response signature and check it against the verified signing key. The NEAR AI Inference SDK automates these steps.

## Check one yourself

Don't take our word for any of this. That's the whole point.

Open the [Verification Center](https://cloud.near.ai/verify?model=z-ai%2Fglm-5.3-flash&utm_source=organic&utm_medium=seo&utm_campaign=verifiable-ai) and watch it verify a live model in your browser, no account needed. Then pick a Private TEE model on [near.ai/models](https://near.ai/models), run it in the [Playground](https://cloud.near.ai/playground?utm_source=organic&utm_medium=seo&utm_campaign=verifiable-ai) or with an [API key](https://cloud.near.ai/?utm_source=organic&utm_medium=seo&utm_campaign=verifiable-ai), and verify your own responses with the [verification docs](https://docs.near.ai/cloud/verification).

## Sources

- NEAR AI, [Verification documentation](https://docs.near.ai/cloud/verification)
- NEAR AI, [Gateway attestation guide](https://docs.near.ai/cloud/verification/cloud-api/gateway-attestation)
- NEAR AI, [Response signatures guide](https://docs.near.ai/cloud/verification/cloud-api/response-signatures)
- NEAR AI, [Deployment manifests](https://github.com/nearai/cvm-compose-files)
- Gao, Liang and Guestrin, [Model Equality Testing: Which Model Is This API Serving?](https://arxiv.org/abs/2410.20247)
- Cai, Shi, Zhao and Song, [Are You Getting What You Pay For? Auditing Model Substitution in LLM APIs](https://arxiv.org/abs/2504.04715)
- Zhu et al., [Confidential Computing on NVIDIA Hopper GPUs: A Performance Benchmark Study](https://arxiv.org/abs/2409.03992)
- NVIDIA, [Confidential computing on H100 GPUs](https://developer.nvidia.com/blog/confidential-computing-on-h100-gpus-for-secure-and-trustworthy-ai/)
- TEE.fail, [Breaking trusted execution environments via DDR5 memory bus interposition](https://tee.fail/)
- Sun, Li and Zhang, [zkLLM: Zero Knowledge Proofs for Large Language Models](https://arxiv.org/abs/2404.16109)
- Conway et al., [opML: Optimistic Machine Learning on Blockchain](https://arxiv.org/abs/2401.17555)
- Thinking Machines, [Defeating Nondeterminism in LLM Inference](https://thinkingmachines.ai/blog/defeating-nondeterminism-in-llm-inference/)
- IETF, [RFC 6962: Certificate Transparency](https://www.rfc-editor.org/rfc/rfc6962)
- NIST, [AI Risk Management Framework: trustworthy AI characteristics](https://airc.nist.gov/airmf-resources/airmf/3-sec-characteristics/)

By Alejo Escriva. Updated December 3, 2026.

Canonical page: https://near.ai/verifiable-ai
