Documentation
Models and quotes
View .mdOpenAPI

Get a model's attestation

GEThttps://weights.fyi/run/v1/models/{model}/attestationscope: read
text
GET https://weights.fyi/run/v1/models/<model>/attestation?nonce=<64 hex>
Authorization: Bearer <token>                    scope: read
Available since
2026-10-21: included in this build; see What is live for deployment status.
Answer time
synchronous: the evidence is asked of the enclave that serves the model while you wait.

Returns live attestation evidence for a confidential enclave model. An enclave is an isolated environment whose memory the service's operators cannot read; attestation is the hardware's own signed statement that the model runs inside one. The evidence is bound to the enclave's public key and to the nonce you send, so it cannot be a recording of an earlier answer, and it names the key your requests are encrypted to.

Verify the evidence yourself before you send data: the signed report and its certificate chain, the signed tokens, that they bind the SHA-256 of enclave_public_key_der together with your nonce, and that image_sha256 is the enclave image you expect. Then use one of transport_modes. With sealed_envelope your client encrypts each request to the attested key and sends only ciphertext through POST /v1/chat/completions or POST /v1/classify; with enclave_tls a local helper on your side does the same for unmodified OpenAI clients.

Request

NameWhereRequiredMeaning
AuthorizationheaderyesBearer and a token that holds the read scope.
modelpathyesA confidential enclave model's id; it may hold /.
noncequeryyes32 random bytes of yours as 64 lower-case hexadecimal characters; make a new one for every call.

Return value

200 OK with the evidence:

FieldMeaning
schemaThe evidence format's name and version.
model, nonceThe model and your nonce, echoed.
transport_modesenclave_tls and sealed_envelope: how requests may reach the enclave.
pk_sha256The SHA-256 of the enclave's public key.
enclave_public_key_derThe enclave's public key, DER, base64.
tee_driverWhich kind of enclave produced the processor's evidence.
snp_report, snp_cert_chain_pem, maa_tokenA SEV-SNP enclave: its signed report (base64), the report's certificate chain and the attestation service's signed token, where the enclave has them.
tdx_quote, tdx_cert_chain_pemA TDX enclave: its signed quote and certificate chain.
nvattest_tokenThe accelerator's signed attestation token.
image_sha256, image_signatureThe enclave image's digest, and the enclave's signature binding that image to your nonce.

Further fields depend on the enclave's kind.

Errors

StatusCodeWhen it happensWhat to do
400invalid_attestation_noncenonce is missing or is not 64 lower-case hexadecimal characters.Send 32 random bytes as lower-case hex.
401unauthorized, invalid_token, token_revoked, token_expiredNo token, or one that does not work (any more).Use a valid token.
403scope_required, account_suspendedThe token lacks read, or the account is suspended.Use a token with read.
404attestation_not_availableThe model is not a confidential enclave model your workspace can reach, or its enclave gave no evidence now.Check the model's id in GET /v1/models; attestation exists only for confidential enclave models.

Examples

With a confidential enclave model's id in place of MODEL; the long values are cut here and schema is left out:

sh
curl -s "https://weights.fyi/run/v1/models/MODEL/attestation?nonce=abababababababababababababababababababababababababababababababab" -H "Authorization: Bearer $WEIGHTS_API_KEY"
json
{
  "model": "confidential-vlm",
  "nonce": "abababababababababababababababababababababababababababababababab",
  "transport_modes": ["enclave_tls", "sealed_envelope"],
  "pk_sha256": "0e9d03893cf9b487b46c69b99a496bc5859890f184509f4a97d5cc1f3bb3cb8f",
  "enclave_public_key_der": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...",
  "snp_report": "AgAAAAAAAAAfAAMAAAAAAAEAAAAAAAAA...",
  "snp_cert_chain_pem": ["-----BEGIN CERTIFICATE-----\nMIIFQzCCAvegAwIBAgIBADBBBgkq...\n-----END CERTIFICATE-----\n"],
  "maa_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6...",
  "nvattest_token": "eyJhbGciOiJFUzM4NCJ9..."
}

History

  • 2026-10-21: built.
  • 2026-11-16: this page added.

See also