API reference
OpenAI-compatible inference with a signed receipt for every response, plus the open endpoints used to verify them.
Panward is an OpenAI-compatible inference gateway. Every response, streamed or not, has a receipt: a signed record that binds the exact request and response bytes to Panward's attested gateway and states what the gateway verified about the model environment that served it.
Version 1.0.0 of the contract. Operations marked "Not served yet" are described by the contract and are not served yet. To make a first request, follow the quickstart; keys are made in the console under API keys, and usage is billed as described on the Billing page. Changes are listed in the changelog.
- Format
- JSON over HTTPS
- Compatibility
- OpenAI SDKs
- Region
- eu
- Verifier
warden
Hosts
| Group | Base URL | Authentication |
|---|---|---|
| Gateway | https://api.panward.ai/v1 (geo-steered) and the regional hosts api.eu., api.us., api.ap.panward.ai | API key, except /attestation and /health |
| App public routes | https://panward.ai/api/public | none |
Paths that start with /public/ in this document are served by the app host; their server entry is https://panward.ai/api, so /public/status is https://panward.ai/api/public/status. All other paths are served by the gateway hosts. An organization whose policy pins regions should call the regional host: the gateway checks the region and refuses a mis-steered request with 403 region_not_allowed; it never proxies to another region.
Authentication
Authorization: Bearer pw_live_…. A key belongs to one project and carries scopes:
| Scope | Allows |
|---|---|
inference | POST /chat/completions, /completions, /embeddings, /rerank, /audio/transcriptions, /images/generations |
models.read | GET /models, GET /models/{vendor}/{name} |
receipts.read | GET /receipts, GET /receipts/{id} |
usage.read | GET /usage |
A key without the needed scope gets 403 permission_denied. Each operation names its scope in x-required-scope.
Tiers and verification levels
A model is offered in the Sealed tier, the Routed tier, or both. The level reached is stated per response in the receipt:
level | Meaning |
|---|---|
sealed_model_signed | the model enclave's key signed the exact upstream request and response hashes |
sealed_attested_path | an attested gateway enclave on the upstream hop signed them and bound an attested model environment |
sealed_attested_channel | no signature: the upstream exchange went over a channel (TLS pinned to, or bodies encrypted to, a key) that only an enclave could terminate whose evidence Panward verified with its own nonce. Nobody can re-check the response itself against the upstream later. The weakest Sealed level: a policy whose minimum level is sealed_attested_path excludes it |
routed | no enclave evidence exists for the upstream hop; the receipt binds the bytes to Panward's gateway only |
failed | an expected proof was missing, late, invalid or against policy |
Attestation protects against software and administrators. It cannot rule out someone with physical access to the hardware. A Sealed request is never served by a Routed offer, and failover never relaxes a policy constraint.
Request headers on inference
Authorization, Content-Type, and optionally panward-tier: sealed|routed, panward-fallback: allow, panward-hold-until-verified: true (non-streaming only) and X-Request-Id (echoed as panward-client-request-id). Inference requests do not accept Idempotency-Key.
Response headers on inference
panward-request-id, panward-receipt-id, panward-tier, panward-region, panward-model and the rate-limit headers. Nothing is added to the response body or the event stream, so the response hash in the receipt covers exactly the bytes the client received.
Errors
Every error has the same body: {"error": {"type", "message", "param", "request_id", "doc_url"}}. type is a stable machine value; message is safe to show and never contains upstream text. New type values may be added; clients should treat an unknown value by its HTTP status.
Conventions
- JSON, UTF-8, snake_case. Timestamps are Unix seconds.
- Ids are prefixed strings (
rcpt_,req_,org_,prj_,key_, …). - Money is an integer
*_nano_usd(1 USD = 1,000,000,000 nano-USD) with a formatted*_usdstring where it is displayed. - Lists use cursor pagination:
?limit=(default 50, maximum 200) and&cursor=; the response is{"data": [...], "next_cursor": "…" | null}. - Streaming is
text/event-streamin the OpenAI chunk format, ended bydata: [DONE]. A failure after the first byte is anevent: errorframe with the error object; the stream then ends without[DONE]. - Versioning:
/v1, additive changes only. Breaking changes need a new version and 12 months' notice; model retirements get 90 days.
What is billed
Tokens actually produced, including a stream the client cut. Requests refused by Panward (authentication, policy, limits, validation) and upstream failures before any output are not billed. Receipts and verification are free.
Create a chat completion
Generates a model response for a conversation. Compatible with the OpenAI Chat Completions request and response formats, so existing SDKs work by changing the base URL and the key.
Routing: the gateway resolves the canonical model, applies the project's policy, and picks an eligible offer in the requested tier. With panward-fallback: allow and a fallback list in the project's policy, another listed model may serve the request when the requested one has no capacity; panward-model names the model used. There is no retry after the first byte has been sent to the client.
Streaming: set stream: true. Usage is delivered only when stream_options.include_usage is true, in one extra final chunk with empty choices. Streams on Sealed models reach the level sealed_attested_path; if the organization's policy requires a model-enclave signature, the gateway obtains the response unstreamed and re-streams it, which raises the time to first token.
The receipt has status pending when the response ends and becomes final shortly after (usually under one second).
Needs an API key with the inference scope.
Request headers
- AuthorizationstringRequired
Bearer pw_live_…: your API key.
- panward-tierTierPanwardTier to serve the request in. Without it the model's default tier applies, or Sealed when the policy is "Sealed only". Asking for
routedwhere the policy forbids it returns403 policy_blocked. Asealedrequest is never served by a Routed offer; with no eligible Sealed offer the answer is503 sealed_unavailable. One ofsealed,routed. - panward-fallbackstringPanwardOpt in to the project's fallback models. When the requested model has no capacity, the gateway tries each model of the policy's fallback list in order, with every policy constraint unchanged. The
panward-modelresponse header and the body'smodelname the model that answered. One ofallow. - panward-hold-until-verifiedstringPanwardNon-streaming requests only. Delays the response until the verification level is known and returns
503 verification_unavailableinstead of an unverified answer. Combined withstream: trueit returns400 unsupported_parameter. One oftrue. - X-Request-Idstringmax length 128 · pattern ^[A-Za-z0-9._:-]+$Client correlation id, echoed in the
panward-client-request-idresponse header. It is not forwarded upstream.
Body parameters application/json
- modelstringRequiredCanonical model id. Aliases are not resolved.
- max_completion_tokensintegermin 1Upper bound on generated tokens, including reasoning tokens. Capped by the model's
max_output_tokens. - max_tokensintegermin 1Older name of
max_completion_tokens. If both are sent they must be equal. - temperaturenumbermin 0 · max 2
- top_pnumbermax 1
- top_kintegermin 1Not supported by every model.
- frequency_penaltynumbermin -2 · max 2
- presence_penaltynumbermin -2 · max 2
- seedintegerBest-effort determinism; the same seed and parameters usually give the same output on the same offer.
- stopstring | array of stringUp to 4 sequences at which generation stops.One of: string, array of string
- nintegerdefault: 1 · min 1 · max 1Number of choices. Only 1 is supported.
- logprobsbooleandefault: false
- top_logprobsintegermin 0 · max 20Needs
logprobs: true. - streambooleandefault: falseReturn the response as an event stream.
- stream_optionsStreamOptionsOnly valid with
stream: true.- include_usagebooleandefault: falseSend one extra final chunk with empty
choicesthat carriesusage. Without it the stream carries no usage.
- typestringRequiredOne of
function. - functionobjectRequired
- namestringRequiredpattern ^[A-Za-z0-9_-]{1,64}$
- descriptionstring
- parametersobjectJSON Schema of the function arguments.
- strictbooleandefault: false
- tool_choiceToolChoice
none,auto(default when tools are present),required, or one named function.One of: string, object - parallel_tool_callsbooleandefault: true
- response_formatResponseFormatOutput format.
json_schemaneeds a model with thejson_schemacapability.One of: object, object, object - reasoningReasoningCanonical reasoning control, translated by the gateway for the model that serves the request. On a model without the
reasoningcapability it is rejected with400 unsupported_parameter. Reasoning tokens are billed as output tokens.- effortstringHow much the model may reason.
noneis the same asenabled: false. One ofnone,low,medium,high. - enabledbooleanSwitch reasoning on or off for models where it is optional. Defaults to the model's default.
- reasoning_effortstringOpenAI-style shorthand for
reasoning.effort. If both are sent they must agree. One ofnone,low,medium,high. - userstringmax length 256Accepted for compatibility and ignored. It is never stored and never forwarded upstream.
Responses
200
The completion. application/json when stream is false or absent; text/event-stream when stream is true.
Headers: panward-request-id, panward-receipt-id, panward-tier, panward-region, panward-model, panward-client-request-id, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
application/json: ChatCompletionResponse
text/event-stream: ChatCompletionStream
- idstringRequiredCompletion id assigned by Panward (
chatcmpl-…). - objectstringRequiredOne of
chat.completion. - createdintegerRequiredUnix seconds.
- modelstringRequiredCanonical id of the model that answered.
- Token usage in the OpenAI field names. These are the quantities that are billed.
400BadRequest
The request is malformed or not acceptable. type is invalid_request (malformed JSON, unknown or invalid parameter; param names it), context_length_exceeded (input plus maximum output exceeds the model's context) or unsupported_parameter (the parameter is not supported by this model).
Error types: invalid_request, context_length_exceeded, unsupported_parameter.
Headers: panward-request-id.
401Unauthorized
No API key was sent (authentication_required) or the key is unknown, revoked or expired (invalid_api_key).
Error types: authentication_required, invalid_api_key.
Headers: panward-request-id.
402PaymentRequired
The request cannot be paid for: insufficient_credit (balance too low for the estimated cost), spend_limit_reached (organization, project or key limit) or billing_unavailable. Nothing was forwarded and nothing is billed.
Error types: insufficient_credit, spend_limit_reached, billing_unavailable.
Headers: panward-request-id, panward-receipt-id.
403Forbidden
The key is valid but the request is not allowed: permission_denied (missing scope), model_not_enabled, policy_blocked (the project's policy refused the request), region_not_allowed (this gateway region is outside the policy's regions), ip_not_allowed or organization_suspended. Policy refusals on inference produce a signed receipt with policy.applied.decision: "deny". Max input tokens (a policy's prompt.max_input_tokens, a key's own prompt limit) is checked before the request is sent, on an estimate of the prompt's tokens made from its words, digits and punctuation. The model counts the prompt only after it answers, and its count can be above or below the estimate, most for very short prompts: a prompt close to the limit, under it or over it, can be refused or served. Each image counts as a fixed 16,384 tokens.
Error types: permission_denied, model_not_enabled, policy_blocked, region_not_allowed, ip_not_allowed, organization_suspended.
Headers: panward-request-id, panward-receipt-id.
404ModelNotFound
The model id is not a canonical model (model_not_found). Aliases are not resolved.
Error types: model_not_found.
Headers: panward-request-id.
413RequestTooLarge
The request body exceeds the size limit of the endpoint (request_too_large).
Error types: request_too_large.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
502BadGateway
No upstream attempt produced a response: upstream_unavailable (retryable) or upstream_rejected (the upstream refused a request Panward considered valid; reported to Panward automatically). The message never contains upstream text. Not billed.
Error types: upstream_unavailable, upstream_rejected.
Headers: panward-request-id, panward-receipt-id.
503ServiceUnavailable
The request cannot be served now: no_capacity (no eligible offer has headroom; retry after Retry-After), sealed_unavailable (no Sealed offer is currently eligible; the request is never downgraded to Routed) or verification_unavailable (verification material could not be produced, or the gateway could not verify a held response). 503 no_capacity and sealed_unavailable carry Retry-After; when the model's offers are temporarily closed it is the time until one is tried again.
Error types: no_capacity, sealed_unavailable, verification_unavailable, sealed_unavailable.
Headers: panward-request-id, panward-receipt-id, Retry-After.
504GatewayTimeout
No upstream attempt produced a first byte within the time budget (upstream_timeout). Retryable. Not billed.
Error types: upstream_timeout.
Headers: panward-request-id, panward-receipt-id.
curl https://api.panward.ai/v1/chat/completions \ -H "Authorization: Bearer $PANWARD_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"z-ai/glm-5.3","messages":[{"role":"system","content":"You are a careful assistant."},{"role":"user","content":"Summarise the attached clause in one sentence."}],"max_completion_tokens":256,"temperature":0.2,"reasoning":{"effort":"low"}}'
{
"id": "chatcmpl-01JC7Q4N8G5T2R9X1M3K6P7W4D",
"object": "chat.completion",
"created": 1790000000,
"model": "z-ai/glm-5.3",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "The clause limits each party's liability to the fees paid in the previous twelve months."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 1500,
"completion_tokens": 500,
"total_tokens": 2000,
"prompt_tokens_details": {
"cached_tokens": 0
},
"completion_tokens_details": {
"reasoning_tokens": 472
}
}
}data: {"id":"chatcmpl-01JC7Q5B1V","object":"chat.completion.chunk","created":1790000100,"model":"z-ai/glm-5.3","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null}]}
data: {"id":"chatcmpl-01JC7Q5B1V","object":"chat.completion.chunk","created":1790000100,"model":"z-ai/glm-5.3","choices":[{"index":0,"delta":{"content":"Hello"},"finish_reason":null}]}
data: {"id":"chatcmpl-01JC7Q5B1V","object":"chat.completion.chunk","created":1790000100,"model":"z-ai/glm-5.3","choices":[{"index":0,"delta":{},"finish_reason":"stop"}]}
data: {"id":"chatcmpl-01JC7Q5B1V","object":"chat.completion.chunk","created":1790000100,"model":"z-ai/glm-5.3","choices":[],"usage":{"prompt_tokens":9,"completion_tokens":2,"total_tokens":11}}
data: [DONE]data: {"id":"chatcmpl-01JC7Q5B1V","object":"chat.completion.chunk","created":1790000100,"model":"z-ai/glm-5.3","choices":[{"index":0,"delta":{"role":"assistant","content":"Hel"},"finish_reason":null}]}
event: error
data: {"error":{"type":"upstream_unavailable","message":"The response was interrupted. Tokens already produced are billed.","param":null,"request_id":"req_01JC7Q5B0Z7N3K8M2T4V6X9Y1A","doc_url":"https://panward.ai/docs/errors#upstream_unavailable"}}{
"error": {
"type": "invalid_request",
"message": "temperature must be between 0 and 2.",
"param": "temperature",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_request"
}
}{
"error": {
"type": "context_length_exceeded",
"message": "The input and max_tokens together exceed this model's context of 200000 tokens.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#context_length_exceeded"
}
}{
"error": {
"type": "invalid_api_key",
"message": "The API key is invalid, revoked or expired.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_api_key"
}
}{
"error": {
"type": "insufficient_credit",
"message": "Your balance is too low for this request. Add credit and try again.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#insufficient_credit"
}
}{
"error": {
"type": "policy_blocked",
"message": "This project's policy allows Sealed models only, and 'acme/atlas-2' is offered in the Routed tier.",
"param": "model",
"request_id": "req_01JC7Q6D4H9K2M5P8R1T3V6X7Z",
"doc_url": "https://panward.ai/docs/errors#policy_blocked"
}
}{
"error": {
"type": "region_not_allowed",
"message": "Your organization's policy does not allow requests in this region. Use api.eu.panward.ai.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#region_not_allowed"
}
}{
"error": {
"type": "model_not_found",
"message": "The model 'z-ai/glm-9' does not exist.",
"param": "model",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#model_not_found"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}{
"error": {
"type": "sealed_unavailable",
"message": "No Sealed capacity is available for this model right now. The request was not sent to a Routed offer.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#sealed_unavailable"
}
}Create a text completion
Legacy text completion for models of kind completion or chat. Same headers, routing, receipts and errors as chat completions. Streaming uses the same event-stream framing with text_completion chunks. This endpoint is served Routed only: a request for the Sealed tier (by panward-tier, or by default) is refused 400 unsupported_parameter naming panward-tier.
Needs an API key with the inference scope.
Request headers
- AuthorizationstringRequired
Bearer pw_live_…: your API key.
- panward-tierTierPanwardTier to serve the request in. Without it the model's default tier applies, or Sealed when the policy is "Sealed only". Asking for
routedwhere the policy forbids it returns403 policy_blocked. Asealedrequest is never served by a Routed offer; with no eligible Sealed offer the answer is503 sealed_unavailable. One ofsealed,routed. - panward-fallbackstringPanwardOpt in to the project's fallback models. When the requested model has no capacity, the gateway tries each model of the policy's fallback list in order, with every policy constraint unchanged. The
panward-modelresponse header and the body'smodelname the model that answered. One ofallow. - panward-hold-until-verifiedstringPanwardNon-streaming requests only. Delays the response until the verification level is known and returns
503 verification_unavailableinstead of an unverified answer. Combined withstream: trueit returns400 unsupported_parameter. One oftrue. - X-Request-Idstringmax length 128 · pattern ^[A-Za-z0-9._:-]+$Client correlation id, echoed in the
panward-client-request-idresponse header. It is not forwarded upstream.
Body parameters application/json
- modelstringRequired
- promptstring | array of stringRequiredOne of: string, array of string
- max_tokensintegermin 1
- temperaturenumbermin 0 · max 2
- top_pnumbermax 1
- frequency_penaltynumbermin -2 · max 2
- presence_penaltynumbermin -2 · max 2
- seedinteger
- stopstring | array of stringOne of: string, array of string
- echobooleandefault: false
- logprobsintegermin 0 · max 5
- streambooleandefault: false
- stream_optionsStreamOptionsOnly valid with
stream: true.- include_usagebooleandefault: falseSend one extra final chunk with empty
choicesthat carriesusage. Without it the stream carries no usage.
- userstringmax length 256Accepted for compatibility and ignored. Never stored, never forwarded upstream.
Responses
200
The completion, as JSON or as an event stream when stream is true.
Headers: panward-request-id, panward-receipt-id, panward-tier, panward-region, panward-model, panward-client-request-id, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
application/json: CompletionResponse
text/event-stream: CompletionStream
- idstringRequiredCompletion id (
cmpl-…). - objectstringRequiredOne of
text_completion. - createdintegerRequired
- modelstringRequired
- choicesarray of objectRequired
- indexintegerRequired
- textstringRequired
- finish_reasonFinishReason | nullRequiredWhy generation stopped.
nullon stream chunks before the last one. One ofstop,length,tool_calls,content_filter,null. - logprobsobject | null
- usageUsage | anyAlways present on non-streamed responses; on streams only in the final chunk when
stream_options.include_usageis true.One of: Usage, any | null
400BadRequest
The request is malformed or not acceptable. type is invalid_request (malformed JSON, unknown or invalid parameter; param names it), context_length_exceeded (input plus maximum output exceeds the model's context) or unsupported_parameter (the parameter is not supported by this model).
Error types: invalid_request, context_length_exceeded, unsupported_parameter.
Headers: panward-request-id.
401Unauthorized
No API key was sent (authentication_required) or the key is unknown, revoked or expired (invalid_api_key).
Error types: authentication_required, invalid_api_key.
Headers: panward-request-id.
402PaymentRequired
The request cannot be paid for: insufficient_credit (balance too low for the estimated cost), spend_limit_reached (organization, project or key limit) or billing_unavailable. Nothing was forwarded and nothing is billed.
Error types: insufficient_credit, spend_limit_reached, billing_unavailable.
Headers: panward-request-id, panward-receipt-id.
403Forbidden
The key is valid but the request is not allowed: permission_denied (missing scope), model_not_enabled, policy_blocked (the project's policy refused the request), region_not_allowed (this gateway region is outside the policy's regions), ip_not_allowed or organization_suspended. Policy refusals on inference produce a signed receipt with policy.applied.decision: "deny". Max input tokens (a policy's prompt.max_input_tokens, a key's own prompt limit) is checked before the request is sent, on an estimate of the prompt's tokens made from its words, digits and punctuation. The model counts the prompt only after it answers, and its count can be above or below the estimate, most for very short prompts: a prompt close to the limit, under it or over it, can be refused or served. Each image counts as a fixed 16,384 tokens.
Error types: permission_denied, model_not_enabled, policy_blocked, region_not_allowed, ip_not_allowed, organization_suspended.
Headers: panward-request-id, panward-receipt-id.
404ModelNotFound
The model id is not a canonical model (model_not_found). Aliases are not resolved.
Error types: model_not_found.
Headers: panward-request-id.
413RequestTooLarge
The request body exceeds the size limit of the endpoint (request_too_large).
Error types: request_too_large.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
502BadGateway
No upstream attempt produced a response: upstream_unavailable (retryable) or upstream_rejected (the upstream refused a request Panward considered valid; reported to Panward automatically). The message never contains upstream text. Not billed.
Error types: upstream_unavailable, upstream_rejected.
Headers: panward-request-id, panward-receipt-id.
503ServiceUnavailable
The request cannot be served now: no_capacity (no eligible offer has headroom; retry after Retry-After), sealed_unavailable (no Sealed offer is currently eligible; the request is never downgraded to Routed) or verification_unavailable (verification material could not be produced, or the gateway could not verify a held response). 503 no_capacity and sealed_unavailable carry Retry-After; when the model's offers are temporarily closed it is the time until one is tried again.
Error types: no_capacity, sealed_unavailable, verification_unavailable, sealed_unavailable.
Headers: panward-request-id, panward-receipt-id, Retry-After.
504GatewayTimeout
No upstream attempt produced a first byte within the time budget (upstream_timeout). Retryable. Not billed.
Error types: upstream_timeout.
Headers: panward-request-id, panward-receipt-id.
curl https://api.panward.ai/v1/completions \ -H "Authorization: Bearer $PANWARD_API_KEY" \ -H "panward-tier: routed" \ -H "Content-Type: application/json" \ -d '{"model":"z-ai/glm-5.3","prompt":"text"}'
{
"error": {
"type": "invalid_request",
"message": "temperature must be between 0 and 2.",
"param": "temperature",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_request"
}
}{
"error": {
"type": "context_length_exceeded",
"message": "The input and max_tokens together exceed this model's context of 200000 tokens.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#context_length_exceeded"
}
}{
"error": {
"type": "invalid_api_key",
"message": "The API key is invalid, revoked or expired.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_api_key"
}
}{
"error": {
"type": "insufficient_credit",
"message": "Your balance is too low for this request. Add credit and try again.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#insufficient_credit"
}
}{
"error": {
"type": "policy_blocked",
"message": "This project's policy allows Sealed models only, and 'acme/atlas-2' is offered in the Routed tier.",
"param": "model",
"request_id": "req_01JC7Q6D4H9K2M5P8R1T3V6X7Z",
"doc_url": "https://panward.ai/docs/errors#policy_blocked"
}
}{
"error": {
"type": "region_not_allowed",
"message": "Your organization's policy does not allow requests in this region. Use api.eu.panward.ai.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#region_not_allowed"
}
}{
"error": {
"type": "model_not_found",
"message": "The model 'z-ai/glm-9' does not exist.",
"param": "model",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#model_not_found"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}{
"error": {
"type": "sealed_unavailable",
"message": "No Sealed capacity is available for this model right now. The request was not sent to a Routed offer.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#sealed_unavailable"
}
}Create embeddings
Returns one embedding vector per input, for models of kind embedding. panward-hold-until-verified is accepted. Billed on input tokens. This endpoint is served Routed only: a request for the Sealed tier (by panward-tier, or by default) is refused 400 unsupported_parameter naming panward-tier.
Needs an API key with the inference scope.
Request headers
- AuthorizationstringRequired
Bearer pw_live_…: your API key.
- panward-tierTierPanwardTier to serve the request in. Without it the model's default tier applies, or Sealed when the policy is "Sealed only". Asking for
routedwhere the policy forbids it returns403 policy_blocked. Asealedrequest is never served by a Routed offer; with no eligible Sealed offer the answer is503 sealed_unavailable. One ofsealed,routed. - panward-fallbackstringPanwardOpt in to the project's fallback models. When the requested model has no capacity, the gateway tries each model of the policy's fallback list in order, with every policy constraint unchanged. The
panward-modelresponse header and the body'smodelname the model that answered. One ofallow. - panward-hold-until-verifiedstringPanwardNon-streaming requests only. Delays the response until the verification level is known and returns
503 verification_unavailableinstead of an unverified answer. Combined withstream: trueit returns400 unsupported_parameter. One oftrue. - X-Request-Idstringmax length 128 · pattern ^[A-Za-z0-9._:-]+$Client correlation id, echoed in the
panward-client-request-idresponse header. It is not forwarded upstream.
Body parameters application/json
- modelstringRequiredCanonical id of a model of kind
embedding. - inputstring | array of stringRequiredOne text or up to 2048 texts.One of: string, array of string
- encoding_formatstringdefault: "float"One of
float,base64. - dimensionsintegermin 1Shorten the vectors, for models that support it.
- userstringmax length 256Accepted for compatibility and ignored. Never stored, never forwarded upstream.
Responses
200
The embeddings, in input order.
Headers: panward-request-id, panward-receipt-id, panward-tier, panward-region, panward-model, panward-client-request-id, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
application/json: EmbeddingResponse
- objectstringRequiredOne of
list. - dataarray of objectRequired
- objectstringRequiredOne of
embedding. - indexintegerRequired
- embeddingarray of number | stringRequiredThe vector as numbers, or as base64 of little-endian 32-bit floats when
encoding_formatisbase64.One of: array of number, string
- modelstringRequired
- Usage of endpoints that bill input tokens only.
400BadRequest
The request is malformed or not acceptable. type is invalid_request (malformed JSON, unknown or invalid parameter; param names it), context_length_exceeded (input plus maximum output exceeds the model's context) or unsupported_parameter (the parameter is not supported by this model).
Error types: invalid_request, context_length_exceeded, unsupported_parameter.
Headers: panward-request-id.
401Unauthorized
No API key was sent (authentication_required) or the key is unknown, revoked or expired (invalid_api_key).
Error types: authentication_required, invalid_api_key.
Headers: panward-request-id.
402PaymentRequired
The request cannot be paid for: insufficient_credit (balance too low for the estimated cost), spend_limit_reached (organization, project or key limit) or billing_unavailable. Nothing was forwarded and nothing is billed.
Error types: insufficient_credit, spend_limit_reached, billing_unavailable.
Headers: panward-request-id, panward-receipt-id.
403Forbidden
The key is valid but the request is not allowed: permission_denied (missing scope), model_not_enabled, policy_blocked (the project's policy refused the request), region_not_allowed (this gateway region is outside the policy's regions), ip_not_allowed or organization_suspended. Policy refusals on inference produce a signed receipt with policy.applied.decision: "deny". Max input tokens (a policy's prompt.max_input_tokens, a key's own prompt limit) is checked before the request is sent, on an estimate of the prompt's tokens made from its words, digits and punctuation. The model counts the prompt only after it answers, and its count can be above or below the estimate, most for very short prompts: a prompt close to the limit, under it or over it, can be refused or served. Each image counts as a fixed 16,384 tokens.
Error types: permission_denied, model_not_enabled, policy_blocked, region_not_allowed, ip_not_allowed, organization_suspended.
Headers: panward-request-id, panward-receipt-id.
404ModelNotFound
The model id is not a canonical model (model_not_found). Aliases are not resolved.
Error types: model_not_found.
Headers: panward-request-id.
413RequestTooLarge
The request body exceeds the size limit of the endpoint (request_too_large).
Error types: request_too_large.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
502BadGateway
No upstream attempt produced a response: upstream_unavailable (retryable) or upstream_rejected (the upstream refused a request Panward considered valid; reported to Panward automatically). The message never contains upstream text. Not billed.
Error types: upstream_unavailable, upstream_rejected.
Headers: panward-request-id, panward-receipt-id.
503ServiceUnavailable
The request cannot be served now: no_capacity (no eligible offer has headroom; retry after Retry-After), sealed_unavailable (no Sealed offer is currently eligible; the request is never downgraded to Routed) or verification_unavailable (verification material could not be produced, or the gateway could not verify a held response). 503 no_capacity and sealed_unavailable carry Retry-After; when the model's offers are temporarily closed it is the time until one is tried again.
Error types: no_capacity, sealed_unavailable, verification_unavailable, sealed_unavailable.
Headers: panward-request-id, panward-receipt-id, Retry-After.
504GatewayTimeout
No upstream attempt produced a first byte within the time budget (upstream_timeout). Retryable. Not billed.
Error types: upstream_timeout.
Headers: panward-request-id, panward-receipt-id.
curl https://api.panward.ai/v1/embeddings \ -H "Authorization: Bearer $PANWARD_API_KEY" \ -H "panward-tier: routed" \ -H "Content-Type: application/json" \ -d '{"model":"'"$PANWARD_EMBEDDING_MODEL"'","input":"text"}'
{
"error": {
"type": "invalid_request",
"message": "temperature must be between 0 and 2.",
"param": "temperature",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_request"
}
}{
"error": {
"type": "context_length_exceeded",
"message": "The input and max_tokens together exceed this model's context of 200000 tokens.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#context_length_exceeded"
}
}{
"error": {
"type": "invalid_api_key",
"message": "The API key is invalid, revoked or expired.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_api_key"
}
}{
"error": {
"type": "insufficient_credit",
"message": "Your balance is too low for this request. Add credit and try again.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#insufficient_credit"
}
}{
"error": {
"type": "policy_blocked",
"message": "This project's policy allows Sealed models only, and 'acme/atlas-2' is offered in the Routed tier.",
"param": "model",
"request_id": "req_01JC7Q6D4H9K2M5P8R1T3V6X7Z",
"doc_url": "https://panward.ai/docs/errors#policy_blocked"
}
}{
"error": {
"type": "region_not_allowed",
"message": "Your organization's policy does not allow requests in this region. Use api.eu.panward.ai.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#region_not_allowed"
}
}{
"error": {
"type": "model_not_found",
"message": "The model 'z-ai/glm-9' does not exist.",
"param": "model",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#model_not_found"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}{
"error": {
"type": "sealed_unavailable",
"message": "No Sealed capacity is available for this model right now. The request was not sent to a Routed offer.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#sealed_unavailable"
}
}Rerank documents against a query
Scores each document for relevance to the query and returns them ordered by score, for models of kind rerank. Billed on input tokens.
Needs an API key with the inference scope.
Request headers
- AuthorizationstringRequired
Bearer pw_live_…: your API key.
- panward-tierTierPanwardTier to serve the request in. Without it the model's default tier applies, or Sealed when the policy is "Sealed only". Asking for
routedwhere the policy forbids it returns403 policy_blocked. Asealedrequest is never served by a Routed offer; with no eligible Sealed offer the answer is503 sealed_unavailable. One ofsealed,routed. - panward-fallbackstringPanwardOpt in to the project's fallback models. When the requested model has no capacity, the gateway tries each model of the policy's fallback list in order, with every policy constraint unchanged. The
panward-modelresponse header and the body'smodelname the model that answered. One ofallow. - panward-hold-until-verifiedstringPanwardNon-streaming requests only. Delays the response until the verification level is known and returns
503 verification_unavailableinstead of an unverified answer. Combined withstream: trueit returns400 unsupported_parameter. One oftrue. - X-Request-Idstringmax length 128 · pattern ^[A-Za-z0-9._:-]+$Client correlation id, echoed in the
panward-client-request-idresponse header. It is not forwarded upstream.
Body parameters application/json
- modelstringRequiredCanonical id of a model of kind
rerank. - querystringRequired
- documentsarray of stringRequiredmin items 1 · max items 1000
- top_nintegermin 1Return only the best
top_nresults. Defaults to all documents. - return_documentsbooleandefault: falseInclude each document's text in the results.
Responses
200
The ranked results.
Headers: panward-request-id, panward-receipt-id, panward-tier, panward-region, panward-model, panward-client-request-id, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
application/json: RerankResponse
- idstringRequiredRerank id (
rerank-…). - objectstringRequiredOne of
rerank. - modelstringRequired
- resultsarray of objectRequiredOrdered by
relevance_score, highest first.- indexintegerRequiredPosition of the document in the request.
- relevance_scorenumberRequired
- documentstringPresent when
return_documentsis true.
- Usage of endpoints that bill input tokens only.
400BadRequest
The request is malformed or not acceptable. type is invalid_request (malformed JSON, unknown or invalid parameter; param names it), context_length_exceeded (input plus maximum output exceeds the model's context) or unsupported_parameter (the parameter is not supported by this model).
Error types: invalid_request, context_length_exceeded, unsupported_parameter.
Headers: panward-request-id.
401Unauthorized
No API key was sent (authentication_required) or the key is unknown, revoked or expired (invalid_api_key).
Error types: authentication_required, invalid_api_key.
Headers: panward-request-id.
402PaymentRequired
The request cannot be paid for: insufficient_credit (balance too low for the estimated cost), spend_limit_reached (organization, project or key limit) or billing_unavailable. Nothing was forwarded and nothing is billed.
Error types: insufficient_credit, spend_limit_reached, billing_unavailable.
Headers: panward-request-id, panward-receipt-id.
403Forbidden
The key is valid but the request is not allowed: permission_denied (missing scope), model_not_enabled, policy_blocked (the project's policy refused the request), region_not_allowed (this gateway region is outside the policy's regions), ip_not_allowed or organization_suspended. Policy refusals on inference produce a signed receipt with policy.applied.decision: "deny". Max input tokens (a policy's prompt.max_input_tokens, a key's own prompt limit) is checked before the request is sent, on an estimate of the prompt's tokens made from its words, digits and punctuation. The model counts the prompt only after it answers, and its count can be above or below the estimate, most for very short prompts: a prompt close to the limit, under it or over it, can be refused or served. Each image counts as a fixed 16,384 tokens.
Error types: permission_denied, model_not_enabled, policy_blocked, region_not_allowed, ip_not_allowed, organization_suspended.
Headers: panward-request-id, panward-receipt-id.
404ModelNotFound
The model id is not a canonical model (model_not_found). Aliases are not resolved.
Error types: model_not_found.
Headers: panward-request-id.
413RequestTooLarge
The request body exceeds the size limit of the endpoint (request_too_large).
Error types: request_too_large.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
502BadGateway
No upstream attempt produced a response: upstream_unavailable (retryable) or upstream_rejected (the upstream refused a request Panward considered valid; reported to Panward automatically). The message never contains upstream text. Not billed.
Error types: upstream_unavailable, upstream_rejected.
Headers: panward-request-id, panward-receipt-id.
503ServiceUnavailable
The request cannot be served now: no_capacity (no eligible offer has headroom; retry after Retry-After), sealed_unavailable (no Sealed offer is currently eligible; the request is never downgraded to Routed) or verification_unavailable (verification material could not be produced, or the gateway could not verify a held response). 503 no_capacity and sealed_unavailable carry Retry-After; when the model's offers are temporarily closed it is the time until one is tried again.
Error types: no_capacity, sealed_unavailable, verification_unavailable, sealed_unavailable.
Headers: panward-request-id, panward-receipt-id, Retry-After.
504GatewayTimeout
No upstream attempt produced a first byte within the time budget (upstream_timeout). Retryable. Not billed.
Error types: upstream_timeout.
Headers: panward-request-id, panward-receipt-id.
curl https://api.panward.ai/v1/rerank \ -H "Authorization: Bearer $PANWARD_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"'"$PANWARD_RERANK_MODEL"'","query":"text","documents":["text"]}'
{
"error": {
"type": "invalid_request",
"message": "temperature must be between 0 and 2.",
"param": "temperature",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_request"
}
}{
"error": {
"type": "context_length_exceeded",
"message": "The input and max_tokens together exceed this model's context of 200000 tokens.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#context_length_exceeded"
}
}{
"error": {
"type": "invalid_api_key",
"message": "The API key is invalid, revoked or expired.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_api_key"
}
}{
"error": {
"type": "insufficient_credit",
"message": "Your balance is too low for this request. Add credit and try again.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#insufficient_credit"
}
}{
"error": {
"type": "policy_blocked",
"message": "This project's policy allows Sealed models only, and 'acme/atlas-2' is offered in the Routed tier.",
"param": "model",
"request_id": "req_01JC7Q6D4H9K2M5P8R1T3V6X7Z",
"doc_url": "https://panward.ai/docs/errors#policy_blocked"
}
}{
"error": {
"type": "region_not_allowed",
"message": "Your organization's policy does not allow requests in this region. Use api.eu.panward.ai.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#region_not_allowed"
}
}{
"error": {
"type": "model_not_found",
"message": "The model 'z-ai/glm-9' does not exist.",
"param": "model",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#model_not_found"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}{
"error": {
"type": "sealed_unavailable",
"message": "No Sealed capacity is available for this model right now. The request was not sent to a Routed offer.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#sealed_unavailable"
}
}Transcribe audio
Transcribes an audio file with a model of kind transcription. The request is multipart/form-data; the receipt's request hash covers the exact multipart body bytes. The audio is processed in memory and is not stored. Billed per audio minute.
Needs an API key with the inference scope.
Request headers
- AuthorizationstringRequired
Bearer pw_live_…: your API key.
- panward-tierTierPanwardTier to serve the request in. Without it the model's default tier applies, or Sealed when the policy is "Sealed only". Asking for
routedwhere the policy forbids it returns403 policy_blocked. Asealedrequest is never served by a Routed offer; with no eligible Sealed offer the answer is503 sealed_unavailable. One ofsealed,routed. - panward-fallbackstringPanwardOpt in to the project's fallback models. When the requested model has no capacity, the gateway tries each model of the policy's fallback list in order, with every policy constraint unchanged. The
panward-modelresponse header and the body'smodelname the model that answered. One ofallow. - panward-hold-until-verifiedstringPanwardNon-streaming requests only. Delays the response until the verification level is known and returns
503 verification_unavailableinstead of an unverified answer. Combined withstream: trueit returns400 unsupported_parameter. One oftrue. - X-Request-Idstringmax length 128 · pattern ^[A-Za-z0-9._:-]+$Client correlation id, echoed in the
panward-client-request-idresponse header. It is not forwarded upstream.
Body parameters multipart/form-data
- filestringRequiredThe audio file (flac, mp3, mp4, m4a, ogg, wav or webm), at most 25 MB.
- modelstringRequiredCanonical id of a model of kind
transcription. - languagestringLanguage of the audio as an ISO 639-1 code. Improves accuracy and speed.
- promptstringText to guide style or spelling.
- response_formatstringdefault: "json"One of
json,text,verbose_json,srt,vtt. - temperaturenumbermin 0 · max 1
Responses
200
The transcription. JSON for response_format json (default) and verbose_json; plain text for text, srt and vtt.
Headers: panward-request-id, panward-receipt-id, panward-tier, panward-region, panward-model, panward-client-request-id, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
application/json: TranscriptionResponse
text/plain
- textstringRequired
- languagestringDetected or given language (
verbose_json). - durationnumberAudio length in seconds (
verbose_json). This is the billed quantity. - segmentsarray of objectTimed segments (
verbose_json).- idintegerRequired
- startnumberRequired
- endnumberRequired
- textstringRequired
400BadRequest
The request is malformed or not acceptable. type is invalid_request (malformed JSON, unknown or invalid parameter; param names it), context_length_exceeded (input plus maximum output exceeds the model's context) or unsupported_parameter (the parameter is not supported by this model).
Error types: invalid_request, context_length_exceeded, unsupported_parameter.
Headers: panward-request-id.
401Unauthorized
No API key was sent (authentication_required) or the key is unknown, revoked or expired (invalid_api_key).
Error types: authentication_required, invalid_api_key.
Headers: panward-request-id.
402PaymentRequired
The request cannot be paid for: insufficient_credit (balance too low for the estimated cost), spend_limit_reached (organization, project or key limit) or billing_unavailable. Nothing was forwarded and nothing is billed.
Error types: insufficient_credit, spend_limit_reached, billing_unavailable.
Headers: panward-request-id, panward-receipt-id.
403Forbidden
The key is valid but the request is not allowed: permission_denied (missing scope), model_not_enabled, policy_blocked (the project's policy refused the request), region_not_allowed (this gateway region is outside the policy's regions), ip_not_allowed or organization_suspended. Policy refusals on inference produce a signed receipt with policy.applied.decision: "deny". Max input tokens (a policy's prompt.max_input_tokens, a key's own prompt limit) is checked before the request is sent, on an estimate of the prompt's tokens made from its words, digits and punctuation. The model counts the prompt only after it answers, and its count can be above or below the estimate, most for very short prompts: a prompt close to the limit, under it or over it, can be refused or served. Each image counts as a fixed 16,384 tokens.
Error types: permission_denied, model_not_enabled, policy_blocked, region_not_allowed, ip_not_allowed, organization_suspended.
Headers: panward-request-id, panward-receipt-id.
404ModelNotFound
The model id is not a canonical model (model_not_found). Aliases are not resolved.
Error types: model_not_found.
Headers: panward-request-id.
413RequestTooLarge
The request body exceeds the size limit of the endpoint (request_too_large).
Error types: request_too_large.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
502BadGateway
No upstream attempt produced a response: upstream_unavailable (retryable) or upstream_rejected (the upstream refused a request Panward considered valid; reported to Panward automatically). The message never contains upstream text. Not billed.
Error types: upstream_unavailable, upstream_rejected.
Headers: panward-request-id, panward-receipt-id.
503ServiceUnavailable
The request cannot be served now: no_capacity (no eligible offer has headroom; retry after Retry-After), sealed_unavailable (no Sealed offer is currently eligible; the request is never downgraded to Routed) or verification_unavailable (verification material could not be produced, or the gateway could not verify a held response). 503 no_capacity and sealed_unavailable carry Retry-After; when the model's offers are temporarily closed it is the time until one is tried again.
Error types: no_capacity, sealed_unavailable, verification_unavailable, sealed_unavailable.
Headers: panward-request-id, panward-receipt-id, Retry-After.
504GatewayTimeout
No upstream attempt produced a first byte within the time budget (upstream_timeout). Retryable. Not billed.
Error types: upstream_timeout.
Headers: panward-request-id, panward-receipt-id.
curl https://api.panward.ai/v1/audio/transcriptions \ -H "Authorization: Bearer $PANWARD_API_KEY" \ -F [email protected] \ -F model="$PANWARD_TRANSCRIPTION_MODEL"
{
"error": {
"type": "invalid_request",
"message": "temperature must be between 0 and 2.",
"param": "temperature",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_request"
}
}{
"error": {
"type": "context_length_exceeded",
"message": "The input and max_tokens together exceed this model's context of 200000 tokens.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#context_length_exceeded"
}
}{
"error": {
"type": "invalid_api_key",
"message": "The API key is invalid, revoked or expired.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_api_key"
}
}{
"error": {
"type": "insufficient_credit",
"message": "Your balance is too low for this request. Add credit and try again.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#insufficient_credit"
}
}{
"error": {
"type": "policy_blocked",
"message": "This project's policy allows Sealed models only, and 'acme/atlas-2' is offered in the Routed tier.",
"param": "model",
"request_id": "req_01JC7Q6D4H9K2M5P8R1T3V6X7Z",
"doc_url": "https://panward.ai/docs/errors#policy_blocked"
}
}{
"error": {
"type": "region_not_allowed",
"message": "Your organization's policy does not allow requests in this region. Use api.eu.panward.ai.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#region_not_allowed"
}
}{
"error": {
"type": "model_not_found",
"message": "The model 'z-ai/glm-9' does not exist.",
"param": "model",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#model_not_found"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}{
"error": {
"type": "sealed_unavailable",
"message": "No Sealed capacity is available for this model right now. The request was not sent to a Routed offer.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#sealed_unavailable"
}
}Generate images
Generates images from a text prompt with a model of kind image. Images are returned inline as base64 (b64_json); Panward stores no content, so hosted image URLs are not offered. Billed per image.
Needs an API key with the inference scope.
Request headers
- AuthorizationstringRequired
Bearer pw_live_…: your API key.
- panward-tierTierPanwardTier to serve the request in. Without it the model's default tier applies, or Sealed when the policy is "Sealed only". Asking for
routedwhere the policy forbids it returns403 policy_blocked. Asealedrequest is never served by a Routed offer; with no eligible Sealed offer the answer is503 sealed_unavailable. One ofsealed,routed. - panward-fallbackstringPanwardOpt in to the project's fallback models. When the requested model has no capacity, the gateway tries each model of the policy's fallback list in order, with every policy constraint unchanged. The
panward-modelresponse header and the body'smodelname the model that answered. One ofallow. - panward-hold-until-verifiedstringPanwardNon-streaming requests only. Delays the response until the verification level is known and returns
503 verification_unavailableinstead of an unverified answer. Combined withstream: trueit returns400 unsupported_parameter. One oftrue. - X-Request-Idstringmax length 128 · pattern ^[A-Za-z0-9._:-]+$Client correlation id, echoed in the
panward-client-request-idresponse header. It is not forwarded upstream.
Body parameters application/json
- modelstringRequiredCanonical id of a model of kind
image. - promptstringRequiredmax length 32000
- nintegerdefault: 1 · min 1 · max 4
- sizestringWidth x height in pixels; allowed values depend on the model.
- response_formatstringdefault: "b64_json"Only inline base64 is offered;
urlreturns400 unsupported_parameter. One ofb64_json. - seedinteger
- userstringmax length 256Accepted for compatibility and ignored. Never stored, never forwarded upstream.
Responses
200
The generated images.
Headers: panward-request-id, panward-receipt-id, panward-tier, panward-region, panward-model, panward-client-request-id, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
application/json: ImageGenerationResponse
- createdintegerRequired
- dataarray of objectRequired
- b64_jsonstringRequiredThe image, base64-encoded.
- revised_promptstring
- usageobjectBilled quantity.
- imagesintegerRequired
400BadRequest
The request is malformed or not acceptable. type is invalid_request (malformed JSON, unknown or invalid parameter; param names it), context_length_exceeded (input plus maximum output exceeds the model's context) or unsupported_parameter (the parameter is not supported by this model).
Error types: invalid_request, context_length_exceeded, unsupported_parameter.
Headers: panward-request-id.
401Unauthorized
No API key was sent (authentication_required) or the key is unknown, revoked or expired (invalid_api_key).
Error types: authentication_required, invalid_api_key.
Headers: panward-request-id.
402PaymentRequired
The request cannot be paid for: insufficient_credit (balance too low for the estimated cost), spend_limit_reached (organization, project or key limit) or billing_unavailable. Nothing was forwarded and nothing is billed.
Error types: insufficient_credit, spend_limit_reached, billing_unavailable.
Headers: panward-request-id, panward-receipt-id.
403Forbidden
The key is valid but the request is not allowed: permission_denied (missing scope), model_not_enabled, policy_blocked (the project's policy refused the request), region_not_allowed (this gateway region is outside the policy's regions), ip_not_allowed or organization_suspended. Policy refusals on inference produce a signed receipt with policy.applied.decision: "deny". Max input tokens (a policy's prompt.max_input_tokens, a key's own prompt limit) is checked before the request is sent, on an estimate of the prompt's tokens made from its words, digits and punctuation. The model counts the prompt only after it answers, and its count can be above or below the estimate, most for very short prompts: a prompt close to the limit, under it or over it, can be refused or served. Each image counts as a fixed 16,384 tokens.
Error types: permission_denied, model_not_enabled, policy_blocked, region_not_allowed, ip_not_allowed, organization_suspended.
Headers: panward-request-id, panward-receipt-id.
404ModelNotFound
The model id is not a canonical model (model_not_found). Aliases are not resolved.
Error types: model_not_found.
Headers: panward-request-id.
413RequestTooLarge
The request body exceeds the size limit of the endpoint (request_too_large).
Error types: request_too_large.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
502BadGateway
No upstream attempt produced a response: upstream_unavailable (retryable) or upstream_rejected (the upstream refused a request Panward considered valid; reported to Panward automatically). The message never contains upstream text. Not billed.
Error types: upstream_unavailable, upstream_rejected.
Headers: panward-request-id, panward-receipt-id.
503ServiceUnavailable
The request cannot be served now: no_capacity (no eligible offer has headroom; retry after Retry-After), sealed_unavailable (no Sealed offer is currently eligible; the request is never downgraded to Routed) or verification_unavailable (verification material could not be produced, or the gateway could not verify a held response). 503 no_capacity and sealed_unavailable carry Retry-After; when the model's offers are temporarily closed it is the time until one is tried again.
Error types: no_capacity, sealed_unavailable, verification_unavailable, sealed_unavailable.
Headers: panward-request-id, panward-receipt-id, Retry-After.
504GatewayTimeout
No upstream attempt produced a first byte within the time budget (upstream_timeout). Retryable. Not billed.
Error types: upstream_timeout.
Headers: panward-request-id, panward-receipt-id.
curl https://api.panward.ai/v1/images/generations \ -H "Authorization: Bearer $PANWARD_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"'"$PANWARD_IMAGE_MODEL"'","prompt":"text"}'
{
"error": {
"type": "invalid_request",
"message": "temperature must be between 0 and 2.",
"param": "temperature",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_request"
}
}{
"error": {
"type": "context_length_exceeded",
"message": "The input and max_tokens together exceed this model's context of 200000 tokens.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#context_length_exceeded"
}
}{
"error": {
"type": "invalid_api_key",
"message": "The API key is invalid, revoked or expired.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_api_key"
}
}{
"error": {
"type": "insufficient_credit",
"message": "Your balance is too low for this request. Add credit and try again.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#insufficient_credit"
}
}{
"error": {
"type": "policy_blocked",
"message": "This project's policy allows Sealed models only, and 'acme/atlas-2' is offered in the Routed tier.",
"param": "model",
"request_id": "req_01JC7Q6D4H9K2M5P8R1T3V6X7Z",
"doc_url": "https://panward.ai/docs/errors#policy_blocked"
}
}{
"error": {
"type": "region_not_allowed",
"message": "Your organization's policy does not allow requests in this region. Use api.eu.panward.ai.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#region_not_allowed"
}
}{
"error": {
"type": "model_not_found",
"message": "The model 'z-ai/glm-9' does not exist.",
"param": "model",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#model_not_found"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}{
"error": {
"type": "sealed_unavailable",
"message": "No Sealed capacity is available for this model right now. The request was not sent to a Routed offer.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#sealed_unavailable"
}
}List models
Lists the canonical models enabled for the key's organization and project, with the organization's prices (list prices unless the organization has an override). Under a region-pinned policy only models that can be served within the pinned regions are marked available. The response keeps the OpenAI list shape (object, data) and adds next_cursor.
Needs an API key with the models.read scope.
Request headers
- AuthorizationstringRequired
Bearer pw_live_…: your API key.
Query parameters
- kindModelKindRestrict to models of one kind. One of
chat,completion,embedding,rerank,transcription,image. - tierTierRestrict to models offered in this tier. One of
sealed,routed. - regionRegionRestrict to models that can be served in this region. One of
eu,us,ap. - limitintegerdefault: 50 · min 1 · max 200Page size.
- cursorstringOpaque cursor from a previous response's
next_cursor.
Responses
200
A page of models.
Headers: panward-request-id.
application/json: ModelList
- objectstringRequiredOne of
list. - next_cursorstring | nullRequired
400BadRequest
The request is malformed or not acceptable. type is invalid_request (malformed JSON, unknown or invalid parameter; param names it), context_length_exceeded (input plus maximum output exceeds the model's context) or unsupported_parameter (the parameter is not supported by this model).
Error types: invalid_request, context_length_exceeded, unsupported_parameter.
Headers: panward-request-id.
401Unauthorized
No API key was sent (authentication_required) or the key is unknown, revoked or expired (invalid_api_key).
Error types: authentication_required, invalid_api_key.
Headers: panward-request-id.
403Forbidden
The key is valid but the request is not allowed: permission_denied (missing scope), model_not_enabled, policy_blocked (the project's policy refused the request), region_not_allowed (this gateway region is outside the policy's regions), ip_not_allowed or organization_suspended. Policy refusals on inference produce a signed receipt with policy.applied.decision: "deny". Max input tokens (a policy's prompt.max_input_tokens, a key's own prompt limit) is checked before the request is sent, on an estimate of the prompt's tokens made from its words, digits and punctuation. The model counts the prompt only after it answers, and its count can be above or below the estimate, most for very short prompts: a prompt close to the limit, under it or over it, can be refused or served. Each image counts as a fixed 16,384 tokens.
Error types: permission_denied, model_not_enabled, policy_blocked, region_not_allowed, ip_not_allowed, organization_suspended.
Headers: panward-request-id, panward-receipt-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
curl https://api.panward.ai/v1/models \ -H "Authorization: Bearer $PANWARD_API_KEY"
{
"error": {
"type": "invalid_request",
"message": "temperature must be between 0 and 2.",
"param": "temperature",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_request"
}
}{
"error": {
"type": "context_length_exceeded",
"message": "The input and max_tokens together exceed this model's context of 200000 tokens.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#context_length_exceeded"
}
}{
"error": {
"type": "invalid_api_key",
"message": "The API key is invalid, revoked or expired.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_api_key"
}
}{
"error": {
"type": "policy_blocked",
"message": "This project's policy allows Sealed models only, and 'acme/atlas-2' is offered in the Routed tier.",
"param": "model",
"request_id": "req_01JC7Q6D4H9K2M5P8R1T3V6X7Z",
"doc_url": "https://panward.ai/docs/errors#policy_blocked"
}
}{
"error": {
"type": "region_not_allowed",
"message": "Your organization's policy does not allow requests in this region. Use api.eu.panward.ai.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#region_not_allowed"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}Retrieve a model
Returns one model. Canonical model ids contain a slash (z-ai/glm-5.3), so the id is written as two path segments. The single-segment form with the slash percent-encoded (/models/z-ai%2Fglm-5.3) returns the same document.
Needs an API key with the models.read scope.
Request headers
- AuthorizationstringRequired
Bearer pw_live_…: your API key.
Path parameters
- vendorstringRequiredpattern ^[a-z0-9][a-z0-9._-]*$First segment of the canonical model id (the model's publisher).
- namestringRequiredpattern ^[A-Za-z0-9][A-Za-z0-9._-]*$Second segment of the canonical model id.
Responses
200
The model.
Headers: panward-request-id.
application/json: Model
- idstringRequiredCanonical model id,
vendor/name. - objectstringRequiredOne of
model. - createdintegerWhen the model was added to the catalog, Unix seconds.
- owned_bystringPublisher of the model (the first segment of the id).
- namestringRequiredDisplay name.
- descriptionstring
- kindModelKindRequiredWhat the model does, which decides the endpoint it is called through. One of
chat,completion,embedding,rerank,transcription,image. - Tiers the model is offered in.
- default_tierTierRequiredProduct tier.
sealedmeans the gateway verifies the upstream hop against enclave evidence;routedmeans it does not. One ofsealed,routed. - Sealed sub-levels that can be reached for this model; empty for a model offered only in the Routed tier.
sealed_model_signedis available for non-streamed requests only. The level reached is stated per response in the receipt. - hardwarearray of stringHardware technologies behind the Sealed tier of this model.
- context_lengthinteger | nullThe model's advertised context, in tokens: the catalog's override, otherwise the largest context among the offers that serve the model's default tier (the figure the site, the console and the back office show). A request is only sent to an offer it fits; a request no offer can take is refused with
context_length_exceeded. Null for kinds without a token context. - max_output_tokensinteger | nullThe model's advertised maximum output, in tokens: the catalog's own figure, otherwise the largest among the offers that serve the model's default tier (the figure the site and the console show). A request is only sent to an offer that gives the output it asks for. Null where there is none or the kind writes no tokens.
- thinks_before_answeringbooleanRequiredThe model thinks before it answers: its answers carry reasoning tokens (
usage.completion_tokens_details.reasoning_tokens, billed as output tokens), whether or not the request sends a reasoning control. This is the catalog's statement about the model. It is independent ofcapabilities.reasoning, which says whether the model accepts thereasoningandreasoning_effortcontrols: a model can think before answering and still refuse the controls with400 unsupported_parameter. - modalitiesobjectRequired
- One price per tier the model is offered in.
- regionsarray of objectRequiredWhere the model can be served. A model that cannot be pinned to a region is absent from region-pinned catalogs.
- regionRegionRequiredPanward region. One of
eu,us,ap. - statusstringRequiredOne of
available,degraded,unavailable.
- statusstringRequiredLifecycle state. A
deprecatedmodel has a retirement date at least 90 days after its announcement. One ofavailable,preview,degraded,deprecated,retired. - retires_atinteger | nullRetirement time, Unix seconds, when the model is deprecated.
401Unauthorized
No API key was sent (authentication_required) or the key is unknown, revoked or expired (invalid_api_key).
Error types: authentication_required, invalid_api_key.
Headers: panward-request-id.
403Forbidden
The key is valid but the request is not allowed: permission_denied (missing scope), model_not_enabled, policy_blocked (the project's policy refused the request), region_not_allowed (this gateway region is outside the policy's regions), ip_not_allowed or organization_suspended. Policy refusals on inference produce a signed receipt with policy.applied.decision: "deny". Max input tokens (a policy's prompt.max_input_tokens, a key's own prompt limit) is checked before the request is sent, on an estimate of the prompt's tokens made from its words, digits and punctuation. The model counts the prompt only after it answers, and its count can be above or below the estimate, most for very short prompts: a prompt close to the limit, under it or over it, can be refused or served. Each image counts as a fixed 16,384 tokens.
Error types: permission_denied, model_not_enabled, policy_blocked, region_not_allowed, ip_not_allowed, organization_suspended.
Headers: panward-request-id, panward-receipt-id.
404ModelNotFound
The model id is not a canonical model (model_not_found). Aliases are not resolved.
Error types: model_not_found.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
curl https://api.panward.ai/v1/models/z-ai/glm-5.3 \ -H "Authorization: Bearer $PANWARD_API_KEY"
{
"id": "z-ai/glm-5.3",
"object": "model",
"created": 1788000000,
"owned_by": "z-ai",
"name": "GLM 5.3",
"description": "General-purpose reasoning model with tool calling and structured output.",
"kind": "chat",
"tiers": [
"sealed"
],
"default_tier": "sealed",
"verification_levels": [
"sealed_model_signed",
"sealed_attested_path"
],
"hardware": [
"intel-tdx",
"nvidia-gpu"
],
"context_length": 200000,
"max_output_tokens": 32768,
"capabilities": {
"streaming": true,
"tools": true,
"json_schema": true,
"vision": false,
"reasoning": true,
"prompt_caching": true
},
"thinks_before_answering": true,
"modalities": {
"input": [
"text"
],
"output": [
"text"
]
},
"pricing": [
{
"tier": "sealed",
"currency": "USD",
"components": {
"input": {
"unit": "per_1m_tokens",
"amount_nano_usd": 2160000000,
"amount_usd": "2.16"
},
"cached_input": {
"unit": "per_1m_tokens",
"amount_nano_usd": 432000000,
"amount_usd": "0.432"
},
"output": {
"unit": "per_1m_tokens",
"amount_nano_usd": 8640000000,
"amount_usd": "8.64"
}
}
}
],
"regions": [
{
"region": "us",
"status": "available",
"tiers": [
"sealed"
]
},
{
"region": "eu",
"status": "available",
"tiers": [
"sealed"
]
}
],
"status": "available",
"retires_at": null
}{
"error": {
"type": "invalid_api_key",
"message": "The API key is invalid, revoked or expired.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_api_key"
}
}{
"error": {
"type": "policy_blocked",
"message": "This project's policy allows Sealed models only, and 'acme/atlas-2' is offered in the Routed tier.",
"param": "model",
"request_id": "req_01JC7Q6D4H9K2M5P8R1T3V6X7Z",
"doc_url": "https://panward.ai/docs/errors#policy_blocked"
}
}{
"error": {
"type": "region_not_allowed",
"message": "Your organization's policy does not allow requests in this region. Use api.eu.panward.ai.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#region_not_allowed"
}
}{
"error": {
"type": "model_not_found",
"message": "The model 'z-ai/glm-9' does not exist.",
"param": "model",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#model_not_found"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}Retrieve a model by percent-encoded id
Same as GET /models/{vendor}/{name}, for clients that pass the model id as one path segment. The slash in the id must be percent-encoded (z-ai%2Fglm-5.3).
Needs an API key with the models.read scope.
Request headers
- AuthorizationstringRequired
Bearer pw_live_…: your API key.
Path parameters
- idstringRequiredCanonical model id with its slash percent-encoded.
Responses
200
The model.
Headers: panward-request-id.
application/json: Model
- idstringRequiredCanonical model id,
vendor/name. - objectstringRequiredOne of
model. - createdintegerWhen the model was added to the catalog, Unix seconds.
- owned_bystringPublisher of the model (the first segment of the id).
- namestringRequiredDisplay name.
- descriptionstring
- kindModelKindRequiredWhat the model does, which decides the endpoint it is called through. One of
chat,completion,embedding,rerank,transcription,image. - Tiers the model is offered in.
- default_tierTierRequiredProduct tier.
sealedmeans the gateway verifies the upstream hop against enclave evidence;routedmeans it does not. One ofsealed,routed. - Sealed sub-levels that can be reached for this model; empty for a model offered only in the Routed tier.
sealed_model_signedis available for non-streamed requests only. The level reached is stated per response in the receipt. - hardwarearray of stringHardware technologies behind the Sealed tier of this model.
- context_lengthinteger | nullThe model's advertised context, in tokens: the catalog's override, otherwise the largest context among the offers that serve the model's default tier (the figure the site, the console and the back office show). A request is only sent to an offer it fits; a request no offer can take is refused with
context_length_exceeded. Null for kinds without a token context. - max_output_tokensinteger | nullThe model's advertised maximum output, in tokens: the catalog's own figure, otherwise the largest among the offers that serve the model's default tier (the figure the site and the console show). A request is only sent to an offer that gives the output it asks for. Null where there is none or the kind writes no tokens.
- thinks_before_answeringbooleanRequiredThe model thinks before it answers: its answers carry reasoning tokens (
usage.completion_tokens_details.reasoning_tokens, billed as output tokens), whether or not the request sends a reasoning control. This is the catalog's statement about the model. It is independent ofcapabilities.reasoning, which says whether the model accepts thereasoningandreasoning_effortcontrols: a model can think before answering and still refuse the controls with400 unsupported_parameter. - modalitiesobjectRequired
- One price per tier the model is offered in.
- regionsarray of objectRequiredWhere the model can be served. A model that cannot be pinned to a region is absent from region-pinned catalogs.
- regionRegionRequiredPanward region. One of
eu,us,ap. - statusstringRequiredOne of
available,degraded,unavailable.
- statusstringRequiredLifecycle state. A
deprecatedmodel has a retirement date at least 90 days after its announcement. One ofavailable,preview,degraded,deprecated,retired. - retires_atinteger | nullRetirement time, Unix seconds, when the model is deprecated.
401Unauthorized
No API key was sent (authentication_required) or the key is unknown, revoked or expired (invalid_api_key).
Error types: authentication_required, invalid_api_key.
Headers: panward-request-id.
403Forbidden
The key is valid but the request is not allowed: permission_denied (missing scope), model_not_enabled, policy_blocked (the project's policy refused the request), region_not_allowed (this gateway region is outside the policy's regions), ip_not_allowed or organization_suspended. Policy refusals on inference produce a signed receipt with policy.applied.decision: "deny". Max input tokens (a policy's prompt.max_input_tokens, a key's own prompt limit) is checked before the request is sent, on an estimate of the prompt's tokens made from its words, digits and punctuation. The model counts the prompt only after it answers, and its count can be above or below the estimate, most for very short prompts: a prompt close to the limit, under it or over it, can be refused or served. Each image counts as a fixed 16,384 tokens.
Error types: permission_denied, model_not_enabled, policy_blocked, region_not_allowed, ip_not_allowed, organization_suspended.
Headers: panward-request-id, panward-receipt-id.
404ModelNotFound
The model id is not a canonical model (model_not_found). Aliases are not resolved.
Error types: model_not_found.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
curl https://api.panward.ai/v1/models/z-ai%2Fglm-5.3 \ -H "Authorization: Bearer $PANWARD_API_KEY"
{
"error": {
"type": "invalid_api_key",
"message": "The API key is invalid, revoked or expired.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_api_key"
}
}{
"error": {
"type": "policy_blocked",
"message": "This project's policy allows Sealed models only, and 'acme/atlas-2' is offered in the Routed tier.",
"param": "model",
"request_id": "req_01JC7Q6D4H9K2M5P8R1T3V6X7Z",
"doc_url": "https://panward.ai/docs/errors#policy_blocked"
}
}{
"error": {
"type": "region_not_allowed",
"message": "Your organization's policy does not allow requests in this region. Use api.eu.panward.ai.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#region_not_allowed"
}
}{
"error": {
"type": "model_not_found",
"message": "The model 'z-ai/glm-9' does not exist.",
"param": "model",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#model_not_found"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}Get the gateway's attestation document
Returns a fresh attestation document from the gateway instance that answers, bound to the caller's nonce. No API key is needed. A verifier checks, in the client:
- the quote chains to the hardware vendor's root with current collateral, and debug mode is off;
- the quote's
report_dataequalsSHA-256(JCS(report_data_statement))followed by 32 zero bytes, and the statement carries the caller's nonce; report_data_statement.keyset_digestequalssha256:+ hex ofSHA-256(JCS(keyset));measurementsequal a row of the published release file (GET /public/releases);runtime_signatureis valid under a key ofkeyset.receipt_keys;- optionally, the TLS connection's key hash is in
keyset.tls_keys.
Instances differ in keys (each generates its own at boot), so verifiers pin measurements, never keys. A verifier checks older receipts against the archived boot-time document named by their gateway.attestation_id (returned by POST /public/receipts/verify).
No API key needed.
Query parameters
- noncestringRequiredpattern ^[0-9a-fA-F]{64}$32 random bytes chosen by the caller, as 64 hexadecimal characters. It is bound into the quote.
Responses
200
The attestation document of the answering instance.
Headers: panward-request-id, panward-region.
application/json: Attestation
- formatstringRequiredOne of
panward.attestation/1. - teestringRequiredOne of
intel-tdx. - quotestringRequiredpattern ^[0-9a-f]+$The hardware quote, hexadecimal. Its
report_dataisSHA-256(JCS(report_data_statement))followed by 32 zero bytes. - report_data_statementobjectRequired
- purposestringRequiredOne of
panward.attestation/1. - noncestringRequiredpattern ^[0-9a-fA-F]{64}$The caller's nonce; in an archived boot-time document, the hash of the keyset.
- keyset_digestanyRequired
sha256:+ hex ofSHA-256(JCS(keyset)).
- Keys generated inside the enclave at boot and bound into the quote. Verifiers pin measurements, not these keys.
- Launch and runtime measurement registers, each 96 hexadecimal characters.
- event_logarray of objectRequiredMeasured boot events that replay to the runtime measurement registers.
- registerintegerRequiredmin 0 · max 3
- eventstringRequired
- digeststringRequiredpattern ^[0-9a-f]+$
- payloadstring
- releaseobjectRequired
- versionstringRequired
- image_digestSha256RefRequiredpattern ^sha256:[0-9a-f]{64}$A content hash,
sha256:followed by 64 lowercase hexadecimal characters.
- runtimeobjectRequiredValues that change without a new image. They are not hardware-measured; they are signed by the attested receipt key.
- config_bundleSha256RefRequiredpattern ^sha256:[0-9a-f]{64}$A content hash,
sha256:followed by 64 lowercase hexadecimal characters. - verification_policySha256RefRequiredpattern ^sha256:[0-9a-f]{64}$A content hash,
sha256:followed by 64 lowercase hexadecimal characters. - regionRegionRequiredPanward region. One of
eu,us,ap. - started_atintegerRequired
- runtime_signaturestringRequiredpattern ^[0-9a-f]{128}$Ed25519 signature by a key of
keyset.receipt_keysover JCS(runtime), hexadecimal.
400BadRequest
The request is malformed or not acceptable. type is invalid_request (malformed JSON, unknown or invalid parameter; param names it), context_length_exceeded (input plus maximum output exceeds the model's context) or unsupported_parameter (the parameter is not supported by this model).
Error types: invalid_request, context_length_exceeded, unsupported_parameter.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
503ServiceUnavailable
The request cannot be served now: no_capacity (no eligible offer has headroom; retry after Retry-After), sealed_unavailable (no Sealed offer is currently eligible; the request is never downgraded to Routed) or verification_unavailable (verification material could not be produced, or the gateway could not verify a held response). 503 no_capacity and sealed_unavailable carry Retry-After; when the model's offers are temporarily closed it is the time until one is tried again.
Error types: no_capacity, sealed_unavailable, verification_unavailable, sealed_unavailable.
Headers: panward-request-id, panward-receipt-id, Retry-After.
curl "https://api.panward.ai/v1/attestation?nonce=5f3c9a1e7b2d4c6f8a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f"
{
"format": "panward.attestation/1",
"tee": "intel-tdx",
"quote": "040002008100000000000000939a7233f79c4ca9940a0db3957f0607",
"report_data_statement": {
"purpose": "panward.attestation/1",
"nonce": "5f3c9a1e7b2d4c6f8a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f",
"keyset_digest": "sha256:9b1d2f4c6e8a0b3d5f7a9c1e3b5d7f9a1c3e5b7d9f1a3c5e7b9d1f3a5c7e9b1d"
},
"keyset": {
"receipt_keys": [
{
"key_id": "rk_01JC7M2Q8X",
"alg": "ed25519",
"public_key": "3b6a27bcceb6a42d62a3a8d02a6f0d73653215771de243a63ac048a18b59da29"
}
],
"tls_keys": [
{
"domain": "api.eu.panward.ai",
"spki_sha256": "7d1a54127b222502f5b79b5fb0803061152a44f92b37e23c6527baf665d4da9a"
}
],
"not_after": 1790600000
},
"measurements": {
"mrtd": "c68518a0ebb42136c12b2275164f8c72f25fa9a34392228687ed6e9caeb9c0f1dbd895e9cf475121c029dc47e70e91fd",
"rtmr0": "85e0855a6384fa1c8a6ab36d0dcbfaa11a5753e5a070c08218ae5fe872fcb86967fd2449c29e22e59dc9fec998cb6547",
"rtmr1": "9b43f9f34a64bec7ec8c2a1d6b5d0a9e2c1f8a7b6c5d4e3f2a1b0c9d8e7f6a5b4c3d2e1f0a9b8c7d6e5f4a3b2c1d0e9f",
"rtmr2": "7cc2dadd5849bad220ab122c4fbf25a74dc91cc12702447d3b5cac0f49b2b139994f5cd936b293e5f0f14dea4262d668",
"rtmr3": "2e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d"
},
"event_log": [
{
"register": 3,
"event": "image-digest",
"digest": "2e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d",
"payload": "sha256:4f8b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b"
}
],
"release": {
"version": "2026.11.3",
"image_digest": "sha256:4f8b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b",
"transparency_log": {
"log_index": 148220931,
"bundle": "eyJTaWduZWRFbnRyeVRpbWVzdGFtcCI6Ik1FVUNJUUQifQ"
}
},
"runtime": {
"config_bundle": "sha256:1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b",
"verification_policy": "sha256:6f5e4d3c2b1a0f9e8d7c6b5a4f3e2d1c0b9a8f7e6d5c4b3a2f1e0d9c8b7a6f5e",
"region": "eu",
"started_at": 1789990000
},
"runtime_signature": "8ef196e78fc6d3734becb55e3d6ce49a939b8eed820dc5c1f1c4c7c11fd7b365bf5eac898e5cdad15aa77fcf8431c1713ccb3aba597fb897b1d58c7ebc8f0c66"
}{
"error": {
"type": "invalid_request",
"message": "temperature must be between 0 and 2.",
"param": "temperature",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_request"
}
}{
"error": {
"type": "context_length_exceeded",
"message": "The input and max_tokens together exceed this model's context of 200000 tokens.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#context_length_exceeded"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}{
"error": {
"type": "sealed_unavailable",
"message": "No Sealed capacity is available for this model right now. The request was not sent to a Routed offer.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#sealed_unavailable"
}
}Retrieve a receipt
Returns the receipt of a request made by the key's organization. The id comes from the panward-receipt-id response header. Right after a response the receipt is pending: it holds the events up to response.emitted and has no signature. It becomes final when the upstream proof has been processed, or at the 60-second proof deadline, in which case upstream.verified.result is failed with a reason. Poll with a short delay until status is final. Refused requests also have a signed receipt.
Receipts contain no prompt or response content and no prices. They are kept for the organization's retention period (a plan attribute); after that the endpoint returns 404 not_found.
503 receipt_unavailable (retry after Retry-After) means the receipt exists and cannot be read right now: it was issued moments ago by another gateway instance and is not stored yet, or its stored bytes failed their integrity check, in which case they are never returned.
Needs an API key with the receipts.read scope.
Request headers
- AuthorizationstringRequired
Bearer pw_live_…: your API key.
Path parameters
- idReceiptIdValueRequiredpattern ^rcpt_[0-9A-Za-z]+$Receipt id from the
panward-receipt-idresponse header.
Responses
200
The receipt.
Headers: panward-request-id.
application/json: Receipt
- formatstringRequiredOne of
panward.receipt/1. - idReceiptIdValueRequiredpattern ^rcpt_[0-9A-Za-z]+$Receipt id.
- statusstringRequired
pendingreceipts hold the events up toresponse.emittedand carry nosignature.finalreceipts are signed and never change. One ofpending,final. - created_atintegerRequiredGateway-observed time the request arrived, Unix seconds. Receipts are not a trusted timestamping service.
- completed_atintegerGateway-observed time the receipt was finalised. Absent while pending.
- endpointstringRequired
- streambooleanRequired
- modelstringRequiredCanonical id of the model that answered (or that was requested, for a refusal).
- tierTierRequiredProduct tier.
sealedmeans the gateway verifies the upstream hop against enclave evidence;routedmeans it does not. One ofsealed,routed. - organizationstringRequiredpattern ^org_[0-9A-Za-z]+$
- projectstringRequiredpattern ^prj_[0-9A-Za-z]+$
- key_idstringRequiredpattern ^key_[0-9A-Za-z]+$Id of the API key that made the request (never the secret).
- regionRegionRequiredPanward region. One of
eu,us,ap. - What happened, in order. Retries and failover repeat the group
route.selected…response.receivedwith increasingattempt; only the last attempt's response is returned. A refusal haspolicy.applied.decision: "deny", no forwarding events, and the hash of the error body inresponse.emitted. A request that was forwarded and failed on every attempt hasdecision: "allow", one group ending inattempt.abandonedper attempt, noupstream.verified, and the hash of the error body inresponse.emitted. - usageReceiptUsageToken counts of the request. Absent for refusals.
- The gateway instance that handled the request and signed the receipt.
- key_id_signingstringpattern ^rk_[0-9A-Za-z]+$Id of the receipt key that signed; it must be in the keyset of the attestation named by
gateway.attestation_id. Absent while pending. - signaturestringpattern ^[0-9a-f]{128}$Ed25519 signature over JCS(receipt without
signature), 128 hexadecimal characters. Absent while pending.
401Unauthorized
No API key was sent (authentication_required) or the key is unknown, revoked or expired (invalid_api_key).
Error types: authentication_required, invalid_api_key.
Headers: panward-request-id.
403Forbidden
The key is valid but the request is not allowed: permission_denied (missing scope), model_not_enabled, policy_blocked (the project's policy refused the request), region_not_allowed (this gateway region is outside the policy's regions), ip_not_allowed or organization_suspended. Policy refusals on inference produce a signed receipt with policy.applied.decision: "deny". Max input tokens (a policy's prompt.max_input_tokens, a key's own prompt limit) is checked before the request is sent, on an estimate of the prompt's tokens made from its words, digits and punctuation. The model counts the prompt only after it answers, and its count can be above or below the estimate, most for very short prompts: a prompt close to the limit, under it or over it, can be refused or served. Each image counts as a fixed 16,384 tokens.
Error types: permission_denied, model_not_enabled, policy_blocked, region_not_allowed, ip_not_allowed, organization_suspended.
Headers: panward-request-id, panward-receipt-id.
404NotFound
The resource does not exist, is not visible to the caller, or is past its retention period (not_found).
Error types: not_found.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
503ReceiptUnavailable
receipt_unavailable: the receipt exists and cannot be read right now. It was issued moments ago by another gateway instance and is not stored yet, or its stored bytes failed their integrity check (they are never returned). Retry after Retry-After.
Error types: receipt_unavailable.
Headers: panward-request-id, Retry-After.
curl https://api.panward.ai/v1/receipts/rcpt_01JC7Q4N9W3XK2H8ZP5T6V7B8M \ -H "Authorization: Bearer $PANWARD_API_KEY"
{
"format": "panward.receipt/1",
"id": "rcpt_01JC7Q4N9W3XK2H8ZP5T6V7B8M",
"status": "final",
"created_at": 1790000000,
"completed_at": 1790000002,
"endpoint": "/v1/chat/completions",
"stream": true,
"model": "z-ai/glm-5.3",
"tier": "sealed",
"organization": "org_01JB2K7M4T",
"project": "prj_01JB2K9P6W",
"key_id": "key_01JB3A1C8E",
"region": "eu",
"events": [
{
"type": "request.received",
"body_sha256": "2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae"
},
{
"type": "policy.applied",
"policy_version": 12,
"decision": "allow",
"constraints": [
"sealed_only",
"region:eu"
]
},
{
"type": "route.selected",
"offer_class": "sealed",
"attempt": 1
},
{
"type": "request.forwarded",
"body_sha256": "fcde2b2edba56bf408601fb721fe9b5c338d10ee429ea04fae5511b68fbf8fb9",
"channel": "tls_pinned",
"attempt": 1
},
{
"type": "upstream.verified",
"result": "verified",
"level": "sealed_attested_path",
"evidence": [
{
"id": "sha256:0b9a8f7e6d5c4b3a2f1e0d9c8b7a6f5e4d3c2b1a0f9e8d7c6b5a4f3e2d1c0b9a",
"kind": "gateway_enclave",
"hardware": "intel-tdx",
"firmware_status": "up_to_date",
"nonce_bound": true
},
{
"id": "sha256:5e4d3c2b1a0f9e8d7c6b5a4f3e2d1c0b9a8f7e6d5c4b3a2f1e0d9c8b7a6f5e4d",
"kind": "model_environment",
"hardware": "intel-tdx",
"operator_rating": "B",
"nonce_bound": true
}
],
"response_proof": {
"kind": "enclave_signature",
"signer_scope": "gateway_enclave",
"verified_at": 1790000002
},
"claims": {
"gpu_attested": "asserted",
"debug_mode": "refuted",
"weights_provenance": "unknown"
}
},
{
"type": "response.received",
"body_sha256": "18ac3e7343f016890c510e93f935261169d9e3f565436429830faf0934f4f8e4",
"attempt": 1
},
{
"type": "response.emitted",
"body_sha256": "3fdba35f04dc8c462986c992bcf875546257113072a909c162f7e470e581e278",
"bytes": 18234,
"complete": true
}
],
"usage": {
"input_tokens": 1500,
"cached_input_tokens": 0,
"output_tokens": 500
},
"gateway": {
"attestation_id": "sha256:a3f1c5e7b9d1f3a5c7e9b1d3f5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5b7d9f1a3",
"release": "2026.11.3",
"config_bundle": "sha256:1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b",
"verification_policy": "sha256:6f5e4d3c2b1a0f9e8d7c6b5a4f3e2d1c0b9a8f7e6d5c4b3a2f1e0d9c8b7a6f5e"
},
"key_id_signing": "rk_01JC7M2Q8X",
"signature": "acb7a09579530297dc13cc2194762600b3a491d615b376135faef5d642aa676871d617ec6976ba0f203cf6f32e41ffa851c382ebd12cdebc7fb18e26b8409bb3"
}{
"format": "panward.receipt/1",
"id": "rcpt_01JC7Q4N9W3XK2H8ZP5T6V7B8M",
"status": "pending",
"created_at": 1790000000,
"endpoint": "/v1/chat/completions",
"stream": true,
"model": "z-ai/glm-5.3",
"tier": "sealed",
"organization": "org_01JB2K7M4T",
"project": "prj_01JB2K9P6W",
"key_id": "key_01JB3A1C8E",
"region": "eu",
"events": [
{
"type": "request.received",
"body_sha256": "2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae"
},
{
"type": "policy.applied",
"policy_version": 12,
"decision": "allow",
"constraints": [
"sealed_only",
"region:eu"
]
},
{
"type": "route.selected",
"offer_class": "sealed",
"attempt": 1
},
{
"type": "request.forwarded",
"body_sha256": "fcde2b2edba56bf408601fb721fe9b5c338d10ee429ea04fae5511b68fbf8fb9",
"channel": "tls_pinned",
"attempt": 1
},
{
"type": "response.received",
"body_sha256": "18ac3e7343f016890c510e93f935261169d9e3f565436429830faf0934f4f8e4",
"attempt": 1
},
{
"type": "response.emitted",
"body_sha256": "3fdba35f04dc8c462986c992bcf875546257113072a909c162f7e470e581e278",
"bytes": 18234,
"complete": true
}
],
"gateway": {
"attestation_id": "sha256:a3f1c5e7b9d1f3a5c7e9b1d3f5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5b7d9f1a3",
"release": "2026.11.3",
"config_bundle": "sha256:1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b",
"verification_policy": "sha256:6f5e4d3c2b1a0f9e8d7c6b5a4f3e2d1c0b9a8f7e6d5c4b3a2f1e0d9c8b7a6f5e"
}
}{
"format": "panward.receipt/1",
"id": "rcpt_01JC7Q6D5J3N7Q0S2U4W6Y8A9C",
"status": "final",
"created_at": 1790000200,
"completed_at": 1790000200,
"endpoint": "/v1/chat/completions",
"stream": false,
"model": "acme/atlas-2",
"tier": "routed",
"organization": "org_01JB2K7M4T",
"project": "prj_01JB2K9P6W",
"key_id": "key_01JB3A1C8E",
"region": "eu",
"events": [
{
"type": "request.received",
"body_sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
},
{
"type": "policy.applied",
"policy_version": 12,
"decision": "deny",
"constraints": [
"sealed_only",
"region:eu"
],
"reason": "policy_blocked"
},
{
"type": "response.emitted",
"body_sha256": "60303ae22b998861bce3b28f33eec1be758a213c86c93c076dbe9f558c11c752",
"bytes": 262,
"complete": true
}
],
"gateway": {
"attestation_id": "sha256:a3f1c5e7b9d1f3a5c7e9b1d3f5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5b7d9f1a3",
"release": "2026.11.3",
"config_bundle": "sha256:1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b",
"verification_policy": "sha256:6f5e4d3c2b1a0f9e8d7c6b5a4f3e2d1c0b9a8f7e6d5c4b3a2f1e0d9c8b7a6f5e"
},
"key_id_signing": "rk_01JC7M2Q8X",
"signature": "002d85d2bc774a57bf7e1913985929a6251cff0c80f45bd6d3291909dfeacd596104bd462043f0bd6075462dfefe38e2ec2a490c4e52d2cd9d8233afa0e3a042"
}{
"error": {
"type": "invalid_api_key",
"message": "The API key is invalid, revoked or expired.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_api_key"
}
}{
"error": {
"type": "policy_blocked",
"message": "This project's policy allows Sealed models only, and 'acme/atlas-2' is offered in the Routed tier.",
"param": "model",
"request_id": "req_01JC7Q6D4H9K2M5P8R1T3V6X7Z",
"doc_url": "https://panward.ai/docs/errors#policy_blocked"
}
}{
"error": {
"type": "region_not_allowed",
"message": "Your organization's policy does not allow requests in this region. Use api.eu.panward.ai.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#region_not_allowed"
}
}{
"error": {
"type": "not_found",
"message": "No such receipt.",
"param": "id",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#not_found"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}{
"error": {
"type": "receipt_unavailable",
"message": "This receipt cannot be read right now. Try again.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#receipt_unavailable"
}
}Retrieve several receipts
Returns up to 100 receipts of the key's organization in one call. Ids that do not exist, belong to another organization or are past retention are listed in not_found; the call itself still succeeds. The order of data follows the order of ids. next_cursor is always null.
Needs an API key with the receipts.read scope.
Request headers
- AuthorizationstringRequired
Bearer pw_live_…: your API key.
Query parameters
- Comma-separated receipt ids, 1 to 100.
Responses
200
The receipts that were found.
Headers: panward-request-id.
application/json: ReceiptBatch
- Requested ids with no readable receipt.
- next_cursorany | nullRequired
400BadRequest
The request is malformed or not acceptable. type is invalid_request (malformed JSON, unknown or invalid parameter; param names it), context_length_exceeded (input plus maximum output exceeds the model's context) or unsupported_parameter (the parameter is not supported by this model).
Error types: invalid_request, context_length_exceeded, unsupported_parameter.
Headers: panward-request-id.
401Unauthorized
No API key was sent (authentication_required) or the key is unknown, revoked or expired (invalid_api_key).
Error types: authentication_required, invalid_api_key.
Headers: panward-request-id.
403Forbidden
The key is valid but the request is not allowed: permission_denied (missing scope), model_not_enabled, policy_blocked (the project's policy refused the request), region_not_allowed (this gateway region is outside the policy's regions), ip_not_allowed or organization_suspended. Policy refusals on inference produce a signed receipt with policy.applied.decision: "deny". Max input tokens (a policy's prompt.max_input_tokens, a key's own prompt limit) is checked before the request is sent, on an estimate of the prompt's tokens made from its words, digits and punctuation. The model counts the prompt only after it answers, and its count can be above or below the estimate, most for very short prompts: a prompt close to the limit, under it or over it, can be refused or served. Each image counts as a fixed 16,384 tokens.
Error types: permission_denied, model_not_enabled, policy_blocked, region_not_allowed, ip_not_allowed, organization_suspended.
Headers: panward-request-id, panward-receipt-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
curl "https://api.panward.ai/v1/receipts?ids=rcpt_01JC7Q4N9W3XK2H8ZP5T6V7B8M,rcpt_01JC7Q5B2M8YV4K1TQ9R3D6F7G" \ -H "Authorization: Bearer $PANWARD_API_KEY"
{
"error": {
"type": "invalid_request",
"message": "temperature must be between 0 and 2.",
"param": "temperature",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_request"
}
}{
"error": {
"type": "context_length_exceeded",
"message": "The input and max_tokens together exceed this model's context of 200000 tokens.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#context_length_exceeded"
}
}{
"error": {
"type": "invalid_api_key",
"message": "The API key is invalid, revoked or expired.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_api_key"
}
}{
"error": {
"type": "policy_blocked",
"message": "This project's policy allows Sealed models only, and 'acme/atlas-2' is offered in the Routed tier.",
"param": "model",
"request_id": "req_01JC7Q6D4H9K2M5P8R1T3V6X7Z",
"doc_url": "https://panward.ai/docs/errors#policy_blocked"
}
}{
"error": {
"type": "region_not_allowed",
"message": "Your organization's policy does not allow requests in this region. Use api.eu.panward.ai.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#region_not_allowed"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}Get usage
Aggregated requests, tokens and spend of the key's organization for a time range, optionally grouped. Needs a key with the usage.read scope. Figures come from hourly rollups and appear within a few minutes of the request; amounts are what was billed.
Needs an API key with the usage.read scope.
Request headers
- AuthorizationstringRequired
Bearer pw_live_…: your API key.
Query parameters
- fromintegerRequiredStart of the range, inclusive, Unix seconds.
- tointegerEnd of the range, exclusive, Unix seconds. Defaults to now. The range may span at most 366 days.
- projectstringpattern ^prj_[0-9A-Za-z]+$Restrict to one project (
prj_…). - modelstringRestrict to one canonical model id.
- group_bystringDimension to group rows by. Without it the response has one row for the whole range. One of
model,project,key,tier,region,day. - limitintegerdefault: 50 · min 1 · max 200Page size.
- cursorstringOpaque cursor from a previous response's
next_cursor.
Responses
200
Usage rows and totals for the range.
Headers: panward-request-id.
application/json: UsageReport
- fromintegerRequired
- tointegerRequired
- group_bystring | nullOne of
model,project,key,tier,region,day,null. - next_cursorstring | nullRequired
400BadRequest
The request is malformed or not acceptable. type is invalid_request (malformed JSON, unknown or invalid parameter; param names it), context_length_exceeded (input plus maximum output exceeds the model's context) or unsupported_parameter (the parameter is not supported by this model).
Error types: invalid_request, context_length_exceeded, unsupported_parameter.
Headers: panward-request-id.
401Unauthorized
No API key was sent (authentication_required) or the key is unknown, revoked or expired (invalid_api_key).
Error types: authentication_required, invalid_api_key.
Headers: panward-request-id.
403Forbidden
The key is valid but the request is not allowed: permission_denied (missing scope), model_not_enabled, policy_blocked (the project's policy refused the request), region_not_allowed (this gateway region is outside the policy's regions), ip_not_allowed or organization_suspended. Policy refusals on inference produce a signed receipt with policy.applied.decision: "deny". Max input tokens (a policy's prompt.max_input_tokens, a key's own prompt limit) is checked before the request is sent, on an estimate of the prompt's tokens made from its words, digits and punctuation. The model counts the prompt only after it answers, and its count can be above or below the estimate, most for very short prompts: a prompt close to the limit, under it or over it, can be refused or served. Each image counts as a fixed 16,384 tokens.
Error types: permission_denied, model_not_enabled, policy_blocked, region_not_allowed, ip_not_allowed, organization_suspended.
Headers: panward-request-id, panward-receipt-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
curl "https://api.panward.ai/v1/usage?from=1790000000" \ -H "Authorization: Bearer $PANWARD_API_KEY"
{
"error": {
"type": "invalid_request",
"message": "temperature must be between 0 and 2.",
"param": "temperature",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_request"
}
}{
"error": {
"type": "context_length_exceeded",
"message": "The input and max_tokens together exceed this model's context of 200000 tokens.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#context_length_exceeded"
}
}{
"error": {
"type": "invalid_api_key",
"message": "The API key is invalid, revoked or expired.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_api_key"
}
}{
"error": {
"type": "policy_blocked",
"message": "This project's policy allows Sealed models only, and 'acme/atlas-2' is offered in the Routed tier.",
"param": "model",
"request_id": "req_01JC7Q6D4H9K2M5P8R1T3V6X7Z",
"doc_url": "https://panward.ai/docs/errors#policy_blocked"
}
}{
"error": {
"type": "region_not_allowed",
"message": "Your organization's policy does not allow requests in this region. Use api.eu.panward.ai.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#region_not_allowed"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}List the public model catalog
The public catalog with list prices, as shown on the site. Same model schema as the authenticated GET /models, without organization-specific enablement or price overrides. Cacheable.
No API key needed.
Query parameters
- kindModelKindRestrict to models of one kind. One of
chat,completion,embedding,rerank,transcription,image. - tierTierRestrict to models offered in this tier. One of
sealed,routed. - regionRegionRestrict to models that can be served in this region. One of
eu,us,ap. - limitintegerdefault: 50 · min 1 · max 200Page size.
- cursorstringOpaque cursor from a previous response's
next_cursor.
Responses
200
A page of models.
application/json: ModelList
- objectstringRequiredOne of
list. - next_cursorstring | nullRequired
400BadRequest
The request is malformed or not acceptable. type is invalid_request (malformed JSON, unknown or invalid parameter; param names it), context_length_exceeded (input plus maximum output exceeds the model's context) or unsupported_parameter (the parameter is not supported by this model).
Error types: invalid_request, context_length_exceeded, unsupported_parameter.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
curl https://panward.ai/api/public/models
{
"error": {
"type": "invalid_request",
"message": "temperature must be between 0 and 2.",
"param": "temperature",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_request"
}
}{
"error": {
"type": "context_length_exceeded",
"message": "The input and max_tokens together exceed this model's context of 200000 tokens.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#context_length_exceeded"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}Retrieve a public model
One model of the public catalog with list prices. The model id is written as two path segments (/public/models/z-ai/glm-5.3).
No API key needed.
Path parameters
- vendorstringRequiredpattern ^[a-z0-9][a-z0-9._-]*$First segment of the canonical model id (the model's publisher).
- namestringRequiredpattern ^[A-Za-z0-9][A-Za-z0-9._-]*$Second segment of the canonical model id.
Responses
200
The model.
application/json: Model
- idstringRequiredCanonical model id,
vendor/name. - objectstringRequiredOne of
model. - createdintegerWhen the model was added to the catalog, Unix seconds.
- owned_bystringPublisher of the model (the first segment of the id).
- namestringRequiredDisplay name.
- descriptionstring
- kindModelKindRequiredWhat the model does, which decides the endpoint it is called through. One of
chat,completion,embedding,rerank,transcription,image. - Tiers the model is offered in.
- default_tierTierRequiredProduct tier.
sealedmeans the gateway verifies the upstream hop against enclave evidence;routedmeans it does not. One ofsealed,routed. - Sealed sub-levels that can be reached for this model; empty for a model offered only in the Routed tier.
sealed_model_signedis available for non-streamed requests only. The level reached is stated per response in the receipt. - hardwarearray of stringHardware technologies behind the Sealed tier of this model.
- context_lengthinteger | nullThe model's advertised context, in tokens: the catalog's override, otherwise the largest context among the offers that serve the model's default tier (the figure the site, the console and the back office show). A request is only sent to an offer it fits; a request no offer can take is refused with
context_length_exceeded. Null for kinds without a token context. - max_output_tokensinteger | nullThe model's advertised maximum output, in tokens: the catalog's own figure, otherwise the largest among the offers that serve the model's default tier (the figure the site and the console show). A request is only sent to an offer that gives the output it asks for. Null where there is none or the kind writes no tokens.
- thinks_before_answeringbooleanRequiredThe model thinks before it answers: its answers carry reasoning tokens (
usage.completion_tokens_details.reasoning_tokens, billed as output tokens), whether or not the request sends a reasoning control. This is the catalog's statement about the model. It is independent ofcapabilities.reasoning, which says whether the model accepts thereasoningandreasoning_effortcontrols: a model can think before answering and still refuse the controls with400 unsupported_parameter. - modalitiesobjectRequired
- One price per tier the model is offered in.
- regionsarray of objectRequiredWhere the model can be served. A model that cannot be pinned to a region is absent from region-pinned catalogs.
- regionRegionRequiredPanward region. One of
eu,us,ap. - statusstringRequiredOne of
available,degraded,unavailable.
- statusstringRequiredLifecycle state. A
deprecatedmodel has a retirement date at least 90 days after its announcement. One ofavailable,preview,degraded,deprecated,retired. - retires_atinteger | nullRetirement time, Unix seconds, when the model is deprecated.
404ModelNotFound
The model id is not a canonical model (model_not_found). Aliases are not resolved.
Error types: model_not_found.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
curl https://panward.ai/api/public/models/z-ai/glm-5.3
{
"id": "z-ai/glm-5.3",
"object": "model",
"created": 1788000000,
"owned_by": "z-ai",
"name": "GLM 5.3",
"description": "General-purpose reasoning model with tool calling and structured output.",
"kind": "chat",
"tiers": [
"sealed"
],
"default_tier": "sealed",
"verification_levels": [
"sealed_model_signed",
"sealed_attested_path"
],
"hardware": [
"intel-tdx",
"nvidia-gpu"
],
"context_length": 200000,
"max_output_tokens": 32768,
"capabilities": {
"streaming": true,
"tools": true,
"json_schema": true,
"vision": false,
"reasoning": true,
"prompt_caching": true
},
"thinks_before_answering": true,
"modalities": {
"input": [
"text"
],
"output": [
"text"
]
},
"pricing": [
{
"tier": "sealed",
"currency": "USD",
"components": {
"input": {
"unit": "per_1m_tokens",
"amount_nano_usd": 2160000000,
"amount_usd": "2.16"
},
"cached_input": {
"unit": "per_1m_tokens",
"amount_nano_usd": 432000000,
"amount_usd": "0.432"
},
"output": {
"unit": "per_1m_tokens",
"amount_nano_usd": 8640000000,
"amount_usd": "8.64"
}
}
}
],
"regions": [
{
"region": "us",
"status": "available",
"tiers": [
"sealed"
]
},
{
"region": "eu",
"status": "available",
"tiers": [
"sealed"
]
}
],
"status": "available",
"retires_at": null
}{
"error": {
"type": "model_not_found",
"message": "The model 'z-ai/glm-9' does not exist.",
"param": "model",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#model_not_found"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}Retrieve a public model by percent-encoded id
Same as GET /public/models/{vendor}/{name}, with the model id as one path segment and its slash percent-encoded (z-ai%2Fglm-5.3).
No API key needed.
Path parameters
- idstringRequiredCanonical model id with its slash percent-encoded.
Responses
200
The model.
application/json: Model
- idstringRequiredCanonical model id,
vendor/name. - objectstringRequiredOne of
model. - createdintegerWhen the model was added to the catalog, Unix seconds.
- owned_bystringPublisher of the model (the first segment of the id).
- namestringRequiredDisplay name.
- descriptionstring
- kindModelKindRequiredWhat the model does, which decides the endpoint it is called through. One of
chat,completion,embedding,rerank,transcription,image. - Tiers the model is offered in.
- default_tierTierRequiredProduct tier.
sealedmeans the gateway verifies the upstream hop against enclave evidence;routedmeans it does not. One ofsealed,routed. - Sealed sub-levels that can be reached for this model; empty for a model offered only in the Routed tier.
sealed_model_signedis available for non-streamed requests only. The level reached is stated per response in the receipt. - hardwarearray of stringHardware technologies behind the Sealed tier of this model.
- context_lengthinteger | nullThe model's advertised context, in tokens: the catalog's override, otherwise the largest context among the offers that serve the model's default tier (the figure the site, the console and the back office show). A request is only sent to an offer it fits; a request no offer can take is refused with
context_length_exceeded. Null for kinds without a token context. - max_output_tokensinteger | nullThe model's advertised maximum output, in tokens: the catalog's own figure, otherwise the largest among the offers that serve the model's default tier (the figure the site and the console show). A request is only sent to an offer that gives the output it asks for. Null where there is none or the kind writes no tokens.
- thinks_before_answeringbooleanRequiredThe model thinks before it answers: its answers carry reasoning tokens (
usage.completion_tokens_details.reasoning_tokens, billed as output tokens), whether or not the request sends a reasoning control. This is the catalog's statement about the model. It is independent ofcapabilities.reasoning, which says whether the model accepts thereasoningandreasoning_effortcontrols: a model can think before answering and still refuse the controls with400 unsupported_parameter. - modalitiesobjectRequired
- One price per tier the model is offered in.
- regionsarray of objectRequiredWhere the model can be served. A model that cannot be pinned to a region is absent from region-pinned catalogs.
- regionRegionRequiredPanward region. One of
eu,us,ap. - statusstringRequiredOne of
available,degraded,unavailable.
- statusstringRequiredLifecycle state. A
deprecatedmodel has a retirement date at least 90 days after its announcement. One ofavailable,preview,degraded,deprecated,retired. - retires_atinteger | nullRetirement time, Unix seconds, when the model is deprecated.
404ModelNotFound
The model id is not a canonical model (model_not_found). Aliases are not resolved.
Error types: model_not_found.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
curl https://panward.ai/api/public/models/z-ai%2Fglm-5.3
{
"error": {
"type": "model_not_found",
"message": "The model 'z-ai/glm-9' does not exist.",
"param": "model",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#model_not_found"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}Get list prices
List prices per canonical model, tier and component, from the same price table the gateway bills with. Token prices are integer nano-USD per 1,000,000 tokens. Prices follow our suppliers' prices and can change at any time; the price in force when a request is made is the one charged. A change appears under next with its effective time a few minutes before it takes effect. Receipts and verification are free.
No API key needed.
Query parameters
- kindModelKindRestrict to models of one kind. One of
chat,completion,embedding,rerank,transcription,image. - tierTierRestrict to models offered in this tier. One of
sealed,routed.
Responses
200
The price list.
application/json: PriceList
- currencystringRequiredOne of
USD. - updated_atintegerRequired
- dataarray of objectRequired
- modelstringRequiredCanonical model id.
- namestringRequired
- kindModelKindRequiredWhat the model does, which decides the endpoint it is called through. One of
chat,completion,embedding,rerank,transcription,image.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
curl https://panward.ai/api/public/pricing
{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}List changelog entries
Published changelog entries, newest first, with optional filters by category and time range.
No API key needed.
Query parameters
- categoryChangelogCategoryRestrict to one category. One of
models,api,console,security,pricing,verification. - qstringmax length 200Free-text filter on title and body.
- fromintegerStart of the time range, inclusive, Unix seconds.
- tointegerEnd of the time range, exclusive, Unix seconds.
- limitintegerdefault: 50 · min 1 · max 200Page size.
- cursorstringOpaque cursor from a previous response's
next_cursor.
Responses
400BadRequest
The request is malformed or not acceptable. type is invalid_request (malformed JSON, unknown or invalid parameter; param names it), context_length_exceeded (input plus maximum output exceeds the model's context) or unsupported_parameter (the parameter is not supported by this model).
Error types: invalid_request, context_length_exceeded, unsupported_parameter.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
curl https://panward.ai/api/public/changelog
{
"error": {
"type": "invalid_request",
"message": "temperature must be between 0 and 2.",
"param": "temperature",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_request"
}
}{
"error": {
"type": "context_length_exceeded",
"message": "The input and max_tokens together exceed this model's context of 200000 tokens.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#context_length_exceeded"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}List published gateway releases
The release file: every gateway release with its measurements per host platform and VM shape, source commit, image digest, transparency-log entry and notice dates, plus the published verification-policy versions. A verifier accepts an attestation only if its measurements equal a row here. Releases are announced at least 7 days before they serve traffic; during a rollout the old and the new release are both valid.
Asked for without status, limit or cursor, the answer is the gateway's signed release file (measurements/releases.json of the gateway repository) byte for byte: its data, its revoked_keys, the file_statement signed for the file as a whole and its transparency-log entry file_log, every member of every row as signed; there is then no next_cursor. Its ETag is the SHA-256 of the bytes. Warden fetches this answer and checks the file statement and each row's log entry itself (step 2). A filtered or paged read is a list built from the same releases for display, not signed.
No API key needed.
Query parameters
- statusReleaseStatusRestrict to releases in this state. One of
announced,active,retired. - limitintegerdefault: 50 · min 1 · max 200Page size.
- cursorstringOpaque cursor from a previous response's
next_cursor.
Responses
200
A page of releases, newest first.
application/json: ReleaseList
- revoked_keysarray of objectThe release file's revoked receipt keys (in the unfiltered answer only).
- file_statementobjectWhat is signed for the release file as a whole (format
panward.release-file/1; unfiltered answer only). - file_logobjectThe transparency-log entry of the file statement (unfiltered answer only).
- verification_policiesarray of VerificationPolicyVersionPublished verification-policy versions, newest first.
- next_cursorstring | nullThe next page of a filtered or paged read; absent from the release file itself.
400BadRequest
The request is malformed or not acceptable. type is invalid_request (malformed JSON, unknown or invalid parameter; param names it), context_length_exceeded (input plus maximum output exceeds the model's context) or unsupported_parameter (the parameter is not supported by this model).
Error types: invalid_request, context_length_exceeded, unsupported_parameter.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
curl https://panward.ai/api/public/releases
{
"error": {
"type": "invalid_request",
"message": "temperature must be between 0 and 2.",
"param": "temperature",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_request"
}
}{
"error": {
"type": "context_length_exceeded",
"message": "The input and max_tokens together exceed this model's context of 200000 tokens.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#context_length_exceeded"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}Fetch an archived gateway attestation by its id
Returns the boot-time attestation document a gateway instance archived before it issued any receipt, named by the receipt's gateway.attestation_id (sha256: and the hex SHA-256 of the document's canonical JSON). The body is the archived bytes unchanged: a verifier hashes it and compares with the id itself, so the answer does not depend on trusting this endpoint, and nothing about the receipt is sent here (ADR-B-113). Content-addressed: the answer never changes and may be cached for a year.
No API key needed.
Path parameters
- attestation_idstringRequiredpattern ^sha256:[0-9a-f]{64}$The receipt's
gateway.attestation_id.
Responses
200
The archived attestation document, byte for byte.
Headers: Cache-Control.
400BadRequest
The request is malformed or not acceptable. type is invalid_request (malformed JSON, unknown or invalid parameter; param names it), context_length_exceeded (input plus maximum output exceeds the model's context) or unsupported_parameter (the parameter is not supported by this model).
Error types: invalid_request, context_length_exceeded, unsupported_parameter.
Headers: panward-request-id.
404NotFound
The resource does not exist, is not visible to the caller, or is past its retention period (not_found).
Error types: not_found.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
503ServiceUnavailable
The request cannot be served now: no_capacity (no eligible offer has headroom; retry after Retry-After), sealed_unavailable (no Sealed offer is currently eligible; the request is never downgraded to Routed) or verification_unavailable (verification material could not be produced, or the gateway could not verify a held response). 503 no_capacity and sealed_unavailable carry Retry-After; when the model's offers are temporarily closed it is the time until one is tried again.
Error types: no_capacity, sealed_unavailable, verification_unavailable, sealed_unavailable.
Headers: panward-request-id, panward-receipt-id, Retry-After.
curl https://panward.ai/api/public/attestations/sha256:3f2a9c6e1b7d4a08c5e2f91b6d3a7c40e8b25f19d6c3a7e4b0f28d91c5a6e37b
{
"error": {
"type": "invalid_request",
"message": "temperature must be between 0 and 2.",
"param": "temperature",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_request"
}
}{
"error": {
"type": "context_length_exceeded",
"message": "The input and max_tokens together exceed this model's context of 200000 tokens.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#context_length_exceeded"
}
}{
"error": {
"type": "not_found",
"message": "No such receipt.",
"param": "id",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#not_found"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}{
"error": {
"type": "sealed_unavailable",
"message": "No Sealed capacity is available for this model right now. The request was not sent to a Routed offer.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#sealed_unavailable"
}
}Fetch the proof that a receipt is in a logged hourly checkpoint
Every hour each region signs a Merkle root over the receipts it stored in that hour and enters it in a public transparency log (ADR-037). This returns the inclusion proof of one receipt: the checkpoint statement, its transparency-log bundle, the receipt's leaf index and the audit path. Give it to Warden with --checkpoint: the receipt is then shown to have existed when the log accepted the checkpoint, a time Panward does not control. Warden checks the proof itself, so the answer does not depend on trusting this endpoint, and it names no organization, request or price.
A receipt is under a checkpoint about an hour after it is stored. Until then the answer is 503 receipt_unavailable with Retry-After. A checkpoint never changes once published.
No API key needed.
Path parameters
- receipt_idstringRequiredpattern ^rcpt_[0-9A-HJKMNP-TV-Z]{26}$The receipt's id (
panward-receipt-id).
Responses
200
The inclusion proof.
Headers: panward-request-id, Cache-Control.
application/json: ReceiptCheckpointProof
- checkpointobjectRequiredThe signed statement
panward.checkpoint/1; its id issha256:and the hex SHA-256 of its JCS form.- formatstringRequiredOne of
panward.checkpoint/1. - regionstringRequired
- period_startintegerRequiredUnix seconds, on the hour.
- period_endintegerRequiredUnix seconds, one hour after period_start.
- tree_sizeintegerRequiredmin 1
- rootstringRequiredpattern ^sha256:[0-9a-f]{64}$
- previousstring | nullRequiredpattern ^sha256:[0-9a-f]{64}$The id of the region's previous checkpoint, or null for its first.
- bundlestringRequiredThe Sigstore bundle (JSON) of the statement in the transparency log, base64url without padding.
- leaf_indexintegerRequiredmin 0
- audit_patharray of stringRequiredmax items 64
- key_epochobjectThe receipt's boot-time attestation in the same transparency log, entered with the epoch of its keys before the gateway instance served (ADR-037). Absent while it cannot be read; the answer is then not cached. Warden checks it against the archived attestation the receipt names.
- statementobjectRequiredThe signed statement
panward.boot/1.- formatstringRequiredOne of
panward.boot/1. - attestation_idstringRequiredpattern ^sha256:[0-9a-f]{64}$
- regionstringRequired
- not_beforeintegerRequiredUnix seconds; the instance's start, as its attestation states it.
- not_afterintegerRequiredUnix seconds; the end of the attested keyset's validity.
- bundlestringRequiredThe Sigstore bundle (JSON) of the statement in the transparency log, base64url without padding.
400BadRequest
The request is malformed or not acceptable. type is invalid_request (malformed JSON, unknown or invalid parameter; param names it), context_length_exceeded (input plus maximum output exceeds the model's context) or unsupported_parameter (the parameter is not supported by this model).
Error types: invalid_request, context_length_exceeded, unsupported_parameter.
Headers: panward-request-id.
404NotFound
The resource does not exist, is not visible to the caller, or is past its retention period (not_found).
Error types: not_found.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
503ReceiptUnavailable
receipt_unavailable: the receipt exists and cannot be read right now. It was issued moments ago by another gateway instance and is not stored yet, or its stored bytes failed their integrity check (they are never returned). Retry after Retry-After.
Error types: receipt_unavailable.
Headers: panward-request-id, Retry-After.
curl https://panward.ai/api/public/receipt-checkpoints/rcpt_01JC7Q4N8G5T2R9X1M3K6P7W4D
{
"error": {
"type": "invalid_request",
"message": "temperature must be between 0 and 2.",
"param": "temperature",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_request"
}
}{
"error": {
"type": "context_length_exceeded",
"message": "The input and max_tokens together exceed this model's context of 200000 tokens.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#context_length_exceeded"
}
}{
"error": {
"type": "not_found",
"message": "No such receipt.",
"param": "id",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#not_found"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}{
"error": {
"type": "receipt_unavailable",
"message": "This receipt cannot be read right now. Try again.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#receipt_unavailable"
}
}List the published verification policy versions
Every published verification policy version, newest first (at most 100), as its hash and a human-readable summary (architecture 02 §3). The hash is the one a receipt carries in verification_policy; a verifier matches it here (Warden step 5). The documents are not published: their supplier sections are supplier-specific, so the summary names no provider, operator or measurement (ADR-B-113).
No API key needed.
Responses
200
The published versions.
application/json
- dataarray of objectRequired
- versionintegerRequiredmin 1
- hashstringRequiredpattern ^sha256:[0-9a-f]{64}$
- published_atstringRequired
- summaryobjectRequired
- max_evidence_age_sintegerRequired
- refresh_interval_sintegerRequired
- operatorsobjectRequiredRated enclave operators per rating, and how many may serve Sealed.
- rated_aintegerRequired
- rated_bintegerRequired
- rated_cintegerRequired
- rated_dintegerRequired
- may_serve_sealedintegerRequired
- provider_sectionsintegerRequiredSuppliers with a verification section.
- textstringRequiredThe same summary in one paragraph.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
curl https://panward.ai/api/public/verification-policies
{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}Fetch the material needed to verify a receipt
Deprecated, not served (ADR-B-113): a verifier reads the receipt locally and fetches the material by content address instead (getArchivedAttestation, the signed release file, the published policy hashes), so no receipt is sent. Kept for reference.
Accepts a share token or a receipt document and returns everything a verifier needs: the receipt, the archived attestation document named by gateway.attestation_id, the release entry whose measurements that attestation must match, and the published verification policy. The server returns no verdict. Verification (quote, measurements, signature, hashes, stated result) runs in the client with the open-source verifier, so the answer does not depend on trusting this endpoint.
With {"receipt": …} the receipt is echoed unchanged; it need not belong to any signed-in account, and only public material is looked up. Prompt or response content is never sent here: the optional byte comparison happens locally.
No API key needed.
Body parameters application/json
- Either a share token or a receipt document.One of: object, object
Responses
200
The verification material.
application/json: ReceiptVerificationBundle
- The receipt document (
panward.receipt/1). Its canonical form is RFC 8785 (JCS); the Ed25519signaturecovers the document without thesignaturemember. It holds hashes, never content, and no prices. It never names who served the upstream hop: evidence is referenced by content hash with neutral descriptors. - attestationobjectRequiredThe archived boot-time attestation document named by
receipt.gateway.attestation_id. Its nonce is the hash of its keyset.- formatstringRequiredOne of
panward.attestation/1. - teestringRequiredOne of
intel-tdx. - quotestringRequiredpattern ^[0-9a-f]+$The hardware quote, hexadecimal. Its
report_dataisSHA-256(JCS(report_data_statement))followed by 32 zero bytes. - report_data_statementobjectRequired
- purposestringRequiredOne of
panward.attestation/1. - noncestringRequiredpattern ^[0-9a-fA-F]{64}$The caller's nonce; in an archived boot-time document, the hash of the keyset.
- keyset_digestanyRequired
sha256:+ hex ofSHA-256(JCS(keyset)).
- Keys generated inside the enclave at boot and bound into the quote. Verifiers pin measurements, not these keys.
- Launch and runtime measurement registers, each 96 hexadecimal characters.
- event_logarray of objectRequiredMeasured boot events that replay to the runtime measurement registers.
- registerintegerRequiredmin 0 · max 3
- eventstringRequired
- digeststringRequiredpattern ^[0-9a-f]+$
- payloadstring
- releaseobjectRequired
- versionstringRequired
- image_digestSha256RefRequiredpattern ^sha256:[0-9a-f]{64}$A content hash,
sha256:followed by 64 lowercase hexadecimal characters.
- runtimeobjectRequiredValues that change without a new image. They are not hardware-measured; they are signed by the attested receipt key.
- config_bundleSha256RefRequiredpattern ^sha256:[0-9a-f]{64}$A content hash,
sha256:followed by 64 lowercase hexadecimal characters. - verification_policySha256RefRequiredpattern ^sha256:[0-9a-f]{64}$A content hash,
sha256:followed by 64 lowercase hexadecimal characters. - regionRegionRequiredPanward region. One of
eu,us,ap. - started_atintegerRequired
- runtime_signaturestringRequiredpattern ^[0-9a-f]{128}$Ed25519 signature by a key of
keyset.receipt_keysover JCS(runtime), hexadecimal.
- releaseobjectRequiredThe release entry for
receipt.gateway.release.- versionstringRequired
- statusReleaseStatusRequired
announced: published, not yet serving.active: may serve.retired: no longer serves; kept so old receipts stay verifiable. One ofannounced,active,retired. - source_commitstringRequiredpattern ^[0-9a-f]{40}$Commit of the open-source gateway the image was built from.
- source_urlstring
- image_digestSha256RefRequiredpattern ^sha256:[0-9a-f]{64}$A content hash,
sha256:followed by 64 lowercase hexadecimal characters. - measurementsarray of objectRequiredExpected measurements per host platform and VM shape. An attestation must equal one row.
- platformstringRequiredHost platform generation the row applies to.
- vm_shapestringRequiredVirtual machine size (vCPU and memory) the row applies to.
- teestringRequiredOne of
intel-tdx. - mrtdRegisterRequiredpattern ^[0-9a-f]{96}$
- rtmr0RegisterRequiredpattern ^[0-9a-f]{96}$
- rtmr1RegisterRequiredpattern ^[0-9a-f]{96}$
- rtmr2RegisterRequiredpattern ^[0-9a-f]{96}$
- rtmr3RegisterRequiredpattern ^[0-9a-f]{96}$
- td_attributesstringpattern ^[0-9a-f]{16}$TD attributes of the shape, 16 hexadecimal characters. When present, the quote's value must equal it.
- xfamstringpattern ^[0-9a-f]{16}$Extended features mask of the shape, 16 hexadecimal characters. When present, the quote's value must equal it.
- announced_atintegerRequired
- effective_atintegerRequiredEarliest time the release serves traffic; at least 7 days after
announced_at. - retired_atinteger | null
- notesstring
- verification_policyVerificationPolicyVersion | anyThe published policy version matching
receipt.gateway.verification_policy, when it is published.One of: VerificationPolicyVersion, any | null
400BadRequest
The request is malformed or not acceptable. type is invalid_request (malformed JSON, unknown or invalid parameter; param names it), context_length_exceeded (input plus maximum output exceeds the model's context) or unsupported_parameter (the parameter is not supported by this model).
Error types: invalid_request, context_length_exceeded, unsupported_parameter.
Headers: panward-request-id.
404NotFound
The resource does not exist, is not visible to the caller, or is past its retention period (not_found).
Error types: not_found.
Headers: panward-request-id.
410Gone
The resource existed and is no longer available (gone), for example a revoked or expired share link or an expired confirmation token.
Error types: gone.
Headers: panward-request-id.
413RequestTooLarge
The request body exceeds the size limit of the endpoint (request_too_large).
Error types: request_too_large.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
curl https://panward.ai/api/public/receipts/verify \ -H "Content-Type: application/json" \ -d '{"share_token":"shr_7Hq2mXc9LwT4vN8bK1pR5yZ3dF6gJ0sA"}'
{
"error": {
"type": "invalid_request",
"message": "temperature must be between 0 and 2.",
"param": "temperature",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_request"
}
}{
"error": {
"type": "context_length_exceeded",
"message": "The input and max_tokens together exceed this model's context of 200000 tokens.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#context_length_exceeded"
}
}{
"error": {
"type": "not_found",
"message": "No such receipt.",
"param": "id",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#not_found"
}
}{
"error": {
"type": "gone",
"message": "This share link has been revoked.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#gone"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}Get the public sample receipt
The one receipt Panward publishes as an example, with everything needed to verify it: the receipt, the exact request and response bytes it was made from (base64), the id of the archived attestation it names (served by getArchivedAttestation, also for this receipt when the gateway instance is long gone) and, when published with it, the signed release file (base64). The verify page and the documentation use it. The sample is permanent: it is not subject to receipt retention. 404 not_found while no sample is published.
No API key needed.
Responses
200
The sample receipt and its material.
Headers: Cache-Control.
application/json: SampleReceipt
- receipt_idstringRequiredpattern ^rcpt_[0-9A-Za-z]{10,64}$
- The receipt document (
panward.receipt/1). Its canonical form is RFC 8785 (JCS); the Ed25519signaturecovers the document without thesignaturemember. It holds hashes, never content, and no prices. It never names who served the upstream hop: evidence is referenced by content hash with neutral descriptors. - request_bodystringRequiredThe exact request bytes; their SHA-256 is the receipt's
request.received. - response_bodystringRequiredThe exact response bytes; their SHA-256 is the receipt's
response.emitted. - attestation_idstringRequiredpattern ^sha256:[0-9a-f]{64}$The receipt's
gateway.attestation_id. - release_filestring | nullRequiredThe signed release file that lists the attestation's measurements, when published with the sample.
- designated_atintegerRequired
404NotFound
The resource does not exist, is not visible to the caller, or is past its retention period (not_found).
Error types: not_found.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
curl https://panward.ai/api/public/receipts/sample
{
"error": {
"type": "not_found",
"message": "No such receipt.",
"param": "id",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#not_found"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}Get cached Intel attestation collateral
Cached copy of the Intel collateral needed to verify a TDX quote (TCB info, enclave identity, certificate revocation lists and their issuer chains), for verifiers that run in a browser and cannot call Intel's service directly. Every item is signed by Intel and is checked by the verifier against Intel's root, so the cache does not need to be trusted. Verifiers outside a browser should fetch collateral from Intel.
No API key needed.
Query parameters
- fmspcstringRequiredpattern ^[0-9a-fA-F]{12}$Platform identifier from the quote's certification data, 12 hexadecimal characters.
- castringdefault: "platform"Which certificate authority issued the platform certificate. One of
platform,processor.
Responses
200
The collateral bundle.
Headers: Cache-Control.
application/json: IntelCollateral
- fmspcstringRequiredpattern ^[0-9a-f]{12}$
- tcb_infostringRequiredThe signed TCB info document, byte-exact JSON as a string.
- tcb_info_issuer_chainstringRequiredPEM certificate chain.
- qe_identitystringRequiredThe signed quoting-enclave identity document, byte-exact JSON as a string.
- qe_identity_issuer_chainstringRequiredPEM certificate chain.
- pck_crlstringRequiredCertificate revocation list of the platform certificate authority, PEM.
- pck_crl_issuer_chainstringRequiredPEM certificate chain.
- root_ca_crlstringRequiredCertificate revocation list of Intel's root, PEM.
- tcb_evaluation_data_numberintegerRequiredEvaluation number of the TCB info; verifiers enforce a minimum.
- fetched_atintegerRequired
- next_updateintegerRequiredEarliest expiry among the items, Unix seconds.
400BadRequest
The request is malformed or not acceptable. type is invalid_request (malformed JSON, unknown or invalid parameter; param names it), context_length_exceeded (input plus maximum output exceeds the model's context) or unsupported_parameter (the parameter is not supported by this model).
Error types: invalid_request, context_length_exceeded, unsupported_parameter.
Headers: panward-request-id.
404NotFound
The resource does not exist, is not visible to the caller, or is past its retention period (not_found).
Error types: not_found.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
502BadGateway
No upstream attempt produced a response: upstream_unavailable (retryable) or upstream_rejected (the upstream refused a request Panward considered valid; reported to Panward automatically). The message never contains upstream text. Not billed.
Error types: upstream_unavailable, upstream_rejected.
Headers: panward-request-id, panward-receipt-id.
503ServiceUnavailable
The request cannot be served now: no_capacity (no eligible offer has headroom; retry after Retry-After), sealed_unavailable (no Sealed offer is currently eligible; the request is never downgraded to Routed) or verification_unavailable (verification material could not be produced, or the gateway could not verify a held response). 503 no_capacity and sealed_unavailable carry Retry-After; when the model's offers are temporarily closed it is the time until one is tried again.
Error types: no_capacity, sealed_unavailable, verification_unavailable, sealed_unavailable.
Headers: panward-request-id, panward-receipt-id, Retry-After.
curl "https://panward.ai/api/public/collateral/intel?fmspc=90c06f000000"
{
"error": {
"type": "invalid_request",
"message": "temperature must be between 0 and 2.",
"param": "temperature",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_request"
}
}{
"error": {
"type": "context_length_exceeded",
"message": "The input and max_tokens together exceed this model's context of 200000 tokens.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#context_length_exceeded"
}
}{
"error": {
"type": "not_found",
"message": "No such receipt.",
"param": "id",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#not_found"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}{
"error": {
"type": "sealed_unavailable",
"message": "No Sealed capacity is available for this model right now. The request was not sent to a Routed offer.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#sealed_unavailable"
}
}Get current service status
Overall state, components, and per region the gateway release, attestation age and verification success rate, with open incidents and scheduled maintenance. Components describe Panward's own services only.
No API key needed.
Responses
200
The current status.
application/json: Status
- overallComponentStatusRequiredOne of
operational,degraded,partial_outage,major_outage,maintenance. - updated_atintegerRequired
- The open gateway regions that have a state (from their components, else measured), by region code.
- Open incidents.
- Scheduled and ongoing maintenance.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
curl https://panward.ai/api/public/status
{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}List incidents and maintenance
Incident and maintenance history, newest first, each with its updates.
No API key needed.
Query parameters
- statusIncidentStatusRestrict to incidents in this state. One of
scheduled,investigating,identified,monitoring,resolved,cancelled. - regionRegionRestrict to incidents that affect this region. One of
eu,us,ap. - fromintegerStart of the time range, inclusive, Unix seconds.
- tointegerEnd of the time range, exclusive, Unix seconds.
- limitintegerdefault: 50 · min 1 · max 200Page size.
- cursorstringOpaque cursor from a previous response's
next_cursor.
Responses
400BadRequest
The request is malformed or not acceptable. type is invalid_request (malformed JSON, unknown or invalid parameter; param names it), context_length_exceeded (input plus maximum output exceeds the model's context) or unsupported_parameter (the parameter is not supported by this model).
Error types: invalid_request, context_length_exceeded, unsupported_parameter.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
curl https://panward.ai/api/public/status/incidents
{
"error": {
"type": "invalid_request",
"message": "temperature must be between 0 and 2.",
"param": "temperature",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_request"
}
}{
"error": {
"type": "context_length_exceeded",
"message": "The input and max_tokens together exceed this model's context of 200000 tokens.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#context_length_exceeded"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}Get the status Atom feed
Atom feed of incidents and maintenance, generated from the same data as GET /public/status/incidents. Also published at https://status.panward.ai/feed.atom.
No API key needed.
Responses
200
The feed.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
curl https://panward.ai/api/public/status/feed.atom
{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}Subscribe to status updates
Creates a pending email subscription and sends a confirmation email (double opt-in). Updates are sent only after confirmation. The response is the same whether or not the address is already subscribed, so the endpoint does not reveal subscribers. Rate limited to 5 requests per hour per IP. On a deployment without a mail provider the request is refused with 503 no_capacity before anything is stored (a confirmation email could not be sent); the status feed is the way to follow updates there.
No API key needed.
Body parameters application/json
- emailstringRequiredmax length 254
- componentsarray of stringComponent ids to follow. Omit for all components.
- regionsarray of RegionRegions to follow. Omit for all regions.
- include_maintenancebooleandefault: true
Responses
202
Accepted. A confirmation email is sent if the address is not yet subscribed.
application/json: StatusSubscriptionAccepted
- statusstringRequiredOne of
pending_confirmation.
400BadRequest
The request is malformed or not acceptable. type is invalid_request (malformed JSON, unknown or invalid parameter; param names it), context_length_exceeded (input plus maximum output exceeds the model's context) or unsupported_parameter (the parameter is not supported by this model).
Error types: invalid_request, context_length_exceeded, unsupported_parameter.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
503ServiceUnavailable
The request cannot be served now: no_capacity (no eligible offer has headroom; retry after Retry-After), sealed_unavailable (no Sealed offer is currently eligible; the request is never downgraded to Routed) or verification_unavailable (verification material could not be produced, or the gateway could not verify a held response). 503 no_capacity and sealed_unavailable carry Retry-After; when the model's offers are temporarily closed it is the time until one is tried again.
Error types: no_capacity, sealed_unavailable, verification_unavailable, sealed_unavailable.
Headers: panward-request-id, panward-receipt-id, Retry-After.
curl https://panward.ai/api/public/status/subscriptions \ -H "Content-Type: application/json" \ -d '{"email":"[email protected]"}'
{
"error": {
"type": "invalid_request",
"message": "temperature must be between 0 and 2.",
"param": "temperature",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_request"
}
}{
"error": {
"type": "context_length_exceeded",
"message": "The input and max_tokens together exceed this model's context of 200000 tokens.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#context_length_exceeded"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}{
"error": {
"type": "sealed_unavailable",
"message": "No Sealed capacity is available for this model right now. The request was not sent to a Routed offer.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#sealed_unavailable"
}
}Confirm a status subscription
Confirms a pending subscription with the token from the confirmation email. Confirming twice succeeds.
No API key needed.
Body parameters application/json
- tokenstringRequiredmin length 20 · max length 128
Responses
200
The subscription is active.
application/json: StatusSubscription
- statusstringRequiredOne of
confirmed. - componentsarray of string
- regionsarray of Region
- include_maintenanceboolean
400BadRequest
The request is malformed or not acceptable. type is invalid_request (malformed JSON, unknown or invalid parameter; param names it), context_length_exceeded (input plus maximum output exceeds the model's context) or unsupported_parameter (the parameter is not supported by this model).
Error types: invalid_request, context_length_exceeded, unsupported_parameter.
Headers: panward-request-id.
404NotFound
The resource does not exist, is not visible to the caller, or is past its retention period (not_found).
Error types: not_found.
Headers: panward-request-id.
410Gone
The resource existed and is no longer available (gone), for example a revoked or expired share link or an expired confirmation token.
Error types: gone.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
curl https://panward.ai/api/public/status/subscriptions/confirm \ -H "Content-Type: application/json" \ -d '{"token":"xxxxxxxxxxxxxxxxxxxx"}'
{
"error": {
"type": "invalid_request",
"message": "temperature must be between 0 and 2.",
"param": "temperature",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_request"
}
}{
"error": {
"type": "context_length_exceeded",
"message": "The input and max_tokens together exceed this model's context of 200000 tokens.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#context_length_exceeded"
}
}{
"error": {
"type": "not_found",
"message": "No such receipt.",
"param": "id",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#not_found"
}
}{
"error": {
"type": "gone",
"message": "This share link has been revoked.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#gone"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}Unsubscribe from status updates
One-click unsubscribe with the token carried by the link in every status email. The subscription and its address are deleted.
No API key needed.
Path parameters
- tokenstringRequiredmin length 20 · max length 128Unsubscribe token from a status email.
Responses
204
Unsubscribed.
404NotFound
The resource does not exist, is not visible to the caller, or is past its retention period (not_found).
Error types: not_found.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
curl -X DELETE https://panward.ai/api/public/status/subscriptions/…
{
"error": {
"type": "not_found",
"message": "No such receipt.",
"param": "id",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#not_found"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}Search docs, models and pages
Site search over documentation, the model catalog and site pages. Used by the docs search field and the not-found page. Returns at most 8 results by default; the excerpt marks matches with <mark> elements.
No API key needed.
Query parameters
- qstringRequiredmin length 2 · max length 200Search text, 2 to 200 characters.
- kindSearchKindRestrict to one kind of result. One of
doc,model,page. - limitintegerdefault: 8 · min 1 · max 20Maximum number of results.
Responses
200
Matching documents, best first.
application/json: SearchResults
- dataarray of objectRequired
- kindSearchKindRequiredOne of
doc,model,page. - titlestringRequired
- sectionstring | nullSection heading within the page, for docs results.
- urlstringRequiredSite-relative or absolute URL of the result.
- excerptstringText around the match, with matches wrapped in
<mark>.
- next_cursorany | nullRequired
400BadRequest
The request is malformed or not acceptable. type is invalid_request (malformed JSON, unknown or invalid parameter; param names it), context_length_exceeded (input plus maximum output exceeds the model's context) or unsupported_parameter (the parameter is not supported by this model).
Error types: invalid_request, context_length_exceeded, unsupported_parameter.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
curl "https://panward.ai/api/public/search?q=…"
{
"error": {
"type": "invalid_request",
"message": "temperature must be between 0 and 2.",
"param": "temperature",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_request"
}
}{
"error": {
"type": "context_length_exceeded",
"message": "The input and max_tokens together exceed this model's context of 200000 tokens.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#context_length_exceeded"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}Record a docs page vote
Records an anonymous "helpful" or "not helpful" vote for a documentation page. No account, cookie, free text or IP address is stored. Rate limited per IP.
No API key needed.
Body parameters application/json
- page_pathstringRequiredmax length 300 · pattern ^/docs(/[A-Za-z0-9._~-]+)*$Path of the docs page.
- helpfulbooleanRequired
Responses
204
The vote was recorded.
400BadRequest
The request is malformed or not acceptable. type is invalid_request (malformed JSON, unknown or invalid parameter; param names it), context_length_exceeded (input plus maximum output exceeds the model's context) or unsupported_parameter (the parameter is not supported by this model).
Error types: invalid_request, context_length_exceeded, unsupported_parameter.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
curl https://panward.ai/api/public/docs/feedback \ -H "Content-Type: application/json" \ -d '{"page_path":"/docs/quickstart","helpful":false}'
{
"error": {
"type": "invalid_request",
"message": "temperature must be between 0 and 2.",
"param": "temperature",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_request"
}
}{
"error": {
"type": "context_length_exceeded",
"message": "The input and max_tokens together exceed this model's context of 200000 tokens.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#context_length_exceeded"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}Send a sales or sovereign-deployment enquiry
Creates a contact request for the sales team. Rate limited per IP. Field errors are reported one at a time as 400 invalid_request with param set.
No API key needed.
Body parameters application/json
- namestringRequiredmin length 1 · max length 120
- emailstringRequiredmax length 254
- companystringmax length 160
- rolestringmax length 120
- countrystringpattern ^[A-Z]{2}$ISO 3166-1 alpha-2 code.
- topicstringRequired
dpaasks for the named subprocessor list under the data-processing agreement (G-51);supportis a request for help, with the request id of a failed call inmessage(G-53). One ofsupport,sales,sovereign,enterprise,security,dpa,other. - deploymentstringFor sovereign enquiries, the kind of deployment wanted. One of
dedicated_region,customer_cloud,on_premises,undecided. - expected_monthly_usagestringmax length 120
- messagestringRequiredmin length 1 · max length 5000
- source_pagestringmax length 300Site path the form was sent from.
Responses
202
The enquiry was accepted.
application/json: ContactAccepted
- idstringRequiredpattern ^ctr_[0-9A-Za-z]+$
- statusstringRequiredOne of
received.
400BadRequest
The request is malformed or not acceptable. type is invalid_request (malformed JSON, unknown or invalid parameter; param names it), context_length_exceeded (input plus maximum output exceeds the model's context) or unsupported_parameter (the parameter is not supported by this model).
Error types: invalid_request, context_length_exceeded, unsupported_parameter.
Headers: panward-request-id.
413RequestTooLarge
The request body exceeds the size limit of the endpoint (request_too_large).
Error types: request_too_large.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
curl https://panward.ai/api/public/contact \ -H "Content-Type: application/json" \ -d '{"name":"x","email":"[email protected]","topic":"support","message":"x"}'
{
"error": {
"type": "invalid_request",
"message": "temperature must be between 0 and 2.",
"param": "temperature",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#invalid_request"
}
}{
"error": {
"type": "context_length_exceeded",
"message": "The input and max_tokens together exceed this model's context of 200000 tokens.",
"param": "max_tokens",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#context_length_exceeded"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}Fetch a profile photo
A member's profile photo as the console shows it (the address in avatar_url, PUBLIC_ASSETS_URL). Photos are stored cleaned, under their own SHA-256 (avatars/<user>/<sha256>.<png|jpg|webp>), in a bucket that is never public; the app serves them. Only that shape of name is served: nothing else in the bucket can be named here, and nothing is listed. Content-addressed: the answer never changes and may be cached for a year. The type is the extension's, sent with X-Content-Type-Options: nosniff.
No API key needed.
Path parameters
- user_idstringRequiredpattern ^[A-Za-z0-9_]{1,64}$
- filestringRequiredpattern ^[0-9a-f]{64}[.](png|jpg|webp)$The photo's SHA-256 (64 lowercase hex digits) and its type.
Responses
200
The photo, byte for byte as stored.
Headers: Cache-Control, X-Content-Type-Options.
404NotFound
The resource does not exist, is not visible to the caller, or is past its retention period (not_found).
Error types: not_found.
Headers: panward-request-id.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
500InternalError
An unexpected error inside Panward (internal_error). Safe to retry.
Error types: internal_error.
Headers: panward-request-id.
503ServiceUnavailable
The request cannot be served now: no_capacity (no eligible offer has headroom; retry after Retry-After), sealed_unavailable (no Sealed offer is currently eligible; the request is never downgraded to Routed) or verification_unavailable (verification material could not be produced, or the gateway could not verify a held response). 503 no_capacity and sealed_unavailable carry Retry-After; when the model's offers are temporarily closed it is the time until one is tried again.
Error types: no_capacity, sealed_unavailable, verification_unavailable, sealed_unavailable.
Headers: panward-request-id, panward-receipt-id, Retry-After.
curl https://panward.ai/api/public/assets/avatars/…/…
{
"error": {
"type": "not_found",
"message": "No such receipt.",
"param": "id",
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#not_found"
}
}{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}{
"error": {
"type": "sealed_unavailable",
"message": "No Sealed capacity is available for this model right now. The request was not sent to a Routed offer.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#sealed_unavailable"
}
}Check gateway liveness
Returns 200 when the answering gateway region accepts requests. No authentication. It says nothing about individual models; see GET /public/status.
No API key needed.
Responses
200
The gateway is serving.
application/json: Health
- statusstringRequiredOne of
ok. - regionRegionPanward region. One of
eu,us,ap. - releasestringGateway release version of the answering instance.
429RateLimited
A rate limit of the key, project, organization or caller IP was exceeded (rate_limit_exceeded). Retry after the stated delay.
Error types: rate_limit_exceeded.
Headers: panward-request-id, Retry-After, panward-ratelimit-limit, panward-ratelimit-remaining, panward-ratelimit-reset, panward-ratelimit-limit-tokens, panward-ratelimit-remaining-tokens, panward-ratelimit-reset-tokens.
503ServiceUnavailable
The request cannot be served now: no_capacity (no eligible offer has headroom; retry after Retry-After), sealed_unavailable (no Sealed offer is currently eligible; the request is never downgraded to Routed) or verification_unavailable (verification material could not be produced, or the gateway could not verify a held response). 503 no_capacity and sealed_unavailable carry Retry-After; when the model's offers are temporarily closed it is the time until one is tried again.
Error types: no_capacity, sealed_unavailable, verification_unavailable, sealed_unavailable.
Headers: panward-request-id, panward-receipt-id, Retry-After.
curl https://api.panward.ai/v1/health
{
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit reached for this key. Retry in 12 seconds.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#rate_limit_exceeded"
}
}{
"error": {
"type": "sealed_unavailable",
"message": "No Sealed capacity is available for this model right now. The request was not sent to a Routed offer.",
"param": null,
"request_id": "req_01JC7Q4N8G5T2R9X1M3K6P7W4D",
"doc_url": "https://panward.ai/docs/errors#sealed_unavailable"
}
}Schemas
Every schema of the contract, 108 in all. Nested schemas are linked by name.
ReceiptCheckpointProofobject
The inclusion proof of a receipt in its region's hourly checkpoint (ADR-B-093), the input of Warden's --checkpoint. Leaves are SHA-256(0x00 ‖ receipt bytes) in a RFC 6962 tree.
- checkpointobjectRequiredThe signed statement
panward.checkpoint/1; its id issha256:and the hex SHA-256 of its JCS form.- formatstringRequiredOne of
panward.checkpoint/1. - regionstringRequired
- period_startintegerRequiredUnix seconds, on the hour.
- period_endintegerRequiredUnix seconds, one hour after period_start.
- tree_sizeintegerRequiredmin 1
- rootstringRequiredpattern ^sha256:[0-9a-f]{64}$
- previousstring | nullRequiredpattern ^sha256:[0-9a-f]{64}$The id of the region's previous checkpoint, or null for its first.
- bundlestringRequiredThe Sigstore bundle (JSON) of the statement in the transparency log, base64url without padding.
- leaf_indexintegerRequiredmin 0
- audit_patharray of stringRequiredmax items 64
- key_epochobjectThe receipt's boot-time attestation in the same transparency log, entered with the epoch of its keys before the gateway instance served (ADR-037). Absent while it cannot be read; the answer is then not cached. Warden checks it against the archived attestation the receipt names.
- statementobjectRequiredThe signed statement
panward.boot/1.- formatstringRequiredOne of
panward.boot/1. - attestation_idstringRequiredpattern ^sha256:[0-9a-f]{64}$
- regionstringRequired
- not_beforeintegerRequiredUnix seconds; the instance's start, as its attestation states it.
- not_afterintegerRequiredUnix seconds; the end of the attested keyset's validity.
- bundlestringRequiredThe Sigstore bundle (JSON) of the statement in the transparency log, base64url without padding.
Errorobject
The error body used by every endpoint.
- errorobjectRequired
- typeErrorTypeRequiredStable machine value. New values may be added; treat an unknown value by its HTTP status.
- messagestringRequiredHuman-readable and safe to show. Never contains upstream text.
- paramstring | nullThe request parameter or field the error refers to, when there is one.
- request_idstringRequiredPanward's request id (
req_…). - doc_urlstringDocumentation for this error type.
ErrorTypestring
Stable machine value. New values may be added; treat an unknown value by its HTTP status.
One of invalid_request, context_length_exceeded, unsupported_parameter, authentication_required, invalid_api_key, insufficient_credit, spend_limit_reached, billing_unavailable, permission_denied, model_not_enabled, policy_blocked, region_not_allowed, ip_not_allowed, organization_suspended, not_found, model_not_found, gone, request_too_large, rate_limit_exceeded, internal_error, upstream_unavailable, upstream_rejected, no_capacity, sealed_unavailable, verification_unavailable, receipt_unavailable, upstream_timeout.
Tierstring
Product tier. sealed means the gateway verifies the upstream hop against enclave evidence; routed means it does not.
One of sealed, routed.
VerificationLevelstring
Level reached for one response. See "Tiers and verification levels".
One of sealed_model_signed, sealed_attested_path, sealed_attested_channel, routed, failed.
SealedLevelstring
A Sealed sub-level.
One of sealed_model_signed, sealed_attested_path, sealed_attested_channel.
Regionstring
Panward region.
One of eu, us, ap.
Sha256Refstring
A content hash, sha256: followed by 64 lowercase hexadecimal characters.
pattern ^sha256:[0-9a-f]{64}$
Sha256Hexstring
SHA-256 as 64 lowercase hexadecimal characters.
pattern ^[0-9a-f]{64}$
ReceiptIdValuestring
Receipt id.
pattern ^rcpt_[0-9A-Za-z]+$
Healthobject
- statusstringRequiredOne of
ok. - regionRegionPanward region. One of
eu,us,ap. - releasestringGateway release version of the answering instance.
ChatCompletionRequestobject
OpenAI-compatible chat completion request. Unknown parameters are rejected with 400 invalid_request; parameters a model cannot honour are rejected with 400 unsupported_parameter before any upstream call.
- modelstringRequiredCanonical model id. Aliases are not resolved.
- max_completion_tokensintegermin 1Upper bound on generated tokens, including reasoning tokens. Capped by the model's
max_output_tokens. - max_tokensintegermin 1Older name of
max_completion_tokens. If both are sent they must be equal. - temperaturenumbermin 0 · max 2
- top_pnumbermax 1
- top_kintegermin 1Not supported by every model.
- frequency_penaltynumbermin -2 · max 2
- presence_penaltynumbermin -2 · max 2
- seedintegerBest-effort determinism; the same seed and parameters usually give the same output on the same offer.
- stopstring | array of stringUp to 4 sequences at which generation stops.One of: string, array of string
- nintegerdefault: 1 · min 1 · max 1Number of choices. Only 1 is supported.
- logprobsbooleandefault: false
- top_logprobsintegermin 0 · max 20Needs
logprobs: true. - streambooleandefault: falseReturn the response as an event stream.
- stream_optionsStreamOptionsOnly valid with
stream: true. - tool_choiceToolChoice
none,auto(default when tools are present),required, or one named function. - parallel_tool_callsbooleandefault: true
- response_formatResponseFormatOutput format.
json_schemaneeds a model with thejson_schemacapability. - reasoningReasoningCanonical reasoning control, translated by the gateway for the model that serves the request. On a model without the
reasoningcapability it is rejected with400 unsupported_parameter. Reasoning tokens are billed as output tokens. - reasoning_effortstringOpenAI-style shorthand for
reasoning.effort. If both are sent they must agree. One ofnone,low,medium,high. - userstringmax length 256Accepted for compatibility and ignored. It is never stored and never forwarded upstream.
StreamOptionsobject
Only valid with stream: true.
- include_usagebooleandefault: falseSend one extra final chunk with empty
choicesthat carriesusage. Without it the stream carries no usage.
Reasoningobject
Canonical reasoning control, translated by the gateway for the model that serves the request. On a model without the reasoning capability it is rejected with 400 unsupported_parameter. Reasoning tokens are billed as output tokens.
- effortstringHow much the model may reason.
noneis the same asenabled: false. One ofnone,low,medium,high. - enabledbooleanSwitch reasoning on or off for models where it is optional. Defaults to the model's default.
ChatMessageSystemMessage | UserMessage | AssistantMessage | ToolMessage
One message of the conversation.
One of: SystemMessage, UserMessage, AssistantMessage, ToolMessage
SystemMessageobject
- rolestringRequiredOne of
system,developer. - contentstring | array of TextPartRequiredOne of: string, array of TextPart
- namestring
UserMessageobject
- rolestringRequiredOne of
user. - contentstring | array of ContentPartRequiredText, or a list of text and image parts. Image parts need a model with the
visioncapability.One of: string, array of ContentPart - namestring
AssistantMessageobject
A previous assistant turn. content may be null when tool_calls is present.
- rolestringRequiredOne of
assistant. - contentstring | any | array of TextPart
- reasoning_contentstring | nullReasoning text of the earlier turn, if the client passes it back.
- tool_callsarray of ToolCall
- namestring
ToolMessageobject
- rolestringRequiredOne of
tool. - contentstring | array of TextPartRequiredOne of: string, array of TextPart
- tool_call_idstringRequired
TextPartobject
- typestringRequiredOne of
text. - textstringRequired
ImagePartobject
- typestringRequiredOne of
image_url. - image_urlobjectRequired
- urlstringRequiredA
data:URL with base64 image data (data:image/png;base64,…). Remotehttp(s)URLs are not fetched by the gateway and are rejected with400 invalid_request. - detailstringdefault: "auto"One of
auto,low,high.
Toolobject
- typestringRequiredOne of
function. - functionobjectRequired
- namestringRequiredpattern ^[A-Za-z0-9_-]{1,64}$
- descriptionstring
- parametersobjectJSON Schema of the function arguments.
- strictbooleandefault: false
ToolChoicestring | object
none, auto (default when tools are present), required, or one named function.
One of: string, object
ToolCallobject
- idstringRequired
- typestringRequiredOne of
function. - functionobjectRequired
- namestringRequired
- argumentsstringRequiredThe arguments as a JSON-encoded string. Validate before use.
ResponseFormatobject | object | object
Output format. json_schema needs a model with the json_schema capability.
One of: object, object, object
ChatCompletionResponseobject
- idstringRequiredCompletion id assigned by Panward (
chatcmpl-…). - objectstringRequiredOne of
chat.completion. - createdintegerRequiredUnix seconds.
- modelstringRequiredCanonical id of the model that answered.
- Token usage in the OpenAI field names. These are the quantities that are billed.
ChatChoiceobject
- indexintegerRequired
- finish_reasonFinishReason | nullRequiredWhy generation stopped.
nullon stream chunks before the last one. One ofstop,length,tool_calls,content_filter,null. - logprobsLogProbs | anyOne of: LogProbs, any | null
ChatResponseMessageobject
- rolestringRequiredOne of
assistant. - contentstring | nullRequired
- reasoning_contentstring | nullThe model's reasoning text, when the model returns it. Always under this field name.
- refusalstring | nullSet when the model declined to answer.
- tool_callsarray of ToolCall
FinishReasonstring
Why generation stopped. null on stream chunks before the last one.
One of stop, length, tool_calls, content_filter, null.
LogProbsobject
- contentarray of object | null
- tokenstringRequired
- logprobnumberRequired
- bytesarray of integer | null
- top_logprobsarray of object
- tokenstringRequired
- logprobnumberRequired
Usageobject
Token usage in the OpenAI field names. These are the quantities that are billed.
- prompt_tokensintegerRequiredInput tokens, including cached ones.
- completion_tokensintegerRequiredOutput tokens, including reasoning tokens.
- total_tokensintegerRequired
- prompt_tokens_detailsobject
- cached_tokensintegerInput tokens served from the prompt cache, billed at the cached-input price, where the upstream keeps a cache per organization. Where an upstream shares its cache across its customers (a stated limit, ADR-B-120), cached input is billed and reported as ordinary input and this is 0.
- completion_tokens_detailsobject
- reasoning_tokensintegerOutput tokens spent on reasoning.
ChatCompletionStreamstring
Server-sent events. Each frame is data: followed by one JSON-encoded ChatCompletionChunk and a blank line; the stream ends with data: [DONE]. A failure after the first byte is sent as an event: error frame whose data is an Error object, after which the stream ends without [DONE].
ChatCompletionChunkobject
- idstringRequiredSame id on every chunk of one completion.
- objectstringRequiredOne of
chat.completion.chunk. - createdintegerRequired
- modelstringRequired
- choicesarray of objectRequiredEmpty on the final usage chunk.
- indexintegerRequired
- finish_reasonFinishReason | nullRequiredWhy generation stopped.
nullon stream chunks before the last one. One ofstop,length,tool_calls,content_filter,null. - logprobsLogProbs | anyOne of: LogProbs, any | null
- usageUsage | anyPresent only on the final chunk when
stream_options.include_usageis true.One of: Usage, any | null
ChatDeltaobject
- rolestringOne of
assistant. - contentstring | null
- reasoning_contentstring | null
- refusalstring | null
- tool_callsarray of object
- indexintegerRequired
- idstring
- typestringOne of
function. - functionobject
- namestring
- argumentsstringA fragment of the JSON-encoded arguments; concatenate fragments by
index.
CompletionRequestobject
- modelstringRequired
- promptstring | array of stringRequiredOne of: string, array of string
- max_tokensintegermin 1
- temperaturenumbermin 0 · max 2
- top_pnumbermax 1
- frequency_penaltynumbermin -2 · max 2
- presence_penaltynumbermin -2 · max 2
- seedinteger
- stopstring | array of stringOne of: string, array of string
- echobooleandefault: false
- logprobsintegermin 0 · max 5
- streambooleandefault: false
- stream_optionsStreamOptionsOnly valid with
stream: true. - userstringmax length 256Accepted for compatibility and ignored. Never stored, never forwarded upstream.
CompletionResponseobject
- idstringRequiredCompletion id (
cmpl-…). - objectstringRequiredOne of
text_completion. - createdintegerRequired
- modelstringRequired
- choicesarray of objectRequired
- indexintegerRequired
- textstringRequired
- finish_reasonFinishReason | nullRequiredWhy generation stopped.
nullon stream chunks before the last one. One ofstop,length,tool_calls,content_filter,null. - logprobsobject | null
- usageUsage | anyAlways present on non-streamed responses; on streams only in the final chunk when
stream_options.include_usageis true.One of: Usage, any | null
CompletionStreamstring
Server-sent events with the same framing as chat completions; each data: frame is a CompletionResponse-shaped chunk with partial text.
EmbeddingRequestobject
- modelstringRequiredCanonical id of a model of kind
embedding. - inputstring | array of stringRequiredOne text or up to 2048 texts.One of: string, array of string
- encoding_formatstringdefault: "float"One of
float,base64. - dimensionsintegermin 1Shorten the vectors, for models that support it.
- userstringmax length 256Accepted for compatibility and ignored. Never stored, never forwarded upstream.
EmbeddingResponseobject
- objectstringRequiredOne of
list. - dataarray of objectRequired
- objectstringRequiredOne of
embedding. - indexintegerRequired
- embeddingarray of number | stringRequiredThe vector as numbers, or as base64 of little-endian 32-bit floats when
encoding_formatisbase64.One of: array of number, string
- modelstringRequired
- Usage of endpoints that bill input tokens only.
InputUsageobject
Usage of endpoints that bill input tokens only.
- prompt_tokensintegerRequired
- total_tokensintegerRequired
RerankRequestobject
- modelstringRequiredCanonical id of a model of kind
rerank. - querystringRequired
- documentsarray of stringRequiredmin items 1 · max items 1000
- top_nintegermin 1Return only the best
top_nresults. Defaults to all documents. - return_documentsbooleandefault: falseInclude each document's text in the results.
RerankResponseobject
- idstringRequiredRerank id (
rerank-…). - objectstringRequiredOne of
rerank. - modelstringRequired
- resultsarray of objectRequiredOrdered by
relevance_score, highest first.- indexintegerRequiredPosition of the document in the request.
- relevance_scorenumberRequired
- documentstringPresent when
return_documentsis true.
- Usage of endpoints that bill input tokens only.
TranscriptionRequestobject
- filestringRequiredThe audio file (flac, mp3, mp4, m4a, ogg, wav or webm), at most 25 MB.
- modelstringRequiredCanonical id of a model of kind
transcription. - languagestringLanguage of the audio as an ISO 639-1 code. Improves accuracy and speed.
- promptstringText to guide style or spelling.
- response_formatstringdefault: "json"One of
json,text,verbose_json,srt,vtt. - temperaturenumbermin 0 · max 1
TranscriptionResponseobject
- textstringRequired
- languagestringDetected or given language (
verbose_json). - durationnumberAudio length in seconds (
verbose_json). This is the billed quantity. - segmentsarray of objectTimed segments (
verbose_json).- idintegerRequired
- startnumberRequired
- endnumberRequired
- textstringRequired
ImageGenerationRequestobject
- modelstringRequiredCanonical id of a model of kind
image. - promptstringRequiredmax length 32000
- nintegerdefault: 1 · min 1 · max 4
- sizestringWidth x height in pixels; allowed values depend on the model.
- response_formatstringdefault: "b64_json"Only inline base64 is offered;
urlreturns400 unsupported_parameter. One ofb64_json. - seedinteger
- userstringmax length 256Accepted for compatibility and ignored. Never stored, never forwarded upstream.
ImageGenerationResponseobject
- createdintegerRequired
- dataarray of objectRequired
- b64_jsonstringRequiredThe image, base64-encoded.
- revised_promptstring
- usageobjectBilled quantity.
- imagesintegerRequired
ModelKindstring
What the model does, which decides the endpoint it is called through.
One of chat, completion, embedding, rerank, transcription, image.
Modelobject
A canonical model. It never names who hosts it; hardware vendors may be named.
- idstringRequiredCanonical model id,
vendor/name. - objectstringRequiredOne of
model. - createdintegerWhen the model was added to the catalog, Unix seconds.
- owned_bystringPublisher of the model (the first segment of the id).
- namestringRequiredDisplay name.
- descriptionstring
- kindModelKindRequiredWhat the model does, which decides the endpoint it is called through. One of
chat,completion,embedding,rerank,transcription,image. - Tiers the model is offered in.
- default_tierTierRequiredProduct tier.
sealedmeans the gateway verifies the upstream hop against enclave evidence;routedmeans it does not. One ofsealed,routed. - Sealed sub-levels that can be reached for this model; empty for a model offered only in the Routed tier.
sealed_model_signedis available for non-streamed requests only. The level reached is stated per response in the receipt. - hardwarearray of stringHardware technologies behind the Sealed tier of this model.
- context_lengthinteger | nullThe model's advertised context, in tokens: the catalog's override, otherwise the largest context among the offers that serve the model's default tier (the figure the site, the console and the back office show). A request is only sent to an offer it fits; a request no offer can take is refused with
context_length_exceeded. Null for kinds without a token context. - max_output_tokensinteger | nullThe model's advertised maximum output, in tokens: the catalog's own figure, otherwise the largest among the offers that serve the model's default tier (the figure the site and the console show). A request is only sent to an offer that gives the output it asks for. Null where there is none or the kind writes no tokens.
- thinks_before_answeringbooleanRequiredThe model thinks before it answers: its answers carry reasoning tokens (
usage.completion_tokens_details.reasoning_tokens, billed as output tokens), whether or not the request sends a reasoning control. This is the catalog's statement about the model. It is independent ofcapabilities.reasoning, which says whether the model accepts thereasoningandreasoning_effortcontrols: a model can think before answering and still refuse the controls with400 unsupported_parameter. - modalitiesobjectRequired
- One price per tier the model is offered in.
- regionsarray of objectRequiredWhere the model can be served. A model that cannot be pinned to a region is absent from region-pinned catalogs.
- regionRegionRequiredPanward region. One of
eu,us,ap. - statusstringRequiredOne of
available,degraded,unavailable.
- statusstringRequiredLifecycle state. A
deprecatedmodel has a retirement date at least 90 days after its announcement. One ofavailable,preview,degraded,deprecated,retired. - retires_atinteger | nullRetirement time, Unix seconds, when the model is deprecated.
ModelCapabilitiesobject
- streamingbooleanRequired
- toolsbooleanRequired
- json_schemabooleanRequired
- visionbooleanRequired
- reasoningbooleanRequiredThe model accepts the reasoning controls (
reasoning,reasoning_effort). Without it they are refused with400 unsupported_parameter. Whether the model's answers carry reasoning tokens isthinks_before_answering. - prompt_cachingbooleanRequired
Modalitystring
One of text, image, audio, embedding.
ModelListobject
- objectstringRequiredOne of
list. - next_cursorstring | nullRequired
Priceobject
The price of one model in one tier, per component. Amounts are integer nano-USD (1 USD = 1,000,000,000).
- tierTierRequiredProduct tier.
sealedmeans the gateway verifies the upstream hop against enclave evidence;routedmeans it does not. One ofsealed,routed. - currencystringRequiredOne of
USD. - Components that apply to the model. A request's amount per component is
ceil(quantity × amount_nano_usd / 1,000,000)for token components, in integer arithmetic. - per_request_minimumobjectThe least one request in this tier is charged: a request's price is the larger of the sum of its components and this amount (ADR-045).
amount_nano_usd0 means there is no minimum. Always present.- amount_nano_usdintegerRequiredmin 0Nano-USD per request (200,000 = $0.0002).
- amount_usdstringRequiredThe same amount formatted in USD for display.
- nextPriceChange | anyA scheduled price change, if one is announced.One of: PriceChange, any | null
PriceComponentsobject
Components that apply to the model. A request's amount per component is ceil(quantity × amount_nano_usd / 1,000,000) for token components, in integer arithmetic.
- inputPriceComponent
- cached_inputPriceComponent
- outputPriceComponent
- imagePriceComponent
- audioPriceComponent
- requestPriceComponent
PriceComponentobject
- unitstringRequired
outputincludes reasoning tokens.requestis a flat amount per request, normally 0. One ofper_1m_tokens,per_image,per_audio_minute,per_request. - amount_nano_usdintegerRequiredmin 0For
per_1m_tokens, nano-USD per 1,000,000 tokens (2,160,000,000 = $2.16 per 1M tokens). - amount_usdstringRequiredThe same amount formatted in USD for display.
PriceChangeobject
- effective_atintegerRequiredWhen the new price starts to apply, Unix seconds.
- Components that apply to the model. A request's amount per component is
ceil(quantity × amount_nano_usd / 1,000,000)for token components, in integer arithmetic.
PriceListobject
- currencystringRequiredOne of
USD. - updated_atintegerRequired
- dataarray of objectRequired
- modelstringRequiredCanonical model id.
- namestringRequired
- kindModelKindRequiredWhat the model does, which decides the endpoint it is called through. One of
chat,completion,embedding,rerank,transcription,image.
Receiptobject
The receipt document (panward.receipt/1). Its canonical form is RFC 8785 (JCS); the Ed25519 signature covers the document without the signature member. It holds hashes, never content, and no prices. It never names who served the upstream hop: evidence is referenced by content hash with neutral descriptors.
- formatstringRequiredOne of
panward.receipt/1. - idReceiptIdValueRequiredpattern ^rcpt_[0-9A-Za-z]+$Receipt id.
- statusstringRequired
pendingreceipts hold the events up toresponse.emittedand carry nosignature.finalreceipts are signed and never change. One ofpending,final. - created_atintegerRequiredGateway-observed time the request arrived, Unix seconds. Receipts are not a trusted timestamping service.
- completed_atintegerGateway-observed time the receipt was finalised. Absent while pending.
- endpointstringRequired
- streambooleanRequired
- modelstringRequiredCanonical id of the model that answered (or that was requested, for a refusal).
- tierTierRequiredProduct tier.
sealedmeans the gateway verifies the upstream hop against enclave evidence;routedmeans it does not. One ofsealed,routed. - organizationstringRequiredpattern ^org_[0-9A-Za-z]+$
- projectstringRequiredpattern ^prj_[0-9A-Za-z]+$
- key_idstringRequiredpattern ^key_[0-9A-Za-z]+$Id of the API key that made the request (never the secret).
- regionRegionRequiredPanward region. One of
eu,us,ap. - What happened, in order. Retries and failover repeat the group
route.selected…response.receivedwith increasingattempt; only the last attempt's response is returned. A refusal haspolicy.applied.decision: "deny", no forwarding events, and the hash of the error body inresponse.emitted. A request that was forwarded and failed on every attempt hasdecision: "allow", one group ending inattempt.abandonedper attempt, noupstream.verified, and the hash of the error body inresponse.emitted. - usageReceiptUsageToken counts of the request. Absent for refusals.
- The gateway instance that handled the request and signed the receipt.
- key_id_signingstringpattern ^rk_[0-9A-Za-z]+$Id of the receipt key that signed; it must be in the keyset of the attestation named by
gateway.attestation_id. Absent while pending. - signaturestringpattern ^[0-9a-f]{128}$Ed25519 signature over JCS(receipt without
signature), 128 hexadecimal characters. Absent while pending.
ReceiptEventRequestReceivedEvent | PolicyAppliedEvent | RouteSelectedEvent | RequestForwardedEvent | AttemptAbandonedEvent | UpstreamVerifiedEvent | ResponseReceivedEvent | ResponseEmittedEvent
One step of the request, selected by type.
One of: RequestReceivedEvent, PolicyAppliedEvent, RouteSelectedEvent, RequestForwardedEvent, AttemptAbandonedEvent, UpstreamVerifiedEvent, ResponseReceivedEvent, ResponseEmittedEvent
RequestReceivedEventobject
- typestringRequiredOne of
request.received. - body_sha256anyRequiredSHA-256 of the exact request body bytes the client sent.
PolicyAppliedEventobject
- typestringRequiredOne of
policy.applied. - policy_versionintegerRequiredVersion of the organization's policy that was in force.
- decisionstringRequiredOne of
allow,deny. - constraintsarray of stringConstraints the policy imposed on routing, for example
sealed_only,model_signed_required,region:eu. - reasonstringFor
deny, the errortypereturned to the client.
RouteSelectedEventobject
- typestringRequiredOne of
route.selected. - offer_classTierRequiredProduct tier.
sealedmeans the gateway verifies the upstream hop against enclave evidence;routedmeans it does not. One ofsealed,routed. - attemptintegerRequiredmin 1
- modelstringPresent when a fallback model was selected instead of the requested one.
RequestForwardedEventobject
- typestringRequiredOne of
request.forwarded. - body_sha256anyRequiredSHA-256 of the request bytes sent on the upstream hop. It differs from
request.receivedbecause the gateway rewrites ids and model names; with channelencrypted_to_model_enclaveit covers ciphertext. - channelstringRequiredWhat the gateway checked about the upstream hop, never more (ADR-B-123).
tls: the upstream's certificate checked against public certificate authorities only (Routed offers, and Sealed offers whose evidence binds no TLS key).tls_pinned: the connection's server key matched a TLS key bound by evidence the gateway verified with its own nonce; another key refuses the connection before any request byte.encrypted_to_model_enclave: the message content was also encrypted to the model enclave's key bound by evidence the gateway verified.encrypted_to_gateway_enclave: the request and response bodies were encrypted (HPKE) to the upstream gateway enclave's key bound by evidence the gateway verified with its own nonce. One oftls,tls_pinned,encrypted_to_model_enclave,encrypted_to_gateway_enclave. - attemptintegermin 1
AttemptAbandonedEventobject
An upstream attempt that was given up before any byte reached the client (architecture 02 section 4). The next attempt follows.
- typestringRequiredOne of
attempt.abandoned. - reasonstringRequiredOne of
timeout,upstream_error,rate_limited,sealed_unavailable. - body_sha256anyRequiredSHA-256 of the request bytes that were sent on this attempt.
- cancelledbooleanRequiredWhether the upstream call was cancelled.
- attemptintegerRequiredmin 1
UpstreamVerifiedEventobject
What the gateway's enclave verified about the upstream hop for this response.
- typestringRequiredOne of
upstream.verified. - resultstringRequired
verified: the expected proof was checked.failed: it was missing, late, invalid or against policy (reasonset).not_applicable: Routed tier, no proof exists. One ofverified,failed,not_applicable. - levelVerificationLevelRequiredLevel reached for one response. See "Tiers and verification levels". One of
sealed_model_signed,sealed_attested_path,sealed_attested_channel,routed,failed. - reasonstringSet when
resultisfailed. One ofproof_unavailable,signature_invalid,hash_mismatch,evidence_expired,policy_violation,stream_incomplete,client_aborted. - evidencearray of EvidenceRef
- response_proofobject
- kindstringRequired
enclave_signatureandsigned_receipt: an upstream key signed the exact request and response hashes.attested_channel(levelsealed_attested_channelonly): no signature exists; the proof is that the exchange went over a channel only the holder of a key bound in nonce-bound, verified evidence could terminate. It cannot be re-checked against the upstream later; Warden re-appraises the archived evidence. One ofenclave_signature,signed_receipt,attested_channel. - signer_scopestringRequiredWhich enclave's key signed the request and response hashes; for
attested_channel, which enclave holds the channel key (nothing is signed). One ofmodel_enclave,gateway_enclave. - instance_boundbooleanTrue only when the signing key is bound to one attested instance or session. False for a key shared by a pool of enclaves; the proof then does not identify the instance that served the response.
- verified_atintegerRequired
- claimsobjectRecorded claims that never raise or gate the level.
- gpu_attestedstringGPU evidence was presented and checked offline; it is not bound to the serving CPU enclave. One of
asserted,unknown. - gpu_bindingstring
none: GPU evidence is not bound to this response or to the serving CPU enclave.session_bound: reserved for offers that bind CPU and GPU evidence to one session; not issued today. One ofnone,session_bound. - debug_modestringOne of
refuted,unknown. - weights_provenancestringOne of
asserted,unknown.
- attemptintegermin 1
EvidenceRefobject
A piece of archived upstream evidence, named only by content hash.
- idSha256RefRequiredpattern ^sha256:[0-9a-f]{64}$A content hash,
sha256:followed by 64 lowercase hexadecimal characters. - kindstringRequiredOne of
gateway_enclave,model_enclave,model_environment. - hardwarestringThe hardware whose quote or report Panward's gateway verified itself for this piece. Absent when the piece is a record of an attested upstream gateway and Panward verified no hardware evidence of it directly. One of
intel-tdx,amd-sev-snp,nvidia-gpu. - firmware_statusstringFirmware level as judged by the verification policy. One of
up_to_date,accepted_with_advisory. - operator_ratingstringPanward's custody rating of the environment's operator. Only A and B can serve Sealed. One of
A,B. - nonce_boundbooleanRequiredThe evidence was bound to a fresh nonce chosen by Panward's gateway.
- freshnessstring
fixed_attestation: the enclave's attestation document has no nonce input (the operator fixes it; the gateway re-fetches and re-verifies it every refresh interval).nonce_boundis then false. Allowed only undersealed_model_signed, where the key it binds signed this response. Absent:nonce_boundsays it all. One offixed_attestation.
ResponseReceivedEventobject
- typestringRequiredOne of
response.received. - body_sha256anyRequiredSHA-256 of the response bytes received on the upstream hop.
- attemptintegermin 1
ResponseEmittedEventobject
- typestringRequiredOne of
response.emitted. - body_sha256anyRequiredSHA-256 of the exact response body bytes the gateway wrote to the client connection; for a stream, every byte written, including the terminator when
completeis true. - bytesintegerRequiredmin 0
- completebooleanRequiredFalse when the stream ended early (client disconnect or mid-stream failure).
ReceiptUsageobject
Token counts of the request. Absent for refusals.
- input_tokensintegerRequired
- cached_input_tokensintegerRequired
- output_tokensintegerRequiredIncludes reasoning tokens.
ReceiptGatewayobject
The gateway instance that handled the request and signed the receipt.
- attestation_idanyRequiredContent hash of the instance's archived boot-time attestation document.
- releasestringRequiredGateway release version; its measurements are in the release file.
- config_bundleanyRequiredHash of the configuration bundle that was live.
- verification_policyanyRequiredHash of the verification policy that was live; published with a summary in the release file.
ReceiptBatchobject
- Requested ids with no readable receipt.
- next_cursorany | nullRequired
ReceiptVerifyRequestobject | object
Either a share token or a receipt document.
One of: object, object
ReceiptVerificationBundleobject
Material for client-side verification. It contains no verdict.
- The receipt document (
panward.receipt/1). Its canonical form is RFC 8785 (JCS); the Ed25519signaturecovers the document without thesignaturemember. It holds hashes, never content, and no prices. It never names who served the upstream hop: evidence is referenced by content hash with neutral descriptors. - attestationobjectRequiredThe archived boot-time attestation document named by
receipt.gateway.attestation_id. Its nonce is the hash of its keyset.- formatstringRequiredOne of
panward.attestation/1. - teestringRequiredOne of
intel-tdx. - quotestringRequiredpattern ^[0-9a-f]+$The hardware quote, hexadecimal. Its
report_dataisSHA-256(JCS(report_data_statement))followed by 32 zero bytes. - report_data_statementobjectRequired
- purposestringRequiredOne of
panward.attestation/1. - noncestringRequiredpattern ^[0-9a-fA-F]{64}$The caller's nonce; in an archived boot-time document, the hash of the keyset.
- keyset_digestanyRequired
sha256:+ hex ofSHA-256(JCS(keyset)).
- Keys generated inside the enclave at boot and bound into the quote. Verifiers pin measurements, not these keys.
- Launch and runtime measurement registers, each 96 hexadecimal characters.
- event_logarray of objectRequiredMeasured boot events that replay to the runtime measurement registers.
- registerintegerRequiredmin 0 · max 3
- eventstringRequired
- digeststringRequiredpattern ^[0-9a-f]+$
- payloadstring
- releaseobjectRequired
- versionstringRequired
- image_digestSha256RefRequiredpattern ^sha256:[0-9a-f]{64}$A content hash,
sha256:followed by 64 lowercase hexadecimal characters.
- runtimeobjectRequiredValues that change without a new image. They are not hardware-measured; they are signed by the attested receipt key.
- config_bundleSha256RefRequiredpattern ^sha256:[0-9a-f]{64}$A content hash,
sha256:followed by 64 lowercase hexadecimal characters. - verification_policySha256RefRequiredpattern ^sha256:[0-9a-f]{64}$A content hash,
sha256:followed by 64 lowercase hexadecimal characters. - regionRegionRequiredPanward region. One of
eu,us,ap. - started_atintegerRequired
- runtime_signaturestringRequiredpattern ^[0-9a-f]{128}$Ed25519 signature by a key of
keyset.receipt_keysover JCS(runtime), hexadecimal.
- releaseobjectRequiredThe release entry for
receipt.gateway.release.- versionstringRequired
- statusReleaseStatusRequired
announced: published, not yet serving.active: may serve.retired: no longer serves; kept so old receipts stay verifiable. One ofannounced,active,retired. - source_commitstringRequiredpattern ^[0-9a-f]{40}$Commit of the open-source gateway the image was built from.
- source_urlstring
- image_digestSha256RefRequiredpattern ^sha256:[0-9a-f]{64}$A content hash,
sha256:followed by 64 lowercase hexadecimal characters. - measurementsarray of objectRequiredExpected measurements per host platform and VM shape. An attestation must equal one row.
- platformstringRequiredHost platform generation the row applies to.
- vm_shapestringRequiredVirtual machine size (vCPU and memory) the row applies to.
- teestringRequiredOne of
intel-tdx. - mrtdRegisterRequiredpattern ^[0-9a-f]{96}$
- rtmr0RegisterRequiredpattern ^[0-9a-f]{96}$
- rtmr1RegisterRequiredpattern ^[0-9a-f]{96}$
- rtmr2RegisterRequiredpattern ^[0-9a-f]{96}$
- rtmr3RegisterRequiredpattern ^[0-9a-f]{96}$
- td_attributesstringpattern ^[0-9a-f]{16}$TD attributes of the shape, 16 hexadecimal characters. When present, the quote's value must equal it.
- xfamstringpattern ^[0-9a-f]{16}$Extended features mask of the shape, 16 hexadecimal characters. When present, the quote's value must equal it.
- announced_atintegerRequired
- effective_atintegerRequiredEarliest time the release serves traffic; at least 7 days after
announced_at. - retired_atinteger | null
- notesstring
- verification_policyVerificationPolicyVersion | anyThe published policy version matching
receipt.gateway.verification_policy, when it is published.One of: VerificationPolicyVersion, any | null
SampleReceiptobject
The public sample receipt and what a verifier needs besides Intel's collateral and the policy list.
- receipt_idstringRequiredpattern ^rcpt_[0-9A-Za-z]{10,64}$
- The receipt document (
panward.receipt/1). Its canonical form is RFC 8785 (JCS); the Ed25519signaturecovers the document without thesignaturemember. It holds hashes, never content, and no prices. It never names who served the upstream hop: evidence is referenced by content hash with neutral descriptors. - request_bodystringRequiredThe exact request bytes; their SHA-256 is the receipt's
request.received. - response_bodystringRequiredThe exact response bytes; their SHA-256 is the receipt's
response.emitted. - attestation_idstringRequiredpattern ^sha256:[0-9a-f]{64}$The receipt's
gateway.attestation_id. - release_filestring | nullRequiredThe signed release file that lists the attestation's measurements, when published with the sample.
- designated_atintegerRequired
Attestationobject
Attestation document of one gateway instance (panward.attestation/1).
- formatstringRequiredOne of
panward.attestation/1. - teestringRequiredOne of
intel-tdx. - quotestringRequiredpattern ^[0-9a-f]+$The hardware quote, hexadecimal. Its
report_dataisSHA-256(JCS(report_data_statement))followed by 32 zero bytes. - report_data_statementobjectRequired
- purposestringRequiredOne of
panward.attestation/1. - noncestringRequiredpattern ^[0-9a-fA-F]{64}$The caller's nonce; in an archived boot-time document, the hash of the keyset.
- keyset_digestanyRequired
sha256:+ hex ofSHA-256(JCS(keyset)).
- Keys generated inside the enclave at boot and bound into the quote. Verifiers pin measurements, not these keys.
- Launch and runtime measurement registers, each 96 hexadecimal characters.
- event_logarray of objectRequiredMeasured boot events that replay to the runtime measurement registers.
- registerintegerRequiredmin 0 · max 3
- eventstringRequired
- digeststringRequiredpattern ^[0-9a-f]+$
- payloadstring
- releaseobjectRequired
- versionstringRequired
- image_digestSha256RefRequiredpattern ^sha256:[0-9a-f]{64}$A content hash,
sha256:followed by 64 lowercase hexadecimal characters.
- runtimeobjectRequiredValues that change without a new image. They are not hardware-measured; they are signed by the attested receipt key.
- config_bundleSha256RefRequiredpattern ^sha256:[0-9a-f]{64}$A content hash,
sha256:followed by 64 lowercase hexadecimal characters. - verification_policySha256RefRequiredpattern ^sha256:[0-9a-f]{64}$A content hash,
sha256:followed by 64 lowercase hexadecimal characters. - regionRegionRequiredPanward region. One of
eu,us,ap. - started_atintegerRequired
- runtime_signaturestringRequiredpattern ^[0-9a-f]{128}$Ed25519 signature by a key of
keyset.receipt_keysover JCS(runtime), hexadecimal.
Keysetobject
Keys generated inside the enclave at boot and bound into the quote. Verifiers pin measurements, not these keys.
- receipt_keysarray of objectRequired
- key_idstringRequiredpattern ^rk_[0-9A-Za-z]+$
- algstringRequiredOne of
ed25519. - public_keySha256HexRequiredpattern ^[0-9a-f]{64}$SHA-256 as 64 lowercase hexadecimal characters.
- tls_keysarray of objectRequired
- domainstringRequired
- spki_sha256Sha256HexRequiredpattern ^[0-9a-f]{64}$SHA-256 as 64 lowercase hexadecimal characters.
- not_afterintegerRequired
Measurementsobject
Launch and runtime measurement registers, each 96 hexadecimal characters.
- mrtdRegisterRequiredpattern ^[0-9a-f]{96}$
- rtmr0RegisterRequiredpattern ^[0-9a-f]{96}$
- rtmr1RegisterRequiredpattern ^[0-9a-f]{96}$
- rtmr2RegisterRequiredpattern ^[0-9a-f]{96}$
- rtmr3RegisterRequiredpattern ^[0-9a-f]{96}$
Registerstring
pattern ^[0-9a-f]{96}$
TransparencyLogEntryobject
- log_indexintegerRequired
- bundlestringRequiredSigstore bundle (its JSON, base64url) proving that this row's release statement, the canonical JSON of
type(panward.release/1),version,source_commit,image_digestandmeasurements, was signed by the release workflow and entered in the public transparency log.
ReleaseStatusstring
announced: published, not yet serving. active: may serve. retired: no longer serves; kept so old receipts stay verifiable.
One of announced, active, retired.
ReleaseEntryobject
One published gateway release.
- versionstringRequired
- statusReleaseStatusRequired
announced: published, not yet serving.active: may serve.retired: no longer serves; kept so old receipts stay verifiable. One ofannounced,active,retired. - source_commitstringRequiredpattern ^[0-9a-f]{40}$Commit of the open-source gateway the image was built from.
- source_urlstring
- image_digestSha256RefRequiredpattern ^sha256:[0-9a-f]{64}$A content hash,
sha256:followed by 64 lowercase hexadecimal characters. - measurementsarray of objectRequiredExpected measurements per host platform and VM shape. An attestation must equal one row.
- platformstringRequiredHost platform generation the row applies to.
- vm_shapestringRequiredVirtual machine size (vCPU and memory) the row applies to.
- teestringRequiredOne of
intel-tdx. - mrtdRegisterRequiredpattern ^[0-9a-f]{96}$
- rtmr0RegisterRequiredpattern ^[0-9a-f]{96}$
- rtmr1RegisterRequiredpattern ^[0-9a-f]{96}$
- rtmr2RegisterRequiredpattern ^[0-9a-f]{96}$
- rtmr3RegisterRequiredpattern ^[0-9a-f]{96}$
- td_attributesstringpattern ^[0-9a-f]{16}$TD attributes of the shape, 16 hexadecimal characters. When present, the quote's value must equal it.
- xfamstringpattern ^[0-9a-f]{16}$Extended features mask of the shape, 16 hexadecimal characters. When present, the quote's value must equal it.
- announced_atintegerRequired
- effective_atintegerRequiredEarliest time the release serves traffic; at least 7 days after
announced_at. - retired_atinteger | null
- notesstring
VerificationPolicyVersionobject
A published version of the policy the gateway applies to upstream evidence.
- hashSha256RefRequiredpattern ^sha256:[0-9a-f]{64}$A content hash,
sha256:followed by 64 lowercase hexadecimal characters. - versionintegerRequired
- summarystringRequiredHuman-readable summary of what the policy requires.
- effective_atintegerRequired
ReleaseListobject
- revoked_keysarray of objectThe release file's revoked receipt keys (in the unfiltered answer only).
- file_statementobjectWhat is signed for the release file as a whole (format
panward.release-file/1; unfiltered answer only). - file_logobjectThe transparency-log entry of the file statement (unfiltered answer only).
- verification_policiesarray of VerificationPolicyVersionPublished verification-policy versions, newest first.
- next_cursorstring | nullThe next page of a filtered or paged read; absent from the release file itself.
IntelCollateralobject
Intel-signed collateral for verifying a TDX quote, as fetched from Intel's provisioning certification service.
- fmspcstringRequiredpattern ^[0-9a-f]{12}$
- tcb_infostringRequiredThe signed TCB info document, byte-exact JSON as a string.
- tcb_info_issuer_chainstringRequiredPEM certificate chain.
- qe_identitystringRequiredThe signed quoting-enclave identity document, byte-exact JSON as a string.
- qe_identity_issuer_chainstringRequiredPEM certificate chain.
- pck_crlstringRequiredCertificate revocation list of the platform certificate authority, PEM.
- pck_crl_issuer_chainstringRequiredPEM certificate chain.
- root_ca_crlstringRequiredCertificate revocation list of Intel's root, PEM.
- tcb_evaluation_data_numberintegerRequiredEvaluation number of the TCB info; verifiers enforce a minimum.
- fetched_atintegerRequired
- next_updateintegerRequiredEarliest expiry among the items, Unix seconds.
UsageReportobject
- fromintegerRequired
- tointegerRequired
- group_bystring | nullOne of
model,project,key,tier,region,day,null. - next_cursorstring | nullRequired
UsageRowobject
- modelstringSet when grouped by model.
- projectstringProject id, set when grouped by project.
- key_idstringAPI key id, set when grouped by key.
- tierTierProduct tier.
sealedmeans the gateway verifies the upstream hop against enclave evidence;routedmeans it does not. One ofsealed,routed. - regionRegionPanward region. One of
eu,us,ap. - daystringUTC day, set when grouped by day.
- requestsintegerRequired
- input_tokensintegerRequired
- cached_input_tokensintegerRequired
- output_tokensintegerRequiredIncludes reasoning tokens.
- reasoning_tokensinteger
- imagesinteger
- audio_secondsinteger
- cost_nano_usdintegerRequiredAmount billed, in nano-USD.
- cost_usdstringRequiredThe same amount formatted in USD.
UsageFiguresobject
- requestsintegerRequired
- input_tokensintegerRequired
- cached_input_tokensintegerRequired
- output_tokensintegerRequiredIncludes reasoning tokens.
- reasoning_tokensinteger
- imagesinteger
- audio_secondsinteger
- cost_nano_usdintegerRequiredAmount billed, in nano-USD.
- cost_usdstringRequiredThe same amount formatted in USD.
ChangelogCategorystring
One of models, api, console, security, pricing, verification.
ChangelogEntryobject
- idstringRequiredpattern ^chg_[0-9A-Za-z]+$
- slugstringRequired
- titlestringRequired
- categoryChangelogCategoryRequiredOne of
models,api,console,security,pricing,verification. - tagsarray of string
- published_atintegerRequired
- summarystring
- body_htmlstringRequiredSanitised HTML of the entry.
- urlstring
ChangelogListobject
- next_cursorstring | nullRequired
SearchKindstring
One of doc, model, page.
SearchResultsobject
- dataarray of objectRequired
- kindSearchKindRequiredOne of
doc,model,page. - titlestringRequired
- sectionstring | nullSection heading within the page, for docs results.
- urlstringRequiredSite-relative or absolute URL of the result.
- excerptstringText around the match, with matches wrapped in
<mark>.
- next_cursorany | nullRequired
DocsFeedbackRequestobject
- page_pathstringRequiredmax length 300 · pattern ^/docs(/[A-Za-z0-9._~-]+)*$Path of the docs page.
- helpfulbooleanRequired
ContactRequestobject
- namestringRequiredmin length 1 · max length 120
- emailstringRequiredmax length 254
- companystringmax length 160
- rolestringmax length 120
- countrystringpattern ^[A-Z]{2}$ISO 3166-1 alpha-2 code.
- topicstringRequired
dpaasks for the named subprocessor list under the data-processing agreement (G-51);supportis a request for help, with the request id of a failed call inmessage(G-53). One ofsupport,sales,sovereign,enterprise,security,dpa,other. - deploymentstringFor sovereign enquiries, the kind of deployment wanted. One of
dedicated_region,customer_cloud,on_premises,undecided. - expected_monthly_usagestringmax length 120
- messagestringRequiredmin length 1 · max length 5000
- source_pagestringmax length 300Site path the form was sent from.
ContactAcceptedobject
- idstringRequiredpattern ^ctr_[0-9A-Za-z]+$
- statusstringRequiredOne of
received.
ComponentStatusstring
One of operational, degraded, partial_outage, major_outage, maintenance.
Statusobject
- overallComponentStatusRequiredOne of
operational,degraded,partial_outage,major_outage,maintenance. - updated_atintegerRequired
- The open gateway regions that have a state (from their components, else measured), by region code.
- Open incidents.
- Scheduled and ongoing maintenance.
StatusComponentobject
- idstringRequired
- namestringRequired
- groupstring
- regionRegion | anyOne of: Region, any | null
- statusComponentStatusRequiredOne of
operational,degraded,partial_outage,major_outage,maintenance. - uptime_90dnumberUptime over the last 90 days, percent.
RegionStatusobject
What was recorded for the region. A figure nothing recorded is null, never estimated.
- regionRegionRequiredPanward region. One of
eu,us,ap. - statusComponentStatusRequiredOne of
operational,degraded,partial_outage,major_outage,maintenance. - gateway_releasestring | nullRequiredThe release of Panward's gateway the region runs (its gateways' report, else the release that answered most requests in the last hour). Null when neither was recorded.
- attestation_age_secondsinteger | nullRequiredAge of the newest boot attestation of the region's running gateways. A gateway is attested when it starts and serves under that attestation until it stops, so this is how long ago the newest of them started, not how recently anything was checked. Null when none is recorded.
- verification_success_ratenumber | nullRequiredmin 0 · max 1Share of Sealed responses in the last hour whose receipt reached a sealed level. Null when no Sealed response's receipt was due in the last hour.
IncidentStatusstring
A maintenance is scheduled, then monitoring while in progress and resolved when completed; a maintenance withdrawn before it started is cancelled (it never took place, and has no resolved_at).
One of scheduled, investigating, identified, monitoring, resolved, cancelled.
Incidentobject
- idstringRequiredpattern ^inc_[0-9A-Za-z]+$
- kindstringRequiredOne of
incident,maintenance. - titlestringRequired
- statusIncidentStatusRequiredA maintenance is
scheduled, thenmonitoringwhile in progress andresolvedwhen completed; a maintenance withdrawn before it started iscancelled(it never took place, and has noresolved_at). One ofscheduled,investigating,identified,monitoring,resolved,cancelled. - impactstringRequiredOne of
none,minor,major,critical. - componentsarray of stringIds of affected components.
- regionsarray of Region
- started_atintegerRequired
- scheduled_untilinteger | null
- resolved_atinteger | null
- updatesarray of objectRequiredNewest first.
- idstringRequired
- statusIncidentStatusRequiredA maintenance is
scheduled, thenmonitoringwhile in progress andresolvedwhen completed; a maintenance withdrawn before it started iscancelled(it never took place, and has noresolved_at). One ofscheduled,investigating,identified,monitoring,resolved,cancelled. - bodystringRequired
- created_atintegerRequired
- urlstring
IncidentListobject
- next_cursorstring | nullRequired
StatusSubscriptionRequestobject
- emailstringRequiredmax length 254
- componentsarray of stringComponent ids to follow. Omit for all components.
- regionsarray of RegionRegions to follow. Omit for all regions.
- include_maintenancebooleandefault: true
StatusSubscriptionAcceptedobject
- statusstringRequiredOne of
pending_confirmation.
StatusSubscriptionConfirmRequestobject
- tokenstringRequiredmin length 20 · max length 128
StatusSubscriptionobject
- statusstringRequiredOne of
confirmed. - componentsarray of string
- regionsarray of Region
- include_maintenanceboolean