Files

1 line
6.0 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[{"@context": "https://schema.org", "@graph": [{"@type": "Organization", "@id": "https://hanzo.ai/#organization", "name": "Hanzo AI", "legalName": "Hanzo AI, Inc.", "alternateName": "Crowdstart", "url": "https://hanzo.ai", "logo": {"@type": "ImageObject", "url": "https://hanzo.ai/brand/hanzo-logo.png", "width": 696, "height": 696}, "foundingDate": "2014", "funder": {"@type": "Organization", "name": "Techstars", "sameAs": "https://www.techstars.com"}, "founder": [{"@type": "Person", "name": "Antje Worring", "jobTitle": "CEO", "sameAs": ["https://www.linkedin.com/in/antje-worring/", "https://github.com/zooqueen"]}, {"@type": "Person", "name": "Zach Kelling", "jobTitle": "CTO", "sameAs": ["https://www.linkedin.com/in/zeekay/", "https://github.com/zeekay"]}], "subjectOf": [{"@type": "NewsArticle", "headline": "Hanzo Joins Techstars '17", "datePublished": "2017-06-08", "url": "https://hanzo.blog/2017-06-08-techstars-17/"}, {"@type": "NewsArticle", "headline": "Techstars Spotlight: Hanzo’s e-commerce tools designed to make you money", "datePublished": "2017-10-10", "publisher": {"@type": "Organization", "name": "Startland News"}, "url": "https://startlandnews.com/2017/10/techstars-spotlight-hanzos-e-commerce-tools-designed-to-make-you-money/"}], "sameAs": ["https://github.com/hanzoai", "https://x.com/hanzoai", "https://discord.gg/XthHQQj", "https://linkedin.com/company/hanzo-ai", "https://facebook.com/hanzoinc", "https://bsky.app/profile/hanzoai.bsky.social", "https://www.reddit.com/r/HanzoAI/", "https://www.tiktok.com/@hanzoinc", "https://www.instagram.com/hanzoinc", "https://hanzo.help", "https://hanzo.community", "https://docs.hanzo.ai", "https://hanzo.id", "https://platform.hanzo.ai", "https://status.hanzo.ai", "https://hanzoskills.com"], "slogan": "The AI operating system for business", "description": "The AI operating system for business. Building business software since 2014. Techstars '17.", "contactPoint": [{"@type": "ContactPoint", "contactType": "customer support", "email": "[email protected]", "url": "https://hanzo.ai/contact"}, {"@type": "ContactPoint", "contactType": "sales", "email": "[email protected]", "url": "https://hanzo.ai/contact-sales"}, {"@type": "ContactPoint", "contactType": "security", "email": "[email protected]", "url": "https://hanzo.ai/.well-known/security.txt"}, {"@type": "ContactPoint", "contactType": "investor relations", "email": "[email protected]", "url": "https://hanzo.ai/investors"}, {"@type": "ContactPoint", "contactType": "sales", "url": "https://cal.com/hanzo"}]}, {"@type": "WebSite", "@id": "https://hanzo.ai/#website", "url": "https://hanzo.ai", "name": "Hanzo AI", "description": "The AI operating system for business: chat, Dev, Studio, agents and one API on every model. Building business software since 2014. Techstars '17. Start free.", "publisher": {"@id": "https://hanzo.ai/#organization"}}, {"@type": "SoftwareApplication", "@id": "https://hanzo.ai/#platform", "name": "Hanzo", "applicationCategory": "BusinessApplication", "operatingSystem": "Web, macOS, Windows, Linux", "url": "https://hanzo.ai", "publisher": {"@id": "https://hanzo.ai/#organization"}, "offers": {"@type": "Offer", "name": "Free", "price": "0", "priceCurrency": "USD", "url": "https://hanzo.ai/pricing", "description": "Free model requests on Enso Free and Zen Free, plus Kai decisions, per person. No card."}, "description": "The AI operating system for business: Chat, Dev, Studio, Tabs, Bot and one API at api.hanzo.ai for every model, Kai decisions and agents, with one key."}, {"@type": "WebAPI", "@id": "https://hanzo.ai/#api", "name": "Hanzo API", "url": "https://api.hanzo.ai/v1", "documentation": "https://hanzoskills.com/hanzo.md", "provider": {"@id": "https://hanzo.ai/#organization"}, "description": "One API for every model, Kai decisions and agents. An agent with a wallet signs up, mints a key and tops up in USDC with no human."}]}, {"@context": "https://schema.org", "@type": ["HowTo", "SoftwareApplication"], "name": "Use Hanzo AI with Python", "description": "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.", "applicationCategory": "DeveloperApplication", "operatingSystem": "Any", "offers": {"@type": "Offer", "price": "0", "priceCurrency": "USD"}, "author": {"@type": "Organization", "name": "Python Software Foundation", "url": "https://python.org"}, "license": "https://github.com/python/cpython", "step": [{"@type": "HowToStep", "position": 1, "name": "OpenAI SDK (recommended)", "text": "pip install openai\n\nfrom openai import OpenAI\n\nclient = OpenAI(\n base_url=\"https://api.hanzo.ai/v1\",\n api_key=\"your-hanzo-api-key\",\n)\n\nresponse = client.chat.completions.create(\n model=\"zen4-pro\",\n messages=[{\"role\": \"user\", \"content\": \"Hello!\"}],\n)\nprint(response.choices[0].message.content)"}, {"@type": "HowToStep", "position": 2, "name": "httpx (raw HTTP)", "text": "import httpx, json\n\nresponse = httpx.post(\n \"https://api.hanzo.ai/v1/chat/completions\",\n headers={\"Authorization\": \"Bearer your-hanzo-api-key\"},\n json={\n \"model\": \"zen4-pro\",\n \"messages\": [{\"role\": \"user\", \"content\": \"Hello!\"}],\n },\n)\nprint(response.json()[\"choices\"][0][\"message\"][\"content\"])"}, {"@type": "HowToStep", "position": 3, "name": "Async with asyncio", "text": "import asyncio\nfrom openai import AsyncOpenAI\n\nclient = AsyncOpenAI(\n base_url=\"https://api.hanzo.ai/v1\",\n api_key=\"your-hanzo-api-key\",\n)\n\nasync def main():\n response = await client.chat.completions.create(\n model=\"zen4-pro\",\n messages=[{\"role\": \"user\", \"content\": \"Hello async!\"}],\n )\n print(response.choices[0].message.content)\n\nasyncio.run(main())"}, {"@type": "HowToStep", "position": 4, "name": "Environment setup", "text": "# .env\nHANZO_API_KEY=your-hanzo-api-key\n\n# Load in code\nfrom dotenv import load_dotenv\nimport os\n\nload_dotenv()\n\nfrom openai import OpenAI\nclient = OpenAI(\n base_url=\"https://api.hanzo.ai/v1\",\n api_key=os.environ[\"HANZO_API_KEY\"],\n)"}]}]