[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-venice-ai-venice-auth":3,"mdc--us7j61-key":33,"related-repo-venice-ai-venice-auth":3610,"related-org-venice-ai-venice-auth":3701},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":22,"repoUrl":23,"updatedAt":24,"license":25,"forks":26,"topics":27,"repo":28,"sourceUrl":31,"mdContent":32},"venice-auth","authenticate to Venice API","Authenticate to the Venice API with a Bearer API key or with an x402 \u002F SIWX wallet (EVM on Base or Ed25519 on Solana). Covers the SIGN-IN-WITH-X header format, the SIWE and Solana message fields, TTL and nonce rules, the venice-x402-client SDK, and how to choose between the two modes.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"venice-ai","Venice AI","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fvenice-ai.png","veniceai",[13,17,19],{"name":14,"slug":15,"type":16},"Auth","auth","tag",{"name":18,"slug":18,"type":16},"x402",{"name":20,"slug":21,"type":16},"API Development","api-development",119,"https:\u002F\u002Fgithub.com\u002Fveniceai\u002Fskills","2026-08-01T05:43:14.726965",null,15,[],{"repoUrl":23,"stars":22,"forks":26,"topics":29,"description":30},[],"Agent Skills for the Venice.ai API. One folder per surface area, each with a SKILL.md for agent runtimes (Cursor, Claude, Codex, etc.).","https:\u002F\u002Fgithub.com\u002Fveniceai\u002Fskills\u002Ftree\u002FHEAD\u002Fskills\u002Fvenice-auth","---\nname: venice-auth\ndescription: Authenticate to the Venice API with a Bearer API key or with an x402 \u002F SIWX wallet (EVM on Base or Ed25519 on Solana). Covers the SIGN-IN-WITH-X header format, the SIWE and Solana message fields, TTL and nonce rules, the venice-x402-client SDK, and how to choose between the two modes.\n---\n\n# Venice Authentication\n\nEvery Venice endpoint accepts **one of two** auth schemes, declared in the OpenAPI spec as `BearerAuth` and `siwx`. Both are first-class — pick whichever fits the deployment.\n\n## Use when\n\n- You're making your first call to `api.venice.ai`.\n- You're building a server-side integration (usually Bearer) or an agent \u002F no-account wallet flow (x402).\n- You hit `401 Authentication failed` and need to check header format.\n- You're implementing SIWE signing manually instead of using the SDK.\n\n## Option A — Bearer API key\n\n```http\nAuthorization: Bearer \u003CVENICE_API_KEY>\n```\n\n- Create keys at \u003Chttps:\u002F\u002Fvenice.ai\u002Fsettings\u002Fapi> or via [`venice-api-keys`](..\u002Fvenice-api-keys\u002FSKILL.md).\n- Keys carry `consumptionLimits` (USD and\u002For DIEM caps) and `apiKeyType` (`ADMIN` or `INFERENCE`).\n- Billing draws from DIEM (staked), USD balance, and bundled credits in order.\n- Key types determine which endpoints are reachable — only `ADMIN` keys can manage other keys.\n\n```bash\ncurl https:\u002F\u002Fapi.venice.ai\u002Fapi\u002Fv1\u002Fchat\u002Fcompletions \\\n  -H \"Authorization: Bearer $VENICE_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"model\": \"zai-org-glm-5-1\",\n    \"messages\": [{\"role\":\"user\",\"content\":\"hello\"}]\n  }'\n```\n\nUse the Bearer scheme when you have a Venice account, want usage analytics (`\u002Fbilling\u002Fusage-analytics`), want to issue scoped child keys, or need DIEM \u002F bundled credit priority.\n\n## Option B — x402 wallet (SIWX)\n\nAuthenticate with an Ethereum wallet on Base or a Solana wallet on Solana mainnet. No account needed. Pay per request in USDC. Balance lives under your wallet address and is consumed automatically.\n\n### Header\n\n```http\nSIGN-IN-WITH-X: \u003Cbase64(json)>\n```\n\n`SIGN-IN-WITH-X` is the canonical x402 v2 header name. Venice's original\n`X-Sign-In-With-X` is still accepted for backwards compatibility, so existing\nintegrations keep working, but new code should send the canonical name.\n\nWhere the decoded JSON is:\n\n| Field | Notes |\n|---|---|\n| `address` | EVM (checksummed hex) or Solana (base58) wallet address. |\n| `message` | The signed SIWX message. EVM uses EIP-4361 SIWE; Solana uses the Solana SIWX format. Optional if you send the structured fields instead (see below). |\n| `signature` | EVM signatures are hex. Solana signatures may be base58 or base64. |\n| `timestamp` | Unix ms. Venice-legacy field. Canonical SIWX relies on the signed `Issued At` instead, and Venice only cross-checks `timestamp` when you send it. |\n| `chainId` | `8453`, `\"8453\"`, or `\"eip155:8453\"` for Base. `\"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\"` for Solana. |\n| `type` | Optional signature type. `\"ed25519\"` for Solana. Omitted means EVM \u002F EIP-191. |\n\n```json\n{\n  \"address\":   \"0x... (checksummed)\",\n  \"message\":   \"\u003CSIWE message string from SiweMessage.prepareMessage()>\",\n  \"signature\": \"0x... (hex)\",\n  \"timestamp\": 1712659200000,\n  \"chainId\":   8453\n}\n```\n\nYou may also omit `message` and send the structured SIWX fields (`domain`,\n`address`, `uri`, `version`, `nonce`, `issuedAt`, `expirationTime`, `notBefore`,\n`statement`, `resources`, `chainId`, `type`). Venice rebuilds the exact message\nbytes server-side and verifies the signature over them. The rebuilt `Chain ID`\nline uses the **bare reference** (`8453`, `5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`),\nnot the CAIP-2 form, so sign the bare value.\n\n### SIWE message fields (EIP-4361, EVM)\n\n| Field | Value |\n|---|---|\n| `domain` | One of the allow-listed Venice domains: `venice.ai`, `api.venice.ai`, `outerface.venice.ai`, `preview.venice.ai`, `staging.venice.ai` (plus `localhost` in dev). The server's own generated challenge uses `api.venice.ai`. |\n| `uri` | Matching `https:\u002F\u002F\u003Cdomain>` URL. |\n| `version` | `\"1\"` |\n| `address` | the wallet's checksummed address |\n| `statement` | `\"Sign in to Venice AI\"` (what the server's generated challenge uses — any string is accepted, this one keeps consent UX consistent). |\n| `nonce` | random 16-char hex, single-use per wallet |\n| `issuedAt` \u002F `expirationTime` | ISO-8601. Server enforces a hard **5-minute** window from `issuedAt` (`expirationTime` is informational only). |\n| `chainId` | `8453` — accepted as number (`8453`), numeric string (`\"8453\"`), or CAIP-2 (`\"eip155:8453\"`). |\n\nThe header is short-lived — generate a fresh one at most every ~4 minutes (server accepts up to 5 min from `issuedAt`). When you send the legacy `timestamp` field it must be within **30 seconds** of the signed `issuedAt`; omit it and only `issuedAt` is checked. `issuedAt` must not be more than 30 seconds ahead of server time (`X402_SIGN_IN_FUTURE_TIMESTAMP`). Nonces are single-use per wallet — reuse within ~5.5 minutes is rejected with `X402_SIGN_IN_NONCE_REUSED`.\n\nDomain is validated against the allow-list above — **not** against the incoming request's `Host` header. Passing any allow-listed domain (e.g. `api.venice.ai`) is fine regardless of which Venice host you hit.\n\n### Solana message fields\n\nSolana wallets sign the Solana SIWX message with Ed25519. The message opens with\n`\u003Cdomain> wants you to sign in with your Solana account:`, then the base58\naddress, then the same `URI`, `Version`, `Chain ID`, `Nonce`, `Issued At`, and\noptional `Expiration Time` lines as the EVM form:\n\n```\napi.venice.ai wants you to sign in with your Solana account:\n7xKX...base58...\n\nSign in to Venice AI\n\nURI: https:\u002F\u002Fapi.venice.ai\nVersion: 1\nChain ID: 5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\nNonce: 3f2a91c4d80b7e15\nIssued At: 2026-07-28T19:00:00.000Z\nExpiration Time: 2026-07-28T19:05:00.000Z\n```\n\nIn the base64 payload set `type: \"ed25519\"` and\n`chainId: \"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\"`. The `Chain ID` line inside\nthe signed message carries the bare reference without the `solana:` prefix. The\nsame 5-minute window, 30-second skew, and single-use nonce rules apply.\n\n### Manual signing (TypeScript)\n\n```ts\nimport { Wallet } from 'ethers'\nimport { SiweMessage } from 'siwe'\n\nconst wallet = new Wallet(process.env.WALLET_KEY!)\n\nfunction makeSiwxHeader() {\n  const msg = new SiweMessage({\n    domain: 'api.venice.ai',\n    address: wallet.address,\n    statement: 'Sign in to Venice AI',\n    uri: 'https:\u002F\u002Fapi.venice.ai',\n    version: '1',\n    chainId: 8453,\n    nonce: crypto.randomUUID().replace(\u002F-\u002Fg, '').slice(0, 16),\n    issuedAt: new Date().toISOString(),\n    expirationTime: new Date(Date.now() + 4 * 60_000).toISOString(),\n  })\n  const message = msg.prepareMessage()\n  const signature = wallet.signMessageSync(message)\n  return btoa(JSON.stringify({\n    address: wallet.address,\n    message,\n    signature,\n    timestamp: Date.now(),\n    chainId: 8453,\n  }))\n}\n\nconst res = await fetch('https:\u002F\u002Fapi.venice.ai\u002Fapi\u002Fv1\u002Fchat\u002Fcompletions', {\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application\u002Fjson',\n    'SIGN-IN-WITH-X': makeSiwxHeader(),\n  },\n  body: JSON.stringify({\n    model: 'zai-org-glm-5-1',\n    messages: [{ role: 'user', content: 'hello' }],\n  }),\n})\n```\n\n### SDK shortcut\n\n```bash\nnpm install venice-x402-client\n```\n\n```ts\nimport { VeniceClient } from 'venice-x402-client'\n\nconst venice = new VeniceClient(process.env.WALLET_KEY!)\n\nawait venice.topUp(10)            \u002F\u002F $10 USDC on Base (first time only)\nconst res = await venice.chat({\n  model: 'zai-org-glm-5-1',\n  messages: [{ role: 'user', content: 'Hello!' }],\n})\nconsole.log(res.choices[0].message.content)\n```\n\n`VeniceClient` and `createAuthFetch` handle SIWE signing, header rotation, and `402` top-up prompts automatically.\n\n### First-time top-up (wallet → credits)\n\n```\nPOST \u002Fx402\u002Ftop-up                # WITHOUT payment header → returns Base + Solana payment requirements\n→ pick one entry from accepts[] and sign it with the x402 SDK (createPaymentHeader)\nPOST \u002Fx402\u002Ftop-up                # WITH PAYMENT-SIGNATURE header → credits land on your wallet address\n```\n\n`PAYMENT-SIGNATURE` is the canonical x402 v2 payment header. The legacy\n`X-402-Payment` and `X-PAYMENT` names are also accepted.\n\nSee [`venice-x402`](..\u002Fvenice-x402\u002FSKILL.md) for the full flow.\n\n## Choosing between the two\n\n| Need | Pick |\n|---|---|\n| Server-side dashboard with usage analytics | Bearer |\n| Scoped child keys, consumption limits per app | Bearer |\n| DIEM-staked users \u002F bundled credits | Bearer |\n| Serverless function that pays per call | x402 |\n| Agents with an on-chain budget, no account | x402 |\n| End-user wallets authing directly (browser extension, mobile wallet) | x402 |\n| Team sharing — one seed, many consumers | Bearer (+ child keys) |\n\nBoth schemes can co-exist: a Pro user may generate a **Web3 API key** via `POST \u002Fapi_keys\u002Fgenerate_web3_key` that ties an on-chain wallet to an off-chain key with an EIP-191 signature. See [`venice-api-keys`](..\u002Fvenice-api-keys\u002FSKILL.md).\n\n## Common auth errors\n\n| Status | Likely cause |\n|---|---|\n| `401 Authentication failed` | bad\u002Fexpired key, SIWE older than 5 min from `issuedAt`, `payload.timestamp` off by >30s, `domain` not in the Venice allow-list, unsupported chain id, nonce replayed. The server returns a specific code like `X402_SIGN_IN_EXPIRED`, `X402_SIGN_IN_TIMESTAMP_MISMATCH`, `X402_SIGN_IN_DOMAIN_MISMATCH`, `X402_SIGN_IN_NONCE_REUSED`, or `X402_SIGN_IN_INVALID_CHAIN_ID` (code always set; `message` may fall back to generic text for some codes). |\n| `402 x402` (no header) | `SIGN-IN-WITH-X` is **missing** on an SIWX-gated route (`\u002Fx402\u002Fbalance`, `\u002Fx402\u002Ftransactions`). Add the header. |\n| `401 This model is only available to Pro users` | using x402 or an INFERENCE key on a gated model — switch to a Pro Bearer key |\n| `402 PAYMENT_REQUIRED` (x402) | wallet balance too low; read `topUpInstructions` and top up via `\u002Fx402\u002Ftop-up` |\n| `402 INSUFFICIENT_BALANCE` (Bearer) | DIEM + USD + bundled credits are all empty; top up at venice.ai |\n\n## Security hygiene\n\n- Bearer keys behave like passwords — store in a secret manager, rotate on compromise, scope via `consumptionLimits`.\n- SIWX requires a private key signer on the client side. For browsers, use a wallet provider (MetaMask or WalletConnect on EVM, Phantom or a wallet-standard adapter on Solana) — do **not** ship raw private keys.\n- Signed headers are valid **5 minutes** from `issuedAt`; rotate every ~4 minutes. Never reuse a signed `SIGN-IN-WITH-X` header across hours or across machines. Nonces are tracked per wallet for ~5.5 min; replaying one is rejected with `X402_SIGN_IN_NONCE_REUSED`.\n- Rate limits are per-key (Bearer) or per-wallet (x402). See [`venice-api-keys`](..\u002Fvenice-api-keys\u002FSKILL.md) and [`venice-errors`](..\u002Fvenice-errors\u002FSKILL.md).\n",{"data":34,"body":35},{"name":4,"description":6},{"type":36,"children":37},"root",[38,47,78,85,126,132,153,236,376,389,395,400,407,421,440,445,628,818,940,946,1214,1276,1303,1309,1364,1374,1410,1416,2672,2678,2703,3067,3093,3099,3108,3134,3151,3157,3265,3294,3300,3516,3522,3604],{"type":39,"tag":40,"props":41,"children":43},"element","h1",{"id":42},"venice-authentication",[44],{"type":45,"value":46},"text","Venice Authentication",{"type":39,"tag":48,"props":49,"children":50},"p",{},[51,53,59,61,68,70,76],{"type":45,"value":52},"Every Venice endpoint accepts ",{"type":39,"tag":54,"props":55,"children":56},"strong",{},[57],{"type":45,"value":58},"one of two",{"type":45,"value":60}," auth schemes, declared in the OpenAPI spec as ",{"type":39,"tag":62,"props":63,"children":65},"code",{"className":64},[],[66],{"type":45,"value":67},"BearerAuth",{"type":45,"value":69}," and ",{"type":39,"tag":62,"props":71,"children":73},{"className":72},[],[74],{"type":45,"value":75},"siwx",{"type":45,"value":77},". Both are first-class — pick whichever fits the deployment.",{"type":39,"tag":79,"props":80,"children":82},"h2",{"id":81},"use-when",[83],{"type":45,"value":84},"Use when",{"type":39,"tag":86,"props":87,"children":88},"ul",{},[89,103,108,121],{"type":39,"tag":90,"props":91,"children":92},"li",{},[93,95,101],{"type":45,"value":94},"You're making your first call to ",{"type":39,"tag":62,"props":96,"children":98},{"className":97},[],[99],{"type":45,"value":100},"api.venice.ai",{"type":45,"value":102},".",{"type":39,"tag":90,"props":104,"children":105},{},[106],{"type":45,"value":107},"You're building a server-side integration (usually Bearer) or an agent \u002F no-account wallet flow (x402).",{"type":39,"tag":90,"props":109,"children":110},{},[111,113,119],{"type":45,"value":112},"You hit ",{"type":39,"tag":62,"props":114,"children":116},{"className":115},[],[117],{"type":45,"value":118},"401 Authentication failed",{"type":45,"value":120}," and need to check header format.",{"type":39,"tag":90,"props":122,"children":123},{},[124],{"type":45,"value":125},"You're implementing SIWE signing manually instead of using the SDK.",{"type":39,"tag":79,"props":127,"children":129},{"id":128},"option-a-bearer-api-key",[130],{"type":45,"value":131},"Option A — Bearer API key",{"type":39,"tag":133,"props":134,"children":139},"pre",{"className":135,"code":136,"language":137,"meta":138,"style":138},"language-http shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","Authorization: Bearer \u003CVENICE_API_KEY>\n","http","",[140],{"type":39,"tag":62,"props":141,"children":142},{"__ignoreMap":138},[143],{"type":39,"tag":144,"props":145,"children":148},"span",{"class":146,"line":147},"line",1,[149],{"type":39,"tag":144,"props":150,"children":151},{},[152],{"type":45,"value":136},{"type":39,"tag":86,"props":154,"children":155},{},[156,182,219,224],{"type":39,"tag":90,"props":157,"children":158},{},[159,161,169,171,181],{"type":45,"value":160},"Create keys at ",{"type":39,"tag":162,"props":163,"children":167},"a",{"href":164,"rel":165},"https:\u002F\u002Fvenice.ai\u002Fsettings\u002Fapi",[166],"nofollow",[168],{"type":45,"value":164},{"type":45,"value":170}," or via ",{"type":39,"tag":162,"props":172,"children":174},{"href":173},"..\u002Fvenice-api-keys\u002FSKILL.md",[175],{"type":39,"tag":62,"props":176,"children":178},{"className":177},[],[179],{"type":45,"value":180},"venice-api-keys",{"type":45,"value":102},{"type":39,"tag":90,"props":183,"children":184},{},[185,187,193,195,201,203,209,211,217],{"type":45,"value":186},"Keys carry ",{"type":39,"tag":62,"props":188,"children":190},{"className":189},[],[191],{"type":45,"value":192},"consumptionLimits",{"type":45,"value":194}," (USD and\u002For DIEM caps) and ",{"type":39,"tag":62,"props":196,"children":198},{"className":197},[],[199],{"type":45,"value":200},"apiKeyType",{"type":45,"value":202}," (",{"type":39,"tag":62,"props":204,"children":206},{"className":205},[],[207],{"type":45,"value":208},"ADMIN",{"type":45,"value":210}," or ",{"type":39,"tag":62,"props":212,"children":214},{"className":213},[],[215],{"type":45,"value":216},"INFERENCE",{"type":45,"value":218},").",{"type":39,"tag":90,"props":220,"children":221},{},[222],{"type":45,"value":223},"Billing draws from DIEM (staked), USD balance, and bundled credits in order.",{"type":39,"tag":90,"props":225,"children":226},{},[227,229,234],{"type":45,"value":228},"Key types determine which endpoints are reachable — only ",{"type":39,"tag":62,"props":230,"children":232},{"className":231},[],[233],{"type":45,"value":208},{"type":45,"value":235}," keys can manage other keys.",{"type":39,"tag":133,"props":237,"children":241},{"className":238,"code":239,"language":240,"meta":138,"style":138},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","curl https:\u002F\u002Fapi.venice.ai\u002Fapi\u002Fv1\u002Fchat\u002Fcompletions \\\n  -H \"Authorization: Bearer $VENICE_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"model\": \"zai-org-glm-5-1\",\n    \"messages\": [{\"role\":\"user\",\"content\":\"hello\"}]\n  }'\n","bash",[242],{"type":39,"tag":62,"props":243,"children":244},{"__ignoreMap":138},[245,266,300,325,344,353,362],{"type":39,"tag":144,"props":246,"children":247},{"class":146,"line":147},[248,254,260],{"type":39,"tag":144,"props":249,"children":251},{"style":250},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[252],{"type":45,"value":253},"curl",{"type":39,"tag":144,"props":255,"children":257},{"style":256},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[258],{"type":45,"value":259}," https:\u002F\u002Fapi.venice.ai\u002Fapi\u002Fv1\u002Fchat\u002Fcompletions",{"type":39,"tag":144,"props":261,"children":263},{"style":262},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[264],{"type":45,"value":265}," \\\n",{"type":39,"tag":144,"props":267,"children":269},{"class":146,"line":268},2,[270,275,281,286,291,296],{"type":39,"tag":144,"props":271,"children":272},{"style":256},[273],{"type":45,"value":274},"  -H",{"type":39,"tag":144,"props":276,"children":278},{"style":277},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[279],{"type":45,"value":280}," \"",{"type":39,"tag":144,"props":282,"children":283},{"style":256},[284],{"type":45,"value":285},"Authorization: Bearer ",{"type":39,"tag":144,"props":287,"children":288},{"style":262},[289],{"type":45,"value":290},"$VENICE_API_KEY",{"type":39,"tag":144,"props":292,"children":293},{"style":277},[294],{"type":45,"value":295},"\"",{"type":39,"tag":144,"props":297,"children":298},{"style":262},[299],{"type":45,"value":265},{"type":39,"tag":144,"props":301,"children":303},{"class":146,"line":302},3,[304,308,312,317,321],{"type":39,"tag":144,"props":305,"children":306},{"style":256},[307],{"type":45,"value":274},{"type":39,"tag":144,"props":309,"children":310},{"style":277},[311],{"type":45,"value":280},{"type":39,"tag":144,"props":313,"children":314},{"style":256},[315],{"type":45,"value":316},"Content-Type: application\u002Fjson",{"type":39,"tag":144,"props":318,"children":319},{"style":277},[320],{"type":45,"value":295},{"type":39,"tag":144,"props":322,"children":323},{"style":262},[324],{"type":45,"value":265},{"type":39,"tag":144,"props":326,"children":328},{"class":146,"line":327},4,[329,334,339],{"type":39,"tag":144,"props":330,"children":331},{"style":256},[332],{"type":45,"value":333},"  -d",{"type":39,"tag":144,"props":335,"children":336},{"style":277},[337],{"type":45,"value":338}," '",{"type":39,"tag":144,"props":340,"children":341},{"style":256},[342],{"type":45,"value":343},"{\n",{"type":39,"tag":144,"props":345,"children":347},{"class":146,"line":346},5,[348],{"type":39,"tag":144,"props":349,"children":350},{"style":256},[351],{"type":45,"value":352},"    \"model\": \"zai-org-glm-5-1\",\n",{"type":39,"tag":144,"props":354,"children":356},{"class":146,"line":355},6,[357],{"type":39,"tag":144,"props":358,"children":359},{"style":256},[360],{"type":45,"value":361},"    \"messages\": [{\"role\":\"user\",\"content\":\"hello\"}]\n",{"type":39,"tag":144,"props":363,"children":365},{"class":146,"line":364},7,[366,371],{"type":39,"tag":144,"props":367,"children":368},{"style":256},[369],{"type":45,"value":370},"  }",{"type":39,"tag":144,"props":372,"children":373},{"style":277},[374],{"type":45,"value":375},"'\n",{"type":39,"tag":48,"props":377,"children":378},{},[379,381,387],{"type":45,"value":380},"Use the Bearer scheme when you have a Venice account, want usage analytics (",{"type":39,"tag":62,"props":382,"children":384},{"className":383},[],[385],{"type":45,"value":386},"\u002Fbilling\u002Fusage-analytics",{"type":45,"value":388},"), want to issue scoped child keys, or need DIEM \u002F bundled credit priority.",{"type":39,"tag":79,"props":390,"children":392},{"id":391},"option-b-x402-wallet-siwx",[393],{"type":45,"value":394},"Option B — x402 wallet (SIWX)",{"type":39,"tag":48,"props":396,"children":397},{},[398],{"type":45,"value":399},"Authenticate with an Ethereum wallet on Base or a Solana wallet on Solana mainnet. No account needed. Pay per request in USDC. Balance lives under your wallet address and is consumed automatically.",{"type":39,"tag":401,"props":402,"children":404},"h3",{"id":403},"header",[405],{"type":45,"value":406},"Header",{"type":39,"tag":133,"props":408,"children":410},{"className":135,"code":409,"language":137,"meta":138,"style":138},"SIGN-IN-WITH-X: \u003Cbase64(json)>\n",[411],{"type":39,"tag":62,"props":412,"children":413},{"__ignoreMap":138},[414],{"type":39,"tag":144,"props":415,"children":416},{"class":146,"line":147},[417],{"type":39,"tag":144,"props":418,"children":419},{},[420],{"type":45,"value":409},{"type":39,"tag":48,"props":422,"children":423},{},[424,430,432,438],{"type":39,"tag":62,"props":425,"children":427},{"className":426},[],[428],{"type":45,"value":429},"SIGN-IN-WITH-X",{"type":45,"value":431}," is the canonical x402 v2 header name. Venice's original\n",{"type":39,"tag":62,"props":433,"children":435},{"className":434},[],[436],{"type":45,"value":437},"X-Sign-In-With-X",{"type":45,"value":439}," is still accepted for backwards compatibility, so existing\nintegrations keep working, but new code should send the canonical name.",{"type":39,"tag":48,"props":441,"children":442},{},[443],{"type":45,"value":444},"Where the decoded JSON is:",{"type":39,"tag":446,"props":447,"children":448},"table",{},[449,468],{"type":39,"tag":450,"props":451,"children":452},"thead",{},[453],{"type":39,"tag":454,"props":455,"children":456},"tr",{},[457,463],{"type":39,"tag":458,"props":459,"children":460},"th",{},[461],{"type":45,"value":462},"Field",{"type":39,"tag":458,"props":464,"children":465},{},[466],{"type":45,"value":467},"Notes",{"type":39,"tag":469,"props":470,"children":471},"tbody",{},[472,490,507,524,556,603],{"type":39,"tag":454,"props":473,"children":474},{},[475,485],{"type":39,"tag":476,"props":477,"children":478},"td",{},[479],{"type":39,"tag":62,"props":480,"children":482},{"className":481},[],[483],{"type":45,"value":484},"address",{"type":39,"tag":476,"props":486,"children":487},{},[488],{"type":45,"value":489},"EVM (checksummed hex) or Solana (base58) wallet address.",{"type":39,"tag":454,"props":491,"children":492},{},[493,502],{"type":39,"tag":476,"props":494,"children":495},{},[496],{"type":39,"tag":62,"props":497,"children":499},{"className":498},[],[500],{"type":45,"value":501},"message",{"type":39,"tag":476,"props":503,"children":504},{},[505],{"type":45,"value":506},"The signed SIWX message. EVM uses EIP-4361 SIWE; Solana uses the Solana SIWX format. Optional if you send the structured fields instead (see below).",{"type":39,"tag":454,"props":508,"children":509},{},[510,519],{"type":39,"tag":476,"props":511,"children":512},{},[513],{"type":39,"tag":62,"props":514,"children":516},{"className":515},[],[517],{"type":45,"value":518},"signature",{"type":39,"tag":476,"props":520,"children":521},{},[522],{"type":45,"value":523},"EVM signatures are hex. Solana signatures may be base58 or base64.",{"type":39,"tag":454,"props":525,"children":526},{},[527,536],{"type":39,"tag":476,"props":528,"children":529},{},[530],{"type":39,"tag":62,"props":531,"children":533},{"className":532},[],[534],{"type":45,"value":535},"timestamp",{"type":39,"tag":476,"props":537,"children":538},{},[539,541,547,549,554],{"type":45,"value":540},"Unix ms. Venice-legacy field. Canonical SIWX relies on the signed ",{"type":39,"tag":62,"props":542,"children":544},{"className":543},[],[545],{"type":45,"value":546},"Issued At",{"type":45,"value":548}," instead, and Venice only cross-checks ",{"type":39,"tag":62,"props":550,"children":552},{"className":551},[],[553],{"type":45,"value":535},{"type":45,"value":555}," when you send it.",{"type":39,"tag":454,"props":557,"children":558},{},[559,568],{"type":39,"tag":476,"props":560,"children":561},{},[562],{"type":39,"tag":62,"props":563,"children":565},{"className":564},[],[566],{"type":45,"value":567},"chainId",{"type":39,"tag":476,"props":569,"children":570},{},[571,577,579,585,587,593,595,601],{"type":39,"tag":62,"props":572,"children":574},{"className":573},[],[575],{"type":45,"value":576},"8453",{"type":45,"value":578},", ",{"type":39,"tag":62,"props":580,"children":582},{"className":581},[],[583],{"type":45,"value":584},"\"8453\"",{"type":45,"value":586},", or ",{"type":39,"tag":62,"props":588,"children":590},{"className":589},[],[591],{"type":45,"value":592},"\"eip155:8453\"",{"type":45,"value":594}," for Base. ",{"type":39,"tag":62,"props":596,"children":598},{"className":597},[],[599],{"type":45,"value":600},"\"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\"",{"type":45,"value":602}," for Solana.",{"type":39,"tag":454,"props":604,"children":605},{},[606,615],{"type":39,"tag":476,"props":607,"children":608},{},[609],{"type":39,"tag":62,"props":610,"children":612},{"className":611},[],[613],{"type":45,"value":614},"type",{"type":39,"tag":476,"props":616,"children":617},{},[618,620,626],{"type":45,"value":619},"Optional signature type. ",{"type":39,"tag":62,"props":621,"children":623},{"className":622},[],[624],{"type":45,"value":625},"\"ed25519\"",{"type":45,"value":627}," for Solana. Omitted means EVM \u002F EIP-191.",{"type":39,"tag":133,"props":629,"children":633},{"className":630,"code":631,"language":632,"meta":138,"style":138},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"address\":   \"0x... (checksummed)\",\n  \"message\":   \"\u003CSIWE message string from SiweMessage.prepareMessage()>\",\n  \"signature\": \"0x... (hex)\",\n  \"timestamp\": 1712659200000,\n  \"chainId\":   8453\n}\n","json",[634],{"type":39,"tag":62,"props":635,"children":636},{"__ignoreMap":138},[637,644,685,721,757,786,810],{"type":39,"tag":144,"props":638,"children":639},{"class":146,"line":147},[640],{"type":39,"tag":144,"props":641,"children":642},{"style":277},[643],{"type":45,"value":343},{"type":39,"tag":144,"props":645,"children":646},{"class":146,"line":268},[647,652,657,661,666,671,676,680],{"type":39,"tag":144,"props":648,"children":649},{"style":277},[650],{"type":45,"value":651},"  \"",{"type":39,"tag":144,"props":653,"children":655},{"style":654},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[656],{"type":45,"value":484},{"type":39,"tag":144,"props":658,"children":659},{"style":277},[660],{"type":45,"value":295},{"type":39,"tag":144,"props":662,"children":663},{"style":277},[664],{"type":45,"value":665},":",{"type":39,"tag":144,"props":667,"children":668},{"style":277},[669],{"type":45,"value":670},"   \"",{"type":39,"tag":144,"props":672,"children":673},{"style":256},[674],{"type":45,"value":675},"0x... (checksummed)",{"type":39,"tag":144,"props":677,"children":678},{"style":277},[679],{"type":45,"value":295},{"type":39,"tag":144,"props":681,"children":682},{"style":277},[683],{"type":45,"value":684},",\n",{"type":39,"tag":144,"props":686,"children":687},{"class":146,"line":302},[688,692,696,700,704,708,713,717],{"type":39,"tag":144,"props":689,"children":690},{"style":277},[691],{"type":45,"value":651},{"type":39,"tag":144,"props":693,"children":694},{"style":654},[695],{"type":45,"value":501},{"type":39,"tag":144,"props":697,"children":698},{"style":277},[699],{"type":45,"value":295},{"type":39,"tag":144,"props":701,"children":702},{"style":277},[703],{"type":45,"value":665},{"type":39,"tag":144,"props":705,"children":706},{"style":277},[707],{"type":45,"value":670},{"type":39,"tag":144,"props":709,"children":710},{"style":256},[711],{"type":45,"value":712},"\u003CSIWE message string from SiweMessage.prepareMessage()>",{"type":39,"tag":144,"props":714,"children":715},{"style":277},[716],{"type":45,"value":295},{"type":39,"tag":144,"props":718,"children":719},{"style":277},[720],{"type":45,"value":684},{"type":39,"tag":144,"props":722,"children":723},{"class":146,"line":327},[724,728,732,736,740,744,749,753],{"type":39,"tag":144,"props":725,"children":726},{"style":277},[727],{"type":45,"value":651},{"type":39,"tag":144,"props":729,"children":730},{"style":654},[731],{"type":45,"value":518},{"type":39,"tag":144,"props":733,"children":734},{"style":277},[735],{"type":45,"value":295},{"type":39,"tag":144,"props":737,"children":738},{"style":277},[739],{"type":45,"value":665},{"type":39,"tag":144,"props":741,"children":742},{"style":277},[743],{"type":45,"value":280},{"type":39,"tag":144,"props":745,"children":746},{"style":256},[747],{"type":45,"value":748},"0x... (hex)",{"type":39,"tag":144,"props":750,"children":751},{"style":277},[752],{"type":45,"value":295},{"type":39,"tag":144,"props":754,"children":755},{"style":277},[756],{"type":45,"value":684},{"type":39,"tag":144,"props":758,"children":759},{"class":146,"line":346},[760,764,768,772,776,782],{"type":39,"tag":144,"props":761,"children":762},{"style":277},[763],{"type":45,"value":651},{"type":39,"tag":144,"props":765,"children":766},{"style":654},[767],{"type":45,"value":535},{"type":39,"tag":144,"props":769,"children":770},{"style":277},[771],{"type":45,"value":295},{"type":39,"tag":144,"props":773,"children":774},{"style":277},[775],{"type":45,"value":665},{"type":39,"tag":144,"props":777,"children":779},{"style":778},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[780],{"type":45,"value":781}," 1712659200000",{"type":39,"tag":144,"props":783,"children":784},{"style":277},[785],{"type":45,"value":684},{"type":39,"tag":144,"props":787,"children":788},{"class":146,"line":355},[789,793,797,801,805],{"type":39,"tag":144,"props":790,"children":791},{"style":277},[792],{"type":45,"value":651},{"type":39,"tag":144,"props":794,"children":795},{"style":654},[796],{"type":45,"value":567},{"type":39,"tag":144,"props":798,"children":799},{"style":277},[800],{"type":45,"value":295},{"type":39,"tag":144,"props":802,"children":803},{"style":277},[804],{"type":45,"value":665},{"type":39,"tag":144,"props":806,"children":807},{"style":778},[808],{"type":45,"value":809},"   8453\n",{"type":39,"tag":144,"props":811,"children":812},{"class":146,"line":364},[813],{"type":39,"tag":144,"props":814,"children":815},{"style":277},[816],{"type":45,"value":817},"}\n",{"type":39,"tag":48,"props":819,"children":820},{},[821,823,828,830,836,837,842,843,849,850,856,857,863,864,870,871,877,878,884,885,891,892,898,899,904,905,910,912,918,920,925,926,931,932,938],{"type":45,"value":822},"You may also omit ",{"type":39,"tag":62,"props":824,"children":826},{"className":825},[],[827],{"type":45,"value":501},{"type":45,"value":829}," and send the structured SIWX fields (",{"type":39,"tag":62,"props":831,"children":833},{"className":832},[],[834],{"type":45,"value":835},"domain",{"type":45,"value":684},{"type":39,"tag":62,"props":838,"children":840},{"className":839},[],[841],{"type":45,"value":484},{"type":45,"value":578},{"type":39,"tag":62,"props":844,"children":846},{"className":845},[],[847],{"type":45,"value":848},"uri",{"type":45,"value":578},{"type":39,"tag":62,"props":851,"children":853},{"className":852},[],[854],{"type":45,"value":855},"version",{"type":45,"value":578},{"type":39,"tag":62,"props":858,"children":860},{"className":859},[],[861],{"type":45,"value":862},"nonce",{"type":45,"value":578},{"type":39,"tag":62,"props":865,"children":867},{"className":866},[],[868],{"type":45,"value":869},"issuedAt",{"type":45,"value":578},{"type":39,"tag":62,"props":872,"children":874},{"className":873},[],[875],{"type":45,"value":876},"expirationTime",{"type":45,"value":578},{"type":39,"tag":62,"props":879,"children":881},{"className":880},[],[882],{"type":45,"value":883},"notBefore",{"type":45,"value":684},{"type":39,"tag":62,"props":886,"children":888},{"className":887},[],[889],{"type":45,"value":890},"statement",{"type":45,"value":578},{"type":39,"tag":62,"props":893,"children":895},{"className":894},[],[896],{"type":45,"value":897},"resources",{"type":45,"value":578},{"type":39,"tag":62,"props":900,"children":902},{"className":901},[],[903],{"type":45,"value":567},{"type":45,"value":578},{"type":39,"tag":62,"props":906,"children":908},{"className":907},[],[909],{"type":45,"value":614},{"type":45,"value":911},"). Venice rebuilds the exact message\nbytes server-side and verifies the signature over them. The rebuilt ",{"type":39,"tag":62,"props":913,"children":915},{"className":914},[],[916],{"type":45,"value":917},"Chain ID",{"type":45,"value":919},"\nline uses the ",{"type":39,"tag":54,"props":921,"children":922},{},[923],{"type":45,"value":924},"bare reference",{"type":45,"value":202},{"type":39,"tag":62,"props":927,"children":929},{"className":928},[],[930],{"type":45,"value":576},{"type":45,"value":578},{"type":39,"tag":62,"props":933,"children":935},{"className":934},[],[936],{"type":45,"value":937},"5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",{"type":45,"value":939},"),\nnot the CAIP-2 form, so sign the bare value.",{"type":39,"tag":401,"props":941,"children":943},{"id":942},"siwe-message-fields-eip-4361-evm",[944],{"type":45,"value":945},"SIWE message fields (EIP-4361, EVM)",{"type":39,"tag":446,"props":947,"children":948},{},[949,964],{"type":39,"tag":450,"props":950,"children":951},{},[952],{"type":39,"tag":454,"props":953,"children":954},{},[955,959],{"type":39,"tag":458,"props":956,"children":957},{},[958],{"type":45,"value":462},{"type":39,"tag":458,"props":960,"children":961},{},[962],{"type":45,"value":963},"Value",{"type":39,"tag":469,"props":965,"children":966},{},[967,1032,1056,1076,1092,1114,1130,1173],{"type":39,"tag":454,"props":968,"children":969},{},[970,978],{"type":39,"tag":476,"props":971,"children":972},{},[973],{"type":39,"tag":62,"props":974,"children":976},{"className":975},[],[977],{"type":45,"value":835},{"type":39,"tag":476,"props":979,"children":980},{},[981,983,989,990,995,996,1002,1003,1009,1010,1016,1018,1024,1026,1031],{"type":45,"value":982},"One of the allow-listed Venice domains: ",{"type":39,"tag":62,"props":984,"children":986},{"className":985},[],[987],{"type":45,"value":988},"venice.ai",{"type":45,"value":578},{"type":39,"tag":62,"props":991,"children":993},{"className":992},[],[994],{"type":45,"value":100},{"type":45,"value":578},{"type":39,"tag":62,"props":997,"children":999},{"className":998},[],[1000],{"type":45,"value":1001},"outerface.venice.ai",{"type":45,"value":578},{"type":39,"tag":62,"props":1004,"children":1006},{"className":1005},[],[1007],{"type":45,"value":1008},"preview.venice.ai",{"type":45,"value":578},{"type":39,"tag":62,"props":1011,"children":1013},{"className":1012},[],[1014],{"type":45,"value":1015},"staging.venice.ai",{"type":45,"value":1017}," (plus ",{"type":39,"tag":62,"props":1019,"children":1021},{"className":1020},[],[1022],{"type":45,"value":1023},"localhost",{"type":45,"value":1025}," in dev). The server's own generated challenge uses ",{"type":39,"tag":62,"props":1027,"children":1029},{"className":1028},[],[1030],{"type":45,"value":100},{"type":45,"value":102},{"type":39,"tag":454,"props":1033,"children":1034},{},[1035,1043],{"type":39,"tag":476,"props":1036,"children":1037},{},[1038],{"type":39,"tag":62,"props":1039,"children":1041},{"className":1040},[],[1042],{"type":45,"value":848},{"type":39,"tag":476,"props":1044,"children":1045},{},[1046,1048,1054],{"type":45,"value":1047},"Matching ",{"type":39,"tag":62,"props":1049,"children":1051},{"className":1050},[],[1052],{"type":45,"value":1053},"https:\u002F\u002F\u003Cdomain>",{"type":45,"value":1055}," URL.",{"type":39,"tag":454,"props":1057,"children":1058},{},[1059,1067],{"type":39,"tag":476,"props":1060,"children":1061},{},[1062],{"type":39,"tag":62,"props":1063,"children":1065},{"className":1064},[],[1066],{"type":45,"value":855},{"type":39,"tag":476,"props":1068,"children":1069},{},[1070],{"type":39,"tag":62,"props":1071,"children":1073},{"className":1072},[],[1074],{"type":45,"value":1075},"\"1\"",{"type":39,"tag":454,"props":1077,"children":1078},{},[1079,1087],{"type":39,"tag":476,"props":1080,"children":1081},{},[1082],{"type":39,"tag":62,"props":1083,"children":1085},{"className":1084},[],[1086],{"type":45,"value":484},{"type":39,"tag":476,"props":1088,"children":1089},{},[1090],{"type":45,"value":1091},"the wallet's checksummed address",{"type":39,"tag":454,"props":1093,"children":1094},{},[1095,1103],{"type":39,"tag":476,"props":1096,"children":1097},{},[1098],{"type":39,"tag":62,"props":1099,"children":1101},{"className":1100},[],[1102],{"type":45,"value":890},{"type":39,"tag":476,"props":1104,"children":1105},{},[1106,1112],{"type":39,"tag":62,"props":1107,"children":1109},{"className":1108},[],[1110],{"type":45,"value":1111},"\"Sign in to Venice AI\"",{"type":45,"value":1113}," (what the server's generated challenge uses — any string is accepted, this one keeps consent UX consistent).",{"type":39,"tag":454,"props":1115,"children":1116},{},[1117,1125],{"type":39,"tag":476,"props":1118,"children":1119},{},[1120],{"type":39,"tag":62,"props":1121,"children":1123},{"className":1122},[],[1124],{"type":45,"value":862},{"type":39,"tag":476,"props":1126,"children":1127},{},[1128],{"type":45,"value":1129},"random 16-char hex, single-use per wallet",{"type":39,"tag":454,"props":1131,"children":1132},{},[1133,1148],{"type":39,"tag":476,"props":1134,"children":1135},{},[1136,1141,1143],{"type":39,"tag":62,"props":1137,"children":1139},{"className":1138},[],[1140],{"type":45,"value":869},{"type":45,"value":1142}," \u002F ",{"type":39,"tag":62,"props":1144,"children":1146},{"className":1145},[],[1147],{"type":45,"value":876},{"type":39,"tag":476,"props":1149,"children":1150},{},[1151,1153,1158,1160,1165,1166,1171],{"type":45,"value":1152},"ISO-8601. Server enforces a hard ",{"type":39,"tag":54,"props":1154,"children":1155},{},[1156],{"type":45,"value":1157},"5-minute",{"type":45,"value":1159}," window from ",{"type":39,"tag":62,"props":1161,"children":1163},{"className":1162},[],[1164],{"type":45,"value":869},{"type":45,"value":202},{"type":39,"tag":62,"props":1167,"children":1169},{"className":1168},[],[1170],{"type":45,"value":876},{"type":45,"value":1172}," is informational only).",{"type":39,"tag":454,"props":1174,"children":1175},{},[1176,1184],{"type":39,"tag":476,"props":1177,"children":1178},{},[1179],{"type":39,"tag":62,"props":1180,"children":1182},{"className":1181},[],[1183],{"type":45,"value":567},{"type":39,"tag":476,"props":1185,"children":1186},{},[1187,1192,1194,1199,1201,1206,1208,1213],{"type":39,"tag":62,"props":1188,"children":1190},{"className":1189},[],[1191],{"type":45,"value":576},{"type":45,"value":1193}," — accepted as number (",{"type":39,"tag":62,"props":1195,"children":1197},{"className":1196},[],[1198],{"type":45,"value":576},{"type":45,"value":1200},"), numeric string (",{"type":39,"tag":62,"props":1202,"children":1204},{"className":1203},[],[1205],{"type":45,"value":584},{"type":45,"value":1207},"), or CAIP-2 (",{"type":39,"tag":62,"props":1209,"children":1211},{"className":1210},[],[1212],{"type":45,"value":592},{"type":45,"value":218},{"type":39,"tag":48,"props":1215,"children":1216},{},[1217,1219,1224,1226,1231,1233,1238,1240,1245,1247,1252,1254,1259,1261,1267,1269,1275],{"type":45,"value":1218},"The header is short-lived — generate a fresh one at most every ~4 minutes (server accepts up to 5 min from ",{"type":39,"tag":62,"props":1220,"children":1222},{"className":1221},[],[1223],{"type":45,"value":869},{"type":45,"value":1225},"). When you send the legacy ",{"type":39,"tag":62,"props":1227,"children":1229},{"className":1228},[],[1230],{"type":45,"value":535},{"type":45,"value":1232}," field it must be within ",{"type":39,"tag":54,"props":1234,"children":1235},{},[1236],{"type":45,"value":1237},"30 seconds",{"type":45,"value":1239}," of the signed ",{"type":39,"tag":62,"props":1241,"children":1243},{"className":1242},[],[1244],{"type":45,"value":869},{"type":45,"value":1246},"; omit it and only ",{"type":39,"tag":62,"props":1248,"children":1250},{"className":1249},[],[1251],{"type":45,"value":869},{"type":45,"value":1253}," is checked. ",{"type":39,"tag":62,"props":1255,"children":1257},{"className":1256},[],[1258],{"type":45,"value":869},{"type":45,"value":1260}," must not be more than 30 seconds ahead of server time (",{"type":39,"tag":62,"props":1262,"children":1264},{"className":1263},[],[1265],{"type":45,"value":1266},"X402_SIGN_IN_FUTURE_TIMESTAMP",{"type":45,"value":1268},"). Nonces are single-use per wallet — reuse within ~5.5 minutes is rejected with ",{"type":39,"tag":62,"props":1270,"children":1272},{"className":1271},[],[1273],{"type":45,"value":1274},"X402_SIGN_IN_NONCE_REUSED",{"type":45,"value":102},{"type":39,"tag":48,"props":1277,"children":1278},{},[1279,1281,1286,1288,1294,1296,1301],{"type":45,"value":1280},"Domain is validated against the allow-list above — ",{"type":39,"tag":54,"props":1282,"children":1283},{},[1284],{"type":45,"value":1285},"not",{"type":45,"value":1287}," against the incoming request's ",{"type":39,"tag":62,"props":1289,"children":1291},{"className":1290},[],[1292],{"type":45,"value":1293},"Host",{"type":45,"value":1295}," header. Passing any allow-listed domain (e.g. ",{"type":39,"tag":62,"props":1297,"children":1299},{"className":1298},[],[1300],{"type":45,"value":100},{"type":45,"value":1302},") is fine regardless of which Venice host you hit.",{"type":39,"tag":401,"props":1304,"children":1306},{"id":1305},"solana-message-fields",[1307],{"type":45,"value":1308},"Solana message fields",{"type":39,"tag":48,"props":1310,"children":1311},{},[1312,1314,1320,1322,1328,1329,1335,1336,1341,1342,1348,1349,1354,1356,1362],{"type":45,"value":1313},"Solana wallets sign the Solana SIWX message with Ed25519. The message opens with\n",{"type":39,"tag":62,"props":1315,"children":1317},{"className":1316},[],[1318],{"type":45,"value":1319},"\u003Cdomain> wants you to sign in with your Solana account:",{"type":45,"value":1321},", then the base58\naddress, then the same ",{"type":39,"tag":62,"props":1323,"children":1325},{"className":1324},[],[1326],{"type":45,"value":1327},"URI",{"type":45,"value":578},{"type":39,"tag":62,"props":1330,"children":1332},{"className":1331},[],[1333],{"type":45,"value":1334},"Version",{"type":45,"value":578},{"type":39,"tag":62,"props":1337,"children":1339},{"className":1338},[],[1340],{"type":45,"value":917},{"type":45,"value":578},{"type":39,"tag":62,"props":1343,"children":1345},{"className":1344},[],[1346],{"type":45,"value":1347},"Nonce",{"type":45,"value":578},{"type":39,"tag":62,"props":1350,"children":1352},{"className":1351},[],[1353],{"type":45,"value":546},{"type":45,"value":1355},", and\noptional ",{"type":39,"tag":62,"props":1357,"children":1359},{"className":1358},[],[1360],{"type":45,"value":1361},"Expiration Time",{"type":45,"value":1363}," lines as the EVM form:",{"type":39,"tag":133,"props":1365,"children":1369},{"className":1366,"code":1368,"language":45},[1367],"language-text","api.venice.ai wants you to sign in with your Solana account:\n7xKX...base58...\n\nSign in to Venice AI\n\nURI: https:\u002F\u002Fapi.venice.ai\nVersion: 1\nChain ID: 5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\nNonce: 3f2a91c4d80b7e15\nIssued At: 2026-07-28T19:00:00.000Z\nExpiration Time: 2026-07-28T19:05:00.000Z\n",[1370],{"type":39,"tag":62,"props":1371,"children":1372},{"__ignoreMap":138},[1373],{"type":45,"value":1368},{"type":39,"tag":48,"props":1375,"children":1376},{},[1377,1379,1385,1387,1393,1395,1400,1402,1408],{"type":45,"value":1378},"In the base64 payload set ",{"type":39,"tag":62,"props":1380,"children":1382},{"className":1381},[],[1383],{"type":45,"value":1384},"type: \"ed25519\"",{"type":45,"value":1386}," and\n",{"type":39,"tag":62,"props":1388,"children":1390},{"className":1389},[],[1391],{"type":45,"value":1392},"chainId: \"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\"",{"type":45,"value":1394},". The ",{"type":39,"tag":62,"props":1396,"children":1398},{"className":1397},[],[1399],{"type":45,"value":917},{"type":45,"value":1401}," line inside\nthe signed message carries the bare reference without the ",{"type":39,"tag":62,"props":1403,"children":1405},{"className":1404},[],[1406],{"type":45,"value":1407},"solana:",{"type":45,"value":1409}," prefix. The\nsame 5-minute window, 30-second skew, and single-use nonce rules apply.",{"type":39,"tag":401,"props":1411,"children":1413},{"id":1412},"manual-signing-typescript",[1414],{"type":45,"value":1415},"Manual signing (TypeScript)",{"type":39,"tag":133,"props":1417,"children":1421},{"className":1418,"code":1419,"language":1420,"meta":138,"style":138},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { Wallet } from 'ethers'\nimport { SiweMessage } from 'siwe'\n\nconst wallet = new Wallet(process.env.WALLET_KEY!)\n\nfunction makeSiwxHeader() {\n  const msg = new SiweMessage({\n    domain: 'api.venice.ai',\n    address: wallet.address,\n    statement: 'Sign in to Venice AI',\n    uri: 'https:\u002F\u002Fapi.venice.ai',\n    version: '1',\n    chainId: 8453,\n    nonce: crypto.randomUUID().replace(\u002F-\u002Fg, '').slice(0, 16),\n    issuedAt: new Date().toISOString(),\n    expirationTime: new Date(Date.now() + 4 * 60_000).toISOString(),\n  })\n  const message = msg.prepareMessage()\n  const signature = wallet.signMessageSync(message)\n  return btoa(JSON.stringify({\n    address: wallet.address,\n    message,\n    signature,\n    timestamp: Date.now(),\n    chainId: 8453,\n  }))\n}\n\nconst res = await fetch('https:\u002F\u002Fapi.venice.ai\u002Fapi\u002Fv1\u002Fchat\u002Fcompletions', {\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application\u002Fjson',\n    'SIGN-IN-WITH-X': makeSiwxHeader(),\n  },\n  body: JSON.stringify({\n    model: 'zai-org-glm-5-1',\n    messages: [{ role: 'user', content: 'hello' }],\n  }),\n})\n","ts",[1422],{"type":39,"tag":62,"props":1423,"children":1424},{"__ignoreMap":138},[1425,1467,1504,1513,1574,1581,1604,1640,1670,1700,1730,1760,1790,1812,1925,1967,2051,2063,2098,2140,2180,2208,2221,2234,2267,2287,2300,2308,2316,2368,2398,2415,2454,2486,2495,2529,2559,2643,2659],{"type":39,"tag":144,"props":1426,"children":1427},{"class":146,"line":147},[1428,1434,1439,1444,1449,1454,1458,1463],{"type":39,"tag":144,"props":1429,"children":1431},{"style":1430},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[1432],{"type":45,"value":1433},"import",{"type":39,"tag":144,"props":1435,"children":1436},{"style":277},[1437],{"type":45,"value":1438}," {",{"type":39,"tag":144,"props":1440,"children":1441},{"style":262},[1442],{"type":45,"value":1443}," Wallet",{"type":39,"tag":144,"props":1445,"children":1446},{"style":277},[1447],{"type":45,"value":1448}," }",{"type":39,"tag":144,"props":1450,"children":1451},{"style":1430},[1452],{"type":45,"value":1453}," from",{"type":39,"tag":144,"props":1455,"children":1456},{"style":277},[1457],{"type":45,"value":338},{"type":39,"tag":144,"props":1459,"children":1460},{"style":256},[1461],{"type":45,"value":1462},"ethers",{"type":39,"tag":144,"props":1464,"children":1465},{"style":277},[1466],{"type":45,"value":375},{"type":39,"tag":144,"props":1468,"children":1469},{"class":146,"line":268},[1470,1474,1478,1483,1487,1491,1495,1500],{"type":39,"tag":144,"props":1471,"children":1472},{"style":1430},[1473],{"type":45,"value":1433},{"type":39,"tag":144,"props":1475,"children":1476},{"style":277},[1477],{"type":45,"value":1438},{"type":39,"tag":144,"props":1479,"children":1480},{"style":262},[1481],{"type":45,"value":1482}," SiweMessage",{"type":39,"tag":144,"props":1484,"children":1485},{"style":277},[1486],{"type":45,"value":1448},{"type":39,"tag":144,"props":1488,"children":1489},{"style":1430},[1490],{"type":45,"value":1453},{"type":39,"tag":144,"props":1492,"children":1493},{"style":277},[1494],{"type":45,"value":338},{"type":39,"tag":144,"props":1496,"children":1497},{"style":256},[1498],{"type":45,"value":1499},"siwe",{"type":39,"tag":144,"props":1501,"children":1502},{"style":277},[1503],{"type":45,"value":375},{"type":39,"tag":144,"props":1505,"children":1506},{"class":146,"line":302},[1507],{"type":39,"tag":144,"props":1508,"children":1510},{"emptyLinePlaceholder":1509},true,[1511],{"type":45,"value":1512},"\n",{"type":39,"tag":144,"props":1514,"children":1515},{"class":146,"line":327},[1516,1521,1526,1531,1536,1541,1546,1550,1555,1559,1564,1569],{"type":39,"tag":144,"props":1517,"children":1518},{"style":654},[1519],{"type":45,"value":1520},"const",{"type":39,"tag":144,"props":1522,"children":1523},{"style":262},[1524],{"type":45,"value":1525}," wallet ",{"type":39,"tag":144,"props":1527,"children":1528},{"style":277},[1529],{"type":45,"value":1530},"=",{"type":39,"tag":144,"props":1532,"children":1533},{"style":277},[1534],{"type":45,"value":1535}," new",{"type":39,"tag":144,"props":1537,"children":1539},{"style":1538},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[1540],{"type":45,"value":1443},{"type":39,"tag":144,"props":1542,"children":1543},{"style":262},[1544],{"type":45,"value":1545},"(process",{"type":39,"tag":144,"props":1547,"children":1548},{"style":277},[1549],{"type":45,"value":102},{"type":39,"tag":144,"props":1551,"children":1552},{"style":262},[1553],{"type":45,"value":1554},"env",{"type":39,"tag":144,"props":1556,"children":1557},{"style":277},[1558],{"type":45,"value":102},{"type":39,"tag":144,"props":1560,"children":1561},{"style":262},[1562],{"type":45,"value":1563},"WALLET_KEY",{"type":39,"tag":144,"props":1565,"children":1566},{"style":277},[1567],{"type":45,"value":1568},"!",{"type":39,"tag":144,"props":1570,"children":1571},{"style":262},[1572],{"type":45,"value":1573},")\n",{"type":39,"tag":144,"props":1575,"children":1576},{"class":146,"line":346},[1577],{"type":39,"tag":144,"props":1578,"children":1579},{"emptyLinePlaceholder":1509},[1580],{"type":45,"value":1512},{"type":39,"tag":144,"props":1582,"children":1583},{"class":146,"line":355},[1584,1589,1594,1599],{"type":39,"tag":144,"props":1585,"children":1586},{"style":654},[1587],{"type":45,"value":1588},"function",{"type":39,"tag":144,"props":1590,"children":1591},{"style":1538},[1592],{"type":45,"value":1593}," makeSiwxHeader",{"type":39,"tag":144,"props":1595,"children":1596},{"style":277},[1597],{"type":45,"value":1598},"()",{"type":39,"tag":144,"props":1600,"children":1601},{"style":277},[1602],{"type":45,"value":1603}," {\n",{"type":39,"tag":144,"props":1605,"children":1606},{"class":146,"line":364},[1607,1612,1617,1622,1626,1630,1636],{"type":39,"tag":144,"props":1608,"children":1609},{"style":654},[1610],{"type":45,"value":1611},"  const",{"type":39,"tag":144,"props":1613,"children":1614},{"style":262},[1615],{"type":45,"value":1616}," msg",{"type":39,"tag":144,"props":1618,"children":1619},{"style":277},[1620],{"type":45,"value":1621}," =",{"type":39,"tag":144,"props":1623,"children":1624},{"style":277},[1625],{"type":45,"value":1535},{"type":39,"tag":144,"props":1627,"children":1628},{"style":1538},[1629],{"type":45,"value":1482},{"type":39,"tag":144,"props":1631,"children":1633},{"style":1632},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[1634],{"type":45,"value":1635},"(",{"type":39,"tag":144,"props":1637,"children":1638},{"style":277},[1639],{"type":45,"value":343},{"type":39,"tag":144,"props":1641,"children":1643},{"class":146,"line":1642},8,[1644,1649,1653,1657,1661,1666],{"type":39,"tag":144,"props":1645,"children":1646},{"style":1632},[1647],{"type":45,"value":1648},"    domain",{"type":39,"tag":144,"props":1650,"children":1651},{"style":277},[1652],{"type":45,"value":665},{"type":39,"tag":144,"props":1654,"children":1655},{"style":277},[1656],{"type":45,"value":338},{"type":39,"tag":144,"props":1658,"children":1659},{"style":256},[1660],{"type":45,"value":100},{"type":39,"tag":144,"props":1662,"children":1663},{"style":277},[1664],{"type":45,"value":1665},"'",{"type":39,"tag":144,"props":1667,"children":1668},{"style":277},[1669],{"type":45,"value":684},{"type":39,"tag":144,"props":1671,"children":1673},{"class":146,"line":1672},9,[1674,1679,1683,1688,1692,1696],{"type":39,"tag":144,"props":1675,"children":1676},{"style":1632},[1677],{"type":45,"value":1678},"    address",{"type":39,"tag":144,"props":1680,"children":1681},{"style":277},[1682],{"type":45,"value":665},{"type":39,"tag":144,"props":1684,"children":1685},{"style":262},[1686],{"type":45,"value":1687}," wallet",{"type":39,"tag":144,"props":1689,"children":1690},{"style":277},[1691],{"type":45,"value":102},{"type":39,"tag":144,"props":1693,"children":1694},{"style":262},[1695],{"type":45,"value":484},{"type":39,"tag":144,"props":1697,"children":1698},{"style":277},[1699],{"type":45,"value":684},{"type":39,"tag":144,"props":1701,"children":1703},{"class":146,"line":1702},10,[1704,1709,1713,1717,1722,1726],{"type":39,"tag":144,"props":1705,"children":1706},{"style":1632},[1707],{"type":45,"value":1708},"    statement",{"type":39,"tag":144,"props":1710,"children":1711},{"style":277},[1712],{"type":45,"value":665},{"type":39,"tag":144,"props":1714,"children":1715},{"style":277},[1716],{"type":45,"value":338},{"type":39,"tag":144,"props":1718,"children":1719},{"style":256},[1720],{"type":45,"value":1721},"Sign in to Venice AI",{"type":39,"tag":144,"props":1723,"children":1724},{"style":277},[1725],{"type":45,"value":1665},{"type":39,"tag":144,"props":1727,"children":1728},{"style":277},[1729],{"type":45,"value":684},{"type":39,"tag":144,"props":1731,"children":1733},{"class":146,"line":1732},11,[1734,1739,1743,1747,1752,1756],{"type":39,"tag":144,"props":1735,"children":1736},{"style":1632},[1737],{"type":45,"value":1738},"    uri",{"type":39,"tag":144,"props":1740,"children":1741},{"style":277},[1742],{"type":45,"value":665},{"type":39,"tag":144,"props":1744,"children":1745},{"style":277},[1746],{"type":45,"value":338},{"type":39,"tag":144,"props":1748,"children":1749},{"style":256},[1750],{"type":45,"value":1751},"https:\u002F\u002Fapi.venice.ai",{"type":39,"tag":144,"props":1753,"children":1754},{"style":277},[1755],{"type":45,"value":1665},{"type":39,"tag":144,"props":1757,"children":1758},{"style":277},[1759],{"type":45,"value":684},{"type":39,"tag":144,"props":1761,"children":1763},{"class":146,"line":1762},12,[1764,1769,1773,1777,1782,1786],{"type":39,"tag":144,"props":1765,"children":1766},{"style":1632},[1767],{"type":45,"value":1768},"    version",{"type":39,"tag":144,"props":1770,"children":1771},{"style":277},[1772],{"type":45,"value":665},{"type":39,"tag":144,"props":1774,"children":1775},{"style":277},[1776],{"type":45,"value":338},{"type":39,"tag":144,"props":1778,"children":1779},{"style":256},[1780],{"type":45,"value":1781},"1",{"type":39,"tag":144,"props":1783,"children":1784},{"style":277},[1785],{"type":45,"value":1665},{"type":39,"tag":144,"props":1787,"children":1788},{"style":277},[1789],{"type":45,"value":684},{"type":39,"tag":144,"props":1791,"children":1793},{"class":146,"line":1792},13,[1794,1799,1803,1808],{"type":39,"tag":144,"props":1795,"children":1796},{"style":1632},[1797],{"type":45,"value":1798},"    chainId",{"type":39,"tag":144,"props":1800,"children":1801},{"style":277},[1802],{"type":45,"value":665},{"type":39,"tag":144,"props":1804,"children":1805},{"style":778},[1806],{"type":45,"value":1807}," 8453",{"type":39,"tag":144,"props":1809,"children":1810},{"style":277},[1811],{"type":45,"value":684},{"type":39,"tag":144,"props":1813,"children":1815},{"class":146,"line":1814},14,[1816,1821,1825,1830,1834,1839,1843,1847,1852,1856,1861,1866,1870,1875,1880,1885,1890,1894,1899,1903,1908,1912,1917,1921],{"type":39,"tag":144,"props":1817,"children":1818},{"style":1632},[1819],{"type":45,"value":1820},"    nonce",{"type":39,"tag":144,"props":1822,"children":1823},{"style":277},[1824],{"type":45,"value":665},{"type":39,"tag":144,"props":1826,"children":1827},{"style":262},[1828],{"type":45,"value":1829}," crypto",{"type":39,"tag":144,"props":1831,"children":1832},{"style":277},[1833],{"type":45,"value":102},{"type":39,"tag":144,"props":1835,"children":1836},{"style":1538},[1837],{"type":45,"value":1838},"randomUUID",{"type":39,"tag":144,"props":1840,"children":1841},{"style":1632},[1842],{"type":45,"value":1598},{"type":39,"tag":144,"props":1844,"children":1845},{"style":277},[1846],{"type":45,"value":102},{"type":39,"tag":144,"props":1848,"children":1849},{"style":1538},[1850],{"type":45,"value":1851},"replace",{"type":39,"tag":144,"props":1853,"children":1854},{"style":1632},[1855],{"type":45,"value":1635},{"type":39,"tag":144,"props":1857,"children":1858},{"style":277},[1859],{"type":45,"value":1860},"\u002F",{"type":39,"tag":144,"props":1862,"children":1863},{"style":256},[1864],{"type":45,"value":1865},"-",{"type":39,"tag":144,"props":1867,"children":1868},{"style":277},[1869],{"type":45,"value":1860},{"type":39,"tag":144,"props":1871,"children":1872},{"style":778},[1873],{"type":45,"value":1874},"g",{"type":39,"tag":144,"props":1876,"children":1877},{"style":277},[1878],{"type":45,"value":1879},",",{"type":39,"tag":144,"props":1881,"children":1882},{"style":277},[1883],{"type":45,"value":1884}," ''",{"type":39,"tag":144,"props":1886,"children":1887},{"style":1632},[1888],{"type":45,"value":1889},")",{"type":39,"tag":144,"props":1891,"children":1892},{"style":277},[1893],{"type":45,"value":102},{"type":39,"tag":144,"props":1895,"children":1896},{"style":1538},[1897],{"type":45,"value":1898},"slice",{"type":39,"tag":144,"props":1900,"children":1901},{"style":1632},[1902],{"type":45,"value":1635},{"type":39,"tag":144,"props":1904,"children":1905},{"style":778},[1906],{"type":45,"value":1907},"0",{"type":39,"tag":144,"props":1909,"children":1910},{"style":277},[1911],{"type":45,"value":1879},{"type":39,"tag":144,"props":1913,"children":1914},{"style":778},[1915],{"type":45,"value":1916}," 16",{"type":39,"tag":144,"props":1918,"children":1919},{"style":1632},[1920],{"type":45,"value":1889},{"type":39,"tag":144,"props":1922,"children":1923},{"style":277},[1924],{"type":45,"value":684},{"type":39,"tag":144,"props":1926,"children":1927},{"class":146,"line":26},[1928,1933,1937,1941,1946,1950,1954,1959,1963],{"type":39,"tag":144,"props":1929,"children":1930},{"style":1632},[1931],{"type":45,"value":1932},"    issuedAt",{"type":39,"tag":144,"props":1934,"children":1935},{"style":277},[1936],{"type":45,"value":665},{"type":39,"tag":144,"props":1938,"children":1939},{"style":277},[1940],{"type":45,"value":1535},{"type":39,"tag":144,"props":1942,"children":1943},{"style":1538},[1944],{"type":45,"value":1945}," Date",{"type":39,"tag":144,"props":1947,"children":1948},{"style":1632},[1949],{"type":45,"value":1598},{"type":39,"tag":144,"props":1951,"children":1952},{"style":277},[1953],{"type":45,"value":102},{"type":39,"tag":144,"props":1955,"children":1956},{"style":1538},[1957],{"type":45,"value":1958},"toISOString",{"type":39,"tag":144,"props":1960,"children":1961},{"style":1632},[1962],{"type":45,"value":1598},{"type":39,"tag":144,"props":1964,"children":1965},{"style":277},[1966],{"type":45,"value":684},{"type":39,"tag":144,"props":1968,"children":1970},{"class":146,"line":1969},16,[1971,1976,1980,1984,1988,1992,1997,2001,2006,2011,2016,2021,2026,2031,2035,2039,2043,2047],{"type":39,"tag":144,"props":1972,"children":1973},{"style":1632},[1974],{"type":45,"value":1975},"    expirationTime",{"type":39,"tag":144,"props":1977,"children":1978},{"style":277},[1979],{"type":45,"value":665},{"type":39,"tag":144,"props":1981,"children":1982},{"style":277},[1983],{"type":45,"value":1535},{"type":39,"tag":144,"props":1985,"children":1986},{"style":1538},[1987],{"type":45,"value":1945},{"type":39,"tag":144,"props":1989,"children":1990},{"style":1632},[1991],{"type":45,"value":1635},{"type":39,"tag":144,"props":1993,"children":1994},{"style":262},[1995],{"type":45,"value":1996},"Date",{"type":39,"tag":144,"props":1998,"children":1999},{"style":277},[2000],{"type":45,"value":102},{"type":39,"tag":144,"props":2002,"children":2003},{"style":1538},[2004],{"type":45,"value":2005},"now",{"type":39,"tag":144,"props":2007,"children":2008},{"style":1632},[2009],{"type":45,"value":2010},"() ",{"type":39,"tag":144,"props":2012,"children":2013},{"style":277},[2014],{"type":45,"value":2015},"+",{"type":39,"tag":144,"props":2017,"children":2018},{"style":778},[2019],{"type":45,"value":2020}," 4",{"type":39,"tag":144,"props":2022,"children":2023},{"style":277},[2024],{"type":45,"value":2025}," *",{"type":39,"tag":144,"props":2027,"children":2028},{"style":778},[2029],{"type":45,"value":2030}," 60_000",{"type":39,"tag":144,"props":2032,"children":2033},{"style":1632},[2034],{"type":45,"value":1889},{"type":39,"tag":144,"props":2036,"children":2037},{"style":277},[2038],{"type":45,"value":102},{"type":39,"tag":144,"props":2040,"children":2041},{"style":1538},[2042],{"type":45,"value":1958},{"type":39,"tag":144,"props":2044,"children":2045},{"style":1632},[2046],{"type":45,"value":1598},{"type":39,"tag":144,"props":2048,"children":2049},{"style":277},[2050],{"type":45,"value":684},{"type":39,"tag":144,"props":2052,"children":2054},{"class":146,"line":2053},17,[2055,2059],{"type":39,"tag":144,"props":2056,"children":2057},{"style":277},[2058],{"type":45,"value":370},{"type":39,"tag":144,"props":2060,"children":2061},{"style":1632},[2062],{"type":45,"value":1573},{"type":39,"tag":144,"props":2064,"children":2066},{"class":146,"line":2065},18,[2067,2071,2076,2080,2084,2088,2093],{"type":39,"tag":144,"props":2068,"children":2069},{"style":654},[2070],{"type":45,"value":1611},{"type":39,"tag":144,"props":2072,"children":2073},{"style":262},[2074],{"type":45,"value":2075}," message",{"type":39,"tag":144,"props":2077,"children":2078},{"style":277},[2079],{"type":45,"value":1621},{"type":39,"tag":144,"props":2081,"children":2082},{"style":262},[2083],{"type":45,"value":1616},{"type":39,"tag":144,"props":2085,"children":2086},{"style":277},[2087],{"type":45,"value":102},{"type":39,"tag":144,"props":2089,"children":2090},{"style":1538},[2091],{"type":45,"value":2092},"prepareMessage",{"type":39,"tag":144,"props":2094,"children":2095},{"style":1632},[2096],{"type":45,"value":2097},"()\n",{"type":39,"tag":144,"props":2099,"children":2101},{"class":146,"line":2100},19,[2102,2106,2111,2115,2119,2123,2128,2132,2136],{"type":39,"tag":144,"props":2103,"children":2104},{"style":654},[2105],{"type":45,"value":1611},{"type":39,"tag":144,"props":2107,"children":2108},{"style":262},[2109],{"type":45,"value":2110}," signature",{"type":39,"tag":144,"props":2112,"children":2113},{"style":277},[2114],{"type":45,"value":1621},{"type":39,"tag":144,"props":2116,"children":2117},{"style":262},[2118],{"type":45,"value":1687},{"type":39,"tag":144,"props":2120,"children":2121},{"style":277},[2122],{"type":45,"value":102},{"type":39,"tag":144,"props":2124,"children":2125},{"style":1538},[2126],{"type":45,"value":2127},"signMessageSync",{"type":39,"tag":144,"props":2129,"children":2130},{"style":1632},[2131],{"type":45,"value":1635},{"type":39,"tag":144,"props":2133,"children":2134},{"style":262},[2135],{"type":45,"value":501},{"type":39,"tag":144,"props":2137,"children":2138},{"style":1632},[2139],{"type":45,"value":1573},{"type":39,"tag":144,"props":2141,"children":2143},{"class":146,"line":2142},20,[2144,2149,2154,2158,2163,2167,2172,2176],{"type":39,"tag":144,"props":2145,"children":2146},{"style":1430},[2147],{"type":45,"value":2148},"  return",{"type":39,"tag":144,"props":2150,"children":2151},{"style":1538},[2152],{"type":45,"value":2153}," btoa",{"type":39,"tag":144,"props":2155,"children":2156},{"style":1632},[2157],{"type":45,"value":1635},{"type":39,"tag":144,"props":2159,"children":2160},{"style":262},[2161],{"type":45,"value":2162},"JSON",{"type":39,"tag":144,"props":2164,"children":2165},{"style":277},[2166],{"type":45,"value":102},{"type":39,"tag":144,"props":2168,"children":2169},{"style":1538},[2170],{"type":45,"value":2171},"stringify",{"type":39,"tag":144,"props":2173,"children":2174},{"style":1632},[2175],{"type":45,"value":1635},{"type":39,"tag":144,"props":2177,"children":2178},{"style":277},[2179],{"type":45,"value":343},{"type":39,"tag":144,"props":2181,"children":2183},{"class":146,"line":2182},21,[2184,2188,2192,2196,2200,2204],{"type":39,"tag":144,"props":2185,"children":2186},{"style":1632},[2187],{"type":45,"value":1678},{"type":39,"tag":144,"props":2189,"children":2190},{"style":277},[2191],{"type":45,"value":665},{"type":39,"tag":144,"props":2193,"children":2194},{"style":262},[2195],{"type":45,"value":1687},{"type":39,"tag":144,"props":2197,"children":2198},{"style":277},[2199],{"type":45,"value":102},{"type":39,"tag":144,"props":2201,"children":2202},{"style":262},[2203],{"type":45,"value":484},{"type":39,"tag":144,"props":2205,"children":2206},{"style":277},[2207],{"type":45,"value":684},{"type":39,"tag":144,"props":2209,"children":2211},{"class":146,"line":2210},22,[2212,2217],{"type":39,"tag":144,"props":2213,"children":2214},{"style":262},[2215],{"type":45,"value":2216},"    message",{"type":39,"tag":144,"props":2218,"children":2219},{"style":277},[2220],{"type":45,"value":684},{"type":39,"tag":144,"props":2222,"children":2224},{"class":146,"line":2223},23,[2225,2230],{"type":39,"tag":144,"props":2226,"children":2227},{"style":262},[2228],{"type":45,"value":2229},"    signature",{"type":39,"tag":144,"props":2231,"children":2232},{"style":277},[2233],{"type":45,"value":684},{"type":39,"tag":144,"props":2235,"children":2237},{"class":146,"line":2236},24,[2238,2243,2247,2251,2255,2259,2263],{"type":39,"tag":144,"props":2239,"children":2240},{"style":1632},[2241],{"type":45,"value":2242},"    timestamp",{"type":39,"tag":144,"props":2244,"children":2245},{"style":277},[2246],{"type":45,"value":665},{"type":39,"tag":144,"props":2248,"children":2249},{"style":262},[2250],{"type":45,"value":1945},{"type":39,"tag":144,"props":2252,"children":2253},{"style":277},[2254],{"type":45,"value":102},{"type":39,"tag":144,"props":2256,"children":2257},{"style":1538},[2258],{"type":45,"value":2005},{"type":39,"tag":144,"props":2260,"children":2261},{"style":1632},[2262],{"type":45,"value":1598},{"type":39,"tag":144,"props":2264,"children":2265},{"style":277},[2266],{"type":45,"value":684},{"type":39,"tag":144,"props":2268,"children":2270},{"class":146,"line":2269},25,[2271,2275,2279,2283],{"type":39,"tag":144,"props":2272,"children":2273},{"style":1632},[2274],{"type":45,"value":1798},{"type":39,"tag":144,"props":2276,"children":2277},{"style":277},[2278],{"type":45,"value":665},{"type":39,"tag":144,"props":2280,"children":2281},{"style":778},[2282],{"type":45,"value":1807},{"type":39,"tag":144,"props":2284,"children":2285},{"style":277},[2286],{"type":45,"value":684},{"type":39,"tag":144,"props":2288,"children":2290},{"class":146,"line":2289},26,[2291,2295],{"type":39,"tag":144,"props":2292,"children":2293},{"style":277},[2294],{"type":45,"value":370},{"type":39,"tag":144,"props":2296,"children":2297},{"style":1632},[2298],{"type":45,"value":2299},"))\n",{"type":39,"tag":144,"props":2301,"children":2303},{"class":146,"line":2302},27,[2304],{"type":39,"tag":144,"props":2305,"children":2306},{"style":277},[2307],{"type":45,"value":817},{"type":39,"tag":144,"props":2309,"children":2311},{"class":146,"line":2310},28,[2312],{"type":39,"tag":144,"props":2313,"children":2314},{"emptyLinePlaceholder":1509},[2315],{"type":45,"value":1512},{"type":39,"tag":144,"props":2317,"children":2319},{"class":146,"line":2318},29,[2320,2324,2329,2333,2338,2343,2347,2351,2356,2360,2364],{"type":39,"tag":144,"props":2321,"children":2322},{"style":654},[2323],{"type":45,"value":1520},{"type":39,"tag":144,"props":2325,"children":2326},{"style":262},[2327],{"type":45,"value":2328}," res ",{"type":39,"tag":144,"props":2330,"children":2331},{"style":277},[2332],{"type":45,"value":1530},{"type":39,"tag":144,"props":2334,"children":2335},{"style":1430},[2336],{"type":45,"value":2337}," await",{"type":39,"tag":144,"props":2339,"children":2340},{"style":1538},[2341],{"type":45,"value":2342}," fetch",{"type":39,"tag":144,"props":2344,"children":2345},{"style":262},[2346],{"type":45,"value":1635},{"type":39,"tag":144,"props":2348,"children":2349},{"style":277},[2350],{"type":45,"value":1665},{"type":39,"tag":144,"props":2352,"children":2353},{"style":256},[2354],{"type":45,"value":2355},"https:\u002F\u002Fapi.venice.ai\u002Fapi\u002Fv1\u002Fchat\u002Fcompletions",{"type":39,"tag":144,"props":2357,"children":2358},{"style":277},[2359],{"type":45,"value":1665},{"type":39,"tag":144,"props":2361,"children":2362},{"style":277},[2363],{"type":45,"value":1879},{"type":39,"tag":144,"props":2365,"children":2366},{"style":277},[2367],{"type":45,"value":1603},{"type":39,"tag":144,"props":2369,"children":2371},{"class":146,"line":2370},30,[2372,2377,2381,2385,2390,2394],{"type":39,"tag":144,"props":2373,"children":2374},{"style":1632},[2375],{"type":45,"value":2376},"  method",{"type":39,"tag":144,"props":2378,"children":2379},{"style":277},[2380],{"type":45,"value":665},{"type":39,"tag":144,"props":2382,"children":2383},{"style":277},[2384],{"type":45,"value":338},{"type":39,"tag":144,"props":2386,"children":2387},{"style":256},[2388],{"type":45,"value":2389},"POST",{"type":39,"tag":144,"props":2391,"children":2392},{"style":277},[2393],{"type":45,"value":1665},{"type":39,"tag":144,"props":2395,"children":2396},{"style":277},[2397],{"type":45,"value":684},{"type":39,"tag":144,"props":2399,"children":2401},{"class":146,"line":2400},31,[2402,2407,2411],{"type":39,"tag":144,"props":2403,"children":2404},{"style":1632},[2405],{"type":45,"value":2406},"  headers",{"type":39,"tag":144,"props":2408,"children":2409},{"style":277},[2410],{"type":45,"value":665},{"type":39,"tag":144,"props":2412,"children":2413},{"style":277},[2414],{"type":45,"value":1603},{"type":39,"tag":144,"props":2416,"children":2418},{"class":146,"line":2417},32,[2419,2424,2429,2433,2437,2441,2446,2450],{"type":39,"tag":144,"props":2420,"children":2421},{"style":277},[2422],{"type":45,"value":2423},"    '",{"type":39,"tag":144,"props":2425,"children":2426},{"style":1632},[2427],{"type":45,"value":2428},"Content-Type",{"type":39,"tag":144,"props":2430,"children":2431},{"style":277},[2432],{"type":45,"value":1665},{"type":39,"tag":144,"props":2434,"children":2435},{"style":277},[2436],{"type":45,"value":665},{"type":39,"tag":144,"props":2438,"children":2439},{"style":277},[2440],{"type":45,"value":338},{"type":39,"tag":144,"props":2442,"children":2443},{"style":256},[2444],{"type":45,"value":2445},"application\u002Fjson",{"type":39,"tag":144,"props":2447,"children":2448},{"style":277},[2449],{"type":45,"value":1665},{"type":39,"tag":144,"props":2451,"children":2452},{"style":277},[2453],{"type":45,"value":684},{"type":39,"tag":144,"props":2455,"children":2457},{"class":146,"line":2456},33,[2458,2462,2466,2470,2474,2478,2482],{"type":39,"tag":144,"props":2459,"children":2460},{"style":277},[2461],{"type":45,"value":2423},{"type":39,"tag":144,"props":2463,"children":2464},{"style":1632},[2465],{"type":45,"value":429},{"type":39,"tag":144,"props":2467,"children":2468},{"style":277},[2469],{"type":45,"value":1665},{"type":39,"tag":144,"props":2471,"children":2472},{"style":277},[2473],{"type":45,"value":665},{"type":39,"tag":144,"props":2475,"children":2476},{"style":1538},[2477],{"type":45,"value":1593},{"type":39,"tag":144,"props":2479,"children":2480},{"style":262},[2481],{"type":45,"value":1598},{"type":39,"tag":144,"props":2483,"children":2484},{"style":277},[2485],{"type":45,"value":684},{"type":39,"tag":144,"props":2487,"children":2489},{"class":146,"line":2488},34,[2490],{"type":39,"tag":144,"props":2491,"children":2492},{"style":277},[2493],{"type":45,"value":2494},"  },\n",{"type":39,"tag":144,"props":2496,"children":2498},{"class":146,"line":2497},35,[2499,2504,2508,2513,2517,2521,2525],{"type":39,"tag":144,"props":2500,"children":2501},{"style":1632},[2502],{"type":45,"value":2503},"  body",{"type":39,"tag":144,"props":2505,"children":2506},{"style":277},[2507],{"type":45,"value":665},{"type":39,"tag":144,"props":2509,"children":2510},{"style":262},[2511],{"type":45,"value":2512}," JSON",{"type":39,"tag":144,"props":2514,"children":2515},{"style":277},[2516],{"type":45,"value":102},{"type":39,"tag":144,"props":2518,"children":2519},{"style":1538},[2520],{"type":45,"value":2171},{"type":39,"tag":144,"props":2522,"children":2523},{"style":262},[2524],{"type":45,"value":1635},{"type":39,"tag":144,"props":2526,"children":2527},{"style":277},[2528],{"type":45,"value":343},{"type":39,"tag":144,"props":2530,"children":2532},{"class":146,"line":2531},36,[2533,2538,2542,2546,2551,2555],{"type":39,"tag":144,"props":2534,"children":2535},{"style":1632},[2536],{"type":45,"value":2537},"    model",{"type":39,"tag":144,"props":2539,"children":2540},{"style":277},[2541],{"type":45,"value":665},{"type":39,"tag":144,"props":2543,"children":2544},{"style":277},[2545],{"type":45,"value":338},{"type":39,"tag":144,"props":2547,"children":2548},{"style":256},[2549],{"type":45,"value":2550},"zai-org-glm-5-1",{"type":39,"tag":144,"props":2552,"children":2553},{"style":277},[2554],{"type":45,"value":1665},{"type":39,"tag":144,"props":2556,"children":2557},{"style":277},[2558],{"type":45,"value":684},{"type":39,"tag":144,"props":2560,"children":2562},{"class":146,"line":2561},37,[2563,2568,2572,2577,2582,2587,2591,2595,2600,2604,2608,2613,2617,2621,2626,2630,2634,2639],{"type":39,"tag":144,"props":2564,"children":2565},{"style":1632},[2566],{"type":45,"value":2567},"    messages",{"type":39,"tag":144,"props":2569,"children":2570},{"style":277},[2571],{"type":45,"value":665},{"type":39,"tag":144,"props":2573,"children":2574},{"style":262},[2575],{"type":45,"value":2576}," [",{"type":39,"tag":144,"props":2578,"children":2579},{"style":277},[2580],{"type":45,"value":2581},"{",{"type":39,"tag":144,"props":2583,"children":2584},{"style":1632},[2585],{"type":45,"value":2586}," role",{"type":39,"tag":144,"props":2588,"children":2589},{"style":277},[2590],{"type":45,"value":665},{"type":39,"tag":144,"props":2592,"children":2593},{"style":277},[2594],{"type":45,"value":338},{"type":39,"tag":144,"props":2596,"children":2597},{"style":256},[2598],{"type":45,"value":2599},"user",{"type":39,"tag":144,"props":2601,"children":2602},{"style":277},[2603],{"type":45,"value":1665},{"type":39,"tag":144,"props":2605,"children":2606},{"style":277},[2607],{"type":45,"value":1879},{"type":39,"tag":144,"props":2609,"children":2610},{"style":1632},[2611],{"type":45,"value":2612}," content",{"type":39,"tag":144,"props":2614,"children":2615},{"style":277},[2616],{"type":45,"value":665},{"type":39,"tag":144,"props":2618,"children":2619},{"style":277},[2620],{"type":45,"value":338},{"type":39,"tag":144,"props":2622,"children":2623},{"style":256},[2624],{"type":45,"value":2625},"hello",{"type":39,"tag":144,"props":2627,"children":2628},{"style":277},[2629],{"type":45,"value":1665},{"type":39,"tag":144,"props":2631,"children":2632},{"style":277},[2633],{"type":45,"value":1448},{"type":39,"tag":144,"props":2635,"children":2636},{"style":262},[2637],{"type":45,"value":2638},"]",{"type":39,"tag":144,"props":2640,"children":2641},{"style":277},[2642],{"type":45,"value":684},{"type":39,"tag":144,"props":2644,"children":2646},{"class":146,"line":2645},38,[2647,2651,2655],{"type":39,"tag":144,"props":2648,"children":2649},{"style":277},[2650],{"type":45,"value":370},{"type":39,"tag":144,"props":2652,"children":2653},{"style":262},[2654],{"type":45,"value":1889},{"type":39,"tag":144,"props":2656,"children":2657},{"style":277},[2658],{"type":45,"value":684},{"type":39,"tag":144,"props":2660,"children":2662},{"class":146,"line":2661},39,[2663,2668],{"type":39,"tag":144,"props":2664,"children":2665},{"style":277},[2666],{"type":45,"value":2667},"}",{"type":39,"tag":144,"props":2669,"children":2670},{"style":262},[2671],{"type":45,"value":1573},{"type":39,"tag":401,"props":2673,"children":2675},{"id":2674},"sdk-shortcut",[2676],{"type":45,"value":2677},"SDK shortcut",{"type":39,"tag":133,"props":2679,"children":2681},{"className":238,"code":2680,"language":240,"meta":138,"style":138},"npm install venice-x402-client\n",[2682],{"type":39,"tag":62,"props":2683,"children":2684},{"__ignoreMap":138},[2685],{"type":39,"tag":144,"props":2686,"children":2687},{"class":146,"line":147},[2688,2693,2698],{"type":39,"tag":144,"props":2689,"children":2690},{"style":250},[2691],{"type":45,"value":2692},"npm",{"type":39,"tag":144,"props":2694,"children":2695},{"style":256},[2696],{"type":45,"value":2697}," install",{"type":39,"tag":144,"props":2699,"children":2700},{"style":256},[2701],{"type":45,"value":2702}," venice-x402-client\n",{"type":39,"tag":133,"props":2704,"children":2706},{"className":1418,"code":2705,"language":1420,"meta":138,"style":138},"import { VeniceClient } from 'venice-x402-client'\n\nconst venice = new VeniceClient(process.env.WALLET_KEY!)\n\nawait venice.topUp(10)            \u002F\u002F $10 USDC on Base (first time only)\nconst res = await venice.chat({\n  model: 'zai-org-glm-5-1',\n  messages: [{ role: 'user', content: 'Hello!' }],\n})\nconsole.log(res.choices[0].message.content)\n",[2707],{"type":39,"tag":62,"props":2708,"children":2709},{"__ignoreMap":138},[2710,2747,2754,2806,2813,2855,2895,2923,3000,3011],{"type":39,"tag":144,"props":2711,"children":2712},{"class":146,"line":147},[2713,2717,2721,2726,2730,2734,2738,2743],{"type":39,"tag":144,"props":2714,"children":2715},{"style":1430},[2716],{"type":45,"value":1433},{"type":39,"tag":144,"props":2718,"children":2719},{"style":277},[2720],{"type":45,"value":1438},{"type":39,"tag":144,"props":2722,"children":2723},{"style":262},[2724],{"type":45,"value":2725}," VeniceClient",{"type":39,"tag":144,"props":2727,"children":2728},{"style":277},[2729],{"type":45,"value":1448},{"type":39,"tag":144,"props":2731,"children":2732},{"style":1430},[2733],{"type":45,"value":1453},{"type":39,"tag":144,"props":2735,"children":2736},{"style":277},[2737],{"type":45,"value":338},{"type":39,"tag":144,"props":2739,"children":2740},{"style":256},[2741],{"type":45,"value":2742},"venice-x402-client",{"type":39,"tag":144,"props":2744,"children":2745},{"style":277},[2746],{"type":45,"value":375},{"type":39,"tag":144,"props":2748,"children":2749},{"class":146,"line":268},[2750],{"type":39,"tag":144,"props":2751,"children":2752},{"emptyLinePlaceholder":1509},[2753],{"type":45,"value":1512},{"type":39,"tag":144,"props":2755,"children":2756},{"class":146,"line":302},[2757,2761,2766,2770,2774,2778,2782,2786,2790,2794,2798,2802],{"type":39,"tag":144,"props":2758,"children":2759},{"style":654},[2760],{"type":45,"value":1520},{"type":39,"tag":144,"props":2762,"children":2763},{"style":262},[2764],{"type":45,"value":2765}," venice ",{"type":39,"tag":144,"props":2767,"children":2768},{"style":277},[2769],{"type":45,"value":1530},{"type":39,"tag":144,"props":2771,"children":2772},{"style":277},[2773],{"type":45,"value":1535},{"type":39,"tag":144,"props":2775,"children":2776},{"style":1538},[2777],{"type":45,"value":2725},{"type":39,"tag":144,"props":2779,"children":2780},{"style":262},[2781],{"type":45,"value":1545},{"type":39,"tag":144,"props":2783,"children":2784},{"style":277},[2785],{"type":45,"value":102},{"type":39,"tag":144,"props":2787,"children":2788},{"style":262},[2789],{"type":45,"value":1554},{"type":39,"tag":144,"props":2791,"children":2792},{"style":277},[2793],{"type":45,"value":102},{"type":39,"tag":144,"props":2795,"children":2796},{"style":262},[2797],{"type":45,"value":1563},{"type":39,"tag":144,"props":2799,"children":2800},{"style":277},[2801],{"type":45,"value":1568},{"type":39,"tag":144,"props":2803,"children":2804},{"style":262},[2805],{"type":45,"value":1573},{"type":39,"tag":144,"props":2807,"children":2808},{"class":146,"line":327},[2809],{"type":39,"tag":144,"props":2810,"children":2811},{"emptyLinePlaceholder":1509},[2812],{"type":45,"value":1512},{"type":39,"tag":144,"props":2814,"children":2815},{"class":146,"line":346},[2816,2821,2826,2830,2835,2839,2844,2849],{"type":39,"tag":144,"props":2817,"children":2818},{"style":1430},[2819],{"type":45,"value":2820},"await",{"type":39,"tag":144,"props":2822,"children":2823},{"style":262},[2824],{"type":45,"value":2825}," venice",{"type":39,"tag":144,"props":2827,"children":2828},{"style":277},[2829],{"type":45,"value":102},{"type":39,"tag":144,"props":2831,"children":2832},{"style":1538},[2833],{"type":45,"value":2834},"topUp",{"type":39,"tag":144,"props":2836,"children":2837},{"style":262},[2838],{"type":45,"value":1635},{"type":39,"tag":144,"props":2840,"children":2841},{"style":778},[2842],{"type":45,"value":2843},"10",{"type":39,"tag":144,"props":2845,"children":2846},{"style":262},[2847],{"type":45,"value":2848},")            ",{"type":39,"tag":144,"props":2850,"children":2852},{"style":2851},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[2853],{"type":45,"value":2854},"\u002F\u002F $10 USDC on Base (first time only)\n",{"type":39,"tag":144,"props":2856,"children":2857},{"class":146,"line":355},[2858,2862,2866,2870,2874,2878,2882,2887,2891],{"type":39,"tag":144,"props":2859,"children":2860},{"style":654},[2861],{"type":45,"value":1520},{"type":39,"tag":144,"props":2863,"children":2864},{"style":262},[2865],{"type":45,"value":2328},{"type":39,"tag":144,"props":2867,"children":2868},{"style":277},[2869],{"type":45,"value":1530},{"type":39,"tag":144,"props":2871,"children":2872},{"style":1430},[2873],{"type":45,"value":2337},{"type":39,"tag":144,"props":2875,"children":2876},{"style":262},[2877],{"type":45,"value":2825},{"type":39,"tag":144,"props":2879,"children":2880},{"style":277},[2881],{"type":45,"value":102},{"type":39,"tag":144,"props":2883,"children":2884},{"style":1538},[2885],{"type":45,"value":2886},"chat",{"type":39,"tag":144,"props":2888,"children":2889},{"style":262},[2890],{"type":45,"value":1635},{"type":39,"tag":144,"props":2892,"children":2893},{"style":277},[2894],{"type":45,"value":343},{"type":39,"tag":144,"props":2896,"children":2897},{"class":146,"line":364},[2898,2903,2907,2911,2915,2919],{"type":39,"tag":144,"props":2899,"children":2900},{"style":1632},[2901],{"type":45,"value":2902},"  model",{"type":39,"tag":144,"props":2904,"children":2905},{"style":277},[2906],{"type":45,"value":665},{"type":39,"tag":144,"props":2908,"children":2909},{"style":277},[2910],{"type":45,"value":338},{"type":39,"tag":144,"props":2912,"children":2913},{"style":256},[2914],{"type":45,"value":2550},{"type":39,"tag":144,"props":2916,"children":2917},{"style":277},[2918],{"type":45,"value":1665},{"type":39,"tag":144,"props":2920,"children":2921},{"style":277},[2922],{"type":45,"value":684},{"type":39,"tag":144,"props":2924,"children":2925},{"class":146,"line":1642},[2926,2931,2935,2939,2943,2947,2951,2955,2959,2963,2967,2971,2975,2979,2984,2988,2992,2996],{"type":39,"tag":144,"props":2927,"children":2928},{"style":1632},[2929],{"type":45,"value":2930},"  messages",{"type":39,"tag":144,"props":2932,"children":2933},{"style":277},[2934],{"type":45,"value":665},{"type":39,"tag":144,"props":2936,"children":2937},{"style":262},[2938],{"type":45,"value":2576},{"type":39,"tag":144,"props":2940,"children":2941},{"style":277},[2942],{"type":45,"value":2581},{"type":39,"tag":144,"props":2944,"children":2945},{"style":1632},[2946],{"type":45,"value":2586},{"type":39,"tag":144,"props":2948,"children":2949},{"style":277},[2950],{"type":45,"value":665},{"type":39,"tag":144,"props":2952,"children":2953},{"style":277},[2954],{"type":45,"value":338},{"type":39,"tag":144,"props":2956,"children":2957},{"style":256},[2958],{"type":45,"value":2599},{"type":39,"tag":144,"props":2960,"children":2961},{"style":277},[2962],{"type":45,"value":1665},{"type":39,"tag":144,"props":2964,"children":2965},{"style":277},[2966],{"type":45,"value":1879},{"type":39,"tag":144,"props":2968,"children":2969},{"style":1632},[2970],{"type":45,"value":2612},{"type":39,"tag":144,"props":2972,"children":2973},{"style":277},[2974],{"type":45,"value":665},{"type":39,"tag":144,"props":2976,"children":2977},{"style":277},[2978],{"type":45,"value":338},{"type":39,"tag":144,"props":2980,"children":2981},{"style":256},[2982],{"type":45,"value":2983},"Hello!",{"type":39,"tag":144,"props":2985,"children":2986},{"style":277},[2987],{"type":45,"value":1665},{"type":39,"tag":144,"props":2989,"children":2990},{"style":277},[2991],{"type":45,"value":1448},{"type":39,"tag":144,"props":2993,"children":2994},{"style":262},[2995],{"type":45,"value":2638},{"type":39,"tag":144,"props":2997,"children":2998},{"style":277},[2999],{"type":45,"value":684},{"type":39,"tag":144,"props":3001,"children":3002},{"class":146,"line":1672},[3003,3007],{"type":39,"tag":144,"props":3004,"children":3005},{"style":277},[3006],{"type":45,"value":2667},{"type":39,"tag":144,"props":3008,"children":3009},{"style":262},[3010],{"type":45,"value":1573},{"type":39,"tag":144,"props":3012,"children":3013},{"class":146,"line":1702},[3014,3019,3023,3028,3033,3037,3042,3046,3050,3054,3058,3062],{"type":39,"tag":144,"props":3015,"children":3016},{"style":262},[3017],{"type":45,"value":3018},"console",{"type":39,"tag":144,"props":3020,"children":3021},{"style":277},[3022],{"type":45,"value":102},{"type":39,"tag":144,"props":3024,"children":3025},{"style":1538},[3026],{"type":45,"value":3027},"log",{"type":39,"tag":144,"props":3029,"children":3030},{"style":262},[3031],{"type":45,"value":3032},"(res",{"type":39,"tag":144,"props":3034,"children":3035},{"style":277},[3036],{"type":45,"value":102},{"type":39,"tag":144,"props":3038,"children":3039},{"style":262},[3040],{"type":45,"value":3041},"choices[",{"type":39,"tag":144,"props":3043,"children":3044},{"style":778},[3045],{"type":45,"value":1907},{"type":39,"tag":144,"props":3047,"children":3048},{"style":262},[3049],{"type":45,"value":2638},{"type":39,"tag":144,"props":3051,"children":3052},{"style":277},[3053],{"type":45,"value":102},{"type":39,"tag":144,"props":3055,"children":3056},{"style":262},[3057],{"type":45,"value":501},{"type":39,"tag":144,"props":3059,"children":3060},{"style":277},[3061],{"type":45,"value":102},{"type":39,"tag":144,"props":3063,"children":3064},{"style":262},[3065],{"type":45,"value":3066},"content)\n",{"type":39,"tag":48,"props":3068,"children":3069},{},[3070,3076,3077,3083,3085,3091],{"type":39,"tag":62,"props":3071,"children":3073},{"className":3072},[],[3074],{"type":45,"value":3075},"VeniceClient",{"type":45,"value":69},{"type":39,"tag":62,"props":3078,"children":3080},{"className":3079},[],[3081],{"type":45,"value":3082},"createAuthFetch",{"type":45,"value":3084}," handle SIWE signing, header rotation, and ",{"type":39,"tag":62,"props":3086,"children":3088},{"className":3087},[],[3089],{"type":45,"value":3090},"402",{"type":45,"value":3092}," top-up prompts automatically.",{"type":39,"tag":401,"props":3094,"children":3096},{"id":3095},"first-time-top-up-wallet-credits",[3097],{"type":45,"value":3098},"First-time top-up (wallet → credits)",{"type":39,"tag":133,"props":3100,"children":3103},{"className":3101,"code":3102,"language":45},[1367],"POST \u002Fx402\u002Ftop-up                # WITHOUT payment header → returns Base + Solana payment requirements\n→ pick one entry from accepts[] and sign it with the x402 SDK (createPaymentHeader)\nPOST \u002Fx402\u002Ftop-up                # WITH PAYMENT-SIGNATURE header → credits land on your wallet address\n",[3104],{"type":39,"tag":62,"props":3105,"children":3106},{"__ignoreMap":138},[3107],{"type":45,"value":3102},{"type":39,"tag":48,"props":3109,"children":3110},{},[3111,3117,3119,3125,3126,3132],{"type":39,"tag":62,"props":3112,"children":3114},{"className":3113},[],[3115],{"type":45,"value":3116},"PAYMENT-SIGNATURE",{"type":45,"value":3118}," is the canonical x402 v2 payment header. The legacy\n",{"type":39,"tag":62,"props":3120,"children":3122},{"className":3121},[],[3123],{"type":45,"value":3124},"X-402-Payment",{"type":45,"value":69},{"type":39,"tag":62,"props":3127,"children":3129},{"className":3128},[],[3130],{"type":45,"value":3131},"X-PAYMENT",{"type":45,"value":3133}," names are also accepted.",{"type":39,"tag":48,"props":3135,"children":3136},{},[3137,3139,3149],{"type":45,"value":3138},"See ",{"type":39,"tag":162,"props":3140,"children":3142},{"href":3141},"..\u002Fvenice-x402\u002FSKILL.md",[3143],{"type":39,"tag":62,"props":3144,"children":3146},{"className":3145},[],[3147],{"type":45,"value":3148},"venice-x402",{"type":45,"value":3150}," for the full flow.",{"type":39,"tag":79,"props":3152,"children":3154},{"id":3153},"choosing-between-the-two",[3155],{"type":45,"value":3156},"Choosing between the two",{"type":39,"tag":446,"props":3158,"children":3159},{},[3160,3176],{"type":39,"tag":450,"props":3161,"children":3162},{},[3163],{"type":39,"tag":454,"props":3164,"children":3165},{},[3166,3171],{"type":39,"tag":458,"props":3167,"children":3168},{},[3169],{"type":45,"value":3170},"Need",{"type":39,"tag":458,"props":3172,"children":3173},{},[3174],{"type":45,"value":3175},"Pick",{"type":39,"tag":469,"props":3177,"children":3178},{},[3179,3192,3204,3216,3228,3240,3252],{"type":39,"tag":454,"props":3180,"children":3181},{},[3182,3187],{"type":39,"tag":476,"props":3183,"children":3184},{},[3185],{"type":45,"value":3186},"Server-side dashboard with usage analytics",{"type":39,"tag":476,"props":3188,"children":3189},{},[3190],{"type":45,"value":3191},"Bearer",{"type":39,"tag":454,"props":3193,"children":3194},{},[3195,3200],{"type":39,"tag":476,"props":3196,"children":3197},{},[3198],{"type":45,"value":3199},"Scoped child keys, consumption limits per app",{"type":39,"tag":476,"props":3201,"children":3202},{},[3203],{"type":45,"value":3191},{"type":39,"tag":454,"props":3205,"children":3206},{},[3207,3212],{"type":39,"tag":476,"props":3208,"children":3209},{},[3210],{"type":45,"value":3211},"DIEM-staked users \u002F bundled credits",{"type":39,"tag":476,"props":3213,"children":3214},{},[3215],{"type":45,"value":3191},{"type":39,"tag":454,"props":3217,"children":3218},{},[3219,3224],{"type":39,"tag":476,"props":3220,"children":3221},{},[3222],{"type":45,"value":3223},"Serverless function that pays per call",{"type":39,"tag":476,"props":3225,"children":3226},{},[3227],{"type":45,"value":18},{"type":39,"tag":454,"props":3229,"children":3230},{},[3231,3236],{"type":39,"tag":476,"props":3232,"children":3233},{},[3234],{"type":45,"value":3235},"Agents with an on-chain budget, no account",{"type":39,"tag":476,"props":3237,"children":3238},{},[3239],{"type":45,"value":18},{"type":39,"tag":454,"props":3241,"children":3242},{},[3243,3248],{"type":39,"tag":476,"props":3244,"children":3245},{},[3246],{"type":45,"value":3247},"End-user wallets authing directly (browser extension, mobile wallet)",{"type":39,"tag":476,"props":3249,"children":3250},{},[3251],{"type":45,"value":18},{"type":39,"tag":454,"props":3253,"children":3254},{},[3255,3260],{"type":39,"tag":476,"props":3256,"children":3257},{},[3258],{"type":45,"value":3259},"Team sharing — one seed, many consumers",{"type":39,"tag":476,"props":3261,"children":3262},{},[3263],{"type":45,"value":3264},"Bearer (+ child keys)",{"type":39,"tag":48,"props":3266,"children":3267},{},[3268,3270,3275,3277,3283,3285,3293],{"type":45,"value":3269},"Both schemes can co-exist: a Pro user may generate a ",{"type":39,"tag":54,"props":3271,"children":3272},{},[3273],{"type":45,"value":3274},"Web3 API key",{"type":45,"value":3276}," via ",{"type":39,"tag":62,"props":3278,"children":3280},{"className":3279},[],[3281],{"type":45,"value":3282},"POST \u002Fapi_keys\u002Fgenerate_web3_key",{"type":45,"value":3284}," that ties an on-chain wallet to an off-chain key with an EIP-191 signature. See ",{"type":39,"tag":162,"props":3286,"children":3287},{"href":173},[3288],{"type":39,"tag":62,"props":3289,"children":3291},{"className":3290},[],[3292],{"type":45,"value":180},{"type":45,"value":102},{"type":39,"tag":79,"props":3295,"children":3297},{"id":3296},"common-auth-errors",[3298],{"type":45,"value":3299},"Common auth errors",{"type":39,"tag":446,"props":3301,"children":3302},{},[3303,3319],{"type":39,"tag":450,"props":3304,"children":3305},{},[3306],{"type":39,"tag":454,"props":3307,"children":3308},{},[3309,3314],{"type":39,"tag":458,"props":3310,"children":3311},{},[3312],{"type":45,"value":3313},"Status",{"type":39,"tag":458,"props":3315,"children":3316},{},[3317],{"type":45,"value":3318},"Likely cause",{"type":39,"tag":469,"props":3320,"children":3321},{},[3322,3401,3447,3464,3497],{"type":39,"tag":454,"props":3323,"children":3324},{},[3325,3333],{"type":39,"tag":476,"props":3326,"children":3327},{},[3328],{"type":39,"tag":62,"props":3329,"children":3331},{"className":3330},[],[3332],{"type":45,"value":118},{"type":39,"tag":476,"props":3334,"children":3335},{},[3336,3338,3343,3344,3350,3352,3357,3359,3365,3366,3372,3373,3379,3380,3385,3386,3392,3394,3399],{"type":45,"value":3337},"bad\u002Fexpired key, SIWE older than 5 min from ",{"type":39,"tag":62,"props":3339,"children":3341},{"className":3340},[],[3342],{"type":45,"value":869},{"type":45,"value":578},{"type":39,"tag":62,"props":3345,"children":3347},{"className":3346},[],[3348],{"type":45,"value":3349},"payload.timestamp",{"type":45,"value":3351}," off by >30s, ",{"type":39,"tag":62,"props":3353,"children":3355},{"className":3354},[],[3356],{"type":45,"value":835},{"type":45,"value":3358}," not in the Venice allow-list, unsupported chain id, nonce replayed. The server returns a specific code like ",{"type":39,"tag":62,"props":3360,"children":3362},{"className":3361},[],[3363],{"type":45,"value":3364},"X402_SIGN_IN_EXPIRED",{"type":45,"value":578},{"type":39,"tag":62,"props":3367,"children":3369},{"className":3368},[],[3370],{"type":45,"value":3371},"X402_SIGN_IN_TIMESTAMP_MISMATCH",{"type":45,"value":578},{"type":39,"tag":62,"props":3374,"children":3376},{"className":3375},[],[3377],{"type":45,"value":3378},"X402_SIGN_IN_DOMAIN_MISMATCH",{"type":45,"value":578},{"type":39,"tag":62,"props":3381,"children":3383},{"className":3382},[],[3384],{"type":45,"value":1274},{"type":45,"value":586},{"type":39,"tag":62,"props":3387,"children":3389},{"className":3388},[],[3390],{"type":45,"value":3391},"X402_SIGN_IN_INVALID_CHAIN_ID",{"type":45,"value":3393}," (code always set; ",{"type":39,"tag":62,"props":3395,"children":3397},{"className":3396},[],[3398],{"type":45,"value":501},{"type":45,"value":3400}," may fall back to generic text for some codes).",{"type":39,"tag":454,"props":3402,"children":3403},{},[3404,3415],{"type":39,"tag":476,"props":3405,"children":3406},{},[3407,3413],{"type":39,"tag":62,"props":3408,"children":3410},{"className":3409},[],[3411],{"type":45,"value":3412},"402 x402",{"type":45,"value":3414}," (no header)",{"type":39,"tag":476,"props":3416,"children":3417},{},[3418,3423,3425,3430,3432,3438,3439,3445],{"type":39,"tag":62,"props":3419,"children":3421},{"className":3420},[],[3422],{"type":45,"value":429},{"type":45,"value":3424}," is ",{"type":39,"tag":54,"props":3426,"children":3427},{},[3428],{"type":45,"value":3429},"missing",{"type":45,"value":3431}," on an SIWX-gated route (",{"type":39,"tag":62,"props":3433,"children":3435},{"className":3434},[],[3436],{"type":45,"value":3437},"\u002Fx402\u002Fbalance",{"type":45,"value":578},{"type":39,"tag":62,"props":3440,"children":3442},{"className":3441},[],[3443],{"type":45,"value":3444},"\u002Fx402\u002Ftransactions",{"type":45,"value":3446},"). Add the header.",{"type":39,"tag":454,"props":3448,"children":3449},{},[3450,3459],{"type":39,"tag":476,"props":3451,"children":3452},{},[3453],{"type":39,"tag":62,"props":3454,"children":3456},{"className":3455},[],[3457],{"type":45,"value":3458},"401 This model is only available to Pro users",{"type":39,"tag":476,"props":3460,"children":3461},{},[3462],{"type":45,"value":3463},"using x402 or an INFERENCE key on a gated model — switch to a Pro Bearer key",{"type":39,"tag":454,"props":3465,"children":3466},{},[3467,3478],{"type":39,"tag":476,"props":3468,"children":3469},{},[3470,3476],{"type":39,"tag":62,"props":3471,"children":3473},{"className":3472},[],[3474],{"type":45,"value":3475},"402 PAYMENT_REQUIRED",{"type":45,"value":3477}," (x402)",{"type":39,"tag":476,"props":3479,"children":3480},{},[3481,3483,3489,3491],{"type":45,"value":3482},"wallet balance too low; read ",{"type":39,"tag":62,"props":3484,"children":3486},{"className":3485},[],[3487],{"type":45,"value":3488},"topUpInstructions",{"type":45,"value":3490}," and top up via ",{"type":39,"tag":62,"props":3492,"children":3494},{"className":3493},[],[3495],{"type":45,"value":3496},"\u002Fx402\u002Ftop-up",{"type":39,"tag":454,"props":3498,"children":3499},{},[3500,3511],{"type":39,"tag":476,"props":3501,"children":3502},{},[3503,3509],{"type":39,"tag":62,"props":3504,"children":3506},{"className":3505},[],[3507],{"type":45,"value":3508},"402 INSUFFICIENT_BALANCE",{"type":45,"value":3510}," (Bearer)",{"type":39,"tag":476,"props":3512,"children":3513},{},[3514],{"type":45,"value":3515},"DIEM + USD + bundled credits are all empty; top up at venice.ai",{"type":39,"tag":79,"props":3517,"children":3519},{"id":3518},"security-hygiene",[3520],{"type":45,"value":3521},"Security hygiene",{"type":39,"tag":86,"props":3523,"children":3524},{},[3525,3536,3547,3579],{"type":39,"tag":90,"props":3526,"children":3527},{},[3528,3530,3535],{"type":45,"value":3529},"Bearer keys behave like passwords — store in a secret manager, rotate on compromise, scope via ",{"type":39,"tag":62,"props":3531,"children":3533},{"className":3532},[],[3534],{"type":45,"value":192},{"type":45,"value":102},{"type":39,"tag":90,"props":3537,"children":3538},{},[3539,3541,3545],{"type":45,"value":3540},"SIWX requires a private key signer on the client side. For browsers, use a wallet provider (MetaMask or WalletConnect on EVM, Phantom or a wallet-standard adapter on Solana) — do ",{"type":39,"tag":54,"props":3542,"children":3543},{},[3544],{"type":45,"value":1285},{"type":45,"value":3546}," ship raw private keys.",{"type":39,"tag":90,"props":3548,"children":3549},{},[3550,3552,3557,3559,3564,3566,3571,3573,3578],{"type":45,"value":3551},"Signed headers are valid ",{"type":39,"tag":54,"props":3553,"children":3554},{},[3555],{"type":45,"value":3556},"5 minutes",{"type":45,"value":3558}," from ",{"type":39,"tag":62,"props":3560,"children":3562},{"className":3561},[],[3563],{"type":45,"value":869},{"type":45,"value":3565},"; rotate every ~4 minutes. Never reuse a signed ",{"type":39,"tag":62,"props":3567,"children":3569},{"className":3568},[],[3570],{"type":45,"value":429},{"type":45,"value":3572}," header across hours or across machines. Nonces are tracked per wallet for ~5.5 min; replaying one is rejected with ",{"type":39,"tag":62,"props":3574,"children":3576},{"className":3575},[],[3577],{"type":45,"value":1274},{"type":45,"value":102},{"type":39,"tag":90,"props":3580,"children":3581},{},[3582,3584,3592,3593,3603],{"type":45,"value":3583},"Rate limits are per-key (Bearer) or per-wallet (x402). See ",{"type":39,"tag":162,"props":3585,"children":3586},{"href":173},[3587],{"type":39,"tag":62,"props":3588,"children":3590},{"className":3589},[],[3591],{"type":45,"value":180},{"type":45,"value":69},{"type":39,"tag":162,"props":3594,"children":3596},{"href":3595},"..\u002Fvenice-errors\u002FSKILL.md",[3597],{"type":39,"tag":62,"props":3598,"children":3600},{"className":3599},[],[3601],{"type":45,"value":3602},"venice-errors",{"type":45,"value":102},{"type":39,"tag":3605,"props":3606,"children":3607},"style",{},[3608],{"type":45,"value":3609},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":3611,"total":2142},[3612,3625,3636,3649,3663,3678,3695],{"slug":180,"name":180,"fn":3613,"description":3614,"org":3615,"tags":3616,"stars":22,"repoUrl":23,"updatedAt":3624},"manage Venice API keys and rate limits","Manage Venice API keys. Covers GET\u002FPOST\u002FPATCH\u002FDELETE \u002Fapi_keys, GET \u002Fapi_keys\u002F{id}, GET \u002Fapi_keys\u002Frate_limits, GET \u002Fapi_keys\u002Frate_limits\u002Flog, the two-step \u002Fapi_keys\u002Fgenerate_web3_key wallet flow, INFERENCE vs ADMIN key types, and per-key consumption limits (USD \u002F DIEM).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3617,3618,3621],{"name":20,"slug":21,"type":16},{"name":3619,"slug":3620,"type":16},"Authentication","authentication",{"name":3622,"slug":3623,"type":16},"Security","security","2026-07-17T06:05:40.24171",{"slug":3626,"name":3626,"fn":3627,"description":3628,"org":3629,"tags":3630,"stars":22,"repoUrl":23,"updatedAt":3635},"venice-api-overview","integrate with Venice AI API","High-level map of the Venice.ai API - base URL, authentication modes, endpoint categories, response headers, pricing model, error shape, and versioning. Load this first when starting any Venice integration.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3631,3632],{"name":20,"slug":21,"type":16},{"name":3633,"slug":3634,"type":16},"Documentation","documentation","2026-08-01T05:43:18.703041",{"slug":3637,"name":3637,"fn":3638,"description":3639,"org":3640,"tags":3641,"stars":22,"repoUrl":23,"updatedAt":3648},"venice-audio-music","generate music and audio tracks","Async music \u002F audio-track generation via Venice. Covers the \u002Faudio\u002Fquote + \u002Faudio\u002Fqueue + \u002Faudio\u002Fretrieve + \u002Faudio\u002Fcomplete lifecycle, lyrics vs instrumental, voice selection, duration, language, speed, model capability probing, and webhook-free polling.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3642,3645],{"name":3643,"slug":3644,"type":16},"Audio","audio",{"name":3646,"slug":3647,"type":16},"Creative","creative","2026-07-17T06:04:02.174106",{"slug":3650,"name":3650,"fn":3651,"description":3652,"org":3653,"tags":3654,"stars":22,"repoUrl":23,"updatedAt":3662},"venice-audio-speech","generate speech from text","Generate speech from text via POST \u002Faudio\u002Fspeech, and clone a voice via POST \u002Faudio\u002Fvoices. Covers TTS models (Kokoro, Qwen 3, xAI, Inworld, Chatterbox, Orpheus, ElevenLabs Turbo, MiniMax, Gemini Flash, Gradium), voices per family, cloned-voice handles, output formats (mp3\u002Fopus\u002Faac\u002Fflac\u002Fwav\u002Fpcm), streaming, prompt\u002Femotion styling, temperature\u002Ftop_p, and language hints.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3655,3656,3659],{"name":3643,"slug":3644,"type":16},{"name":3657,"slug":3658,"type":16},"Speech","speech",{"name":3660,"slug":3661,"type":16},"Text-to-Speech","text-to-speech","2026-08-01T05:43:12.713524",{"slug":3664,"name":3664,"fn":3665,"description":3666,"org":3667,"tags":3668,"stars":22,"repoUrl":23,"updatedAt":3677},"venice-audio-transcription","transcribe audio files to text","Transcribe audio files to text via POST \u002Faudio\u002Ftranscriptions. Covers supported models (Parakeet, Whisper, Wizper, Scribe, xAI STT), supported formats (wav\u002Fflac\u002Fm4a\u002Faac\u002Fmp4\u002Fmp3\u002Fogg\u002Fwebm), response formats (json\u002Ftext), timestamps, and language hints. OpenAI-compatible multipart.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3669,3670,3673,3674],{"name":3643,"slug":3644,"type":16},{"name":3671,"slug":3672,"type":16},"Data Extraction","data-extraction",{"name":3657,"slug":3658,"type":16},{"name":3675,"slug":3676,"type":16},"Transcription","transcription","2026-07-17T06:04:05.524355",{"slug":3679,"name":3679,"fn":3680,"description":3681,"org":3682,"tags":3683,"stars":22,"repoUrl":23,"updatedAt":3694},"venice-augment","extract and parse text from documents","Venice augmentation endpoints for agent pipelines. Covers POST \u002Faugment\u002Ftext-parser (extract text from PDF\u002FDOCX\u002FXLSX\u002Fplain text, multipart, up to 25MB, JSON or plain text response), POST \u002Faugment\u002Fscrape (fetch a URL and return markdown; blocks X\u002FReddit), and POST \u002Faugment\u002Fsearch (Brave ZDR or anonymized Google; structured title\u002Furl\u002Fcontent\u002Fdate results, up to 20 per query). Privacy (zero data retention), rate limits, and error shapes.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3684,3685,3688,3691],{"name":3671,"slug":3672,"type":16},{"name":3686,"slug":3687,"type":16},"DOCX","docx",{"name":3689,"slug":3690,"type":16},"PDF","pdf",{"name":3692,"slug":3693,"type":16},"Spreadsheets","spreadsheets","2026-07-17T06:04:00.77979",{"slug":4,"name":4,"fn":5,"description":6,"org":3696,"tags":3697,"stars":22,"repoUrl":23,"updatedAt":24},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3698,3699,3700],{"name":20,"slug":21,"type":16},{"name":14,"slug":15,"type":16},{"name":18,"slug":18,"type":16},{"items":3702,"total":2142},[3703,3709,3714,3719,3725,3732,3739,3745,3761,3777,3790,3804],{"slug":180,"name":180,"fn":3613,"description":3614,"org":3704,"tags":3705,"stars":22,"repoUrl":23,"updatedAt":3624},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3706,3707,3708],{"name":20,"slug":21,"type":16},{"name":3619,"slug":3620,"type":16},{"name":3622,"slug":3623,"type":16},{"slug":3626,"name":3626,"fn":3627,"description":3628,"org":3710,"tags":3711,"stars":22,"repoUrl":23,"updatedAt":3635},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3712,3713],{"name":20,"slug":21,"type":16},{"name":3633,"slug":3634,"type":16},{"slug":3637,"name":3637,"fn":3638,"description":3639,"org":3715,"tags":3716,"stars":22,"repoUrl":23,"updatedAt":3648},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3717,3718],{"name":3643,"slug":3644,"type":16},{"name":3646,"slug":3647,"type":16},{"slug":3650,"name":3650,"fn":3651,"description":3652,"org":3720,"tags":3721,"stars":22,"repoUrl":23,"updatedAt":3662},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3722,3723,3724],{"name":3643,"slug":3644,"type":16},{"name":3657,"slug":3658,"type":16},{"name":3660,"slug":3661,"type":16},{"slug":3664,"name":3664,"fn":3665,"description":3666,"org":3726,"tags":3727,"stars":22,"repoUrl":23,"updatedAt":3677},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3728,3729,3730,3731],{"name":3643,"slug":3644,"type":16},{"name":3671,"slug":3672,"type":16},{"name":3657,"slug":3658,"type":16},{"name":3675,"slug":3676,"type":16},{"slug":3679,"name":3679,"fn":3680,"description":3681,"org":3733,"tags":3734,"stars":22,"repoUrl":23,"updatedAt":3694},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3735,3736,3737,3738],{"name":3671,"slug":3672,"type":16},{"name":3686,"slug":3687,"type":16},{"name":3689,"slug":3690,"type":16},{"name":3692,"slug":3693,"type":16},{"slug":4,"name":4,"fn":5,"description":6,"org":3740,"tags":3741,"stars":22,"repoUrl":23,"updatedAt":24},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3742,3743,3744],{"name":20,"slug":21,"type":16},{"name":14,"slug":15,"type":16},{"name":18,"slug":18,"type":16},{"slug":3746,"name":3746,"fn":3747,"description":3748,"org":3749,"tags":3750,"stars":22,"repoUrl":23,"updatedAt":3760},"venice-billing","manage Venice billing and usage analytics","Venice billing and usage analytics - GET \u002Fbilling\u002Fbalance, GET \u002Fbilling\u002Fusage-history (keyset-paginated per-request ledger, JSON or CSV), GET \u002Fbilling\u002Fusage (deprecated predecessor), and GET \u002Fbilling\u002Fusage-analytics (aggregated by date\u002Fmodel\u002Fkey). Covers the DIEM\u002FUSD\u002FBUNDLED_CREDITS consumption priority and building dashboards. (Beta)",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3751,3754,3757],{"name":3752,"slug":3753,"type":16},"Analytics","analytics",{"name":3755,"slug":3756,"type":16},"Finance","finance",{"name":3758,"slug":3759,"type":16},"Reporting","reporting","2026-08-01T05:43:13.766419",{"slug":3762,"name":3762,"fn":3763,"description":3764,"org":3765,"tags":3766,"stars":22,"repoUrl":23,"updatedAt":3776},"venice-characters","discover and use Venice AI characters","Discover and use Venice public characters (persona-driven system prompts with a bound model). Covers GET \u002Fcharacters (search\u002Ffilter\u002Fsort), \u002Fcharacters\u002F{slug}, \u002Fcharacters\u002F{slug}\u002Freviews, the Character schema, and how to apply a character via venice_parameters.character_slug in chat completions.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3767,3770,3773],{"name":3768,"slug":3769,"type":16},"Agents","agents",{"name":3771,"slug":3772,"type":16},"LLM","llm",{"name":3774,"slug":3775,"type":16},"Persona","persona","2026-07-17T06:05:40.942733",{"slug":3778,"name":3778,"fn":3779,"description":3780,"org":3781,"tags":3782,"stars":22,"repoUrl":23,"updatedAt":3789},"venice-chat","interact with Venice chat completions API","Call POST \u002Fchat\u002Fcompletions on Venice. Covers the OpenAI-compatible request shape, Venice-only venice_parameters (web search, E2EE, characters, thinking control, X search), multimodal inputs (images\u002Faudio\u002Fvideo), tool calls, reasoning controls, streaming, prompt caching, structured output, and model feature suffixes.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3783,3784,3785,3786],{"name":3768,"slug":3769,"type":16},{"name":20,"slug":21,"type":16},{"name":3771,"slug":3772,"type":16},{"name":3787,"slug":3788,"type":16},"Multimodal","multimodal","2026-08-01T05:43:15.821764",{"slug":3791,"name":3791,"fn":3792,"description":3793,"org":3794,"tags":3795,"stars":22,"repoUrl":23,"updatedAt":3803},"venice-crypto-rpc","proxy crypto JSON-RPC calls via Venice","Use Venice as a pay-per-call JSON-RPC proxy to 27 EVM, Starknet, and Solana networks. Covers GET \u002Fcrypto\u002Frpc\u002Fnetworks, POST \u002Fcrypto\u002Frpc\u002F{network}, chain families and per-family method allowlists, the 1×\u002F2×\u002F4× method-tier pricing model, per-minute + 24-hour credit rate limits, idempotency keys for safe retries, single vs batch requests, and the unsupported stateful\u002FWebSocket methods (eth_subscribe, eth_newFilter, *Subscribe, etc.).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3796,3797,3800],{"name":20,"slug":21,"type":16},{"name":3798,"slug":3799,"type":16},"Ethereum","ethereum",{"name":3801,"slug":3802,"type":16},"Web3","web3","2026-08-01T05:43:22.78028",{"slug":3805,"name":3805,"fn":3806,"description":3807,"org":3808,"tags":3809,"stars":22,"repoUrl":23,"updatedAt":3814},"venice-embeddings","generate embeddings with Venice API","Call POST \u002Fembeddings on Venice. Covers request shape (input, model, encoding_format, dimensions, user), OpenAI compatibility, response compression (gzip\u002Fbr), and practical usage for retrieval, clustering, and RAG.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[3810,3813],{"name":3811,"slug":3812,"type":16},"Data Analysis","data-analysis",{"name":3771,"slug":3772,"type":16},"2026-07-17T06:07:34.97752"]