[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-venice-ai-venice-errors":3,"mdc--3vvmk5-key":31,"related-repo-venice-ai-venice-errors":4398,"related-org-venice-ai-venice-errors":4495},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":20,"repoUrl":21,"updatedAt":22,"license":23,"forks":24,"topics":25,"repo":26,"sourceUrl":29,"mdContent":30},"venice-errors","handle Venice API errors and status codes","Handle Venice API errors correctly. Covers the StandardError \u002F DetailedError \u002F ContentViolationError \u002F X402InferencePaymentRequired body shapes, every meaningful status code (400, 401, 402, 403, 415, 422, 429, 500, 503, 504), the 402 PAYMENT-REQUIRED header used by x402 inference, 422 content-policy suggested_prompt retry pattern, 429 rate-limit headers, and an exponential-backoff retry strategy with idempotency.",{"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],{"name":14,"slug":15,"type":16},"API Development","api-development","tag",{"name":18,"slug":19,"type":16},"Debugging","debugging",119,"https:\u002F\u002Fgithub.com\u002Fveniceai\u002Fskills","2026-08-01T05:43:19.715102",null,15,[],{"repoUrl":21,"stars":20,"forks":24,"topics":27,"description":28},[],"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-errors","---\nname: venice-errors\ndescription: Handle Venice API errors correctly. Covers the StandardError \u002F DetailedError \u002F ContentViolationError \u002F X402InferencePaymentRequired body shapes, every meaningful status code (400, 401, 402, 403, 415, 422, 429, 500, 503, 504), the 402 PAYMENT-REQUIRED header used by x402 inference, 422 content-policy suggested_prompt retry pattern, 429 rate-limit headers, and an exponential-backoff retry strategy with idempotency.\n---\n\n# Venice errors & retries\n\nEvery Venice endpoint returns one of four error shapes. Knowing which shape you got tells you how to react.\n\n## Error body shapes\n\n### 1. `StandardError` — simple message\n\nThe default shape for 4xx\u002F5xx. Emitted when there's nothing structured to surface.\n\n```json\n{ \"error\": \"Unauthorized\" }\n```\n\n### 2. `DetailedError` — Zod validation failure\n\nUsed for some `400` responses on malformed request bodies. When present, `details` is a Zod `format()` tree (`_errors` recursively keyed by field) alongside a flat `issues` array. Many `400`s are plain `StandardError` without `details` — always handle both.\n\n```json\n{\n  \"error\": \"Invalid request\",\n  \"details\": {\n    \"_errors\": [],\n    \"messages\": { \"_errors\": [\"Field is required\"] }\n  },\n  \"issues\": [\n    { \"code\": \"invalid_type\", \"path\": [\"messages\"], \"message\": \"Field is required\" }\n  ]\n}\n```\n\nRender `details` \u002F `issues` to the user so they can fix the input; don't retry — the request shape is wrong.\n\n### 3. `ContentViolationError` — 422 content policy\n\nReturned when a prompt trips content policy. `suggested_prompt` (a model-provided safe alternative) is currently emitted by the **audio** generation pipeline (`\u002Faudio\u002Fqueue`, `\u002Faudio\u002Fretrieve`); image and video endpoints return `{ error: \"Content policy violation\" }` without `suggested_prompt`.\n\n```json\n{\n  \"error\": \"Content policy violation\",\n  \"suggested_prompt\": \"A cinematic instrumental track inspired by stormy weather and dramatic tension.\"\n}\n```\n\n**Pattern** — when `suggested_prompt` is present, retry once with `prompt = suggested_prompt` if the user consents.\n\n### 4. `X402InferencePaymentRequired` — 402 on x402 inference calls\n\nReturned only when the caller authenticated with **SIWX** and has insufficient credit. Discriminated by `code: \"PAYMENT_REQUIRED\"`.\n\n```json\n{\n  \"error\": \"Payment required\",\n  \"code\": \"PAYMENT_REQUIRED\",\n  \"message\": \"Insufficient x402 balance\",\n  \"suggestedTopUpUsd\": 10,\n  \"minimumTopUpUsd\": 5,\n  \"supportedTokens\": [\"USDC\"],\n  \"supportedChains\": [\"base\", \"solana\"],\n  \"topUpInstructions\": {\n    \"step1\": \"POST \u002Fapi\u002Fv1\u002Fx402\u002Ftop-up with no payment header to get payment requirements\",\n    \"step2\": \"Choose a payment option from accepts and sign a USDC transfer authorization using the x402 SDK (createPaymentHeader)\",\n    \"step3\": \"POST \u002Fapi\u002Fv1\u002Fx402\u002Ftop-up with the signed X-402-Payment header\",\n    \"receiverWallet\": \"\u003CRECEIVER_WALLET_ADDRESS>\",\n    \"tokenAddress\": \"\u003CUSDC_TOKEN_ADDRESS>\",\n    \"tokenDecimals\": 6,\n    \"network\": \"eip155:8453\",\n    \"minimumAmountUsd\": 5\n  },\n  \"siwxChallenge\": { ... SIWX template + supportedChains ... }\n}\n```\n\n`topUpInstructions` describes the Base rail only, even when `supportedChains`\nincludes Solana. Read `accepts[]` from `POST \u002Fx402\u002Ftop-up` to pay on Solana.\n\nThe `PAYMENT-REQUIRED` response header carries a base64-encoded x402 v2 `paymentRequired` **object** (`x402Version`, `error`, `resource`, `accepts[]`, optional `extensions`) — it is **not** the same JSON as the body. Protocol-level clients parse the header; human-facing clients parse the richer body. See [`venice-x402`](..\u002Fvenice-x402\u002FSKILL.md).\n\n## Status code map\n\n| Status | Body | Meaning | What to do |\n|---|---|---|---|\n| `400 Bad Request` | `DetailedError` | Malformed input. Zod `details` identifies the field. | Fix and re-send. **Don't retry.** |\n| `401 Unauthorized` | `StandardError` | Missing \u002F invalid Bearer API key or SIWE. | Rotate credentials. **Don't retry.** |\n| `402 Payment Required` | Bearer: `StandardError` with the configured message (e.g. `{ \"error\": \"Insufficient balance\" }` — the handler's default path does not attach a `code` field). SIWE: `X402InferencePaymentRequired` + `PAYMENT-REQUIRED` header. | Out of DIEM\u002FUSD\u002Fwallet credit. | Bearer: top up at venice.ai. SIWE: run the x402 top-up flow. |\n| `403 Forbidden` | `StandardError` | Valid auth but not entitled. Typical: trial-limited endpoint, beta model, API-key consumption cap hit, SIWE signer ≠ path wallet. | **Don't retry.** Investigate entitlements. |\n| `415 Unsupported Media Type` | `StandardError` | Wrong `Content-Type` (e.g. JSON sent to a multipart endpoint, or vice versa). | Fix headers. **Don't retry.** |\n| `422 Unprocessable Entity` | `ContentViolationError` on image\u002Faudio\u002Fvideo generation; plain `{ error }` on other routes (e.g. ASR validation errors). | Content policy violation on generation paths; schema-ish validation on others. | On audio generation, optionally retry once with `suggested_prompt`. On others, fix input. |\n| `429 Too Many Requests` | `StandardError` | Rate limit cap tripped. Also returned by `\u002Fcrypto\u002Frpc\u002F{network}` when credit-per-day or concurrency cap tripped. | Honor `X-RateLimit-*` headers, back off with jitter. |\n| `500 Internal Server Error` | `StandardError` | Unexpected failure. | Retry with exponential backoff + idempotency key where supported. |\n| `503 Service Unavailable` | `StandardError` | Upstream model \u002F service temporarily down. | Retry with backoff. Consider a fallback model. |\n| `504 Gateway Timeout` | `StandardError` | Upstream slow. Mostly on `\u002Fchat\u002Fcompletions` with huge contexts. | Switch to `stream: true` or shorter prompts. |\n\n## Rate-limit headers (`429`)\n\nEmitted on `\u002Fcrypto\u002Frpc\u002F{network}`:\n\n| Header | Meaning |\n|---|---|\n| `X-RateLimit-Limit` | Per-minute request cap for your tier (paid = 100, staff = 1000 on crypto RPC). |\n| `X-RateLimit-Remaining` | Requests remaining in the current 60-second window. |\n| `X-RateLimit-Reset` | Unix timestamp in **seconds** when the window resets. |\n\nAdditionally, `LlmInferenceError` model-overloaded conditions set a `Retry-After` header (seconds) on the 429 — honor it when present.\n\nInference endpoints (chat, image, audio, video) use a per-API-key tier defined via `\u002Fapi_keys\u002Frate_limits`. See [`venice-api-keys`](..\u002Fvenice-api-keys\u002FSKILL.md) to pre-fetch your caps, and [`venice-billing`](..\u002Fvenice-billing\u002FSKILL.md) for DIEM\u002FUSD usage.\n\n## Response headers on `402` (x402)\n\n| Header | Notes |\n|---|---|\n| `PAYMENT-REQUIRED` | Base64-encoded JSON of the x402 v2 `paymentRequired` object (`x402Version`, `error`, `resource`, `accepts[]`, optional `extensions['sign-in-with-x']`). Protocol-level discovery — parse even if you don't parse the JSON body. |\n\n## Retry strategy\n\n### Never retry\n\n- `400` — bad input. Fix the request.\n- `401` — bad auth. Fix credentials.\n- `403` — not entitled. Don't hammer.\n- `415` — wrong `Content-Type`.\n\n### Retry with modification\n\n- `402` (x402) — run top-up then retry.\n- `402` (Bearer) — surface to user; top up at venice.ai.\n- `422` with `suggested_prompt` — one retry with the safer prompt.\n\n### Retry with backoff\n\n- `429` — back off for at least `X-RateLimit-Reset - now()`. Add jitter.\n- `500` \u002F `503` \u002F `504` — exponential backoff (e.g. 0.5s, 1s, 2s, 4s, 8s), capped at ~30s. **3–5 retries max.**\n- Use `Idempotency-Key` (e.g. on `\u002Fcrypto\u002Frpc\u002F{network}`) so retries can't double-bill state-mutating calls.\n\n### Reference retry loop\n\n```ts\nasync function callVenice\u003CT>(fn: () => Promise\u003CResponse>): Promise\u003CT> {\n  const maxRetries = 5\n  let delay = 500\n  for (let attempt = 0; attempt \u003C= maxRetries; attempt++) {\n    const res = await fn()\n    if (res.ok) return res.json() as Promise\u003CT>\n\n    const body = await res.clone().json().catch(() => ({}))\n    const { status } = res\n\n    if ([400, 401, 403, 415].includes(status)) {\n      throw Object.assign(new Error(body.error ?? 'Venice error'), { status, body })\n    }\n\n    if (status === 402 && body.code === 'PAYMENT_REQUIRED') {\n      await topUpX402(body.suggestedTopUpUsd)\n      continue\n    }\n\n    if (status === 422) {\n      throw Object.assign(new Error('Content policy'), { status, body })\n    }\n\n    if (status === 429) {\n      const retryAfterSec = Number(res.headers.get('retry-after'))\n      const resetSec = Number(res.headers.get('x-ratelimit-reset'))\n      const waitMs = !Number.isNaN(retryAfterSec) && retryAfterSec > 0\n        ? retryAfterSec * 1000\n        : !Number.isNaN(resetSec) && resetSec > 0\n          ? Math.max(resetSec * 1000 - Date.now(), delay)\n          : delay\n      await sleep(waitMs + Math.random() * 250)\n      delay *= 2\n      continue\n    }\n\n    if (status >= 500 && attempt \u003C maxRetries) {\n      await sleep(delay + Math.random() * 250)\n      delay *= 2\n      continue\n    }\n\n    throw Object.assign(new Error(body.error ?? 'Venice error'), { status, body })\n  }\n  throw new Error('Exceeded max retries')\n}\n```\n\n## Streaming errors\n\nStreaming responses (`stream: true` on chat, TTS, video-queue progress) deliver mid-stream errors as SSE events:\n\n```\ndata: {\"error\": {\"type\": \"…\", \"message\": \"…\"}}\n```\n\nTreat them as terminal — the underlying connection is closed. The HTTP status is `200` because a successful stream can't be changed mid-flight.\n\n## Request-ID correlation\n\nWhen present on a response, keep the `X-Request-ID` header. Include it in support tickets — Venice keys diagnostic logs by this ID. `\u002Fcrypto\u002Frpc\u002F*` routes set it explicitly; many inference routes also include it, but don't assume it's universal — fall back to your own client-side correlation ID.\n\n## Common gotchas\n\n- A `402` from `\u002Fx402\u002Ftop-up` with no `PAYMENT-SIGNATURE` header is the **expected discovery** response, not an error. See [`venice-x402`](..\u002Fvenice-x402\u002FSKILL.md).\n- A `500` on `\u002Fchat\u002Fcompletions` with a huge file upload often means the upstream model chose to abort — reduce `max_tokens` \u002F image size rather than blindly retrying.\n- `429` on `\u002Fcrypto\u002Frpc\u002F{network}` may mean the **24-hour credit cap** tripped, not the per-minute one. Check `customMessage`.\n- `DetailedError.details` is a Zod `_errors` tree, not a flat map. Walk it recursively.\n- Some endpoints (image generation) echo `X-Rate-Limit` variants — treat any header whose name starts with `X-RateLimit` as advisory.\n- Don't treat an empty `stream` chunk as an error — send-keepalives look like `data: [DONE]` or empty lines.\n",{"data":32,"body":33},{"name":4,"description":6},{"type":34,"children":35},"root",[36,45,51,58,74,79,142,156,222,564,583,597,648,738,763,777,796,1433,1466,1548,1554,2006,2020,2031,2110,2131,2168,2182,2258,2264,2270,2324,2330,2371,2377,2448,2454,4157,4163,4175,4185,4198,4204,4225,4231,4392],{"type":37,"tag":38,"props":39,"children":41},"element","h1",{"id":40},"venice-errors-retries",[42],{"type":43,"value":44},"text","Venice errors & retries",{"type":37,"tag":46,"props":47,"children":48},"p",{},[49],{"type":43,"value":50},"Every Venice endpoint returns one of four error shapes. Knowing which shape you got tells you how to react.",{"type":37,"tag":52,"props":53,"children":55},"h2",{"id":54},"error-body-shapes",[56],{"type":43,"value":57},"Error body shapes",{"type":37,"tag":59,"props":60,"children":62},"h3",{"id":61},"_1-standarderror-simple-message",[63,65,72],{"type":43,"value":64},"1. ",{"type":37,"tag":66,"props":67,"children":69},"code",{"className":68},[],[70],{"type":43,"value":71},"StandardError",{"type":43,"value":73}," — simple message",{"type":37,"tag":46,"props":75,"children":76},{},[77],{"type":43,"value":78},"The default shape for 4xx\u002F5xx. Emitted when there's nothing structured to surface.",{"type":37,"tag":80,"props":81,"children":86},"pre",{"className":82,"code":83,"language":84,"meta":85,"style":85},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{ \"error\": \"Unauthorized\" }\n","json","",[87],{"type":37,"tag":66,"props":88,"children":89},{"__ignoreMap":85},[90],{"type":37,"tag":91,"props":92,"children":95},"span",{"class":93,"line":94},"line",1,[96,102,107,113,118,123,127,133,137],{"type":37,"tag":91,"props":97,"children":99},{"style":98},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[100],{"type":43,"value":101},"{",{"type":37,"tag":91,"props":103,"children":104},{"style":98},[105],{"type":43,"value":106}," \"",{"type":37,"tag":91,"props":108,"children":110},{"style":109},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[111],{"type":43,"value":112},"error",{"type":37,"tag":91,"props":114,"children":115},{"style":98},[116],{"type":43,"value":117},"\"",{"type":37,"tag":91,"props":119,"children":120},{"style":98},[121],{"type":43,"value":122},":",{"type":37,"tag":91,"props":124,"children":125},{"style":98},[126],{"type":43,"value":106},{"type":37,"tag":91,"props":128,"children":130},{"style":129},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[131],{"type":43,"value":132},"Unauthorized",{"type":37,"tag":91,"props":134,"children":135},{"style":98},[136],{"type":43,"value":117},{"type":37,"tag":91,"props":138,"children":139},{"style":98},[140],{"type":43,"value":141}," }\n",{"type":37,"tag":59,"props":143,"children":145},{"id":144},"_2-detailederror-zod-validation-failure",[146,148,154],{"type":43,"value":147},"2. ",{"type":37,"tag":66,"props":149,"children":151},{"className":150},[],[152],{"type":43,"value":153},"DetailedError",{"type":43,"value":155}," — Zod validation failure",{"type":37,"tag":46,"props":157,"children":158},{},[159,161,167,169,175,177,183,185,191,193,199,201,206,208,213,215,220],{"type":43,"value":160},"Used for some ",{"type":37,"tag":66,"props":162,"children":164},{"className":163},[],[165],{"type":43,"value":166},"400",{"type":43,"value":168}," responses on malformed request bodies. When present, ",{"type":37,"tag":66,"props":170,"children":172},{"className":171},[],[173],{"type":43,"value":174},"details",{"type":43,"value":176}," is a Zod ",{"type":37,"tag":66,"props":178,"children":180},{"className":179},[],[181],{"type":43,"value":182},"format()",{"type":43,"value":184}," tree (",{"type":37,"tag":66,"props":186,"children":188},{"className":187},[],[189],{"type":43,"value":190},"_errors",{"type":43,"value":192}," recursively keyed by field) alongside a flat ",{"type":37,"tag":66,"props":194,"children":196},{"className":195},[],[197],{"type":43,"value":198},"issues",{"type":43,"value":200}," array. Many ",{"type":37,"tag":66,"props":202,"children":204},{"className":203},[],[205],{"type":43,"value":166},{"type":43,"value":207},"s are plain ",{"type":37,"tag":66,"props":209,"children":211},{"className":210},[],[212],{"type":43,"value":71},{"type":43,"value":214}," without ",{"type":37,"tag":66,"props":216,"children":218},{"className":217},[],[219],{"type":43,"value":174},{"type":43,"value":221}," — always handle both.",{"type":37,"tag":80,"props":223,"children":225},{"className":82,"code":224,"language":84,"meta":85,"style":85},"{\n  \"error\": \"Invalid request\",\n  \"details\": {\n    \"_errors\": [],\n    \"messages\": { \"_errors\": [\"Field is required\"] }\n  },\n  \"issues\": [\n    { \"code\": \"invalid_type\", \"path\": [\"messages\"], \"message\": \"Field is required\" }\n  ]\n}\n",[226],{"type":37,"tag":66,"props":227,"children":228},{"__ignoreMap":85},[229,237,276,301,328,398,407,432,546,555],{"type":37,"tag":91,"props":230,"children":231},{"class":93,"line":94},[232],{"type":37,"tag":91,"props":233,"children":234},{"style":98},[235],{"type":43,"value":236},"{\n",{"type":37,"tag":91,"props":238,"children":240},{"class":93,"line":239},2,[241,246,250,254,258,262,267,271],{"type":37,"tag":91,"props":242,"children":243},{"style":98},[244],{"type":43,"value":245},"  \"",{"type":37,"tag":91,"props":247,"children":248},{"style":109},[249],{"type":43,"value":112},{"type":37,"tag":91,"props":251,"children":252},{"style":98},[253],{"type":43,"value":117},{"type":37,"tag":91,"props":255,"children":256},{"style":98},[257],{"type":43,"value":122},{"type":37,"tag":91,"props":259,"children":260},{"style":98},[261],{"type":43,"value":106},{"type":37,"tag":91,"props":263,"children":264},{"style":129},[265],{"type":43,"value":266},"Invalid request",{"type":37,"tag":91,"props":268,"children":269},{"style":98},[270],{"type":43,"value":117},{"type":37,"tag":91,"props":272,"children":273},{"style":98},[274],{"type":43,"value":275},",\n",{"type":37,"tag":91,"props":277,"children":279},{"class":93,"line":278},3,[280,284,288,292,296],{"type":37,"tag":91,"props":281,"children":282},{"style":98},[283],{"type":43,"value":245},{"type":37,"tag":91,"props":285,"children":286},{"style":109},[287],{"type":43,"value":174},{"type":37,"tag":91,"props":289,"children":290},{"style":98},[291],{"type":43,"value":117},{"type":37,"tag":91,"props":293,"children":294},{"style":98},[295],{"type":43,"value":122},{"type":37,"tag":91,"props":297,"children":298},{"style":98},[299],{"type":43,"value":300}," {\n",{"type":37,"tag":91,"props":302,"children":304},{"class":93,"line":303},4,[305,310,315,319,323],{"type":37,"tag":91,"props":306,"children":307},{"style":98},[308],{"type":43,"value":309},"    \"",{"type":37,"tag":91,"props":311,"children":313},{"style":312},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[314],{"type":43,"value":190},{"type":37,"tag":91,"props":316,"children":317},{"style":98},[318],{"type":43,"value":117},{"type":37,"tag":91,"props":320,"children":321},{"style":98},[322],{"type":43,"value":122},{"type":37,"tag":91,"props":324,"children":325},{"style":98},[326],{"type":43,"value":327}," [],\n",{"type":37,"tag":91,"props":329,"children":331},{"class":93,"line":330},5,[332,336,341,345,349,354,358,363,367,371,376,380,385,389,394],{"type":37,"tag":91,"props":333,"children":334},{"style":98},[335],{"type":43,"value":309},{"type":37,"tag":91,"props":337,"children":338},{"style":312},[339],{"type":43,"value":340},"messages",{"type":37,"tag":91,"props":342,"children":343},{"style":98},[344],{"type":43,"value":117},{"type":37,"tag":91,"props":346,"children":347},{"style":98},[348],{"type":43,"value":122},{"type":37,"tag":91,"props":350,"children":351},{"style":98},[352],{"type":43,"value":353}," {",{"type":37,"tag":91,"props":355,"children":356},{"style":98},[357],{"type":43,"value":106},{"type":37,"tag":91,"props":359,"children":361},{"style":360},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[362],{"type":43,"value":190},{"type":37,"tag":91,"props":364,"children":365},{"style":98},[366],{"type":43,"value":117},{"type":37,"tag":91,"props":368,"children":369},{"style":98},[370],{"type":43,"value":122},{"type":37,"tag":91,"props":372,"children":373},{"style":98},[374],{"type":43,"value":375}," [",{"type":37,"tag":91,"props":377,"children":378},{"style":98},[379],{"type":43,"value":117},{"type":37,"tag":91,"props":381,"children":382},{"style":129},[383],{"type":43,"value":384},"Field is required",{"type":37,"tag":91,"props":386,"children":387},{"style":98},[388],{"type":43,"value":117},{"type":37,"tag":91,"props":390,"children":391},{"style":98},[392],{"type":43,"value":393},"]",{"type":37,"tag":91,"props":395,"children":396},{"style":98},[397],{"type":43,"value":141},{"type":37,"tag":91,"props":399,"children":401},{"class":93,"line":400},6,[402],{"type":37,"tag":91,"props":403,"children":404},{"style":98},[405],{"type":43,"value":406},"  },\n",{"type":37,"tag":91,"props":408,"children":410},{"class":93,"line":409},7,[411,415,419,423,427],{"type":37,"tag":91,"props":412,"children":413},{"style":98},[414],{"type":43,"value":245},{"type":37,"tag":91,"props":416,"children":417},{"style":109},[418],{"type":43,"value":198},{"type":37,"tag":91,"props":420,"children":421},{"style":98},[422],{"type":43,"value":117},{"type":37,"tag":91,"props":424,"children":425},{"style":98},[426],{"type":43,"value":122},{"type":37,"tag":91,"props":428,"children":429},{"style":98},[430],{"type":43,"value":431}," [\n",{"type":37,"tag":91,"props":433,"children":435},{"class":93,"line":434},8,[436,441,445,449,453,457,461,466,470,475,479,484,488,492,496,500,504,508,513,517,522,526,530,534,538,542],{"type":37,"tag":91,"props":437,"children":438},{"style":98},[439],{"type":43,"value":440},"    {",{"type":37,"tag":91,"props":442,"children":443},{"style":98},[444],{"type":43,"value":106},{"type":37,"tag":91,"props":446,"children":447},{"style":312},[448],{"type":43,"value":66},{"type":37,"tag":91,"props":450,"children":451},{"style":98},[452],{"type":43,"value":117},{"type":37,"tag":91,"props":454,"children":455},{"style":98},[456],{"type":43,"value":122},{"type":37,"tag":91,"props":458,"children":459},{"style":98},[460],{"type":43,"value":106},{"type":37,"tag":91,"props":462,"children":463},{"style":129},[464],{"type":43,"value":465},"invalid_type",{"type":37,"tag":91,"props":467,"children":468},{"style":98},[469],{"type":43,"value":117},{"type":37,"tag":91,"props":471,"children":472},{"style":98},[473],{"type":43,"value":474},",",{"type":37,"tag":91,"props":476,"children":477},{"style":98},[478],{"type":43,"value":106},{"type":37,"tag":91,"props":480,"children":481},{"style":312},[482],{"type":43,"value":483},"path",{"type":37,"tag":91,"props":485,"children":486},{"style":98},[487],{"type":43,"value":117},{"type":37,"tag":91,"props":489,"children":490},{"style":98},[491],{"type":43,"value":122},{"type":37,"tag":91,"props":493,"children":494},{"style":98},[495],{"type":43,"value":375},{"type":37,"tag":91,"props":497,"children":498},{"style":98},[499],{"type":43,"value":117},{"type":37,"tag":91,"props":501,"children":502},{"style":129},[503],{"type":43,"value":340},{"type":37,"tag":91,"props":505,"children":506},{"style":98},[507],{"type":43,"value":117},{"type":37,"tag":91,"props":509,"children":510},{"style":98},[511],{"type":43,"value":512},"],",{"type":37,"tag":91,"props":514,"children":515},{"style":98},[516],{"type":43,"value":106},{"type":37,"tag":91,"props":518,"children":519},{"style":312},[520],{"type":43,"value":521},"message",{"type":37,"tag":91,"props":523,"children":524},{"style":98},[525],{"type":43,"value":117},{"type":37,"tag":91,"props":527,"children":528},{"style":98},[529],{"type":43,"value":122},{"type":37,"tag":91,"props":531,"children":532},{"style":98},[533],{"type":43,"value":106},{"type":37,"tag":91,"props":535,"children":536},{"style":129},[537],{"type":43,"value":384},{"type":37,"tag":91,"props":539,"children":540},{"style":98},[541],{"type":43,"value":117},{"type":37,"tag":91,"props":543,"children":544},{"style":98},[545],{"type":43,"value":141},{"type":37,"tag":91,"props":547,"children":549},{"class":93,"line":548},9,[550],{"type":37,"tag":91,"props":551,"children":552},{"style":98},[553],{"type":43,"value":554},"  ]\n",{"type":37,"tag":91,"props":556,"children":558},{"class":93,"line":557},10,[559],{"type":37,"tag":91,"props":560,"children":561},{"style":98},[562],{"type":43,"value":563},"}\n",{"type":37,"tag":46,"props":565,"children":566},{},[567,569,574,576,581],{"type":43,"value":568},"Render ",{"type":37,"tag":66,"props":570,"children":572},{"className":571},[],[573],{"type":43,"value":174},{"type":43,"value":575}," \u002F ",{"type":37,"tag":66,"props":577,"children":579},{"className":578},[],[580],{"type":43,"value":198},{"type":43,"value":582}," to the user so they can fix the input; don't retry — the request shape is wrong.",{"type":37,"tag":59,"props":584,"children":586},{"id":585},"_3-contentviolationerror-422-content-policy",[587,589,595],{"type":43,"value":588},"3. ",{"type":37,"tag":66,"props":590,"children":592},{"className":591},[],[593],{"type":43,"value":594},"ContentViolationError",{"type":43,"value":596}," — 422 content policy",{"type":37,"tag":46,"props":598,"children":599},{},[600,602,608,610,616,618,624,626,632,634,640,641,646],{"type":43,"value":601},"Returned when a prompt trips content policy. ",{"type":37,"tag":66,"props":603,"children":605},{"className":604},[],[606],{"type":43,"value":607},"suggested_prompt",{"type":43,"value":609}," (a model-provided safe alternative) is currently emitted by the ",{"type":37,"tag":611,"props":612,"children":613},"strong",{},[614],{"type":43,"value":615},"audio",{"type":43,"value":617}," generation pipeline (",{"type":37,"tag":66,"props":619,"children":621},{"className":620},[],[622],{"type":43,"value":623},"\u002Faudio\u002Fqueue",{"type":43,"value":625},", ",{"type":37,"tag":66,"props":627,"children":629},{"className":628},[],[630],{"type":43,"value":631},"\u002Faudio\u002Fretrieve",{"type":43,"value":633},"); image and video endpoints return ",{"type":37,"tag":66,"props":635,"children":637},{"className":636},[],[638],{"type":43,"value":639},"{ error: \"Content policy violation\" }",{"type":43,"value":214},{"type":37,"tag":66,"props":642,"children":644},{"className":643},[],[645],{"type":43,"value":607},{"type":43,"value":647},".",{"type":37,"tag":80,"props":649,"children":651},{"className":82,"code":650,"language":84,"meta":85,"style":85},"{\n  \"error\": \"Content policy violation\",\n  \"suggested_prompt\": \"A cinematic instrumental track inspired by stormy weather and dramatic tension.\"\n}\n",[652],{"type":37,"tag":66,"props":653,"children":654},{"__ignoreMap":85},[655,662,698,731],{"type":37,"tag":91,"props":656,"children":657},{"class":93,"line":94},[658],{"type":37,"tag":91,"props":659,"children":660},{"style":98},[661],{"type":43,"value":236},{"type":37,"tag":91,"props":663,"children":664},{"class":93,"line":239},[665,669,673,677,681,685,690,694],{"type":37,"tag":91,"props":666,"children":667},{"style":98},[668],{"type":43,"value":245},{"type":37,"tag":91,"props":670,"children":671},{"style":109},[672],{"type":43,"value":112},{"type":37,"tag":91,"props":674,"children":675},{"style":98},[676],{"type":43,"value":117},{"type":37,"tag":91,"props":678,"children":679},{"style":98},[680],{"type":43,"value":122},{"type":37,"tag":91,"props":682,"children":683},{"style":98},[684],{"type":43,"value":106},{"type":37,"tag":91,"props":686,"children":687},{"style":129},[688],{"type":43,"value":689},"Content policy violation",{"type":37,"tag":91,"props":691,"children":692},{"style":98},[693],{"type":43,"value":117},{"type":37,"tag":91,"props":695,"children":696},{"style":98},[697],{"type":43,"value":275},{"type":37,"tag":91,"props":699,"children":700},{"class":93,"line":278},[701,705,709,713,717,721,726],{"type":37,"tag":91,"props":702,"children":703},{"style":98},[704],{"type":43,"value":245},{"type":37,"tag":91,"props":706,"children":707},{"style":109},[708],{"type":43,"value":607},{"type":37,"tag":91,"props":710,"children":711},{"style":98},[712],{"type":43,"value":117},{"type":37,"tag":91,"props":714,"children":715},{"style":98},[716],{"type":43,"value":122},{"type":37,"tag":91,"props":718,"children":719},{"style":98},[720],{"type":43,"value":106},{"type":37,"tag":91,"props":722,"children":723},{"style":129},[724],{"type":43,"value":725},"A cinematic instrumental track inspired by stormy weather and dramatic tension.",{"type":37,"tag":91,"props":727,"children":728},{"style":98},[729],{"type":43,"value":730},"\"\n",{"type":37,"tag":91,"props":732,"children":733},{"class":93,"line":303},[734],{"type":37,"tag":91,"props":735,"children":736},{"style":98},[737],{"type":43,"value":563},{"type":37,"tag":46,"props":739,"children":740},{},[741,746,748,753,755,761],{"type":37,"tag":611,"props":742,"children":743},{},[744],{"type":43,"value":745},"Pattern",{"type":43,"value":747}," — when ",{"type":37,"tag":66,"props":749,"children":751},{"className":750},[],[752],{"type":43,"value":607},{"type":43,"value":754}," is present, retry once with ",{"type":37,"tag":66,"props":756,"children":758},{"className":757},[],[759],{"type":43,"value":760},"prompt = suggested_prompt",{"type":43,"value":762}," if the user consents.",{"type":37,"tag":59,"props":764,"children":766},{"id":765},"_4-x402inferencepaymentrequired-402-on-x402-inference-calls",[767,769,775],{"type":43,"value":768},"4. ",{"type":37,"tag":66,"props":770,"children":772},{"className":771},[],[773],{"type":43,"value":774},"X402InferencePaymentRequired",{"type":43,"value":776}," — 402 on x402 inference calls",{"type":37,"tag":46,"props":778,"children":779},{},[780,782,787,789,795],{"type":43,"value":781},"Returned only when the caller authenticated with ",{"type":37,"tag":611,"props":783,"children":784},{},[785],{"type":43,"value":786},"SIWX",{"type":43,"value":788}," and has insufficient credit. Discriminated by ",{"type":37,"tag":66,"props":790,"children":792},{"className":791},[],[793],{"type":43,"value":794},"code: \"PAYMENT_REQUIRED\"",{"type":43,"value":647},{"type":37,"tag":80,"props":797,"children":799},{"className":82,"code":798,"language":84,"meta":85,"style":85},"{\n  \"error\": \"Payment required\",\n  \"code\": \"PAYMENT_REQUIRED\",\n  \"message\": \"Insufficient x402 balance\",\n  \"suggestedTopUpUsd\": 10,\n  \"minimumTopUpUsd\": 5,\n  \"supportedTokens\": [\"USDC\"],\n  \"supportedChains\": [\"base\", \"solana\"],\n  \"topUpInstructions\": {\n    \"step1\": \"POST \u002Fapi\u002Fv1\u002Fx402\u002Ftop-up with no payment header to get payment requirements\",\n    \"step2\": \"Choose a payment option from accepts and sign a USDC transfer authorization using the x402 SDK (createPaymentHeader)\",\n    \"step3\": \"POST \u002Fapi\u002Fv1\u002Fx402\u002Ftop-up with the signed X-402-Payment header\",\n    \"receiverWallet\": \"\u003CRECEIVER_WALLET_ADDRESS>\",\n    \"tokenAddress\": \"\u003CUSDC_TOKEN_ADDRESS>\",\n    \"tokenDecimals\": 6,\n    \"network\": \"eip155:8453\",\n    \"minimumAmountUsd\": 5\n  },\n  \"siwxChallenge\": { ... SIWX template + supportedChains ... }\n}\n",[800],{"type":37,"tag":66,"props":801,"children":802},{"__ignoreMap":85},[803,810,846,882,918,947,976,1018,1076,1100,1137,1175,1213,1251,1289,1318,1356,1382,1390,1425],{"type":37,"tag":91,"props":804,"children":805},{"class":93,"line":94},[806],{"type":37,"tag":91,"props":807,"children":808},{"style":98},[809],{"type":43,"value":236},{"type":37,"tag":91,"props":811,"children":812},{"class":93,"line":239},[813,817,821,825,829,833,838,842],{"type":37,"tag":91,"props":814,"children":815},{"style":98},[816],{"type":43,"value":245},{"type":37,"tag":91,"props":818,"children":819},{"style":109},[820],{"type":43,"value":112},{"type":37,"tag":91,"props":822,"children":823},{"style":98},[824],{"type":43,"value":117},{"type":37,"tag":91,"props":826,"children":827},{"style":98},[828],{"type":43,"value":122},{"type":37,"tag":91,"props":830,"children":831},{"style":98},[832],{"type":43,"value":106},{"type":37,"tag":91,"props":834,"children":835},{"style":129},[836],{"type":43,"value":837},"Payment required",{"type":37,"tag":91,"props":839,"children":840},{"style":98},[841],{"type":43,"value":117},{"type":37,"tag":91,"props":843,"children":844},{"style":98},[845],{"type":43,"value":275},{"type":37,"tag":91,"props":847,"children":848},{"class":93,"line":278},[849,853,857,861,865,869,874,878],{"type":37,"tag":91,"props":850,"children":851},{"style":98},[852],{"type":43,"value":245},{"type":37,"tag":91,"props":854,"children":855},{"style":109},[856],{"type":43,"value":66},{"type":37,"tag":91,"props":858,"children":859},{"style":98},[860],{"type":43,"value":117},{"type":37,"tag":91,"props":862,"children":863},{"style":98},[864],{"type":43,"value":122},{"type":37,"tag":91,"props":866,"children":867},{"style":98},[868],{"type":43,"value":106},{"type":37,"tag":91,"props":870,"children":871},{"style":129},[872],{"type":43,"value":873},"PAYMENT_REQUIRED",{"type":37,"tag":91,"props":875,"children":876},{"style":98},[877],{"type":43,"value":117},{"type":37,"tag":91,"props":879,"children":880},{"style":98},[881],{"type":43,"value":275},{"type":37,"tag":91,"props":883,"children":884},{"class":93,"line":303},[885,889,893,897,901,905,910,914],{"type":37,"tag":91,"props":886,"children":887},{"style":98},[888],{"type":43,"value":245},{"type":37,"tag":91,"props":890,"children":891},{"style":109},[892],{"type":43,"value":521},{"type":37,"tag":91,"props":894,"children":895},{"style":98},[896],{"type":43,"value":117},{"type":37,"tag":91,"props":898,"children":899},{"style":98},[900],{"type":43,"value":122},{"type":37,"tag":91,"props":902,"children":903},{"style":98},[904],{"type":43,"value":106},{"type":37,"tag":91,"props":906,"children":907},{"style":129},[908],{"type":43,"value":909},"Insufficient x402 balance",{"type":37,"tag":91,"props":911,"children":912},{"style":98},[913],{"type":43,"value":117},{"type":37,"tag":91,"props":915,"children":916},{"style":98},[917],{"type":43,"value":275},{"type":37,"tag":91,"props":919,"children":920},{"class":93,"line":330},[921,925,930,934,938,943],{"type":37,"tag":91,"props":922,"children":923},{"style":98},[924],{"type":43,"value":245},{"type":37,"tag":91,"props":926,"children":927},{"style":109},[928],{"type":43,"value":929},"suggestedTopUpUsd",{"type":37,"tag":91,"props":931,"children":932},{"style":98},[933],{"type":43,"value":117},{"type":37,"tag":91,"props":935,"children":936},{"style":98},[937],{"type":43,"value":122},{"type":37,"tag":91,"props":939,"children":940},{"style":360},[941],{"type":43,"value":942}," 10",{"type":37,"tag":91,"props":944,"children":945},{"style":98},[946],{"type":43,"value":275},{"type":37,"tag":91,"props":948,"children":949},{"class":93,"line":400},[950,954,959,963,967,972],{"type":37,"tag":91,"props":951,"children":952},{"style":98},[953],{"type":43,"value":245},{"type":37,"tag":91,"props":955,"children":956},{"style":109},[957],{"type":43,"value":958},"minimumTopUpUsd",{"type":37,"tag":91,"props":960,"children":961},{"style":98},[962],{"type":43,"value":117},{"type":37,"tag":91,"props":964,"children":965},{"style":98},[966],{"type":43,"value":122},{"type":37,"tag":91,"props":968,"children":969},{"style":360},[970],{"type":43,"value":971}," 5",{"type":37,"tag":91,"props":973,"children":974},{"style":98},[975],{"type":43,"value":275},{"type":37,"tag":91,"props":977,"children":978},{"class":93,"line":409},[979,983,988,992,996,1000,1004,1009,1013],{"type":37,"tag":91,"props":980,"children":981},{"style":98},[982],{"type":43,"value":245},{"type":37,"tag":91,"props":984,"children":985},{"style":109},[986],{"type":43,"value":987},"supportedTokens",{"type":37,"tag":91,"props":989,"children":990},{"style":98},[991],{"type":43,"value":117},{"type":37,"tag":91,"props":993,"children":994},{"style":98},[995],{"type":43,"value":122},{"type":37,"tag":91,"props":997,"children":998},{"style":98},[999],{"type":43,"value":375},{"type":37,"tag":91,"props":1001,"children":1002},{"style":98},[1003],{"type":43,"value":117},{"type":37,"tag":91,"props":1005,"children":1006},{"style":129},[1007],{"type":43,"value":1008},"USDC",{"type":37,"tag":91,"props":1010,"children":1011},{"style":98},[1012],{"type":43,"value":117},{"type":37,"tag":91,"props":1014,"children":1015},{"style":98},[1016],{"type":43,"value":1017},"],\n",{"type":37,"tag":91,"props":1019,"children":1020},{"class":93,"line":434},[1021,1025,1030,1034,1038,1042,1046,1051,1055,1059,1063,1068,1072],{"type":37,"tag":91,"props":1022,"children":1023},{"style":98},[1024],{"type":43,"value":245},{"type":37,"tag":91,"props":1026,"children":1027},{"style":109},[1028],{"type":43,"value":1029},"supportedChains",{"type":37,"tag":91,"props":1031,"children":1032},{"style":98},[1033],{"type":43,"value":117},{"type":37,"tag":91,"props":1035,"children":1036},{"style":98},[1037],{"type":43,"value":122},{"type":37,"tag":91,"props":1039,"children":1040},{"style":98},[1041],{"type":43,"value":375},{"type":37,"tag":91,"props":1043,"children":1044},{"style":98},[1045],{"type":43,"value":117},{"type":37,"tag":91,"props":1047,"children":1048},{"style":129},[1049],{"type":43,"value":1050},"base",{"type":37,"tag":91,"props":1052,"children":1053},{"style":98},[1054],{"type":43,"value":117},{"type":37,"tag":91,"props":1056,"children":1057},{"style":98},[1058],{"type":43,"value":474},{"type":37,"tag":91,"props":1060,"children":1061},{"style":98},[1062],{"type":43,"value":106},{"type":37,"tag":91,"props":1064,"children":1065},{"style":129},[1066],{"type":43,"value":1067},"solana",{"type":37,"tag":91,"props":1069,"children":1070},{"style":98},[1071],{"type":43,"value":117},{"type":37,"tag":91,"props":1073,"children":1074},{"style":98},[1075],{"type":43,"value":1017},{"type":37,"tag":91,"props":1077,"children":1078},{"class":93,"line":548},[1079,1083,1088,1092,1096],{"type":37,"tag":91,"props":1080,"children":1081},{"style":98},[1082],{"type":43,"value":245},{"type":37,"tag":91,"props":1084,"children":1085},{"style":109},[1086],{"type":43,"value":1087},"topUpInstructions",{"type":37,"tag":91,"props":1089,"children":1090},{"style":98},[1091],{"type":43,"value":117},{"type":37,"tag":91,"props":1093,"children":1094},{"style":98},[1095],{"type":43,"value":122},{"type":37,"tag":91,"props":1097,"children":1098},{"style":98},[1099],{"type":43,"value":300},{"type":37,"tag":91,"props":1101,"children":1102},{"class":93,"line":557},[1103,1107,1112,1116,1120,1124,1129,1133],{"type":37,"tag":91,"props":1104,"children":1105},{"style":98},[1106],{"type":43,"value":309},{"type":37,"tag":91,"props":1108,"children":1109},{"style":312},[1110],{"type":43,"value":1111},"step1",{"type":37,"tag":91,"props":1113,"children":1114},{"style":98},[1115],{"type":43,"value":117},{"type":37,"tag":91,"props":1117,"children":1118},{"style":98},[1119],{"type":43,"value":122},{"type":37,"tag":91,"props":1121,"children":1122},{"style":98},[1123],{"type":43,"value":106},{"type":37,"tag":91,"props":1125,"children":1126},{"style":129},[1127],{"type":43,"value":1128},"POST \u002Fapi\u002Fv1\u002Fx402\u002Ftop-up with no payment header to get payment requirements",{"type":37,"tag":91,"props":1130,"children":1131},{"style":98},[1132],{"type":43,"value":117},{"type":37,"tag":91,"props":1134,"children":1135},{"style":98},[1136],{"type":43,"value":275},{"type":37,"tag":91,"props":1138,"children":1140},{"class":93,"line":1139},11,[1141,1145,1150,1154,1158,1162,1167,1171],{"type":37,"tag":91,"props":1142,"children":1143},{"style":98},[1144],{"type":43,"value":309},{"type":37,"tag":91,"props":1146,"children":1147},{"style":312},[1148],{"type":43,"value":1149},"step2",{"type":37,"tag":91,"props":1151,"children":1152},{"style":98},[1153],{"type":43,"value":117},{"type":37,"tag":91,"props":1155,"children":1156},{"style":98},[1157],{"type":43,"value":122},{"type":37,"tag":91,"props":1159,"children":1160},{"style":98},[1161],{"type":43,"value":106},{"type":37,"tag":91,"props":1163,"children":1164},{"style":129},[1165],{"type":43,"value":1166},"Choose a payment option from accepts and sign a USDC transfer authorization using the x402 SDK (createPaymentHeader)",{"type":37,"tag":91,"props":1168,"children":1169},{"style":98},[1170],{"type":43,"value":117},{"type":37,"tag":91,"props":1172,"children":1173},{"style":98},[1174],{"type":43,"value":275},{"type":37,"tag":91,"props":1176,"children":1178},{"class":93,"line":1177},12,[1179,1183,1188,1192,1196,1200,1205,1209],{"type":37,"tag":91,"props":1180,"children":1181},{"style":98},[1182],{"type":43,"value":309},{"type":37,"tag":91,"props":1184,"children":1185},{"style":312},[1186],{"type":43,"value":1187},"step3",{"type":37,"tag":91,"props":1189,"children":1190},{"style":98},[1191],{"type":43,"value":117},{"type":37,"tag":91,"props":1193,"children":1194},{"style":98},[1195],{"type":43,"value":122},{"type":37,"tag":91,"props":1197,"children":1198},{"style":98},[1199],{"type":43,"value":106},{"type":37,"tag":91,"props":1201,"children":1202},{"style":129},[1203],{"type":43,"value":1204},"POST \u002Fapi\u002Fv1\u002Fx402\u002Ftop-up with the signed X-402-Payment header",{"type":37,"tag":91,"props":1206,"children":1207},{"style":98},[1208],{"type":43,"value":117},{"type":37,"tag":91,"props":1210,"children":1211},{"style":98},[1212],{"type":43,"value":275},{"type":37,"tag":91,"props":1214,"children":1216},{"class":93,"line":1215},13,[1217,1221,1226,1230,1234,1238,1243,1247],{"type":37,"tag":91,"props":1218,"children":1219},{"style":98},[1220],{"type":43,"value":309},{"type":37,"tag":91,"props":1222,"children":1223},{"style":312},[1224],{"type":43,"value":1225},"receiverWallet",{"type":37,"tag":91,"props":1227,"children":1228},{"style":98},[1229],{"type":43,"value":117},{"type":37,"tag":91,"props":1231,"children":1232},{"style":98},[1233],{"type":43,"value":122},{"type":37,"tag":91,"props":1235,"children":1236},{"style":98},[1237],{"type":43,"value":106},{"type":37,"tag":91,"props":1239,"children":1240},{"style":129},[1241],{"type":43,"value":1242},"\u003CRECEIVER_WALLET_ADDRESS>",{"type":37,"tag":91,"props":1244,"children":1245},{"style":98},[1246],{"type":43,"value":117},{"type":37,"tag":91,"props":1248,"children":1249},{"style":98},[1250],{"type":43,"value":275},{"type":37,"tag":91,"props":1252,"children":1254},{"class":93,"line":1253},14,[1255,1259,1264,1268,1272,1276,1281,1285],{"type":37,"tag":91,"props":1256,"children":1257},{"style":98},[1258],{"type":43,"value":309},{"type":37,"tag":91,"props":1260,"children":1261},{"style":312},[1262],{"type":43,"value":1263},"tokenAddress",{"type":37,"tag":91,"props":1265,"children":1266},{"style":98},[1267],{"type":43,"value":117},{"type":37,"tag":91,"props":1269,"children":1270},{"style":98},[1271],{"type":43,"value":122},{"type":37,"tag":91,"props":1273,"children":1274},{"style":98},[1275],{"type":43,"value":106},{"type":37,"tag":91,"props":1277,"children":1278},{"style":129},[1279],{"type":43,"value":1280},"\u003CUSDC_TOKEN_ADDRESS>",{"type":37,"tag":91,"props":1282,"children":1283},{"style":98},[1284],{"type":43,"value":117},{"type":37,"tag":91,"props":1286,"children":1287},{"style":98},[1288],{"type":43,"value":275},{"type":37,"tag":91,"props":1290,"children":1291},{"class":93,"line":24},[1292,1296,1301,1305,1309,1314],{"type":37,"tag":91,"props":1293,"children":1294},{"style":98},[1295],{"type":43,"value":309},{"type":37,"tag":91,"props":1297,"children":1298},{"style":312},[1299],{"type":43,"value":1300},"tokenDecimals",{"type":37,"tag":91,"props":1302,"children":1303},{"style":98},[1304],{"type":43,"value":117},{"type":37,"tag":91,"props":1306,"children":1307},{"style":98},[1308],{"type":43,"value":122},{"type":37,"tag":91,"props":1310,"children":1311},{"style":360},[1312],{"type":43,"value":1313}," 6",{"type":37,"tag":91,"props":1315,"children":1316},{"style":98},[1317],{"type":43,"value":275},{"type":37,"tag":91,"props":1319,"children":1321},{"class":93,"line":1320},16,[1322,1326,1331,1335,1339,1343,1348,1352],{"type":37,"tag":91,"props":1323,"children":1324},{"style":98},[1325],{"type":43,"value":309},{"type":37,"tag":91,"props":1327,"children":1328},{"style":312},[1329],{"type":43,"value":1330},"network",{"type":37,"tag":91,"props":1332,"children":1333},{"style":98},[1334],{"type":43,"value":117},{"type":37,"tag":91,"props":1336,"children":1337},{"style":98},[1338],{"type":43,"value":122},{"type":37,"tag":91,"props":1340,"children":1341},{"style":98},[1342],{"type":43,"value":106},{"type":37,"tag":91,"props":1344,"children":1345},{"style":129},[1346],{"type":43,"value":1347},"eip155:8453",{"type":37,"tag":91,"props":1349,"children":1350},{"style":98},[1351],{"type":43,"value":117},{"type":37,"tag":91,"props":1353,"children":1354},{"style":98},[1355],{"type":43,"value":275},{"type":37,"tag":91,"props":1357,"children":1359},{"class":93,"line":1358},17,[1360,1364,1369,1373,1377],{"type":37,"tag":91,"props":1361,"children":1362},{"style":98},[1363],{"type":43,"value":309},{"type":37,"tag":91,"props":1365,"children":1366},{"style":312},[1367],{"type":43,"value":1368},"minimumAmountUsd",{"type":37,"tag":91,"props":1370,"children":1371},{"style":98},[1372],{"type":43,"value":117},{"type":37,"tag":91,"props":1374,"children":1375},{"style":98},[1376],{"type":43,"value":122},{"type":37,"tag":91,"props":1378,"children":1379},{"style":360},[1380],{"type":43,"value":1381}," 5\n",{"type":37,"tag":91,"props":1383,"children":1385},{"class":93,"line":1384},18,[1386],{"type":37,"tag":91,"props":1387,"children":1388},{"style":98},[1389],{"type":43,"value":406},{"type":37,"tag":91,"props":1391,"children":1393},{"class":93,"line":1392},19,[1394,1398,1403,1407,1411,1415,1421],{"type":37,"tag":91,"props":1395,"children":1396},{"style":98},[1397],{"type":43,"value":245},{"type":37,"tag":91,"props":1399,"children":1400},{"style":109},[1401],{"type":43,"value":1402},"siwxChallenge",{"type":37,"tag":91,"props":1404,"children":1405},{"style":98},[1406],{"type":43,"value":117},{"type":37,"tag":91,"props":1408,"children":1409},{"style":98},[1410],{"type":43,"value":122},{"type":37,"tag":91,"props":1412,"children":1413},{"style":98},[1414],{"type":43,"value":353},{"type":37,"tag":91,"props":1416,"children":1418},{"style":1417},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[1419],{"type":43,"value":1420}," ... SIWX template + supportedChains ... ",{"type":37,"tag":91,"props":1422,"children":1423},{"style":98},[1424],{"type":43,"value":563},{"type":37,"tag":91,"props":1426,"children":1428},{"class":93,"line":1427},20,[1429],{"type":37,"tag":91,"props":1430,"children":1431},{"style":98},[1432],{"type":43,"value":563},{"type":37,"tag":46,"props":1434,"children":1435},{},[1436,1441,1443,1448,1450,1456,1458,1464],{"type":37,"tag":66,"props":1437,"children":1439},{"className":1438},[],[1440],{"type":43,"value":1087},{"type":43,"value":1442}," describes the Base rail only, even when ",{"type":37,"tag":66,"props":1444,"children":1446},{"className":1445},[],[1447],{"type":43,"value":1029},{"type":43,"value":1449},"\nincludes Solana. Read ",{"type":37,"tag":66,"props":1451,"children":1453},{"className":1452},[],[1454],{"type":43,"value":1455},"accepts[]",{"type":43,"value":1457}," from ",{"type":37,"tag":66,"props":1459,"children":1461},{"className":1460},[],[1462],{"type":43,"value":1463},"POST \u002Fx402\u002Ftop-up",{"type":43,"value":1465}," to pay on Solana.",{"type":37,"tag":46,"props":1467,"children":1468},{},[1469,1471,1477,1479,1485,1487,1492,1494,1500,1501,1506,1507,1513,1514,1519,1521,1527,1529,1534,1536,1547],{"type":43,"value":1470},"The ",{"type":37,"tag":66,"props":1472,"children":1474},{"className":1473},[],[1475],{"type":43,"value":1476},"PAYMENT-REQUIRED",{"type":43,"value":1478}," response header carries a base64-encoded x402 v2 ",{"type":37,"tag":66,"props":1480,"children":1482},{"className":1481},[],[1483],{"type":43,"value":1484},"paymentRequired",{"type":43,"value":1486}," ",{"type":37,"tag":611,"props":1488,"children":1489},{},[1490],{"type":43,"value":1491},"object",{"type":43,"value":1493}," (",{"type":37,"tag":66,"props":1495,"children":1497},{"className":1496},[],[1498],{"type":43,"value":1499},"x402Version",{"type":43,"value":625},{"type":37,"tag":66,"props":1502,"children":1504},{"className":1503},[],[1505],{"type":43,"value":112},{"type":43,"value":625},{"type":37,"tag":66,"props":1508,"children":1510},{"className":1509},[],[1511],{"type":43,"value":1512},"resource",{"type":43,"value":625},{"type":37,"tag":66,"props":1515,"children":1517},{"className":1516},[],[1518],{"type":43,"value":1455},{"type":43,"value":1520},", optional ",{"type":37,"tag":66,"props":1522,"children":1524},{"className":1523},[],[1525],{"type":43,"value":1526},"extensions",{"type":43,"value":1528},") — it is ",{"type":37,"tag":611,"props":1530,"children":1531},{},[1532],{"type":43,"value":1533},"not",{"type":43,"value":1535}," the same JSON as the body. Protocol-level clients parse the header; human-facing clients parse the richer body. See ",{"type":37,"tag":1537,"props":1538,"children":1540},"a",{"href":1539},"..\u002Fvenice-x402\u002FSKILL.md",[1541],{"type":37,"tag":66,"props":1542,"children":1544},{"className":1543},[],[1545],{"type":43,"value":1546},"venice-x402",{"type":43,"value":647},{"type":37,"tag":52,"props":1549,"children":1551},{"id":1550},"status-code-map",[1552],{"type":43,"value":1553},"Status code map",{"type":37,"tag":1555,"props":1556,"children":1557},"table",{},[1558,1587],{"type":37,"tag":1559,"props":1560,"children":1561},"thead",{},[1562],{"type":37,"tag":1563,"props":1564,"children":1565},"tr",{},[1566,1572,1577,1582],{"type":37,"tag":1567,"props":1568,"children":1569},"th",{},[1570],{"type":43,"value":1571},"Status",{"type":37,"tag":1567,"props":1573,"children":1574},{},[1575],{"type":43,"value":1576},"Body",{"type":37,"tag":1567,"props":1578,"children":1579},{},[1580],{"type":43,"value":1581},"Meaning",{"type":37,"tag":1567,"props":1583,"children":1584},{},[1585],{"type":43,"value":1586},"What to do",{"type":37,"tag":1588,"props":1589,"children":1590},"tbody",{},[1591,1634,1668,1731,1765,1807,1854,1900,1930,1960],{"type":37,"tag":1563,"props":1592,"children":1593},{},[1594,1604,1612,1624],{"type":37,"tag":1595,"props":1596,"children":1597},"td",{},[1598],{"type":37,"tag":66,"props":1599,"children":1601},{"className":1600},[],[1602],{"type":43,"value":1603},"400 Bad Request",{"type":37,"tag":1595,"props":1605,"children":1606},{},[1607],{"type":37,"tag":66,"props":1608,"children":1610},{"className":1609},[],[1611],{"type":43,"value":153},{"type":37,"tag":1595,"props":1613,"children":1614},{},[1615,1617,1622],{"type":43,"value":1616},"Malformed input. Zod ",{"type":37,"tag":66,"props":1618,"children":1620},{"className":1619},[],[1621],{"type":43,"value":174},{"type":43,"value":1623}," identifies the field.",{"type":37,"tag":1595,"props":1625,"children":1626},{},[1627,1629],{"type":43,"value":1628},"Fix and re-send. ",{"type":37,"tag":611,"props":1630,"children":1631},{},[1632],{"type":43,"value":1633},"Don't retry.",{"type":37,"tag":1563,"props":1635,"children":1636},{},[1637,1646,1654,1659],{"type":37,"tag":1595,"props":1638,"children":1639},{},[1640],{"type":37,"tag":66,"props":1641,"children":1643},{"className":1642},[],[1644],{"type":43,"value":1645},"401 Unauthorized",{"type":37,"tag":1595,"props":1647,"children":1648},{},[1649],{"type":37,"tag":66,"props":1650,"children":1652},{"className":1651},[],[1653],{"type":43,"value":71},{"type":37,"tag":1595,"props":1655,"children":1656},{},[1657],{"type":43,"value":1658},"Missing \u002F invalid Bearer API key or SIWE.",{"type":37,"tag":1595,"props":1660,"children":1661},{},[1662,1664],{"type":43,"value":1663},"Rotate credentials. ",{"type":37,"tag":611,"props":1665,"children":1666},{},[1667],{"type":43,"value":1633},{"type":37,"tag":1563,"props":1669,"children":1670},{},[1671,1680,1721,1726],{"type":37,"tag":1595,"props":1672,"children":1673},{},[1674],{"type":37,"tag":66,"props":1675,"children":1677},{"className":1676},[],[1678],{"type":43,"value":1679},"402 Payment Required",{"type":37,"tag":1595,"props":1681,"children":1682},{},[1683,1685,1690,1692,1698,1700,1705,1707,1712,1714,1719],{"type":43,"value":1684},"Bearer: ",{"type":37,"tag":66,"props":1686,"children":1688},{"className":1687},[],[1689],{"type":43,"value":71},{"type":43,"value":1691}," with the configured message (e.g. ",{"type":37,"tag":66,"props":1693,"children":1695},{"className":1694},[],[1696],{"type":43,"value":1697},"{ \"error\": \"Insufficient balance\" }",{"type":43,"value":1699}," — the handler's default path does not attach a ",{"type":37,"tag":66,"props":1701,"children":1703},{"className":1702},[],[1704],{"type":43,"value":66},{"type":43,"value":1706}," field). SIWE: ",{"type":37,"tag":66,"props":1708,"children":1710},{"className":1709},[],[1711],{"type":43,"value":774},{"type":43,"value":1713}," + ",{"type":37,"tag":66,"props":1715,"children":1717},{"className":1716},[],[1718],{"type":43,"value":1476},{"type":43,"value":1720}," header.",{"type":37,"tag":1595,"props":1722,"children":1723},{},[1724],{"type":43,"value":1725},"Out of DIEM\u002FUSD\u002Fwallet credit.",{"type":37,"tag":1595,"props":1727,"children":1728},{},[1729],{"type":43,"value":1730},"Bearer: top up at venice.ai. SIWE: run the x402 top-up flow.",{"type":37,"tag":1563,"props":1732,"children":1733},{},[1734,1743,1751,1756],{"type":37,"tag":1595,"props":1735,"children":1736},{},[1737],{"type":37,"tag":66,"props":1738,"children":1740},{"className":1739},[],[1741],{"type":43,"value":1742},"403 Forbidden",{"type":37,"tag":1595,"props":1744,"children":1745},{},[1746],{"type":37,"tag":66,"props":1747,"children":1749},{"className":1748},[],[1750],{"type":43,"value":71},{"type":37,"tag":1595,"props":1752,"children":1753},{},[1754],{"type":43,"value":1755},"Valid auth but not entitled. Typical: trial-limited endpoint, beta model, API-key consumption cap hit, SIWE signer ≠ path wallet.",{"type":37,"tag":1595,"props":1757,"children":1758},{},[1759,1763],{"type":37,"tag":611,"props":1760,"children":1761},{},[1762],{"type":43,"value":1633},{"type":43,"value":1764}," Investigate entitlements.",{"type":37,"tag":1563,"props":1766,"children":1767},{},[1768,1777,1785,1798],{"type":37,"tag":1595,"props":1769,"children":1770},{},[1771],{"type":37,"tag":66,"props":1772,"children":1774},{"className":1773},[],[1775],{"type":43,"value":1776},"415 Unsupported Media Type",{"type":37,"tag":1595,"props":1778,"children":1779},{},[1780],{"type":37,"tag":66,"props":1781,"children":1783},{"className":1782},[],[1784],{"type":43,"value":71},{"type":37,"tag":1595,"props":1786,"children":1787},{},[1788,1790,1796],{"type":43,"value":1789},"Wrong ",{"type":37,"tag":66,"props":1791,"children":1793},{"className":1792},[],[1794],{"type":43,"value":1795},"Content-Type",{"type":43,"value":1797}," (e.g. JSON sent to a multipart endpoint, or vice versa).",{"type":37,"tag":1595,"props":1799,"children":1800},{},[1801,1803],{"type":43,"value":1802},"Fix headers. ",{"type":37,"tag":611,"props":1804,"children":1805},{},[1806],{"type":43,"value":1633},{"type":37,"tag":1563,"props":1808,"children":1809},{},[1810,1819,1837,1842],{"type":37,"tag":1595,"props":1811,"children":1812},{},[1813],{"type":37,"tag":66,"props":1814,"children":1816},{"className":1815},[],[1817],{"type":43,"value":1818},"422 Unprocessable Entity",{"type":37,"tag":1595,"props":1820,"children":1821},{},[1822,1827,1829,1835],{"type":37,"tag":66,"props":1823,"children":1825},{"className":1824},[],[1826],{"type":43,"value":594},{"type":43,"value":1828}," on image\u002Faudio\u002Fvideo generation; plain ",{"type":37,"tag":66,"props":1830,"children":1832},{"className":1831},[],[1833],{"type":43,"value":1834},"{ error }",{"type":43,"value":1836}," on other routes (e.g. ASR validation errors).",{"type":37,"tag":1595,"props":1838,"children":1839},{},[1840],{"type":43,"value":1841},"Content policy violation on generation paths; schema-ish validation on others.",{"type":37,"tag":1595,"props":1843,"children":1844},{},[1845,1847,1852],{"type":43,"value":1846},"On audio generation, optionally retry once with ",{"type":37,"tag":66,"props":1848,"children":1850},{"className":1849},[],[1851],{"type":43,"value":607},{"type":43,"value":1853},". On others, fix input.",{"type":37,"tag":1563,"props":1855,"children":1856},{},[1857,1866,1874,1887],{"type":37,"tag":1595,"props":1858,"children":1859},{},[1860],{"type":37,"tag":66,"props":1861,"children":1863},{"className":1862},[],[1864],{"type":43,"value":1865},"429 Too Many Requests",{"type":37,"tag":1595,"props":1867,"children":1868},{},[1869],{"type":37,"tag":66,"props":1870,"children":1872},{"className":1871},[],[1873],{"type":43,"value":71},{"type":37,"tag":1595,"props":1875,"children":1876},{},[1877,1879,1885],{"type":43,"value":1878},"Rate limit cap tripped. Also returned by ",{"type":37,"tag":66,"props":1880,"children":1882},{"className":1881},[],[1883],{"type":43,"value":1884},"\u002Fcrypto\u002Frpc\u002F{network}",{"type":43,"value":1886}," when credit-per-day or concurrency cap tripped.",{"type":37,"tag":1595,"props":1888,"children":1889},{},[1890,1892,1898],{"type":43,"value":1891},"Honor ",{"type":37,"tag":66,"props":1893,"children":1895},{"className":1894},[],[1896],{"type":43,"value":1897},"X-RateLimit-*",{"type":43,"value":1899}," headers, back off with jitter.",{"type":37,"tag":1563,"props":1901,"children":1902},{},[1903,1912,1920,1925],{"type":37,"tag":1595,"props":1904,"children":1905},{},[1906],{"type":37,"tag":66,"props":1907,"children":1909},{"className":1908},[],[1910],{"type":43,"value":1911},"500 Internal Server Error",{"type":37,"tag":1595,"props":1913,"children":1914},{},[1915],{"type":37,"tag":66,"props":1916,"children":1918},{"className":1917},[],[1919],{"type":43,"value":71},{"type":37,"tag":1595,"props":1921,"children":1922},{},[1923],{"type":43,"value":1924},"Unexpected failure.",{"type":37,"tag":1595,"props":1926,"children":1927},{},[1928],{"type":43,"value":1929},"Retry with exponential backoff + idempotency key where supported.",{"type":37,"tag":1563,"props":1931,"children":1932},{},[1933,1942,1950,1955],{"type":37,"tag":1595,"props":1934,"children":1935},{},[1936],{"type":37,"tag":66,"props":1937,"children":1939},{"className":1938},[],[1940],{"type":43,"value":1941},"503 Service Unavailable",{"type":37,"tag":1595,"props":1943,"children":1944},{},[1945],{"type":37,"tag":66,"props":1946,"children":1948},{"className":1947},[],[1949],{"type":43,"value":71},{"type":37,"tag":1595,"props":1951,"children":1952},{},[1953],{"type":43,"value":1954},"Upstream model \u002F service temporarily down.",{"type":37,"tag":1595,"props":1956,"children":1957},{},[1958],{"type":43,"value":1959},"Retry with backoff. Consider a fallback model.",{"type":37,"tag":1563,"props":1961,"children":1962},{},[1963,1972,1980,1993],{"type":37,"tag":1595,"props":1964,"children":1965},{},[1966],{"type":37,"tag":66,"props":1967,"children":1969},{"className":1968},[],[1970],{"type":43,"value":1971},"504 Gateway Timeout",{"type":37,"tag":1595,"props":1973,"children":1974},{},[1975],{"type":37,"tag":66,"props":1976,"children":1978},{"className":1977},[],[1979],{"type":43,"value":71},{"type":37,"tag":1595,"props":1981,"children":1982},{},[1983,1985,1991],{"type":43,"value":1984},"Upstream slow. Mostly on ",{"type":37,"tag":66,"props":1986,"children":1988},{"className":1987},[],[1989],{"type":43,"value":1990},"\u002Fchat\u002Fcompletions",{"type":43,"value":1992}," with huge contexts.",{"type":37,"tag":1595,"props":1994,"children":1995},{},[1996,1998,2004],{"type":43,"value":1997},"Switch to ",{"type":37,"tag":66,"props":1999,"children":2001},{"className":2000},[],[2002],{"type":43,"value":2003},"stream: true",{"type":43,"value":2005}," or shorter prompts.",{"type":37,"tag":52,"props":2007,"children":2009},{"id":2008},"rate-limit-headers-429",[2010,2012,2018],{"type":43,"value":2011},"Rate-limit headers (",{"type":37,"tag":66,"props":2013,"children":2015},{"className":2014},[],[2016],{"type":43,"value":2017},"429",{"type":43,"value":2019},")",{"type":37,"tag":46,"props":2021,"children":2022},{},[2023,2025,2030],{"type":43,"value":2024},"Emitted on ",{"type":37,"tag":66,"props":2026,"children":2028},{"className":2027},[],[2029],{"type":43,"value":1884},{"type":43,"value":122},{"type":37,"tag":1555,"props":2032,"children":2033},{},[2034,2049],{"type":37,"tag":1559,"props":2035,"children":2036},{},[2037],{"type":37,"tag":1563,"props":2038,"children":2039},{},[2040,2045],{"type":37,"tag":1567,"props":2041,"children":2042},{},[2043],{"type":43,"value":2044},"Header",{"type":37,"tag":1567,"props":2046,"children":2047},{},[2048],{"type":43,"value":1581},{"type":37,"tag":1588,"props":2050,"children":2051},{},[2052,2069,2086],{"type":37,"tag":1563,"props":2053,"children":2054},{},[2055,2064],{"type":37,"tag":1595,"props":2056,"children":2057},{},[2058],{"type":37,"tag":66,"props":2059,"children":2061},{"className":2060},[],[2062],{"type":43,"value":2063},"X-RateLimit-Limit",{"type":37,"tag":1595,"props":2065,"children":2066},{},[2067],{"type":43,"value":2068},"Per-minute request cap for your tier (paid = 100, staff = 1000 on crypto RPC).",{"type":37,"tag":1563,"props":2070,"children":2071},{},[2072,2081],{"type":37,"tag":1595,"props":2073,"children":2074},{},[2075],{"type":37,"tag":66,"props":2076,"children":2078},{"className":2077},[],[2079],{"type":43,"value":2080},"X-RateLimit-Remaining",{"type":37,"tag":1595,"props":2082,"children":2083},{},[2084],{"type":43,"value":2085},"Requests remaining in the current 60-second window.",{"type":37,"tag":1563,"props":2087,"children":2088},{},[2089,2098],{"type":37,"tag":1595,"props":2090,"children":2091},{},[2092],{"type":37,"tag":66,"props":2093,"children":2095},{"className":2094},[],[2096],{"type":43,"value":2097},"X-RateLimit-Reset",{"type":37,"tag":1595,"props":2099,"children":2100},{},[2101,2103,2108],{"type":43,"value":2102},"Unix timestamp in ",{"type":37,"tag":611,"props":2104,"children":2105},{},[2106],{"type":43,"value":2107},"seconds",{"type":43,"value":2109}," when the window resets.",{"type":37,"tag":46,"props":2111,"children":2112},{},[2113,2115,2121,2123,2129],{"type":43,"value":2114},"Additionally, ",{"type":37,"tag":66,"props":2116,"children":2118},{"className":2117},[],[2119],{"type":43,"value":2120},"LlmInferenceError",{"type":43,"value":2122}," model-overloaded conditions set a ",{"type":37,"tag":66,"props":2124,"children":2126},{"className":2125},[],[2127],{"type":43,"value":2128},"Retry-After",{"type":43,"value":2130}," header (seconds) on the 429 — honor it when present.",{"type":37,"tag":46,"props":2132,"children":2133},{},[2134,2136,2142,2144,2154,2156,2166],{"type":43,"value":2135},"Inference endpoints (chat, image, audio, video) use a per-API-key tier defined via ",{"type":37,"tag":66,"props":2137,"children":2139},{"className":2138},[],[2140],{"type":43,"value":2141},"\u002Fapi_keys\u002Frate_limits",{"type":43,"value":2143},". See ",{"type":37,"tag":1537,"props":2145,"children":2147},{"href":2146},"..\u002Fvenice-api-keys\u002FSKILL.md",[2148],{"type":37,"tag":66,"props":2149,"children":2151},{"className":2150},[],[2152],{"type":43,"value":2153},"venice-api-keys",{"type":43,"value":2155}," to pre-fetch your caps, and ",{"type":37,"tag":1537,"props":2157,"children":2159},{"href":2158},"..\u002Fvenice-billing\u002FSKILL.md",[2160],{"type":37,"tag":66,"props":2161,"children":2163},{"className":2162},[],[2164],{"type":43,"value":2165},"venice-billing",{"type":43,"value":2167}," for DIEM\u002FUSD usage.",{"type":37,"tag":52,"props":2169,"children":2171},{"id":2170},"response-headers-on-402-x402",[2172,2174,2180],{"type":43,"value":2173},"Response headers on ",{"type":37,"tag":66,"props":2175,"children":2177},{"className":2176},[],[2178],{"type":43,"value":2179},"402",{"type":43,"value":2181}," (x402)",{"type":37,"tag":1555,"props":2183,"children":2184},{},[2185,2200],{"type":37,"tag":1559,"props":2186,"children":2187},{},[2188],{"type":37,"tag":1563,"props":2189,"children":2190},{},[2191,2195],{"type":37,"tag":1567,"props":2192,"children":2193},{},[2194],{"type":43,"value":2044},{"type":37,"tag":1567,"props":2196,"children":2197},{},[2198],{"type":43,"value":2199},"Notes",{"type":37,"tag":1588,"props":2201,"children":2202},{},[2203],{"type":37,"tag":1563,"props":2204,"children":2205},{},[2206,2214],{"type":37,"tag":1595,"props":2207,"children":2208},{},[2209],{"type":37,"tag":66,"props":2210,"children":2212},{"className":2211},[],[2213],{"type":43,"value":1476},{"type":37,"tag":1595,"props":2215,"children":2216},{},[2217,2219,2224,2226,2231,2232,2237,2238,2243,2244,2249,2250,2256],{"type":43,"value":2218},"Base64-encoded JSON of the x402 v2 ",{"type":37,"tag":66,"props":2220,"children":2222},{"className":2221},[],[2223],{"type":43,"value":1484},{"type":43,"value":2225}," object (",{"type":37,"tag":66,"props":2227,"children":2229},{"className":2228},[],[2230],{"type":43,"value":1499},{"type":43,"value":625},{"type":37,"tag":66,"props":2233,"children":2235},{"className":2234},[],[2236],{"type":43,"value":112},{"type":43,"value":625},{"type":37,"tag":66,"props":2239,"children":2241},{"className":2240},[],[2242],{"type":43,"value":1512},{"type":43,"value":625},{"type":37,"tag":66,"props":2245,"children":2247},{"className":2246},[],[2248],{"type":43,"value":1455},{"type":43,"value":1520},{"type":37,"tag":66,"props":2251,"children":2253},{"className":2252},[],[2254],{"type":43,"value":2255},"extensions['sign-in-with-x']",{"type":43,"value":2257},"). Protocol-level discovery — parse even if you don't parse the JSON body.",{"type":37,"tag":52,"props":2259,"children":2261},{"id":2260},"retry-strategy",[2262],{"type":43,"value":2263},"Retry strategy",{"type":37,"tag":59,"props":2265,"children":2267},{"id":2266},"never-retry",[2268],{"type":43,"value":2269},"Never retry",{"type":37,"tag":2271,"props":2272,"children":2273},"ul",{},[2274,2285,2296,2307],{"type":37,"tag":2275,"props":2276,"children":2277},"li",{},[2278,2283],{"type":37,"tag":66,"props":2279,"children":2281},{"className":2280},[],[2282],{"type":43,"value":166},{"type":43,"value":2284}," — bad input. Fix the request.",{"type":37,"tag":2275,"props":2286,"children":2287},{},[2288,2294],{"type":37,"tag":66,"props":2289,"children":2291},{"className":2290},[],[2292],{"type":43,"value":2293},"401",{"type":43,"value":2295}," — bad auth. Fix credentials.",{"type":37,"tag":2275,"props":2297,"children":2298},{},[2299,2305],{"type":37,"tag":66,"props":2300,"children":2302},{"className":2301},[],[2303],{"type":43,"value":2304},"403",{"type":43,"value":2306}," — not entitled. Don't hammer.",{"type":37,"tag":2275,"props":2308,"children":2309},{},[2310,2316,2318,2323],{"type":37,"tag":66,"props":2311,"children":2313},{"className":2312},[],[2314],{"type":43,"value":2315},"415",{"type":43,"value":2317}," — wrong ",{"type":37,"tag":66,"props":2319,"children":2321},{"className":2320},[],[2322],{"type":43,"value":1795},{"type":43,"value":647},{"type":37,"tag":59,"props":2325,"children":2327},{"id":2326},"retry-with-modification",[2328],{"type":43,"value":2329},"Retry with modification",{"type":37,"tag":2271,"props":2331,"children":2332},{},[2333,2343,2353],{"type":37,"tag":2275,"props":2334,"children":2335},{},[2336,2341],{"type":37,"tag":66,"props":2337,"children":2339},{"className":2338},[],[2340],{"type":43,"value":2179},{"type":43,"value":2342}," (x402) — run top-up then retry.",{"type":37,"tag":2275,"props":2344,"children":2345},{},[2346,2351],{"type":37,"tag":66,"props":2347,"children":2349},{"className":2348},[],[2350],{"type":43,"value":2179},{"type":43,"value":2352}," (Bearer) — surface to user; top up at venice.ai.",{"type":37,"tag":2275,"props":2354,"children":2355},{},[2356,2362,2364,2369],{"type":37,"tag":66,"props":2357,"children":2359},{"className":2358},[],[2360],{"type":43,"value":2361},"422",{"type":43,"value":2363}," with ",{"type":37,"tag":66,"props":2365,"children":2367},{"className":2366},[],[2368],{"type":43,"value":607},{"type":43,"value":2370}," — one retry with the safer prompt.",{"type":37,"tag":59,"props":2372,"children":2374},{"id":2373},"retry-with-backoff",[2375],{"type":43,"value":2376},"Retry with backoff",{"type":37,"tag":2271,"props":2378,"children":2379},{},[2380,2398,2428],{"type":37,"tag":2275,"props":2381,"children":2382},{},[2383,2388,2390,2396],{"type":37,"tag":66,"props":2384,"children":2386},{"className":2385},[],[2387],{"type":43,"value":2017},{"type":43,"value":2389}," — back off for at least ",{"type":37,"tag":66,"props":2391,"children":2393},{"className":2392},[],[2394],{"type":43,"value":2395},"X-RateLimit-Reset - now()",{"type":43,"value":2397},". Add jitter.",{"type":37,"tag":2275,"props":2399,"children":2400},{},[2401,2407,2408,2414,2415,2421,2423],{"type":37,"tag":66,"props":2402,"children":2404},{"className":2403},[],[2405],{"type":43,"value":2406},"500",{"type":43,"value":575},{"type":37,"tag":66,"props":2409,"children":2411},{"className":2410},[],[2412],{"type":43,"value":2413},"503",{"type":43,"value":575},{"type":37,"tag":66,"props":2416,"children":2418},{"className":2417},[],[2419],{"type":43,"value":2420},"504",{"type":43,"value":2422}," — exponential backoff (e.g. 0.5s, 1s, 2s, 4s, 8s), capped at ~30s. ",{"type":37,"tag":611,"props":2424,"children":2425},{},[2426],{"type":43,"value":2427},"3–5 retries max.",{"type":37,"tag":2275,"props":2429,"children":2430},{},[2431,2433,2439,2441,2446],{"type":43,"value":2432},"Use ",{"type":37,"tag":66,"props":2434,"children":2436},{"className":2435},[],[2437],{"type":43,"value":2438},"Idempotency-Key",{"type":43,"value":2440}," (e.g. on ",{"type":37,"tag":66,"props":2442,"children":2444},{"className":2443},[],[2445],{"type":43,"value":1884},{"type":43,"value":2447},") so retries can't double-bill state-mutating calls.",{"type":37,"tag":59,"props":2449,"children":2451},{"id":2450},"reference-retry-loop",[2452],{"type":43,"value":2453},"Reference retry loop",{"type":37,"tag":80,"props":2455,"children":2459},{"className":2456,"code":2457,"language":2458,"meta":85,"style":85},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","async function callVenice\u003CT>(fn: () => Promise\u003CResponse>): Promise\u003CT> {\n  const maxRetries = 5\n  let delay = 500\n  for (let attempt = 0; attempt \u003C= maxRetries; attempt++) {\n    const res = await fn()\n    if (res.ok) return res.json() as Promise\u003CT>\n\n    const body = await res.clone().json().catch(() => ({}))\n    const { status } = res\n\n    if ([400, 401, 403, 415].includes(status)) {\n      throw Object.assign(new Error(body.error ?? 'Venice error'), { status, body })\n    }\n\n    if (status === 402 && body.code === 'PAYMENT_REQUIRED') {\n      await topUpX402(body.suggestedTopUpUsd)\n      continue\n    }\n\n    if (status === 422) {\n      throw Object.assign(new Error('Content policy'), { status, body })\n    }\n\n    if (status === 429) {\n      const retryAfterSec = Number(res.headers.get('retry-after'))\n      const resetSec = Number(res.headers.get('x-ratelimit-reset'))\n      const waitMs = !Number.isNaN(retryAfterSec) && retryAfterSec > 0\n        ? retryAfterSec * 1000\n        : !Number.isNaN(resetSec) && resetSec > 0\n          ? Math.max(resetSec * 1000 - Date.now(), delay)\n          : delay\n      await sleep(waitMs + Math.random() * 250)\n      delay *= 2\n      continue\n    }\n\n    if (status >= 500 && attempt \u003C maxRetries) {\n      await sleep(delay + Math.random() * 250)\n      delay *= 2\n      continue\n    }\n\n    throw Object.assign(new Error(body.error ?? 'Venice error'), { status, body })\n  }\n  throw new Error('Exceeded max retries')\n}\n","ts",[2460],{"type":37,"tag":66,"props":2461,"children":2462},{"__ignoreMap":85},[2463,2556,2578,2600,2673,2705,2779,2788,2874,2904,2911,2985,3091,3099,3106,3172,3205,3213,3220,3227,3259,3340,3348,3356,3389,3459,3525,3593,3616,3670,3745,3759,3817,3836,3844,3852,3860,3911,3964,3980,3988,3996,4004,4101,4110,4149],{"type":37,"tag":91,"props":2464,"children":2465},{"class":93,"line":94},[2466,2471,2476,2482,2487,2492,2497,2502,2506,2511,2516,2521,2525,2530,2535,2539,2543,2547,2552],{"type":37,"tag":91,"props":2467,"children":2468},{"style":109},[2469],{"type":43,"value":2470},"async",{"type":37,"tag":91,"props":2472,"children":2473},{"style":109},[2474],{"type":43,"value":2475}," function",{"type":37,"tag":91,"props":2477,"children":2479},{"style":2478},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[2480],{"type":43,"value":2481}," callVenice",{"type":37,"tag":91,"props":2483,"children":2484},{"style":98},[2485],{"type":43,"value":2486},"\u003C",{"type":37,"tag":91,"props":2488,"children":2489},{"style":312},[2490],{"type":43,"value":2491},"T",{"type":37,"tag":91,"props":2493,"children":2494},{"style":98},[2495],{"type":43,"value":2496},">(",{"type":37,"tag":91,"props":2498,"children":2499},{"style":2478},[2500],{"type":43,"value":2501},"fn",{"type":37,"tag":91,"props":2503,"children":2504},{"style":98},[2505],{"type":43,"value":122},{"type":37,"tag":91,"props":2507,"children":2508},{"style":98},[2509],{"type":43,"value":2510}," ()",{"type":37,"tag":91,"props":2512,"children":2513},{"style":109},[2514],{"type":43,"value":2515}," =>",{"type":37,"tag":91,"props":2517,"children":2518},{"style":312},[2519],{"type":43,"value":2520}," Promise",{"type":37,"tag":91,"props":2522,"children":2523},{"style":98},[2524],{"type":43,"value":2486},{"type":37,"tag":91,"props":2526,"children":2527},{"style":312},[2528],{"type":43,"value":2529},"Response",{"type":37,"tag":91,"props":2531,"children":2532},{"style":98},[2533],{"type":43,"value":2534},">):",{"type":37,"tag":91,"props":2536,"children":2537},{"style":312},[2538],{"type":43,"value":2520},{"type":37,"tag":91,"props":2540,"children":2541},{"style":98},[2542],{"type":43,"value":2486},{"type":37,"tag":91,"props":2544,"children":2545},{"style":312},[2546],{"type":43,"value":2491},{"type":37,"tag":91,"props":2548,"children":2549},{"style":98},[2550],{"type":43,"value":2551},">",{"type":37,"tag":91,"props":2553,"children":2554},{"style":98},[2555],{"type":43,"value":300},{"type":37,"tag":91,"props":2557,"children":2558},{"class":93,"line":239},[2559,2564,2569,2574],{"type":37,"tag":91,"props":2560,"children":2561},{"style":109},[2562],{"type":43,"value":2563},"  const",{"type":37,"tag":91,"props":2565,"children":2566},{"style":1417},[2567],{"type":43,"value":2568}," maxRetries",{"type":37,"tag":91,"props":2570,"children":2571},{"style":98},[2572],{"type":43,"value":2573}," =",{"type":37,"tag":91,"props":2575,"children":2576},{"style":360},[2577],{"type":43,"value":1381},{"type":37,"tag":91,"props":2579,"children":2580},{"class":93,"line":278},[2581,2586,2591,2595],{"type":37,"tag":91,"props":2582,"children":2583},{"style":109},[2584],{"type":43,"value":2585},"  let",{"type":37,"tag":91,"props":2587,"children":2588},{"style":1417},[2589],{"type":43,"value":2590}," delay",{"type":37,"tag":91,"props":2592,"children":2593},{"style":98},[2594],{"type":43,"value":2573},{"type":37,"tag":91,"props":2596,"children":2597},{"style":360},[2598],{"type":43,"value":2599}," 500\n",{"type":37,"tag":91,"props":2601,"children":2602},{"class":93,"line":303},[2603,2609,2614,2619,2624,2628,2633,2638,2642,2647,2651,2655,2659,2664,2669],{"type":37,"tag":91,"props":2604,"children":2606},{"style":2605},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[2607],{"type":43,"value":2608},"  for",{"type":37,"tag":91,"props":2610,"children":2612},{"style":2611},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[2613],{"type":43,"value":1493},{"type":37,"tag":91,"props":2615,"children":2616},{"style":109},[2617],{"type":43,"value":2618},"let",{"type":37,"tag":91,"props":2620,"children":2621},{"style":1417},[2622],{"type":43,"value":2623}," attempt",{"type":37,"tag":91,"props":2625,"children":2626},{"style":98},[2627],{"type":43,"value":2573},{"type":37,"tag":91,"props":2629,"children":2630},{"style":360},[2631],{"type":43,"value":2632}," 0",{"type":37,"tag":91,"props":2634,"children":2635},{"style":98},[2636],{"type":43,"value":2637},";",{"type":37,"tag":91,"props":2639,"children":2640},{"style":1417},[2641],{"type":43,"value":2623},{"type":37,"tag":91,"props":2643,"children":2644},{"style":98},[2645],{"type":43,"value":2646}," \u003C=",{"type":37,"tag":91,"props":2648,"children":2649},{"style":1417},[2650],{"type":43,"value":2568},{"type":37,"tag":91,"props":2652,"children":2653},{"style":98},[2654],{"type":43,"value":2637},{"type":37,"tag":91,"props":2656,"children":2657},{"style":1417},[2658],{"type":43,"value":2623},{"type":37,"tag":91,"props":2660,"children":2661},{"style":98},[2662],{"type":43,"value":2663},"++",{"type":37,"tag":91,"props":2665,"children":2666},{"style":2611},[2667],{"type":43,"value":2668},") ",{"type":37,"tag":91,"props":2670,"children":2671},{"style":98},[2672],{"type":43,"value":236},{"type":37,"tag":91,"props":2674,"children":2675},{"class":93,"line":330},[2676,2681,2686,2690,2695,2700],{"type":37,"tag":91,"props":2677,"children":2678},{"style":109},[2679],{"type":43,"value":2680},"    const",{"type":37,"tag":91,"props":2682,"children":2683},{"style":1417},[2684],{"type":43,"value":2685}," res",{"type":37,"tag":91,"props":2687,"children":2688},{"style":98},[2689],{"type":43,"value":2573},{"type":37,"tag":91,"props":2691,"children":2692},{"style":2605},[2693],{"type":43,"value":2694}," await",{"type":37,"tag":91,"props":2696,"children":2697},{"style":2478},[2698],{"type":43,"value":2699}," fn",{"type":37,"tag":91,"props":2701,"children":2702},{"style":2611},[2703],{"type":43,"value":2704},"()\n",{"type":37,"tag":91,"props":2706,"children":2707},{"class":93,"line":400},[2708,2713,2717,2722,2726,2731,2735,2740,2744,2748,2752,2757,2762,2766,2770,2774],{"type":37,"tag":91,"props":2709,"children":2710},{"style":2605},[2711],{"type":43,"value":2712},"    if",{"type":37,"tag":91,"props":2714,"children":2715},{"style":2611},[2716],{"type":43,"value":1493},{"type":37,"tag":91,"props":2718,"children":2719},{"style":1417},[2720],{"type":43,"value":2721},"res",{"type":37,"tag":91,"props":2723,"children":2724},{"style":98},[2725],{"type":43,"value":647},{"type":37,"tag":91,"props":2727,"children":2728},{"style":1417},[2729],{"type":43,"value":2730},"ok",{"type":37,"tag":91,"props":2732,"children":2733},{"style":2611},[2734],{"type":43,"value":2668},{"type":37,"tag":91,"props":2736,"children":2737},{"style":2605},[2738],{"type":43,"value":2739},"return",{"type":37,"tag":91,"props":2741,"children":2742},{"style":1417},[2743],{"type":43,"value":2685},{"type":37,"tag":91,"props":2745,"children":2746},{"style":98},[2747],{"type":43,"value":647},{"type":37,"tag":91,"props":2749,"children":2750},{"style":2478},[2751],{"type":43,"value":84},{"type":37,"tag":91,"props":2753,"children":2754},{"style":2611},[2755],{"type":43,"value":2756},"() ",{"type":37,"tag":91,"props":2758,"children":2759},{"style":2605},[2760],{"type":43,"value":2761},"as",{"type":37,"tag":91,"props":2763,"children":2764},{"style":312},[2765],{"type":43,"value":2520},{"type":37,"tag":91,"props":2767,"children":2768},{"style":98},[2769],{"type":43,"value":2486},{"type":37,"tag":91,"props":2771,"children":2772},{"style":312},[2773],{"type":43,"value":2491},{"type":37,"tag":91,"props":2775,"children":2776},{"style":98},[2777],{"type":43,"value":2778},">\n",{"type":37,"tag":91,"props":2780,"children":2781},{"class":93,"line":409},[2782],{"type":37,"tag":91,"props":2783,"children":2785},{"emptyLinePlaceholder":2784},true,[2786],{"type":43,"value":2787},"\n",{"type":37,"tag":91,"props":2789,"children":2790},{"class":93,"line":434},[2791,2795,2800,2804,2808,2812,2816,2821,2826,2830,2834,2838,2842,2847,2852,2856,2860,2864,2869],{"type":37,"tag":91,"props":2792,"children":2793},{"style":109},[2794],{"type":43,"value":2680},{"type":37,"tag":91,"props":2796,"children":2797},{"style":1417},[2798],{"type":43,"value":2799}," body",{"type":37,"tag":91,"props":2801,"children":2802},{"style":98},[2803],{"type":43,"value":2573},{"type":37,"tag":91,"props":2805,"children":2806},{"style":2605},[2807],{"type":43,"value":2694},{"type":37,"tag":91,"props":2809,"children":2810},{"style":1417},[2811],{"type":43,"value":2685},{"type":37,"tag":91,"props":2813,"children":2814},{"style":98},[2815],{"type":43,"value":647},{"type":37,"tag":91,"props":2817,"children":2818},{"style":2478},[2819],{"type":43,"value":2820},"clone",{"type":37,"tag":91,"props":2822,"children":2823},{"style":2611},[2824],{"type":43,"value":2825},"()",{"type":37,"tag":91,"props":2827,"children":2828},{"style":98},[2829],{"type":43,"value":647},{"type":37,"tag":91,"props":2831,"children":2832},{"style":2478},[2833],{"type":43,"value":84},{"type":37,"tag":91,"props":2835,"children":2836},{"style":2611},[2837],{"type":43,"value":2825},{"type":37,"tag":91,"props":2839,"children":2840},{"style":98},[2841],{"type":43,"value":647},{"type":37,"tag":91,"props":2843,"children":2844},{"style":2478},[2845],{"type":43,"value":2846},"catch",{"type":37,"tag":91,"props":2848,"children":2849},{"style":2611},[2850],{"type":43,"value":2851},"(",{"type":37,"tag":91,"props":2853,"children":2854},{"style":98},[2855],{"type":43,"value":2825},{"type":37,"tag":91,"props":2857,"children":2858},{"style":109},[2859],{"type":43,"value":2515},{"type":37,"tag":91,"props":2861,"children":2862},{"style":2611},[2863],{"type":43,"value":1493},{"type":37,"tag":91,"props":2865,"children":2866},{"style":98},[2867],{"type":43,"value":2868},"{}",{"type":37,"tag":91,"props":2870,"children":2871},{"style":2611},[2872],{"type":43,"value":2873},"))\n",{"type":37,"tag":91,"props":2875,"children":2876},{"class":93,"line":548},[2877,2881,2885,2890,2895,2899],{"type":37,"tag":91,"props":2878,"children":2879},{"style":109},[2880],{"type":43,"value":2680},{"type":37,"tag":91,"props":2882,"children":2883},{"style":98},[2884],{"type":43,"value":353},{"type":37,"tag":91,"props":2886,"children":2887},{"style":1417},[2888],{"type":43,"value":2889}," status",{"type":37,"tag":91,"props":2891,"children":2892},{"style":98},[2893],{"type":43,"value":2894}," }",{"type":37,"tag":91,"props":2896,"children":2897},{"style":98},[2898],{"type":43,"value":2573},{"type":37,"tag":91,"props":2900,"children":2901},{"style":1417},[2902],{"type":43,"value":2903}," res\n",{"type":37,"tag":91,"props":2905,"children":2906},{"class":93,"line":557},[2907],{"type":37,"tag":91,"props":2908,"children":2909},{"emptyLinePlaceholder":2784},[2910],{"type":43,"value":2787},{"type":37,"tag":91,"props":2912,"children":2913},{"class":93,"line":1139},[2914,2918,2923,2927,2931,2936,2940,2945,2949,2954,2958,2962,2967,2971,2976,2981],{"type":37,"tag":91,"props":2915,"children":2916},{"style":2605},[2917],{"type":43,"value":2712},{"type":37,"tag":91,"props":2919,"children":2920},{"style":2611},[2921],{"type":43,"value":2922}," ([",{"type":37,"tag":91,"props":2924,"children":2925},{"style":360},[2926],{"type":43,"value":166},{"type":37,"tag":91,"props":2928,"children":2929},{"style":98},[2930],{"type":43,"value":474},{"type":37,"tag":91,"props":2932,"children":2933},{"style":360},[2934],{"type":43,"value":2935}," 401",{"type":37,"tag":91,"props":2937,"children":2938},{"style":98},[2939],{"type":43,"value":474},{"type":37,"tag":91,"props":2941,"children":2942},{"style":360},[2943],{"type":43,"value":2944}," 403",{"type":37,"tag":91,"props":2946,"children":2947},{"style":98},[2948],{"type":43,"value":474},{"type":37,"tag":91,"props":2950,"children":2951},{"style":360},[2952],{"type":43,"value":2953}," 415",{"type":37,"tag":91,"props":2955,"children":2956},{"style":2611},[2957],{"type":43,"value":393},{"type":37,"tag":91,"props":2959,"children":2960},{"style":98},[2961],{"type":43,"value":647},{"type":37,"tag":91,"props":2963,"children":2964},{"style":2478},[2965],{"type":43,"value":2966},"includes",{"type":37,"tag":91,"props":2968,"children":2969},{"style":2611},[2970],{"type":43,"value":2851},{"type":37,"tag":91,"props":2972,"children":2973},{"style":1417},[2974],{"type":43,"value":2975},"status",{"type":37,"tag":91,"props":2977,"children":2978},{"style":2611},[2979],{"type":43,"value":2980},")) ",{"type":37,"tag":91,"props":2982,"children":2983},{"style":98},[2984],{"type":43,"value":236},{"type":37,"tag":91,"props":2986,"children":2987},{"class":93,"line":1177},[2988,2993,2998,3002,3007,3011,3016,3021,3025,3030,3034,3038,3043,3048,3053,3058,3062,3066,3070,3074,3078,3082,3086],{"type":37,"tag":91,"props":2989,"children":2990},{"style":2605},[2991],{"type":43,"value":2992},"      throw",{"type":37,"tag":91,"props":2994,"children":2995},{"style":1417},[2996],{"type":43,"value":2997}," Object",{"type":37,"tag":91,"props":2999,"children":3000},{"style":98},[3001],{"type":43,"value":647},{"type":37,"tag":91,"props":3003,"children":3004},{"style":2478},[3005],{"type":43,"value":3006},"assign",{"type":37,"tag":91,"props":3008,"children":3009},{"style":2611},[3010],{"type":43,"value":2851},{"type":37,"tag":91,"props":3012,"children":3013},{"style":98},[3014],{"type":43,"value":3015},"new",{"type":37,"tag":91,"props":3017,"children":3018},{"style":2478},[3019],{"type":43,"value":3020}," Error",{"type":37,"tag":91,"props":3022,"children":3023},{"style":2611},[3024],{"type":43,"value":2851},{"type":37,"tag":91,"props":3026,"children":3027},{"style":1417},[3028],{"type":43,"value":3029},"body",{"type":37,"tag":91,"props":3031,"children":3032},{"style":98},[3033],{"type":43,"value":647},{"type":37,"tag":91,"props":3035,"children":3036},{"style":1417},[3037],{"type":43,"value":112},{"type":37,"tag":91,"props":3039,"children":3040},{"style":98},[3041],{"type":43,"value":3042}," ??",{"type":37,"tag":91,"props":3044,"children":3045},{"style":98},[3046],{"type":43,"value":3047}," '",{"type":37,"tag":91,"props":3049,"children":3050},{"style":129},[3051],{"type":43,"value":3052},"Venice error",{"type":37,"tag":91,"props":3054,"children":3055},{"style":98},[3056],{"type":43,"value":3057},"'",{"type":37,"tag":91,"props":3059,"children":3060},{"style":2611},[3061],{"type":43,"value":2019},{"type":37,"tag":91,"props":3063,"children":3064},{"style":98},[3065],{"type":43,"value":474},{"type":37,"tag":91,"props":3067,"children":3068},{"style":98},[3069],{"type":43,"value":353},{"type":37,"tag":91,"props":3071,"children":3072},{"style":1417},[3073],{"type":43,"value":2889},{"type":37,"tag":91,"props":3075,"children":3076},{"style":98},[3077],{"type":43,"value":474},{"type":37,"tag":91,"props":3079,"children":3080},{"style":1417},[3081],{"type":43,"value":2799},{"type":37,"tag":91,"props":3083,"children":3084},{"style":98},[3085],{"type":43,"value":2894},{"type":37,"tag":91,"props":3087,"children":3088},{"style":2611},[3089],{"type":43,"value":3090},")\n",{"type":37,"tag":91,"props":3092,"children":3093},{"class":93,"line":1215},[3094],{"type":37,"tag":91,"props":3095,"children":3096},{"style":98},[3097],{"type":43,"value":3098},"    }\n",{"type":37,"tag":91,"props":3100,"children":3101},{"class":93,"line":1253},[3102],{"type":37,"tag":91,"props":3103,"children":3104},{"emptyLinePlaceholder":2784},[3105],{"type":43,"value":2787},{"type":37,"tag":91,"props":3107,"children":3108},{"class":93,"line":24},[3109,3113,3117,3121,3126,3131,3136,3140,3144,3148,3152,3156,3160,3164,3168],{"type":37,"tag":91,"props":3110,"children":3111},{"style":2605},[3112],{"type":43,"value":2712},{"type":37,"tag":91,"props":3114,"children":3115},{"style":2611},[3116],{"type":43,"value":1493},{"type":37,"tag":91,"props":3118,"children":3119},{"style":1417},[3120],{"type":43,"value":2975},{"type":37,"tag":91,"props":3122,"children":3123},{"style":98},[3124],{"type":43,"value":3125}," ===",{"type":37,"tag":91,"props":3127,"children":3128},{"style":360},[3129],{"type":43,"value":3130}," 402",{"type":37,"tag":91,"props":3132,"children":3133},{"style":98},[3134],{"type":43,"value":3135}," &&",{"type":37,"tag":91,"props":3137,"children":3138},{"style":1417},[3139],{"type":43,"value":2799},{"type":37,"tag":91,"props":3141,"children":3142},{"style":98},[3143],{"type":43,"value":647},{"type":37,"tag":91,"props":3145,"children":3146},{"style":1417},[3147],{"type":43,"value":66},{"type":37,"tag":91,"props":3149,"children":3150},{"style":98},[3151],{"type":43,"value":3125},{"type":37,"tag":91,"props":3153,"children":3154},{"style":98},[3155],{"type":43,"value":3047},{"type":37,"tag":91,"props":3157,"children":3158},{"style":129},[3159],{"type":43,"value":873},{"type":37,"tag":91,"props":3161,"children":3162},{"style":98},[3163],{"type":43,"value":3057},{"type":37,"tag":91,"props":3165,"children":3166},{"style":2611},[3167],{"type":43,"value":2668},{"type":37,"tag":91,"props":3169,"children":3170},{"style":98},[3171],{"type":43,"value":236},{"type":37,"tag":91,"props":3173,"children":3174},{"class":93,"line":1320},[3175,3180,3185,3189,3193,3197,3201],{"type":37,"tag":91,"props":3176,"children":3177},{"style":2605},[3178],{"type":43,"value":3179},"      await",{"type":37,"tag":91,"props":3181,"children":3182},{"style":2478},[3183],{"type":43,"value":3184}," topUpX402",{"type":37,"tag":91,"props":3186,"children":3187},{"style":2611},[3188],{"type":43,"value":2851},{"type":37,"tag":91,"props":3190,"children":3191},{"style":1417},[3192],{"type":43,"value":3029},{"type":37,"tag":91,"props":3194,"children":3195},{"style":98},[3196],{"type":43,"value":647},{"type":37,"tag":91,"props":3198,"children":3199},{"style":1417},[3200],{"type":43,"value":929},{"type":37,"tag":91,"props":3202,"children":3203},{"style":2611},[3204],{"type":43,"value":3090},{"type":37,"tag":91,"props":3206,"children":3207},{"class":93,"line":1358},[3208],{"type":37,"tag":91,"props":3209,"children":3210},{"style":2605},[3211],{"type":43,"value":3212},"      continue\n",{"type":37,"tag":91,"props":3214,"children":3215},{"class":93,"line":1384},[3216],{"type":37,"tag":91,"props":3217,"children":3218},{"style":98},[3219],{"type":43,"value":3098},{"type":37,"tag":91,"props":3221,"children":3222},{"class":93,"line":1392},[3223],{"type":37,"tag":91,"props":3224,"children":3225},{"emptyLinePlaceholder":2784},[3226],{"type":43,"value":2787},{"type":37,"tag":91,"props":3228,"children":3229},{"class":93,"line":1427},[3230,3234,3238,3242,3246,3251,3255],{"type":37,"tag":91,"props":3231,"children":3232},{"style":2605},[3233],{"type":43,"value":2712},{"type":37,"tag":91,"props":3235,"children":3236},{"style":2611},[3237],{"type":43,"value":1493},{"type":37,"tag":91,"props":3239,"children":3240},{"style":1417},[3241],{"type":43,"value":2975},{"type":37,"tag":91,"props":3243,"children":3244},{"style":98},[3245],{"type":43,"value":3125},{"type":37,"tag":91,"props":3247,"children":3248},{"style":360},[3249],{"type":43,"value":3250}," 422",{"type":37,"tag":91,"props":3252,"children":3253},{"style":2611},[3254],{"type":43,"value":2668},{"type":37,"tag":91,"props":3256,"children":3257},{"style":98},[3258],{"type":43,"value":236},{"type":37,"tag":91,"props":3260,"children":3262},{"class":93,"line":3261},21,[3263,3267,3271,3275,3279,3283,3287,3291,3295,3299,3304,3308,3312,3316,3320,3324,3328,3332,3336],{"type":37,"tag":91,"props":3264,"children":3265},{"style":2605},[3266],{"type":43,"value":2992},{"type":37,"tag":91,"props":3268,"children":3269},{"style":1417},[3270],{"type":43,"value":2997},{"type":37,"tag":91,"props":3272,"children":3273},{"style":98},[3274],{"type":43,"value":647},{"type":37,"tag":91,"props":3276,"children":3277},{"style":2478},[3278],{"type":43,"value":3006},{"type":37,"tag":91,"props":3280,"children":3281},{"style":2611},[3282],{"type":43,"value":2851},{"type":37,"tag":91,"props":3284,"children":3285},{"style":98},[3286],{"type":43,"value":3015},{"type":37,"tag":91,"props":3288,"children":3289},{"style":2478},[3290],{"type":43,"value":3020},{"type":37,"tag":91,"props":3292,"children":3293},{"style":2611},[3294],{"type":43,"value":2851},{"type":37,"tag":91,"props":3296,"children":3297},{"style":98},[3298],{"type":43,"value":3057},{"type":37,"tag":91,"props":3300,"children":3301},{"style":129},[3302],{"type":43,"value":3303},"Content policy",{"type":37,"tag":91,"props":3305,"children":3306},{"style":98},[3307],{"type":43,"value":3057},{"type":37,"tag":91,"props":3309,"children":3310},{"style":2611},[3311],{"type":43,"value":2019},{"type":37,"tag":91,"props":3313,"children":3314},{"style":98},[3315],{"type":43,"value":474},{"type":37,"tag":91,"props":3317,"children":3318},{"style":98},[3319],{"type":43,"value":353},{"type":37,"tag":91,"props":3321,"children":3322},{"style":1417},[3323],{"type":43,"value":2889},{"type":37,"tag":91,"props":3325,"children":3326},{"style":98},[3327],{"type":43,"value":474},{"type":37,"tag":91,"props":3329,"children":3330},{"style":1417},[3331],{"type":43,"value":2799},{"type":37,"tag":91,"props":3333,"children":3334},{"style":98},[3335],{"type":43,"value":2894},{"type":37,"tag":91,"props":3337,"children":3338},{"style":2611},[3339],{"type":43,"value":3090},{"type":37,"tag":91,"props":3341,"children":3343},{"class":93,"line":3342},22,[3344],{"type":37,"tag":91,"props":3345,"children":3346},{"style":98},[3347],{"type":43,"value":3098},{"type":37,"tag":91,"props":3349,"children":3351},{"class":93,"line":3350},23,[3352],{"type":37,"tag":91,"props":3353,"children":3354},{"emptyLinePlaceholder":2784},[3355],{"type":43,"value":2787},{"type":37,"tag":91,"props":3357,"children":3359},{"class":93,"line":3358},24,[3360,3364,3368,3372,3376,3381,3385],{"type":37,"tag":91,"props":3361,"children":3362},{"style":2605},[3363],{"type":43,"value":2712},{"type":37,"tag":91,"props":3365,"children":3366},{"style":2611},[3367],{"type":43,"value":1493},{"type":37,"tag":91,"props":3369,"children":3370},{"style":1417},[3371],{"type":43,"value":2975},{"type":37,"tag":91,"props":3373,"children":3374},{"style":98},[3375],{"type":43,"value":3125},{"type":37,"tag":91,"props":3377,"children":3378},{"style":360},[3379],{"type":43,"value":3380}," 429",{"type":37,"tag":91,"props":3382,"children":3383},{"style":2611},[3384],{"type":43,"value":2668},{"type":37,"tag":91,"props":3386,"children":3387},{"style":98},[3388],{"type":43,"value":236},{"type":37,"tag":91,"props":3390,"children":3392},{"class":93,"line":3391},25,[3393,3398,3403,3407,3412,3416,3420,3424,3429,3433,3438,3442,3446,3451,3455],{"type":37,"tag":91,"props":3394,"children":3395},{"style":109},[3396],{"type":43,"value":3397},"      const",{"type":37,"tag":91,"props":3399,"children":3400},{"style":1417},[3401],{"type":43,"value":3402}," retryAfterSec",{"type":37,"tag":91,"props":3404,"children":3405},{"style":98},[3406],{"type":43,"value":2573},{"type":37,"tag":91,"props":3408,"children":3409},{"style":2478},[3410],{"type":43,"value":3411}," Number",{"type":37,"tag":91,"props":3413,"children":3414},{"style":2611},[3415],{"type":43,"value":2851},{"type":37,"tag":91,"props":3417,"children":3418},{"style":1417},[3419],{"type":43,"value":2721},{"type":37,"tag":91,"props":3421,"children":3422},{"style":98},[3423],{"type":43,"value":647},{"type":37,"tag":91,"props":3425,"children":3426},{"style":1417},[3427],{"type":43,"value":3428},"headers",{"type":37,"tag":91,"props":3430,"children":3431},{"style":98},[3432],{"type":43,"value":647},{"type":37,"tag":91,"props":3434,"children":3435},{"style":2478},[3436],{"type":43,"value":3437},"get",{"type":37,"tag":91,"props":3439,"children":3440},{"style":2611},[3441],{"type":43,"value":2851},{"type":37,"tag":91,"props":3443,"children":3444},{"style":98},[3445],{"type":43,"value":3057},{"type":37,"tag":91,"props":3447,"children":3448},{"style":129},[3449],{"type":43,"value":3450},"retry-after",{"type":37,"tag":91,"props":3452,"children":3453},{"style":98},[3454],{"type":43,"value":3057},{"type":37,"tag":91,"props":3456,"children":3457},{"style":2611},[3458],{"type":43,"value":2873},{"type":37,"tag":91,"props":3460,"children":3462},{"class":93,"line":3461},26,[3463,3467,3472,3476,3480,3484,3488,3492,3496,3500,3504,3508,3512,3517,3521],{"type":37,"tag":91,"props":3464,"children":3465},{"style":109},[3466],{"type":43,"value":3397},{"type":37,"tag":91,"props":3468,"children":3469},{"style":1417},[3470],{"type":43,"value":3471}," resetSec",{"type":37,"tag":91,"props":3473,"children":3474},{"style":98},[3475],{"type":43,"value":2573},{"type":37,"tag":91,"props":3477,"children":3478},{"style":2478},[3479],{"type":43,"value":3411},{"type":37,"tag":91,"props":3481,"children":3482},{"style":2611},[3483],{"type":43,"value":2851},{"type":37,"tag":91,"props":3485,"children":3486},{"style":1417},[3487],{"type":43,"value":2721},{"type":37,"tag":91,"props":3489,"children":3490},{"style":98},[3491],{"type":43,"value":647},{"type":37,"tag":91,"props":3493,"children":3494},{"style":1417},[3495],{"type":43,"value":3428},{"type":37,"tag":91,"props":3497,"children":3498},{"style":98},[3499],{"type":43,"value":647},{"type":37,"tag":91,"props":3501,"children":3502},{"style":2478},[3503],{"type":43,"value":3437},{"type":37,"tag":91,"props":3505,"children":3506},{"style":2611},[3507],{"type":43,"value":2851},{"type":37,"tag":91,"props":3509,"children":3510},{"style":98},[3511],{"type":43,"value":3057},{"type":37,"tag":91,"props":3513,"children":3514},{"style":129},[3515],{"type":43,"value":3516},"x-ratelimit-reset",{"type":37,"tag":91,"props":3518,"children":3519},{"style":98},[3520],{"type":43,"value":3057},{"type":37,"tag":91,"props":3522,"children":3523},{"style":2611},[3524],{"type":43,"value":2873},{"type":37,"tag":91,"props":3526,"children":3528},{"class":93,"line":3527},27,[3529,3533,3538,3542,3547,3552,3556,3561,3565,3570,3574,3579,3583,3588],{"type":37,"tag":91,"props":3530,"children":3531},{"style":109},[3532],{"type":43,"value":3397},{"type":37,"tag":91,"props":3534,"children":3535},{"style":1417},[3536],{"type":43,"value":3537}," waitMs",{"type":37,"tag":91,"props":3539,"children":3540},{"style":98},[3541],{"type":43,"value":2573},{"type":37,"tag":91,"props":3543,"children":3544},{"style":98},[3545],{"type":43,"value":3546}," !",{"type":37,"tag":91,"props":3548,"children":3549},{"style":1417},[3550],{"type":43,"value":3551},"Number",{"type":37,"tag":91,"props":3553,"children":3554},{"style":98},[3555],{"type":43,"value":647},{"type":37,"tag":91,"props":3557,"children":3558},{"style":2478},[3559],{"type":43,"value":3560},"isNaN",{"type":37,"tag":91,"props":3562,"children":3563},{"style":2611},[3564],{"type":43,"value":2851},{"type":37,"tag":91,"props":3566,"children":3567},{"style":1417},[3568],{"type":43,"value":3569},"retryAfterSec",{"type":37,"tag":91,"props":3571,"children":3572},{"style":2611},[3573],{"type":43,"value":2668},{"type":37,"tag":91,"props":3575,"children":3576},{"style":98},[3577],{"type":43,"value":3578},"&&",{"type":37,"tag":91,"props":3580,"children":3581},{"style":1417},[3582],{"type":43,"value":3402},{"type":37,"tag":91,"props":3584,"children":3585},{"style":98},[3586],{"type":43,"value":3587}," >",{"type":37,"tag":91,"props":3589,"children":3590},{"style":360},[3591],{"type":43,"value":3592}," 0\n",{"type":37,"tag":91,"props":3594,"children":3596},{"class":93,"line":3595},28,[3597,3602,3606,3611],{"type":37,"tag":91,"props":3598,"children":3599},{"style":98},[3600],{"type":43,"value":3601},"        ?",{"type":37,"tag":91,"props":3603,"children":3604},{"style":1417},[3605],{"type":43,"value":3402},{"type":37,"tag":91,"props":3607,"children":3608},{"style":98},[3609],{"type":43,"value":3610}," *",{"type":37,"tag":91,"props":3612,"children":3613},{"style":360},[3614],{"type":43,"value":3615}," 1000\n",{"type":37,"tag":91,"props":3617,"children":3619},{"class":93,"line":3618},29,[3620,3625,3629,3633,3637,3641,3645,3650,3654,3658,3662,3666],{"type":37,"tag":91,"props":3621,"children":3622},{"style":98},[3623],{"type":43,"value":3624},"        :",{"type":37,"tag":91,"props":3626,"children":3627},{"style":98},[3628],{"type":43,"value":3546},{"type":37,"tag":91,"props":3630,"children":3631},{"style":1417},[3632],{"type":43,"value":3551},{"type":37,"tag":91,"props":3634,"children":3635},{"style":98},[3636],{"type":43,"value":647},{"type":37,"tag":91,"props":3638,"children":3639},{"style":2478},[3640],{"type":43,"value":3560},{"type":37,"tag":91,"props":3642,"children":3643},{"style":2611},[3644],{"type":43,"value":2851},{"type":37,"tag":91,"props":3646,"children":3647},{"style":1417},[3648],{"type":43,"value":3649},"resetSec",{"type":37,"tag":91,"props":3651,"children":3652},{"style":2611},[3653],{"type":43,"value":2668},{"type":37,"tag":91,"props":3655,"children":3656},{"style":98},[3657],{"type":43,"value":3578},{"type":37,"tag":91,"props":3659,"children":3660},{"style":1417},[3661],{"type":43,"value":3471},{"type":37,"tag":91,"props":3663,"children":3664},{"style":98},[3665],{"type":43,"value":3587},{"type":37,"tag":91,"props":3667,"children":3668},{"style":360},[3669],{"type":43,"value":3592},{"type":37,"tag":91,"props":3671,"children":3673},{"class":93,"line":3672},30,[3674,3679,3684,3688,3693,3697,3701,3705,3710,3715,3720,3724,3729,3733,3737,3741],{"type":37,"tag":91,"props":3675,"children":3676},{"style":98},[3677],{"type":43,"value":3678},"          ?",{"type":37,"tag":91,"props":3680,"children":3681},{"style":1417},[3682],{"type":43,"value":3683}," Math",{"type":37,"tag":91,"props":3685,"children":3686},{"style":98},[3687],{"type":43,"value":647},{"type":37,"tag":91,"props":3689,"children":3690},{"style":2478},[3691],{"type":43,"value":3692},"max",{"type":37,"tag":91,"props":3694,"children":3695},{"style":2611},[3696],{"type":43,"value":2851},{"type":37,"tag":91,"props":3698,"children":3699},{"style":1417},[3700],{"type":43,"value":3649},{"type":37,"tag":91,"props":3702,"children":3703},{"style":98},[3704],{"type":43,"value":3610},{"type":37,"tag":91,"props":3706,"children":3707},{"style":360},[3708],{"type":43,"value":3709}," 1000",{"type":37,"tag":91,"props":3711,"children":3712},{"style":98},[3713],{"type":43,"value":3714}," -",{"type":37,"tag":91,"props":3716,"children":3717},{"style":1417},[3718],{"type":43,"value":3719}," Date",{"type":37,"tag":91,"props":3721,"children":3722},{"style":98},[3723],{"type":43,"value":647},{"type":37,"tag":91,"props":3725,"children":3726},{"style":2478},[3727],{"type":43,"value":3728},"now",{"type":37,"tag":91,"props":3730,"children":3731},{"style":2611},[3732],{"type":43,"value":2825},{"type":37,"tag":91,"props":3734,"children":3735},{"style":98},[3736],{"type":43,"value":474},{"type":37,"tag":91,"props":3738,"children":3739},{"style":1417},[3740],{"type":43,"value":2590},{"type":37,"tag":91,"props":3742,"children":3743},{"style":2611},[3744],{"type":43,"value":3090},{"type":37,"tag":91,"props":3746,"children":3748},{"class":93,"line":3747},31,[3749,3754],{"type":37,"tag":91,"props":3750,"children":3751},{"style":98},[3752],{"type":43,"value":3753},"          :",{"type":37,"tag":91,"props":3755,"children":3756},{"style":1417},[3757],{"type":43,"value":3758}," delay\n",{"type":37,"tag":91,"props":3760,"children":3762},{"class":93,"line":3761},32,[3763,3767,3772,3776,3781,3786,3790,3794,3799,3803,3808,3813],{"type":37,"tag":91,"props":3764,"children":3765},{"style":2605},[3766],{"type":43,"value":3179},{"type":37,"tag":91,"props":3768,"children":3769},{"style":2478},[3770],{"type":43,"value":3771}," sleep",{"type":37,"tag":91,"props":3773,"children":3774},{"style":2611},[3775],{"type":43,"value":2851},{"type":37,"tag":91,"props":3777,"children":3778},{"style":1417},[3779],{"type":43,"value":3780},"waitMs",{"type":37,"tag":91,"props":3782,"children":3783},{"style":98},[3784],{"type":43,"value":3785}," +",{"type":37,"tag":91,"props":3787,"children":3788},{"style":1417},[3789],{"type":43,"value":3683},{"type":37,"tag":91,"props":3791,"children":3792},{"style":98},[3793],{"type":43,"value":647},{"type":37,"tag":91,"props":3795,"children":3796},{"style":2478},[3797],{"type":43,"value":3798},"random",{"type":37,"tag":91,"props":3800,"children":3801},{"style":2611},[3802],{"type":43,"value":2756},{"type":37,"tag":91,"props":3804,"children":3805},{"style":98},[3806],{"type":43,"value":3807},"*",{"type":37,"tag":91,"props":3809,"children":3810},{"style":360},[3811],{"type":43,"value":3812}," 250",{"type":37,"tag":91,"props":3814,"children":3815},{"style":2611},[3816],{"type":43,"value":3090},{"type":37,"tag":91,"props":3818,"children":3820},{"class":93,"line":3819},33,[3821,3826,3831],{"type":37,"tag":91,"props":3822,"children":3823},{"style":1417},[3824],{"type":43,"value":3825},"      delay",{"type":37,"tag":91,"props":3827,"children":3828},{"style":98},[3829],{"type":43,"value":3830}," *=",{"type":37,"tag":91,"props":3832,"children":3833},{"style":360},[3834],{"type":43,"value":3835}," 2\n",{"type":37,"tag":91,"props":3837,"children":3839},{"class":93,"line":3838},34,[3840],{"type":37,"tag":91,"props":3841,"children":3842},{"style":2605},[3843],{"type":43,"value":3212},{"type":37,"tag":91,"props":3845,"children":3847},{"class":93,"line":3846},35,[3848],{"type":37,"tag":91,"props":3849,"children":3850},{"style":98},[3851],{"type":43,"value":3098},{"type":37,"tag":91,"props":3853,"children":3855},{"class":93,"line":3854},36,[3856],{"type":37,"tag":91,"props":3857,"children":3858},{"emptyLinePlaceholder":2784},[3859],{"type":43,"value":2787},{"type":37,"tag":91,"props":3861,"children":3863},{"class":93,"line":3862},37,[3864,3868,3872,3876,3881,3886,3890,3894,3899,3903,3907],{"type":37,"tag":91,"props":3865,"children":3866},{"style":2605},[3867],{"type":43,"value":2712},{"type":37,"tag":91,"props":3869,"children":3870},{"style":2611},[3871],{"type":43,"value":1493},{"type":37,"tag":91,"props":3873,"children":3874},{"style":1417},[3875],{"type":43,"value":2975},{"type":37,"tag":91,"props":3877,"children":3878},{"style":98},[3879],{"type":43,"value":3880}," >=",{"type":37,"tag":91,"props":3882,"children":3883},{"style":360},[3884],{"type":43,"value":3885}," 500",{"type":37,"tag":91,"props":3887,"children":3888},{"style":98},[3889],{"type":43,"value":3135},{"type":37,"tag":91,"props":3891,"children":3892},{"style":1417},[3893],{"type":43,"value":2623},{"type":37,"tag":91,"props":3895,"children":3896},{"style":98},[3897],{"type":43,"value":3898}," \u003C",{"type":37,"tag":91,"props":3900,"children":3901},{"style":1417},[3902],{"type":43,"value":2568},{"type":37,"tag":91,"props":3904,"children":3905},{"style":2611},[3906],{"type":43,"value":2668},{"type":37,"tag":91,"props":3908,"children":3909},{"style":98},[3910],{"type":43,"value":236},{"type":37,"tag":91,"props":3912,"children":3914},{"class":93,"line":3913},38,[3915,3919,3923,3927,3932,3936,3940,3944,3948,3952,3956,3960],{"type":37,"tag":91,"props":3916,"children":3917},{"style":2605},[3918],{"type":43,"value":3179},{"type":37,"tag":91,"props":3920,"children":3921},{"style":2478},[3922],{"type":43,"value":3771},{"type":37,"tag":91,"props":3924,"children":3925},{"style":2611},[3926],{"type":43,"value":2851},{"type":37,"tag":91,"props":3928,"children":3929},{"style":1417},[3930],{"type":43,"value":3931},"delay",{"type":37,"tag":91,"props":3933,"children":3934},{"style":98},[3935],{"type":43,"value":3785},{"type":37,"tag":91,"props":3937,"children":3938},{"style":1417},[3939],{"type":43,"value":3683},{"type":37,"tag":91,"props":3941,"children":3942},{"style":98},[3943],{"type":43,"value":647},{"type":37,"tag":91,"props":3945,"children":3946},{"style":2478},[3947],{"type":43,"value":3798},{"type":37,"tag":91,"props":3949,"children":3950},{"style":2611},[3951],{"type":43,"value":2756},{"type":37,"tag":91,"props":3953,"children":3954},{"style":98},[3955],{"type":43,"value":3807},{"type":37,"tag":91,"props":3957,"children":3958},{"style":360},[3959],{"type":43,"value":3812},{"type":37,"tag":91,"props":3961,"children":3962},{"style":2611},[3963],{"type":43,"value":3090},{"type":37,"tag":91,"props":3965,"children":3967},{"class":93,"line":3966},39,[3968,3972,3976],{"type":37,"tag":91,"props":3969,"children":3970},{"style":1417},[3971],{"type":43,"value":3825},{"type":37,"tag":91,"props":3973,"children":3974},{"style":98},[3975],{"type":43,"value":3830},{"type":37,"tag":91,"props":3977,"children":3978},{"style":360},[3979],{"type":43,"value":3835},{"type":37,"tag":91,"props":3981,"children":3983},{"class":93,"line":3982},40,[3984],{"type":37,"tag":91,"props":3985,"children":3986},{"style":2605},[3987],{"type":43,"value":3212},{"type":37,"tag":91,"props":3989,"children":3991},{"class":93,"line":3990},41,[3992],{"type":37,"tag":91,"props":3993,"children":3994},{"style":98},[3995],{"type":43,"value":3098},{"type":37,"tag":91,"props":3997,"children":3999},{"class":93,"line":3998},42,[4000],{"type":37,"tag":91,"props":4001,"children":4002},{"emptyLinePlaceholder":2784},[4003],{"type":43,"value":2787},{"type":37,"tag":91,"props":4005,"children":4007},{"class":93,"line":4006},43,[4008,4013,4017,4021,4025,4029,4033,4037,4041,4045,4049,4053,4057,4061,4065,4069,4073,4077,4081,4085,4089,4093,4097],{"type":37,"tag":91,"props":4009,"children":4010},{"style":2605},[4011],{"type":43,"value":4012},"    throw",{"type":37,"tag":91,"props":4014,"children":4015},{"style":1417},[4016],{"type":43,"value":2997},{"type":37,"tag":91,"props":4018,"children":4019},{"style":98},[4020],{"type":43,"value":647},{"type":37,"tag":91,"props":4022,"children":4023},{"style":2478},[4024],{"type":43,"value":3006},{"type":37,"tag":91,"props":4026,"children":4027},{"style":2611},[4028],{"type":43,"value":2851},{"type":37,"tag":91,"props":4030,"children":4031},{"style":98},[4032],{"type":43,"value":3015},{"type":37,"tag":91,"props":4034,"children":4035},{"style":2478},[4036],{"type":43,"value":3020},{"type":37,"tag":91,"props":4038,"children":4039},{"style":2611},[4040],{"type":43,"value":2851},{"type":37,"tag":91,"props":4042,"children":4043},{"style":1417},[4044],{"type":43,"value":3029},{"type":37,"tag":91,"props":4046,"children":4047},{"style":98},[4048],{"type":43,"value":647},{"type":37,"tag":91,"props":4050,"children":4051},{"style":1417},[4052],{"type":43,"value":112},{"type":37,"tag":91,"props":4054,"children":4055},{"style":98},[4056],{"type":43,"value":3042},{"type":37,"tag":91,"props":4058,"children":4059},{"style":98},[4060],{"type":43,"value":3047},{"type":37,"tag":91,"props":4062,"children":4063},{"style":129},[4064],{"type":43,"value":3052},{"type":37,"tag":91,"props":4066,"children":4067},{"style":98},[4068],{"type":43,"value":3057},{"type":37,"tag":91,"props":4070,"children":4071},{"style":2611},[4072],{"type":43,"value":2019},{"type":37,"tag":91,"props":4074,"children":4075},{"style":98},[4076],{"type":43,"value":474},{"type":37,"tag":91,"props":4078,"children":4079},{"style":98},[4080],{"type":43,"value":353},{"type":37,"tag":91,"props":4082,"children":4083},{"style":1417},[4084],{"type":43,"value":2889},{"type":37,"tag":91,"props":4086,"children":4087},{"style":98},[4088],{"type":43,"value":474},{"type":37,"tag":91,"props":4090,"children":4091},{"style":1417},[4092],{"type":43,"value":2799},{"type":37,"tag":91,"props":4094,"children":4095},{"style":98},[4096],{"type":43,"value":2894},{"type":37,"tag":91,"props":4098,"children":4099},{"style":2611},[4100],{"type":43,"value":3090},{"type":37,"tag":91,"props":4102,"children":4104},{"class":93,"line":4103},44,[4105],{"type":37,"tag":91,"props":4106,"children":4107},{"style":98},[4108],{"type":43,"value":4109},"  }\n",{"type":37,"tag":91,"props":4111,"children":4113},{"class":93,"line":4112},45,[4114,4119,4124,4128,4132,4136,4141,4145],{"type":37,"tag":91,"props":4115,"children":4116},{"style":2605},[4117],{"type":43,"value":4118},"  throw",{"type":37,"tag":91,"props":4120,"children":4121},{"style":98},[4122],{"type":43,"value":4123}," new",{"type":37,"tag":91,"props":4125,"children":4126},{"style":2478},[4127],{"type":43,"value":3020},{"type":37,"tag":91,"props":4129,"children":4130},{"style":2611},[4131],{"type":43,"value":2851},{"type":37,"tag":91,"props":4133,"children":4134},{"style":98},[4135],{"type":43,"value":3057},{"type":37,"tag":91,"props":4137,"children":4138},{"style":129},[4139],{"type":43,"value":4140},"Exceeded max retries",{"type":37,"tag":91,"props":4142,"children":4143},{"style":98},[4144],{"type":43,"value":3057},{"type":37,"tag":91,"props":4146,"children":4147},{"style":2611},[4148],{"type":43,"value":3090},{"type":37,"tag":91,"props":4150,"children":4152},{"class":93,"line":4151},46,[4153],{"type":37,"tag":91,"props":4154,"children":4155},{"style":98},[4156],{"type":43,"value":563},{"type":37,"tag":52,"props":4158,"children":4160},{"id":4159},"streaming-errors",[4161],{"type":43,"value":4162},"Streaming errors",{"type":37,"tag":46,"props":4164,"children":4165},{},[4166,4168,4173],{"type":43,"value":4167},"Streaming responses (",{"type":37,"tag":66,"props":4169,"children":4171},{"className":4170},[],[4172],{"type":43,"value":2003},{"type":43,"value":4174}," on chat, TTS, video-queue progress) deliver mid-stream errors as SSE events:",{"type":37,"tag":80,"props":4176,"children":4180},{"className":4177,"code":4179,"language":43},[4178],"language-text","data: {\"error\": {\"type\": \"…\", \"message\": \"…\"}}\n",[4181],{"type":37,"tag":66,"props":4182,"children":4183},{"__ignoreMap":85},[4184],{"type":43,"value":4179},{"type":37,"tag":46,"props":4186,"children":4187},{},[4188,4190,4196],{"type":43,"value":4189},"Treat them as terminal — the underlying connection is closed. The HTTP status is ",{"type":37,"tag":66,"props":4191,"children":4193},{"className":4192},[],[4194],{"type":43,"value":4195},"200",{"type":43,"value":4197}," because a successful stream can't be changed mid-flight.",{"type":37,"tag":52,"props":4199,"children":4201},{"id":4200},"request-id-correlation",[4202],{"type":43,"value":4203},"Request-ID correlation",{"type":37,"tag":46,"props":4205,"children":4206},{},[4207,4209,4215,4217,4223],{"type":43,"value":4208},"When present on a response, keep the ",{"type":37,"tag":66,"props":4210,"children":4212},{"className":4211},[],[4213],{"type":43,"value":4214},"X-Request-ID",{"type":43,"value":4216}," header. Include it in support tickets — Venice keys diagnostic logs by this ID. ",{"type":37,"tag":66,"props":4218,"children":4220},{"className":4219},[],[4221],{"type":43,"value":4222},"\u002Fcrypto\u002Frpc\u002F*",{"type":43,"value":4224}," routes set it explicitly; many inference routes also include it, but don't assume it's universal — fall back to your own client-side correlation ID.",{"type":37,"tag":52,"props":4226,"children":4228},{"id":4227},"common-gotchas",[4229],{"type":43,"value":4230},"Common gotchas",{"type":37,"tag":2271,"props":4232,"children":4233},{},[4234,4277,4303,4333,4350,4371],{"type":37,"tag":2275,"props":4235,"children":4236},{},[4237,4239,4244,4245,4251,4253,4259,4261,4266,4268,4276],{"type":43,"value":4238},"A ",{"type":37,"tag":66,"props":4240,"children":4242},{"className":4241},[],[4243],{"type":43,"value":2179},{"type":43,"value":1457},{"type":37,"tag":66,"props":4246,"children":4248},{"className":4247},[],[4249],{"type":43,"value":4250},"\u002Fx402\u002Ftop-up",{"type":43,"value":4252}," with no ",{"type":37,"tag":66,"props":4254,"children":4256},{"className":4255},[],[4257],{"type":43,"value":4258},"PAYMENT-SIGNATURE",{"type":43,"value":4260}," header is the ",{"type":37,"tag":611,"props":4262,"children":4263},{},[4264],{"type":43,"value":4265},"expected discovery",{"type":43,"value":4267}," response, not an error. See ",{"type":37,"tag":1537,"props":4269,"children":4270},{"href":1539},[4271],{"type":37,"tag":66,"props":4272,"children":4274},{"className":4273},[],[4275],{"type":43,"value":1546},{"type":43,"value":647},{"type":37,"tag":2275,"props":4278,"children":4279},{},[4280,4281,4286,4288,4293,4295,4301],{"type":43,"value":4238},{"type":37,"tag":66,"props":4282,"children":4284},{"className":4283},[],[4285],{"type":43,"value":2406},{"type":43,"value":4287}," on ",{"type":37,"tag":66,"props":4289,"children":4291},{"className":4290},[],[4292],{"type":43,"value":1990},{"type":43,"value":4294}," with a huge file upload often means the upstream model chose to abort — reduce ",{"type":37,"tag":66,"props":4296,"children":4298},{"className":4297},[],[4299],{"type":43,"value":4300},"max_tokens",{"type":43,"value":4302}," \u002F image size rather than blindly retrying.",{"type":37,"tag":2275,"props":4304,"children":4305},{},[4306,4311,4312,4317,4319,4324,4326,4332],{"type":37,"tag":66,"props":4307,"children":4309},{"className":4308},[],[4310],{"type":43,"value":2017},{"type":43,"value":4287},{"type":37,"tag":66,"props":4313,"children":4315},{"className":4314},[],[4316],{"type":43,"value":1884},{"type":43,"value":4318}," may mean the ",{"type":37,"tag":611,"props":4320,"children":4321},{},[4322],{"type":43,"value":4323},"24-hour credit cap",{"type":43,"value":4325}," tripped, not the per-minute one. Check ",{"type":37,"tag":66,"props":4327,"children":4329},{"className":4328},[],[4330],{"type":43,"value":4331},"customMessage",{"type":43,"value":647},{"type":37,"tag":2275,"props":4334,"children":4335},{},[4336,4342,4343,4348],{"type":37,"tag":66,"props":4337,"children":4339},{"className":4338},[],[4340],{"type":43,"value":4341},"DetailedError.details",{"type":43,"value":176},{"type":37,"tag":66,"props":4344,"children":4346},{"className":4345},[],[4347],{"type":43,"value":190},{"type":43,"value":4349}," tree, not a flat map. Walk it recursively.",{"type":37,"tag":2275,"props":4351,"children":4352},{},[4353,4355,4361,4363,4369],{"type":43,"value":4354},"Some endpoints (image generation) echo ",{"type":37,"tag":66,"props":4356,"children":4358},{"className":4357},[],[4359],{"type":43,"value":4360},"X-Rate-Limit",{"type":43,"value":4362}," variants — treat any header whose name starts with ",{"type":37,"tag":66,"props":4364,"children":4366},{"className":4365},[],[4367],{"type":43,"value":4368},"X-RateLimit",{"type":43,"value":4370}," as advisory.",{"type":37,"tag":2275,"props":4372,"children":4373},{},[4374,4376,4382,4384,4390],{"type":43,"value":4375},"Don't treat an empty ",{"type":37,"tag":66,"props":4377,"children":4379},{"className":4378},[],[4380],{"type":43,"value":4381},"stream",{"type":43,"value":4383}," chunk as an error — send-keepalives look like ",{"type":37,"tag":66,"props":4385,"children":4387},{"className":4386},[],[4388],{"type":43,"value":4389},"data: [DONE]",{"type":43,"value":4391}," or empty lines.",{"type":37,"tag":4393,"props":4394,"children":4395},"style",{},[4396],{"type":43,"value":4397},"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":4399,"total":1427},[4400,4413,4424,4436,4450,4465,4482],{"slug":2153,"name":2153,"fn":4401,"description":4402,"org":4403,"tags":4404,"stars":20,"repoUrl":21,"updatedAt":4412},"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},[4405,4406,4409],{"name":14,"slug":15,"type":16},{"name":4407,"slug":4408,"type":16},"Authentication","authentication",{"name":4410,"slug":4411,"type":16},"Security","security","2026-07-17T06:05:40.24171",{"slug":4414,"name":4414,"fn":4415,"description":4416,"org":4417,"tags":4418,"stars":20,"repoUrl":21,"updatedAt":4423},"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},[4419,4420],{"name":14,"slug":15,"type":16},{"name":4421,"slug":4422,"type":16},"Documentation","documentation","2026-08-01T05:43:18.703041",{"slug":4425,"name":4425,"fn":4426,"description":4427,"org":4428,"tags":4429,"stars":20,"repoUrl":21,"updatedAt":4435},"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},[4430,4432],{"name":4431,"slug":615,"type":16},"Audio",{"name":4433,"slug":4434,"type":16},"Creative","creative","2026-07-17T06:04:02.174106",{"slug":4437,"name":4437,"fn":4438,"description":4439,"org":4440,"tags":4441,"stars":20,"repoUrl":21,"updatedAt":4449},"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},[4442,4443,4446],{"name":4431,"slug":615,"type":16},{"name":4444,"slug":4445,"type":16},"Speech","speech",{"name":4447,"slug":4448,"type":16},"Text-to-Speech","text-to-speech","2026-08-01T05:43:12.713524",{"slug":4451,"name":4451,"fn":4452,"description":4453,"org":4454,"tags":4455,"stars":20,"repoUrl":21,"updatedAt":4464},"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},[4456,4457,4460,4461],{"name":4431,"slug":615,"type":16},{"name":4458,"slug":4459,"type":16},"Data Extraction","data-extraction",{"name":4444,"slug":4445,"type":16},{"name":4462,"slug":4463,"type":16},"Transcription","transcription","2026-07-17T06:04:05.524355",{"slug":4466,"name":4466,"fn":4467,"description":4468,"org":4469,"tags":4470,"stars":20,"repoUrl":21,"updatedAt":4481},"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},[4471,4472,4475,4478],{"name":4458,"slug":4459,"type":16},{"name":4473,"slug":4474,"type":16},"DOCX","docx",{"name":4476,"slug":4477,"type":16},"PDF","pdf",{"name":4479,"slug":4480,"type":16},"Spreadsheets","spreadsheets","2026-07-17T06:04:00.77979",{"slug":4483,"name":4483,"fn":4484,"description":4485,"org":4486,"tags":4487,"stars":20,"repoUrl":21,"updatedAt":4494},"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},[4488,4489,4492],{"name":14,"slug":15,"type":16},{"name":4490,"slug":4491,"type":16},"Auth","auth",{"name":4493,"slug":4493,"type":16},"x402","2026-08-01T05:43:14.726965",{"items":4496,"total":1427},[4497,4503,4508,4513,4519,4526,4533,4539,4554,4570,4583,4597],{"slug":2153,"name":2153,"fn":4401,"description":4402,"org":4498,"tags":4499,"stars":20,"repoUrl":21,"updatedAt":4412},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4500,4501,4502],{"name":14,"slug":15,"type":16},{"name":4407,"slug":4408,"type":16},{"name":4410,"slug":4411,"type":16},{"slug":4414,"name":4414,"fn":4415,"description":4416,"org":4504,"tags":4505,"stars":20,"repoUrl":21,"updatedAt":4423},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4506,4507],{"name":14,"slug":15,"type":16},{"name":4421,"slug":4422,"type":16},{"slug":4425,"name":4425,"fn":4426,"description":4427,"org":4509,"tags":4510,"stars":20,"repoUrl":21,"updatedAt":4435},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4511,4512],{"name":4431,"slug":615,"type":16},{"name":4433,"slug":4434,"type":16},{"slug":4437,"name":4437,"fn":4438,"description":4439,"org":4514,"tags":4515,"stars":20,"repoUrl":21,"updatedAt":4449},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4516,4517,4518],{"name":4431,"slug":615,"type":16},{"name":4444,"slug":4445,"type":16},{"name":4447,"slug":4448,"type":16},{"slug":4451,"name":4451,"fn":4452,"description":4453,"org":4520,"tags":4521,"stars":20,"repoUrl":21,"updatedAt":4464},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4522,4523,4524,4525],{"name":4431,"slug":615,"type":16},{"name":4458,"slug":4459,"type":16},{"name":4444,"slug":4445,"type":16},{"name":4462,"slug":4463,"type":16},{"slug":4466,"name":4466,"fn":4467,"description":4468,"org":4527,"tags":4528,"stars":20,"repoUrl":21,"updatedAt":4481},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4529,4530,4531,4532],{"name":4458,"slug":4459,"type":16},{"name":4473,"slug":4474,"type":16},{"name":4476,"slug":4477,"type":16},{"name":4479,"slug":4480,"type":16},{"slug":4483,"name":4483,"fn":4484,"description":4485,"org":4534,"tags":4535,"stars":20,"repoUrl":21,"updatedAt":4494},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[4536,4537,4538],{"name":14,"slug":15,"type":16},{"name":4490,"slug":4491,"type":16},{"name":4493,"slug":4493,"type":16},{"slug":2165,"name":2165,"fn":4540,"description":4541,"org":4542,"tags":4543,"stars":20,"repoUrl":21,"updatedAt":4553},"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},[4544,4547,4550],{"name":4545,"slug":4546,"type":16},"Analytics","analytics",{"name":4548,"slug":4549,"type":16},"Finance","finance",{"name":4551,"slug":4552,"type":16},"Reporting","reporting","2026-08-01T05:43:13.766419",{"slug":4555,"name":4555,"fn":4556,"description":4557,"org":4558,"tags":4559,"stars":20,"repoUrl":21,"updatedAt":4569},"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},[4560,4563,4566],{"name":4561,"slug":4562,"type":16},"Agents","agents",{"name":4564,"slug":4565,"type":16},"LLM","llm",{"name":4567,"slug":4568,"type":16},"Persona","persona","2026-07-17T06:05:40.942733",{"slug":4571,"name":4571,"fn":4572,"description":4573,"org":4574,"tags":4575,"stars":20,"repoUrl":21,"updatedAt":4582},"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},[4576,4577,4578,4579],{"name":4561,"slug":4562,"type":16},{"name":14,"slug":15,"type":16},{"name":4564,"slug":4565,"type":16},{"name":4580,"slug":4581,"type":16},"Multimodal","multimodal","2026-08-01T05:43:15.821764",{"slug":4584,"name":4584,"fn":4585,"description":4586,"org":4587,"tags":4588,"stars":20,"repoUrl":21,"updatedAt":4596},"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},[4589,4590,4593],{"name":14,"slug":15,"type":16},{"name":4591,"slug":4592,"type":16},"Ethereum","ethereum",{"name":4594,"slug":4595,"type":16},"Web3","web3","2026-08-01T05:43:22.78028",{"slug":4598,"name":4598,"fn":4599,"description":4600,"org":4601,"tags":4602,"stars":20,"repoUrl":21,"updatedAt":4607},"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},[4603,4606],{"name":4604,"slug":4605,"type":16},"Data Analysis","data-analysis",{"name":4564,"slug":4565,"type":16},"2026-07-17T06:07:34.97752"]