{"x402Version":1,"name":"Prism Network managed inference","description":"Pay-per-generation LLM inference on rented GPUs. Pay in USDC on Base or Arc, or USDG on Robinhood Chain; an unpaid request answers 402 with the exact price on each. The serving lease settles onchain with a public receipt. A confidential tier serves the same pay-per-request interface from a Phala GPU TEE, with a signed receipt over the request and response bytes and optional end-to-end encryption between the caller and the enclave.","image":"https://prismnetwork.tech/brand/prism-mark-400.png","endpoints":[{"path":"/inference/v1/inference","method":"POST","description":"One LLM generation. The price is the model's base plus its per-token rate over the requested output cap, and the unpaid 402 quotes the exact figure for every network it accepts. On Base, sign an EIP-3009 authorization for the quoted USDC amount and send it in the payment header; you need no gas, because the authorization is broadcast for you, and nothing is taken unless a generation is returned. A payment is consumed only when a response is served, and a consumed one replays its own result.","price":"up to 0.012144 USDC or USDG per generation, quoted per request","accepts":[{"scheme":"exact","network":"eip155:8453","amount":"12144","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe67a61f8e2aC4057aa22e64306107E7120078447","maxTimeoutSeconds":60,"extra":{"name":"USD Coin","version":"2","assetTransferMethod":"eip3009"}},{"scheme":"exact","network":"eip155:5042","amount":"12144","asset":"0x3600000000000000000000000000000000000000","payTo":"0xe67a61f8e2aC4057aa22e64306107E7120078447","maxTimeoutSeconds":60,"extra":{"name":"USDC","version":"2","assetTransferMethod":"eip3009"}},{"scheme":"exact","network":"eip155:4663","amount":"12144","asset":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","payTo":"0xEcaaE714912C38fA7e0dAF78afa7C54DbeD11039","maxTimeoutSeconds":60,"extra":{"name":"Global Dollar","version":"1","assetTransferMethod":"eip3009"}}],"inputSchema":{"type":"object","required":["model","prompt"],"properties":{"model":{"type":"string","enum":["llama3.2:3b","llama3.1:8b"]},"prompt":{"type":"string","description":"Prompt to generate from (max 32 KiB)."},"options":{"type":"object","properties":{"num_predict":{"type":"integer","minimum":1,"maximum":1024,"description":"Output token cap; the price scales with it."}}}}}},{"path":"/inference/v1/batch","method":"POST","description":"Many independent prompts in one paid call. The price is the single-request price times the number of prompts, and the unpaid 402 quotes the exact figure. Each prompt runs whole on one rented GPU, and the gateway spreads them over every GPU it holds, so a batch finishes in roughly the time the slowest box needs rather than the sum of all of them. The response carries a Merkle receipt over the set: each item comes with the digests it was committed under and an audit path, so any one answer can be proved to belong to the batch without disclosing the others, and the receipt names the leases that did the work, which settle on-chain with their own public receipts.","price":"the per-generation price times the number of prompts, quoted per request","accepts":[{"scheme":"exact","network":"eip155:8453","amount":"12144","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe67a61f8e2aC4057aa22e64306107E7120078447","maxTimeoutSeconds":60,"extra":{"name":"USD Coin","version":"2","assetTransferMethod":"eip3009"}},{"scheme":"exact","network":"eip155:5042","amount":"12144","asset":"0x3600000000000000000000000000000000000000","payTo":"0xe67a61f8e2aC4057aa22e64306107E7120078447","maxTimeoutSeconds":60,"extra":{"name":"USDC","version":"2","assetTransferMethod":"eip3009"}},{"scheme":"exact","network":"eip155:4663","amount":"12144","asset":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","payTo":"0xEcaaE714912C38fA7e0dAF78afa7C54DbeD11039","maxTimeoutSeconds":60,"extra":{"name":"Global Dollar","version":"1","assetTransferMethod":"eip3009"}}],"inputSchema":{"type":"object","properties":{"model":{"type":"string","enum":["llama3.2:3b","llama3.1:8b"],"description":"Which model answers every prompt."},"prompts":{"type":"array","minItems":1,"maxItems":64,"items":{"type":"string","minLength":1,"description":"One prompt, up to 32 KiB."},"description":"Independent prompts, answered in the order given."},"options":{"type":"object","description":"Generation options, applied to every prompt. The price scales with the output cap.","properties":{"num_predict":{"type":"integer","minimum":1,"maximum":1024,"description":"Maximum output tokens per prompt. Lower is cheaper."}}}},"required":["model","prompts"]}},{"path":"/inference/v1/chat/completions","method":"POST","description":"One chat completion served inside a Phala GPU TEE, in the OpenAI request and response shape. The price is the model's base plus its per-token rate over the max_tokens you ask for, and the unpaid 402 quotes the exact figure. The gateway forwards your request bytes unchanged and returns the upstream bytes unchanged, so the receipt the enclave signs over both covers exactly what you sent and exactly what you received; the id to fetch it comes back in X-Receipt-Id. Send the five X-E2EE-* headers to encrypt message content to the enclave's key, in which case the relay carries ciphertext. Set stream to true for server-sent events: frames are relayed as the enclave produces them, the receipt covers the whole stream including its framing, and the payment settles after the final frame, so a streamed answer carries no PAYMENT-RESPONSE header. A payment is consumed only when a complete response is served.","price":"up to 0.132880 USDC or USDG per generation, quoted per request","accepts":[{"scheme":"exact","network":"eip155:8453","amount":"132880","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xe67a61f8e2aC4057aa22e64306107E7120078447","maxTimeoutSeconds":60,"extra":{"name":"USD Coin","version":"2","assetTransferMethod":"eip3009"}},{"scheme":"exact","network":"eip155:5042","amount":"132880","asset":"0x3600000000000000000000000000000000000000","payTo":"0xe67a61f8e2aC4057aa22e64306107E7120078447","maxTimeoutSeconds":60,"extra":{"name":"USDC","version":"2","assetTransferMethod":"eip3009"}},{"scheme":"exact","network":"eip155:4663","amount":"132880","asset":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","payTo":"0xEcaaE714912C38fA7e0dAF78afa7C54DbeD11039","maxTimeoutSeconds":60,"extra":{"name":"Global Dollar","version":"1","assetTransferMethod":"eip3009"}}],"inputSchema":{"type":"object","required":["model","messages","max_tokens"],"properties":{"model":{"type":"string","enum":["openai/gpt-oss-120b","meta-llama/llama-3.3-70b-instruct","qwen/qwen3.8-27b","z-ai/glm-5.2","phala/gemma-4-26b-a4b-uncensored","z-ai/glm-5.3-flash","deepseek/deepseek-v4-flash-0731","phala/qwen3.8-27b-uncensored","nvidia/nemotron-3.5-lightning","z-ai/glm-5.3","qwen/qwen3-vl-30b-a3b-instruct","moonshotai/kimi-k3"]},"messages":{"type":"array","minItems":1,"items":{"type":"object","required":["role","content"],"properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"integer","minimum":1,"maximum":1024,"description":"Output token cap; the price scales with it. Required, because the body is forwarded unchanged."},"temperature":{"type":"number"},"stream":{"type":"boolean","description":"Return the answer as server-sent events, relayed frame by frame. The receipt covers the whole stream, framing included."}}}},{"path":"/inference/v1/attestation","method":"GET","description":"The TEE's attestation report for a caller-chosen nonce of 64 lowercase hex characters: the TDX quote, the measured compose, and the workload keyset the receipt signing keys and encryption keys are drawn from. Free.","price":"free"},{"path":"/inference/v1/receipts/{id}","method":"GET","description":"The signed receipt for one completion, by the id its response carried. It binds the hash of the request bytes the enclave received, the hash of the response bytes it returned, and the upstream GPU verification outcome. Fetch it promptly; upstream retention is short. Free.","price":"free"},{"path":"/inference/v1/sessions","method":"GET","description":"The attested upstream sessions currently serving, with the evidence each receipt cites. Add {id} to the path for one session's full record. Free.","price":"free"},{"path":"/inference/v1/gpu-evidence","method":"GET","description":"The GPU attestation evidence for a model, in the shape NVIDIA's remote attestation service takes as a request body, so a caller can have the GPU leg verified by NVIDIA directly rather than by us. Free.","price":"free"},{"path":"/inference/v1/models","method":"GET","description":"Models, per-model pricing, and the gateway's current state. Free.","price":"free"}]}