# Use Hanzo AI with Hugging Face — Hanzo AI > Access Hugging Face models and use the HF Inference API through the Hanzo AI API. Also use Hanzo AI models with HuggingFace Hub tooling. [Integrations](https://hanzo.ai/integrations)/Hugging Face 🤗AI SDKs # Use Hanzo AI with Hugging Face Access Hugging Face models and use the HF Inference API through the Hanzo AI API. Also use Hanzo AI models with HuggingFace Hub tooling. Base URL: `https://api.hanzo.ai/v1` API Key: Get yours at [hanzo.ai/signup](https://hanzo.ai/signup) · Fully OpenAI-compatible · 500+ models available 🤗 Created by [Hugging Face](https://huggingface.co) License: Apache-2.0 · [View source on GitHub →](https://github.com/huggingface/transformers) Hanzo AI is OpenAI-compatible, so existing Hugging Face code works with zero refactoring. We deeply appreciate the Hugging Face team for building and maintaining this open-source project. ## InferenceClient via Hanzo python ``` pip install huggingface_hub from huggingface_hub import InferenceClient client = InferenceClient( base_url="https://api.hanzo.ai/v1", api_key="your-hanzo-api-key", ) output = client.chat.completions.create( model="meta-llama/llama-4-scout", messages=[{"role": "user", "content": "Hello!"}], ) ``` ## hf CLI with Hanzo endpoint python ``` # Use hf for model downloads, Hanzo for inference hf download meta-llama/Llama-4-Scout-17B-16E-Instruct # Then serve via Hanzo API from openai import OpenAI client = OpenAI( base_url="https://api.hanzo.ai/v1", api_key="your-hanzo-api-key", ) ``` ## JS InferenceClient typescript ``` import { InferenceClient } from "@huggingface/inference"; const client = new InferenceClient("your-hanzo-api-key"); const chatCompletion = await client.chatCompletion({ model: "meta-llama/llama-4-scout", messages: [{ role: "user", content: "Hello!" }], provider: "hanzo", endpointUrl: "https://api.hanzo.ai/v1", }); ``` ## cURL inference bash ``` curl https://api.hanzo.ai/v1/chat/completions \ -H "Authorization: Bearer $HANZO_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"meta-llama/llama-4-maverick","messages":[{"role":"user","content":"Hi"}]}' ``` ## Ready to get started? Create a free account and get your API key. 100K API calls/month free forever. [Get API Key — Free](https://hanzo.ai/signup)[Browse Models](https://hanzo.ai/models) ## More integrations [OpenAI Python SDK](https://hanzo.ai/integrations/openai-sdk)[Anthropic SDK](https://hanzo.ai/integrations/anthropic-sdk)[LangChain](https://hanzo.ai/integrations/langchain)[LlamaIndex](https://hanzo.ai/integrations/llamaindex)[Vercel AI SDK](https://hanzo.ai/integrations/vercel-ai-sdk)[AutoGen](https://hanzo.ai/integrations/autogen)[CrewAI](https://hanzo.ai/integrations/crewai)[DSPy](https://hanzo.ai/integrations/dspy)[Haystack](https://hanzo.ai/integrations/haystack)[Cursor](https://hanzo.ai/integrations/cursor)[Continue.dev](https://hanzo.ai/integrations/continue-dev)[GitHub Copilot](https://hanzo.ai/integrations/github-copilot)[Docker](https://hanzo.ai/integrations/docker)[Kubernetes](https://hanzo.ai/integrations/kubernetes)[Python](https://hanzo.ai/integrations/python)[TypeScript](https://hanzo.ai/integrations/typescript)[Go](https://hanzo.ai/integrations/go)[Rust](https://hanzo.ai/integrations/rust)