mirror of
https://github.com/hanzoai/site.git
synced 2026-11-20 21:21:13 +00:00
1 line
6.1 KiB
JSON
1 line
6.1 KiB
JSON
{"text":["SDKs","SDKs for every language","generated from the OpenAPI document the API itself serves, and a hand-written","library.","full Cloud SDK","AI + Agents","hanzoai/sdk","API reference","POST https://api.hanzo.ai/v1/chat/completions","Python","TypeScript","cURL","from","openai","import","OpenAI","client = OpenAI","base_url=","https://api.hanzo.ai/v1","api_key=","hk-...","# your Hanzo API key","resp = client","chat","completions","create","model=","zen5","# any model on the gateway","messages=","[{","role","user","content","Hello!","}],","print","resp","choices","].","message","const","client = new","({","baseURL","apiKey","});","resp =","await","client.chat.completions.","model","messages","console.","log","resp.choices",".message.content",");","curl","https://api.hanzo.ai/v1/chat/completions","-H","Authorization: Bearer","HANZO_API_KEY","Content-Type: application/json","-d","\"model\": \"zen5\",","\"messages\": [{\"role\": \"user\", \"content\": \"Hello!\"}]","Paste and ship","Paste this into any agent. It reads the skill manifest and calls SDKs from there.","Agent prompt","Copy","Read https://hanzo.ai/skill.md and use Hanzo SDKs in my project.","Full Cloud SDK","Generated from one document and never edited by hand, so every route is reachable the day it ships — models, agents, data, compute, network, security, platform and chain. Method and class names are the document's operation ids, which is what makes a client checkable against a release instead of against somebody's memory. Real code lives in","hanzo-<lang>/sdk","The hand-crafted flagship: models, agents, tools, memory, and MCP. Python","is the most complete; Node ships",". Distinct from the generated cloud SDK — this is the \"we love this language\" library.","hanzo","@hanzo/ai","Code Examples","Use the OpenAI SDK","POST /v1/chat/completions — identical request/response to OpenAI Chat Completions.","🐍","📘","🔗","Point the official OpenAI SDK at the Hanzo gateway.","Use the Anthropic SDK","POST /v1/messages — the native Anthropic Messages API, x-api-key auth and content-block responses.","Point the official Anthropic SDK at the Hanzo gateway.","anthropic","Anthropic","client = Anthropic","https://api.hanzo.ai","# sent as the x-api-key header","msg = client","max_tokens=","1024","msg","text","SDKs & Libraries","Official Cloud SDKs","Use our official SDKs to integrate Cloud into your application","Hanzo Python SDK","PyPI","pip install hanzoai","hanzoai","Docs","Hanzo Go SDK","Go Modules","go get github.com/hanzoai/go-sdk","github.com/hanzoai/go-sdk","Hanzo TypeScript SDK","npm","npm install @hanzo/sdk","@hanzo/sdk","Hanzo Rust SDK","crates.io","cargo add hanzo","Hanzo Swift SDK","SwiftPM",".package(url: \"https://github.com/hanzo-swift/sdk\")","hanzo-swift/sdk","Hanzo Kotlin SDK","JitPack","implementation(\"com.github.hanzo-kt:sdk:v8.0.0\")","hanzo-kt/sdk","Per-language orgs","A home for every ecosystem","Each language has its own org holding the generated cloud SDK, an AI + agents library and the split-out packages. Every one of them ships the same six runnable examples — prove the key works, one completion, balance and usage, a store round-trip, create and run an agent, list the tools — so knowing one language's set is enough to navigate another's.","Flagship","GA","hanzo-py","hanzo-py/sdk","sdk","hanzoai/python-sdk","docs","ai","Go","hanzo-go","hanzo-go/sdk","hanzoai/go-sdk","hanzo-js","hanzo-js/sdk","hanzoai/js-sdk","Rust","hanzo-rs","hanzo-rs/sdk","hanzoai/rust-sdk","Swift","hanzo-swift","hanzoai/swift-sdk","Kotlin","hanzo-kt","hanzoai/kotlin-sdk","AI + Agents SDK","The flagship AI library","Models, agents, tools, memory, and MCP — hand-crafted, not generated. Python leads; Rust and Node follow.","pip install hanzo","Flagship — the most complete AI + agents library.","Node","hanzo-js/ai","npm install @hanzo/ai","Models, agents, tools, memory, and MCP for TypeScript.","The AI + agents crate for Rust — crypto, DID, MCP, agents, embeddings, feature-gated.","Go modules","Served at hanzo.ai","Each module has a page at its import path, with its source and its reference.","hanzo.ai/","lz4/v4","openrouter","sendgrid","age","agent","base-ha","builder","cd","cek","ci","cpy3","csqlite","dashscope-go-sdk","dashscopego","dbx","egress","finance","flags","framework","gochimp3","graph","grpc-web","ingress-parser","insights-go","kafka","kms-operator","livekit","ltx","namespace","notify","o11y-foundry","onnxgo","orm","otel-collector","pdf","proto","pubsub-go","replicate","search-go","sqlcipher","sqlite","sqlite-vec","tygoja","vfs","xorm","yaegi","zip","SDKs docs →","The OpenAI JS SDK — just change baseURL.","OpenAI-style: Authorization: Bearer.","The Anthropic JS SDK — just change baseURL.","@anthropic-ai/sdk","msg =","client.messages.","max_tokens","msg.content",".text","Anthropic-style: /v1/messages, x-api-key header.","https://api.hanzo.ai/v1/messages","x-api-key:","anthropic-version: 2023-06-01","\"max_tokens\": 1024,"],"links":["https://github.com/hanzoai/sdk","https://docs.hanzo.ai/docs/openapi/","https://pypi.org/project/hanzoai/","https://docs.hanzo.ai/docs/sdks/python","https://pkg.go.dev/github.com/hanzoai/go-sdk","https://docs.hanzo.ai/docs/sdks/go","https://www.npmjs.com/package/@hanzo/sdk","https://crates.io/crates/hanzo","https://docs.hanzo.ai/docs/sdks/rust","https://github.com/hanzo-swift","https://docs.hanzo.ai/docs/sdks/swift","https://github.com/hanzo-kt/sdk","https://docs.hanzo.ai/docs/sdks/kotlin","https://github.com/hanzo-py","https://github.com/hanzo-go","https://github.com/hanzo-js","https://github.com/hanzo-rs","https://github.com/hanzo-kt","/lz4/v4","/openai","/openrouter","/sdk","/sendgrid","/age","/agent","/base-ha","/builder","/cd","/cek","/ci","/cpy3","/csqlite","/dashscope-go-sdk","/dashscopego","/dbx","/egress","/finance","/flags","/framework","/gochimp3","/graph","/grpc-web","/ingress-parser","/insights-go","/kafka","/kms-operator","/livekit","/log","/ltx","/namespace","/notify","/o11y-foundry","/onnxgo","/orm","/otel-collector","/pdf","/proto","/pubsub-go","/replicate","/search-go","/sqlcipher","/sqlite","/sqlite-vec","/tygoja","/vfs","/xorm","/yaegi","/zip","https://docs.hanzo.ai/docs/sdks"]} |