{"id":19146,"date":"2026-09-28T12:25:45","date_gmt":"2026-09-28T12:25:45","guid":{"rendered":"https:\/\/www.hostinger.com\/support\/?p=19146"},"modified":"2026-10-02T04:50:35","modified_gmt":"2026-10-02T04:50:35","slug":"what-is-hostinger-ai-router-and-how-to-get-started","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/what-is-hostinger-ai-router-and-how-to-get-started\/","title":{"rendered":"What is Hostinger AI Router and how to get started"},"content":{"rendered":"<p><!-- TITLE: What is Hostinger AI Router and how to get started SUBTITLE \/ META DESCRIPTION: Access leading AI models through one API key and one credit balance, managed in Hostinger dashboard CATEGORY: Hostinger AI Router SUGGESTED SLUG: what-is-hostinger-ai-router-and-how-to-get-started --><\/p><p><span style=\"font-weight: 400\"><a href=\"https:\/\/www.hostinger.com\/ai-router\">Hostinger AI Router<\/a> lets you use leading large language models through a single API key and a single Hostinger AI Router credit balance, without creating an account with each AI provider. Models from Anthropic, OpenAI, Google, xAI, and others are all reachable through the same connection, so you can compare models, avoid managing several API keys, and keep all your AI spending in one place.<\/span><\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">If you previously used nexos.ai credits, see <a href=\"https:\/\/www.hostinger.com\/support\/migrating-your-credits-from-nexos-ai-to-hostinger-ai-router-credits\/\">migrating your credits from nexos.ai to Hostinger AI Router credits<\/a> for what changes and how to update your setup.<\/div><h3>Before you start<\/h3><ul>\n<li>You need a Hostinger account to access AI Router. If you&rsquo;re new to Hostinger, see <a href=\"https:\/\/www.hostinger.com\/support\/how-to-use-hostingers-services\/\">how to get started with Hostinger&rsquo;s services<\/a> first.<\/li>\n<\/ul><h2 id=\"what_it_does\">What you can do with AI Router<\/h2><ul>\n<li><strong>Use every model through one key.<\/strong> Switch between models by changing a single parameter in your request. No new accounts, no extra keys.<\/li>\n<li><strong>Keep working during provider outages.<\/strong> If a model becomes unavailable, the router automatically reroutes your request.<\/li>\n<li><strong>Control your spending.<\/strong> Create a separate API key for each project or agent, and give each one its own daily and monthly limit and its own list of allowed models.<\/li>\n<li><strong>See where your credits go.<\/strong> Usage is broken down by day, by model, and by key in Hostinger dashboard.<\/li>\n<li><strong>Keep your existing code.<\/strong> AI Router is compatible with the OpenAI and Anthropic APIs, so most projects only need a change of base URL.<\/li>\n<li><strong>Use one balance everywhere.<\/strong> The same credits power AI Router and other Hostinger AI products, so a single top-up covers everything.<\/li>\n<\/ul><h2 id=\"h-how-hostinger-ai-router-credits-work\">How Hostinger AI Router credits work<\/h2><p>Hostinger AI Router is billed with Hostinger AI Router credits.&nbsp;You buy credits once and spend them as you make requests, with no subscription and no monthly commitment.<\/p><p>Each model has its own credit cost based on factors such as model size, reasoning capabilities, and response quality. More advanced models consume credits faster, while lighter models are more cost-efficient for simple tasks.<\/p><p>Your balance is checked before every request, so your AI credits can never go below zero. If your balance is too low to cover a request, the request is declined instead of being charged.<\/p><p>Your credit balance is shared across all applications and API keys connected to Hostinger AI Router, and across other Hostinger AI products that use AI credits.<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">You can buy credits at any time from <a href=\"https:\/\/hpanel.hostinger.com\/ai-router\" target=\"_blank\" rel=\"noopener\">AI Router<\/a> in Hostinger dashboard. Your balance and current usage are shown at the top of the page.<\/div><h2 id=\"getting_started\">How to get your Hostinger AI Router API key and base URL<\/h2><p>Everything you need to connect is in one place.<\/p><p>1. <a href=\"https:\/\/www.hostinger.com\/support\/1583518-how-to-access-the-dashboard-in-hostinger\/\">Log in to Hostinger dashboard<\/a><br>\n2. Open <strong>AI Router<\/strong><br>\n3. Copy your API key from the <strong>API key<\/strong> section. Hostinger keys start with <code>sk-hstgr-<\/code><br>\n4. Use <code>https:\/\/router.hostinger.com\/v1<\/code> as your base URL<\/p><p>Keep your API key private. It gives access to your credit balance, so treat it like a password. If a key is ever exposed, you can rotate it from the same page.<\/p><h2 id=\"h-how-to-make-your-first-request-with-hostinger-ai-router\">How to make your first request with Hostinger AI Router<\/h2><p>Hostinger AI Router works with the standard OpenAI and Anthropic client libraries. Point the client at the Hostinger base URL and use your Hostinger key.<\/p><p><strong>Python, using the OpenAI SDK<\/strong><\/p><pre><code>from openai import OpenAI\r\n\r\nclient = OpenAI(\r\n    api_key=\"sk-hstgr-YOUR_KEY_HERE\",\r\n    base_url=\"https:\/\/router.hostinger.com\/v1\"\r\n)\r\n\r\nresponse = client.chat.completions.create(\r\n    model=\"[MODEL_ID]\",\r\n    messages=[{\"role\": \"user\", \"content\": \"Hello\"}]\r\n)\r\n\r\nprint(response.choices[0].message.content)<\/code><\/pre><p><strong>curl<\/strong><\/p><pre><code>curl https:\/\/router.hostinger.com\/v1\/chat\/completions \\\r\n  -H \"Authorization: Bearer sk-hstgr-YOUR_KEY_HERE\" \\\r\n  -H \"Content-Type: application\/json\" \\\r\n  -d '{\r\n    \"model\": \"[MODEL_ID]\",\r\n    \"messages\": [{\"role\": \"user\", \"content\": \"Hello\"}]\r\n  }'<\/code><\/pre><p>You can copy the exact model ID for any model from <strong>Hostinger dashboard &rarr; AI Router &rarr; Models<\/strong>. To use a different model, change that one value. Nothing else in your code needs to change.<\/p><h2 id=\"multiple_keys\">How to manage multiple Hostinger AI Router API keys and spending limits<\/h2><p>You can create more than one API key and configure each one separately. This is useful when you run several projects or agents from the same account.<\/p><p>For each key you can:<\/p><ul>\n<li>Set a daily spending limit<\/li>\n<li>Set a monthly spending limit<\/li>\n<li>Choose which models the key is allowed to use<\/li>\n<li>See how much that specific key has spent, by day and by model<\/li>\n<\/ul><p>This means a single experiment or an agent left running by mistake can never consume more than the limit you set for it. Keys are created and managed in <strong>Hostinger dashboard &rarr; AI Router &rarr; API keys<\/strong>.<\/p><h2 id=\"summary\">Tips for using Hostinger AI Router effectively<\/h2><p>Hostinger AI Router removes the need to manage separate provider accounts and gives you access to multiple AI models out of the box. Start with a lighter model for simple or high-volume tasks, switch to a more capable model when a task needs it, and set a spending limit on every key you create.<\/p><p>You can monitor your balance and usage at any time in <strong>Hostinger dashboard &rarr; AI Router<\/strong>, and top up at <a href=\"https:\/\/hpanel.hostinger.com\/ai-router\" target=\"_blank\" rel=\"noopener\">AI Router<\/a> in Hostinger dashboard.<\/p><p>You&rsquo;re now set up to run requests against any supported model through a single key and balance, with spending limits in place for every project.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Connect to leading AI models with one API key and one Hostinger AI Router credit balance.<\/p>\n","protected":false},"author":568,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[321],"tags":[],"class_list":["post-19146","post","type-post","status-publish","format-standard","hentry","category-hostinger-ai-router"],"hreflangs":[],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/19146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/568"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=19146"}],"version-history":[{"count":5,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/19146\/revisions"}],"predecessor-version":[{"id":19499,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/19146\/revisions\/19499"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=19146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=19146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=19146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}