Venice api overview

From sediman-agent/OpenSkynet · View interactive version

Venice api overview is an AI agent skill from the GitHub repository sediman-agent/OpenSkynet. 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.

How to use this skill

Skill file

Venice API Overview

Venice.ai is an OpenAI-compatible inference platform for text, image, audio, video, and embeddings. One API — two ways to pay: a traditional API key (Pro account), or a wallet (x402, USDC on Base, no account required).

Use when

Base URL

All endpoints live under:

https://api.venice.ai/api/v1

The OpenAPI spec is distributed at outerface/swagger.yaml (current version 20260420.235001).

Authentication (pick one per request)

| Scheme | Header | Best for |

|---|---|---|

| BearerAuth | Authorization: Bearer <VENICE_API_KEY> | Server-side apps, dashboards, usage analytics, bundled credits |

| siwx (x402) | X-Sign-In-With-X: <base64 SIWE JSON> | No account, pay-as-you-go with USDC on Base, serverless / agents |

Every inference endpoint accepts either — see CODE0.

# Bearer
curl https://api.venice.ai/api/v1/models \
  -H "Authorization: Bearer $VENICE_API_KEY"

# x402 / SIWE (one-liner via the SDK)
import { VeniceClient } from 'venice-x402-client'
const v = new VeniceClient(process.env.WALLET_KEY)
await v.models.list()

Endpoint map

Inference

| Category | Endpoints | Skill |

|---|---|---|

| Chat | POST /chat/completions | CODE1 |

| Responses (Alpha) | POST /responses | CODE1 |

| Embeddings | POST /embeddings | CODE1 |

| Image gen | POST /image/generate, POST /images/generations, GET /image/styles | CODE3 |

| Image edit | POST /image/edit, POST /image/multi-edit, POST /image/upscale, POST /image/background-remove | CODE4 |

| TTS | POST /audio/speech | CODE1 |

| STT | POST /audio/transcriptions | CODE1 |

| Music (async) | POST /audio/quote, /audio/queue, /audio/retrieve, /audio/complete | CODE4 |

| Video (async) | POST /video/quote, /video/queue, /video/retrieve, /video/complete, /video/transcriptions | CODE5 |

Catalog

| Category | Endpoints | Skill |

|---|---|---|

| Models | GET /models, /models/traits, /models/compatibility_mapping | CODE3 |

| Characters | GET /characters, /characters/{slug}, /characters/{slug}/reviews | CODE3 |

Account, billing, wallet

| Category | Endpoints | Skill |

|---|---|---|

| API keys | GET|POST|DELETE /api_keys, /api_keys/{id}, /api_keys/rate_limits, /api_keys/rate_limits/log, /api_keys/generate_web3_key | CODE5 |

| Billing | GET /billing/balance, /billing/usage, /billing/usage-analytics | CODE3 |

| x402 wallet | GET /x402/balance/{wallet}, POST /x402/top-up, GET /x402/transactions/{wallet} | CODE3 |

Utility

| Category | Endpoints | Skill |

|---|---|---|

| Crypto RPC proxy | GET /crypto/rpc/networks, POST /crypto/rpc/{network} | CODE2 |

| Augment | POST /augment/text-parser, /augment/scrape, /augment/search | CODE3 |

Response headers to watch

| Header | When | Meaning |

|---|---|---|

| X-Balance-Remaining | x402 inference success | USDC credits left, e.g. "4.230000" |

| X-RateLimit-Limit-* / X-RateLimit-Remaining-* | all inference | your current per-minute/day caps |

| PAYMENT-REQUIRED | 402 on x402 inference | base64 JSON with top-up + SIWX challenge (x402 v2) |

| Content-Encoding | 200 when client sent Accept-Encoding: gzip, br | compression (embeddings, chat) |

Pricing model at a glance

Standard error shape

Every error body follows one of:

{ "error": "Human-readable message" }

or, for 400 validation errors:

{ "error": "...", "details": { "fieldName": { "_errors": ["Field is required"] } } }

402 on x402 adds structured topUpInstructions and siwxChallenge. See CODE3 for the full table and retry strategy.

OpenAI compatibility — what works and what doesn't

Versioning

Fast start checklist

  1. Read CODE0 and choose Bearer vs x402.
  2. GET /models — pick a model and note its model_spec.constraints and model_spec.pricing.
  3. Wire up one happy-path call from the matching skill.
  4. Add error handling using CODE0 (402, 422, 429).
  5. Hook up observability via X-Balance-Remaining / /billing/usage / /x402/transactions.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.