Works with everything
Hanzo AI is fully OpenAI-compatible. Use any SDK, framework, or language you already know. Drop in https://api.hanzo.ai/v1 as the base URL and your Hanzo API key.
Quick start — any OpenAI SDK
# Python
client = OpenAI(base_url="https://api.hanzo.ai/v1", api_key=HANZO_API_KEY)
# TypeScript
const client = new OpenAI({ baseURL: "https://api.hanzo.ai/v1", apiKey: HANZO_API_KEY });
# Go
client := openai.NewClient(option.WithBaseURL("https://api.hanzo.ai/v1"), option.WithAPIKey(HANZO_API_KEY))AI SDKs
Use the official OpenAI Python SDK with Hanzo AI by pointing it to our OpenAI-compatible API endpoint. Access 390+ models with your existing OpenAI code — no refactor needed.
AI SDKsUse the Anthropic Python or TypeScript SDK with Hanzo AI to access Claude models alongside 390+ other models through a single API key and billing account.
AI SDKsAccess Hugging Face models and use the HF Inference API through Hanzo's unified gateway. Also use Hanzo AI models with HuggingFace Hub tooling.
AI SDKsFrameworks
Integrate LangChain with Hanzo AI to build chains, agents, and RAG pipelines using any of our 390+ models. Hanzo is OpenAI-compatible so ChatOpenAI just works.
FrameworksUse LlamaIndex with Hanzo AI to build powerful RAG applications, data agents, and query pipelines. Drop in Hanzo as your LLM provider with zero friction.
FrameworksUse the Vercel AI SDK with Hanzo AI to build streaming AI UIs, chatbots, and generative interfaces in Next.js, React, and other frameworks.
FrameworksBuild multi-agent systems with Microsoft AutoGen using Hanzo AI as the LLM backend. Hanzo's OpenAI-compatible API works seamlessly with AutoGen's agent orchestration.
FrameworksUse CrewAI to build collaborative AI agent teams powered by Hanzo AI models. CrewAI's role-based agents work with any OpenAI-compatible provider.
FrameworksUse DSPy to program (not prompt) Hanzo AI models. DSPy's systematic approach to LM prompting works with any OpenAI-compatible provider.
FrameworksBuild production-ready NLP pipelines and RAG systems with Haystack using Hanzo AI as the LLM provider. Haystack's OpenAI integration works seamlessly.
FrameworksPlatforms & Editors
Use Hanzo AI models inside Cursor IDE by adding a custom API provider. Access Zen, GPT-4.1, Claude Sonnet, and 390+ other models directly in your editor.
Platforms & EditorsConfigure Continue.dev VS Code / JetBrains extension to use Hanzo AI as your coding assistant. Add Hanzo as a custom OpenAI-compatible provider in your config.
Platforms & EditorsExtend your GitHub Copilot workflow with Hanzo AI for access to additional models and capabilities via the API. Use Hanzo for tasks Copilot can't handle.
Platforms & EditorsInfrastructure
Deploy Hanzo AI-powered services in Docker containers. Use the Hanzo API from any containerized application with proper environment configuration.
InfrastructureDeploy Hanzo AI-powered workloads on Kubernetes. Securely manage your Hanzo API key as a K8s secret and inject it into pods.
InfrastructureLanguages
Use Hanzo AI in Python with the official OpenAI SDK (fully compatible), the Anthropic SDK, or via HTTP with httpx/requests. Zero lock-in, standard interfaces.
LanguagesUse Hanzo AI in TypeScript and Node.js with the OpenAI SDK, Vercel AI SDK, or raw fetch. Full type safety and async/streaming support.
LanguagesUse Hanzo AI in Go using the official OpenAI Go client or any OpenAI-compatible Go library. Hanzo's standard REST API works with all HTTP clients.
LanguagesUse Hanzo AI in Rust via the async-openai crate or raw reqwest HTTP calls. Full async support with Tokio, streaming, and type-safe API access.
Languages