{"service":"PRXVT API","summary":"Private AI for agents: chat in the OpenAI, Responses and Anthropic Messages shapes, and a Studio that makes pictures, video, talking clips, 3D, voices, speech, music and sound. Two ways to pay: (A) an API key (Authorization: Bearer prxvt-sk-...) backed by a USDC balance, which you can top up and mint with no browser; or (B) x402 pay per call, one signed USDC authorization per request, gasless, no account or key. MCP tools for all of it at POST /v1/mcp.","protocol":"x402-v2","scheme":"exact","chainId":8453,"network":"eip155:8453","endpoints":{"paid":[{"method":"POST","path":"/chat/completions","aliases":["/v1/x402/chat/completions"],"description":"Pay-per-call OpenAI-compatible chat completion. Quote = (input_tokens + max_output_tokens) * model rate * 1.10. Settled gaslessly via EIP-3009. No account, no API key.","pricingModel":"per-token + 10% margin","bodySchema":{"model":"string (see GET /v1/models)","messages":"Array<{role: 'user'|'system'|'assistant', content: string}>","stream":"boolean (optional, default false)","max_tokens":"number (optional, default 1024, max 32768)","temperature":"number (optional)","top_p":"number (optional)","tools":"array (optional, OpenAI tools format)"}},{"method":"POST","path":"/v1/x402/studio/image","description":"Pay per call for a picture, made from words or by changing one you send. The 402 quotes the Studio's own price for your body; a body the Studio would refuse gets its error and no 402. Settled only after the result is made; a failure is not charged.","pricingModel":"the Studio price for the body (GET /v1/studio/models)","bodyLike":"/v1/studio/image"},{"method":"POST","path":"/v1/x402/studio/speech","description":"Pay per call for speech, priced by the length of the words. The 402 quotes the Studio's own price for your body; a body the Studio would refuse gets its error and no 402. Settled only after the result is made; a failure is not charged.","pricingModel":"the Studio price for the body (GET /v1/studio/models)","bodyLike":"/v1/audio/speech"},{"method":"POST","path":"/v1/x402/studio/music","description":"Pay per call for a piece of music. The 402 quotes the Studio's own price for your body; a body the Studio would refuse gets its error and no 402. Settled only after the result is made; a failure is not charged.","pricingModel":"the Studio price for the body (GET /v1/studio/models)","bodyLike":"/v1/studio/music"},{"method":"POST","path":"/v1/x402/studio/sound","description":"Pay per call for a sound effect. The 402 quotes the Studio's own price for your body; a body the Studio would refuse gets its error and no 402. Settled only after the result is made; a failure is not charged.","pricingModel":"the Studio price for the body (GET /v1/studio/models)","bodyLike":"/v1/audio/sound"},{"method":"POST","path":"/topup","aliases":["/v1/credits/topup"],"description":"Pay $5 USDC; the server credits the paying wallet's account. Then mint an API key with the same wallet, no browser: see keys below.","pricingModel":"fixed $5 USDC"}],"bearer":[{"method":"POST","path":"/v1/chat/completions","auth":"Authorization: Bearer prxvt-sk-...","description":"OpenAI Chat Completions. Each call debits the account balance. Tools, vision, streaming, response_format."},{"method":"POST","path":"/v1/responses","auth":"Authorization: Bearer prxvt-sk-...","description":"OpenAI Responses API (Codex, the OpenAI Agents SDK). Stateless: send the whole conversation each turn; previous_response_id is refused. Function and custom tools."},{"method":"POST","path":"/v1/messages","auth":"x-api-key: prxvt-sk-... (or Authorization: Bearer)","description":"Anthropic Messages API (Claude Code, Anthropic SDKs): set ANTHROPIC_BASE_URL to this host. Also POST /v1/messages/count_tokens."},{"method":"POST","path":"/v1/studio/{image,video,talk,model3d,voice,music}","auth":"Authorization: Bearer prxvt-sk-...","description":"The Studio: pictures (and picture tools), video (from words, frames or references; extend, edit, remix), talking clips, 3D, voices. Video, talk and 3D return a job id to poll at GET /v1/studio/video/:id or /v1/studio/model3d/:id. A failed job is refunded."},{"method":"POST","path":"/v1/audio/{speech,sound,transcriptions}","auth":"Authorization: Bearer prxvt-sk-...","description":"Speech, sound effects and transcription."},{"method":"POST","path":"/v1/mcp","auth":"Authorization: Bearer prxvt-sk-...","description":"Model Context Protocol over Streamable HTTP. Chat, balance, models, keys and topup tools, and the Studio tools: list_models, quote, make_image, make_video, change_video, make_talk, make_3d, make_voice, make_speech, make_music, make_sound, transcribe, job_status. Every paid tool takes max_usd."}],"public":[{"method":"GET","path":"/llms.txt","description":"Plain-text instructions for AI agents. Read this if you ARE an LLM and you want to know how to call the paid endpoints."},{"method":"GET","path":"/v1/models","description":"Catalog of every chat model and its per-token prices. OpenAI shape plus PRXVT extras."},{"method":"GET","path":"/v1/studio/models","description":"Every Studio model with its price, lengths, resolutions and the inputs it takes."},{"method":"GET","path":"/v1/credits/info","description":"Server wallet address, chain id, USDC contract, fixed-price metadata."},{"method":"GET","path":"/","description":"This manifest."}]},"keys":{"mint":["POST /v1/account/challenge -> { message, nonce }","sign `message` with your wallet (personal_sign)","POST /v1/account/login { wallet, nonce, signature } -> { token }","POST /v1/keys with Authorization: Bearer <token> and { label?, quotaUsdc?, expiresInDays?, scopes? } -> { plaintext }"],"limits":"quotaUsdc caps what the key may spend; expiresInDays (1 to 365) makes it stop working; scopes [\"chat\"] or [\"studio\"] limits what it may be used for. Give an agent a key limited to its job."},"idempotency":"Send Idempotency-Key: <your id> on a paid POST. A repeat within a day never charges twice: a finished call answers with its result (held 10 minutes), one still running answers 409.","paymentDance":{"step1":"POST to a paid endpoint without payment. Server responds 402 with a base64 PaymentRequired body in the `payment-required` header.","step2":"Decode the header (or use @x402/core/client), sign the EIP-3009 transferWithAuthorization for the quoted amount with viem.","step3":"Re-POST the same body with `PAYMENT-SIGNATURE` set to the base64-encoded signed payload. Server settles via the facilitator (gas paid by them) and returns the result."},"sdks":{"node":["@x402/core","@x402/evm","viem"],"install":"npm i @x402/core @x402/evm viem"},"llmsTxt":"/llms.txt","docs":"https://prxvt.ai/docs"}