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.

Hardware evidence signed by
Why it matters

Why verifiable AI matters

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

11 of 31

commercial API endpoints serving Llama returned outputs that differed from Meta's released weights.

Stanford, Model Equality Testing, 2024

In 2024, Stanford researchers tested 31 commercial API endpoints 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.

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?"

That's the gap verifiable AI closes.

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

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

The four ways to verify AI

Way 01

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.

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.

Proves
genuine hardware, the measured code running, and a signing key bound to it. Also privacy: the operator can't read an intact TEE.
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, close to zero for larger models. That's why it's the practical choice today for full-size open-weight models.
The 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, starting from the open-source Private ML SDK that Phala Network built with NEAR AI. On the limits: the 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.

Way 02

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.

Proves
correct execution, mathematically, with no hardware vendor to trust.
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.
The evidence

The zkLLM paper (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.

Way 03

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, and nobody can quietly rewrite the history.

Proves
integrity and origin. These bytes, from this key, at this moment.
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.
The evidence

NEAR AI's 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.

Way 04

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. A lighter cousin, statistical testing, compares an API's outputs with the reference weights. That's how the Stanford team caught the altered endpoints.

Proves
that independent parties got the same answer, or that nobody successfully challenged 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.
The evidence

Re-execution leans on determinism, which LLMs don't give you for free. Thinking Machines showed 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 found, can miss subtle substitutions. opML settles disputes with a fraud proof, a design borrowed from optimistic rollups.

Compared

The four approaches compared

ApproachWhat it provesWhat it does not proveCost and latencyLarge LLMs today?
TEE attestationGenuine hardware, measured code, key bound to the environment, privacy from the operatorBug-free code; security against a compromised hardware vendor or physical attackerUnder 7% in a published Hopper benchmarkYes
Zero-knowledge proofsThe committed model produced this outputPrivacy of the input from the serverMinutes per inference in published researchNot at interactive speed
Signed outputs and logsThese bytes came from this key and were not changedWhich model ran, or who saw the data, unless the key is attestedNegligibleYes
Consensus and re-executionIndependent parties agree on the resultPrivacy; exact agreement without deterministic inferenceMultiplies computeYes, 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 to use

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
Run it

Run a model you can verify, through the API you already use.

Private TEE models on NEAR AI Cloud come with attestation and signed responses on every request. OpenAI-compatible. Pay per token, no minimums.

Runs on
ModelContextPrice / 1M tokens (in / out)Privacy
DeepSeek V4.1 Flash 1017deepseek-ai/DeepSeek-V4.1-Flash-10171.05M$0.3 / $1.2 outPrivate TEE
GLM 5.3 Flashz-ai/glm-5.3-flash1.05M$0.08 / $0.5 outPrivate TEE
Qwen 3.6 35B A3B FP8Qwen/Qwen3.6-35B-A3B-FP8262K$0.17 / $1.1 outPrivate TEE
Qwen 3.8 27BQwen/Qwen3.8-27B262K$0.04 / $1.35 outPrivate TEE
Qwen3-VL-30B-A3B-InstructQwen/Qwen3-VL-30B-A3B-Instruct16K$0.15 / $0.55 outPrivate TEE
Verify a response

How to verify an AI response yourself

Enough theory. Here's the TEE route end to end, on NEAR AI Cloud.

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. 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:

    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.

  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.

  6. Get an independent verdict

    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.

Steps 4 to 6 need an API key. Create one and verify your own responses.

Get an API key

Rather not do it by hand? The NEAR AI Inference SDK runs these checks for you, in JavaScript, Python, Rust and Go.

Go deeper: Assume We're Lying: How to Verify Private Inference follows one prompt through the system, and What is private AI inference? explains how TEEs keep it private.

Limits

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, 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.
FAQ

Questions people ask about verifiable AI.

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.

Don't take our word for it.

Watch the Verification Center check a live model in your browser, no account needed. Then verify your own responses through the API.