mirror of
https://github.com/hanzoai/site.git
synced 2026-11-21 01:07:08 +00:00
157 lines
3.3 KiB
JSON
157 lines
3.3 KiB
JSON
[
|
|
[
|
|
{
|
|
"a": "Integrations",
|
|
"href": "/integrations"
|
|
},
|
|
{
|
|
"h1": "Use Hanzo AI with Cursor"
|
|
},
|
|
{
|
|
"p": "Use Hanzo AI models inside Cursor IDE by adding a custom API provider. Access Zen, GPT-4.1, Claude Sonnet, and 50+ other models directly in your editor."
|
|
},
|
|
{
|
|
"p": "Base URL: https://api.hanzo.ai/v1"
|
|
},
|
|
{
|
|
"code": "https://api.hanzo.ai/v1"
|
|
},
|
|
{
|
|
"p": "API Key: Get yours at platform.hanzo.ai/api-keys · Fully OpenAI-compatible · every model on the gateway available"
|
|
},
|
|
{
|
|
"a": "platform.hanzo.ai/api-keys",
|
|
"href": "https://platform.hanzo.ai/api-keys"
|
|
},
|
|
{
|
|
"p": "Created by Anysphere"
|
|
},
|
|
{
|
|
"a": "Anysphere",
|
|
"href": "https://cursor.com"
|
|
},
|
|
{
|
|
"p": "License: Proprietary · View source on GitHub →"
|
|
},
|
|
{
|
|
"a": "View source on GitHub →",
|
|
"href": "https://github.com/getcursor/cursor"
|
|
},
|
|
{
|
|
"p": "Hanzo AI is OpenAI-compatible, so existing Cursor code works with zero refactoring. We deeply appreciate the Anysphere team for building and maintaining this open-source project."
|
|
},
|
|
{
|
|
"h2": "Cursor settings"
|
|
},
|
|
{
|
|
"code": "// Settings > Models > Add custom model { \" provider \" : \" openai-compatible \" , \" name \" : \" Hanzo AI \" , \" baseUrl \" : \" https://api.hanzo.ai/v1 \" , \" apiKey \" : \" your-hanzo-api-key \" , \" models \" : [ \" zen4-pro \" , \" zen4-max \" , \" openai/gpt-4.1 \" , \" anthropic/claude-sonnet-4-6 \" ] }"
|
|
},
|
|
{
|
|
"h2": "Available models"
|
|
},
|
|
{
|
|
"code": "# Query Hanzo models list curl https://api.hanzo.ai/v1/models \\ -H \" Authorization: Bearer $ HANZO_API_KEY \" | jq ' .data[].id '"
|
|
},
|
|
{
|
|
"h2": "Test connection"
|
|
},
|
|
{
|
|
"code": "curl https://api.hanzo.ai/v1/chat/completions \\ -H \" Authorization: Bearer $ HANZO_API_KEY \" \\ -H \" Content-Type: application/json \" \\ -d ' {\"model\":\"zen4-pro\",\"messages\":[{\"role\":\"user\",\"content\":\"Hello from Cursor!\"}],\"max_tokens\":50} '"
|
|
},
|
|
{
|
|
"h2": "Tips"
|
|
},
|
|
{
|
|
"code": "# zen4-pro: best for code generation # zen4-coder: specialized code model # zen4-thinking: step-by-step reasoning # openai/gpt-4.1: advanced reasoning # All available at api.hanzo.ai/v1"
|
|
},
|
|
{
|
|
"h2": "Ready to get started?"
|
|
},
|
|
{
|
|
"p": "Create a free account and get your API key. The Free plan includes free model requests and Kai decisions, no card."
|
|
},
|
|
{
|
|
"a": "Get API key — Free",
|
|
"href": "https://platform.hanzo.ai/api-keys"
|
|
},
|
|
{
|
|
"a": "Browse Models",
|
|
"href": "/models"
|
|
},
|
|
{
|
|
"h2": "More integrations"
|
|
},
|
|
{
|
|
"a": "OpenAI Python SDK",
|
|
"href": "/integrations/openai-sdk"
|
|
},
|
|
{
|
|
"a": "Anthropic SDK",
|
|
"href": "/integrations/anthropic-sdk"
|
|
},
|
|
{
|
|
"a": "LangChain",
|
|
"href": "/integrations/langchain"
|
|
},
|
|
{
|
|
"a": "LlamaIndex",
|
|
"href": "/integrations/llamaindex"
|
|
},
|
|
{
|
|
"a": "Vercel AI SDK",
|
|
"href": "/integrations/vercel-ai-sdk"
|
|
},
|
|
{
|
|
"a": "Hugging Face",
|
|
"href": "/integrations/huggingface"
|
|
},
|
|
{
|
|
"a": "AutoGen",
|
|
"href": "/integrations/autogen"
|
|
},
|
|
{
|
|
"a": "CrewAI",
|
|
"href": "/integrations/crewai"
|
|
},
|
|
{
|
|
"a": "DSPy",
|
|
"href": "/integrations/dspy"
|
|
},
|
|
{
|
|
"a": "Haystack",
|
|
"href": "/integrations/haystack"
|
|
},
|
|
{
|
|
"a": "Continue.dev",
|
|
"href": "/integrations/continue-dev"
|
|
},
|
|
{
|
|
"a": "GitHub Copilot",
|
|
"href": "/integrations/github-copilot"
|
|
},
|
|
{
|
|
"a": "Docker",
|
|
"href": "/integrations/docker"
|
|
},
|
|
{
|
|
"a": "Kubernetes",
|
|
"href": "/integrations/kubernetes"
|
|
},
|
|
{
|
|
"a": "Python",
|
|
"href": "/integrations/python"
|
|
},
|
|
{
|
|
"a": "TypeScript",
|
|
"href": "/integrations/typescript"
|
|
},
|
|
{
|
|
"a": "Go",
|
|
"href": "/integrations/go"
|
|
},
|
|
{
|
|
"a": "Rust",
|
|
"href": "/integrations/rust"
|
|
}
|
|
]
|
|
] |