Skip to main content
Venice AI is a drop-in replacement for OpenAI. Same SDK, same code — just change two lines. Get privacy-first inference, uncensored models, and competitive pricing.

The 2-Line Migration

Generate a key from venice.ai/settings/api or follow the API key guide.

Environment variables

Many libraries and tools read OPENAI_API_KEY and OPENAI_BASE_URL automatically. Updating these env vars may be all you need. Some tools still use OPENAI_API_BASE for the same URL.

Models

Pass a Venice model ID, a trait such as default or most_uncensored, or a familiar OpenAI-style name. Venice maps OpenAI names through compatibility mapping. Traits always resolve to the current model for that role — see model traits. Browse the live catalog on Text models and Pricing. For a first-request walkthrough, see the Quickstart.

Feature compatibility

For native image options beyond the OpenAI-compatible endpoint, see Image generation.

Venice-only features

Pass Venice-specific options through extra_body as venice_parameters. Built-in web search is the usual first extra:
The same pattern covers web scraping, citations, and Characters. If a client cannot change the request body, append a model feature suffix such as default:enable_web_search=auto. Venice also has native video, music, web retrieval, and x402 APIs alongside the OpenAI-compatible surface.

Frameworks

Most AI frameworks work with Venice by changing the base URL:

LangChain

base_url in ChatOpenAI

Vercel AI SDK

baseURL in createOpenAI

LlamaIndex

api_base on the OpenAI-compatible client

CrewAI

OPENAI_API_BASE env var

PydanticAI

OpenAI-compatible model with Venice base URL

Cursor

Custom API endpoint in settings

Claude Code

Route Claude Code through Venice

Codex CLI

config.toml model provider

Aider

OPENAI_API_BASE env var
More coding agents and tools are listed in AI Agents.

Uncensored models

Venice’s private uncensored models have no content filtering, making them suitable for:
  • Creative writing without guardrails
  • Security research and red teaming
  • Honest analysis without refusal patterns
  • Medical and legal information without extra disclaimers
Use the most_uncensored trait or a current uncensored model ID from Text models.

Get Your API Key

Generate a Venice API key and start migrating in minutes