mirror of
https://github.com/hanzoai/site.git
synced 2026-11-21 01:07:08 +00:00
1 line
2.6 KiB
JSON
1 line
2.6 KiB
JSON
{"text":["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","Get yours at","Fully OpenAI-compatible","400+ models","available","API Key:","platform.hanzo.ai/api-keys","Created by","License:","Apache-2.0","View source on GitHub →","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=","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","# Use hf for model downloads, Hanzo for inference","hf download meta-llama/Llama-","-Scout-17B-16E-Instruct","# Then serve via Hanzo API","openai","OpenAI","client = OpenAI","JS InferenceClient","typescript","@huggingface/inference","const","client = new",");","chatCompletion =","await","client.","chatCompletion","({","model","messages","provider","hanzo","endpointUrl","});","cURL inference","bash","curl","https://api.hanzo.ai/v1/chat/completions","-H","Authorization: Bearer","HANZO_API_KEY","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. The Free plan includes free model requests and Kai decisions, no card.","Get API key — Free","Browse Models","More integrations","OpenAI Python SDK","Anthropic SDK","LangChain","LlamaIndex","Vercel AI SDK","AutoGen","CrewAI","DSPy","Haystack","Cursor","Continue.dev","GitHub Copilot","Docker","Kubernetes","Python","TypeScript","Go","Rust"],"links":["/integrations","https://platform.hanzo.ai/api-keys","https://huggingface.co","https://github.com/huggingface/transformers","/models","/integrations/openai-sdk","/integrations/anthropic-sdk","/integrations/langchain","/integrations/llamaindex","/integrations/vercel-ai-sdk","/integrations/autogen","/integrations/crewai","/integrations/dspy","/integrations/haystack","/integrations/cursor","/integrations/continue-dev","/integrations/github-copilot","/integrations/docker","/integrations/kubernetes","/integrations/python","/integrations/typescript","/integrations/go","/integrations/rust"]} |