{"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-11-17T07:00:18","modified_gmt":"2026-11-17T07:00:18","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>\n<p><span style=\"font-weight: 400\"><a data-click-id=\"hgr-post-content-link-hostinger-ai-router\" href=\"\/ai-router\">Hostinger AI Router<\/a> lets you use leading large language models through a single API key and your Hostinger credits 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>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">If you previously used nexos.ai credits, see <a data-click-id=\"hgr-post-content-link-migrating-your-credits-from-nexos-ai-to-hostinger-credits\" href=\"https:\/\/www.hostinger.com\/support\/migrating-your-credits-from-nexos-ai-to-hostinger-credits\/\">migrating your credits from nexos.ai to Hostinger credits<\/a> for what changes and how to update your setup.<\/div>\n<h3>Before you start<\/h3>\n<ul>\n<li>You need a Hostinger account to access AI Router. If you&#8217;re new to Hostinger, see <a data-click-id=\"hgr-post-content-link-how-to-get-started-with-hostingers-services\" href=\"\/support\/how-to-use-hostingers-services\/\">how to get started with Hostinger&#8217;s services<\/a> first.<\/li>\n<\/ul>\n<h2 id=\"what_it_does\">What you can do with AI Router<\/h2>\n<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>Let Smart Routing pick the model for coding requests.<\/strong> Hostinger AI Router sends coding requests to the model it selects as best for the task, so you don&#8217;t need to choose one.<\/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>See how many credits caching saves.<\/strong> The Activity page shows the credits that caching saved for each request.<\/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> Hostinger AI Router spends from the same Hostinger credits balance as Hostinger AI Builder, Hostinger Agent, Hostinger Reach, and Hostinger GPU instances, so a single top-up covers everything.<\/li>\n<\/ul>\n<h2 id=\"h-how-hostinger-credits-work-with-hostinger-ai-router\">How Hostinger credits work with Hostinger AI Router<\/h2>\n<p>Hostinger AI Router is billed with Hostinger credits. You buy credits once and spend them as you make requests, with no subscription and no monthly commitment.<\/p>\n<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>\n<p>Your balance is checked before every request, so your Hostinger 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>\n<p>Your Hostinger credit balance is shared across all applications and API keys connected to Hostinger AI Router. The same balance is also used by Hostinger AI Builder, Hostinger Agent, Hostinger Reach, and Hostinger GPU instances, as explained in <a data-click-id=\"hgr-post-content-link-hostinger-credits-how-the-shared-balance-works\" href=\"https:\/\/www.hostinger.com\/support\/hostinger-credits-how-the-shared-balance-works\/\">Hostinger credits: How the shared balance works<\/a>. To check your balance or buy a top-up from any page, open the <b>Hostinger credits<\/b> page from the account menu, as described in <a data-click-id=\"hgr-post-content-link-how-to-check-your-hostinger-credits-balance-and-spending\" href=\"\/support\/how-to-check-your-hostinger-credit-balance-and-spending\/\">How to check your Hostinger credits balance and spending<\/a>.<\/p>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">You can buy credits at any time from <a data-click-id=\"hgr-post-content-link-ai-router\" 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>\n<h2 id=\"getting_started\">How to get your Hostinger AI Router API key and base URL<\/h2>\n<p>Everything you need to connect is in one place.<\/p>\n<p>1. <a data-click-id=\"hgr-post-content-link-log-in-to-hostinger-dashboard\" href=\"\/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>\n<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>\n<h2 id=\"h-how-to-make-your-first-request-with-hostinger-ai-router\">How to make your first request with Hostinger AI Router<\/h2>\n<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>\n<p><strong>Python, using the OpenAI SDK<\/strong><\/p>\n<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>\n<p><strong>curl<\/strong><\/p>\n<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>\n<p>You can copy the exact model ID for any model from <strong>Hostinger dashboard \u2192 AI Router \u2192 Models<\/strong>. To use a different model, change that one value. Nothing else in your code needs to change.<\/p>\n<h2 id=\"smart_routing\">Smart Routing for coding requests in Hostinger AI Router<\/h2>\n<p>Hostinger AI Router Smart Routing automatically sends each coding request to the model that Hostinger AI Router selects as best for the task. You don&#8217;t need to choose a model for coding requests.<\/p>\n<p>Smart Routing applies to coding requests only.<\/p>\n<h2 id=\"caching_savings\">Caching savings on the Activity page in Hostinger AI Router<\/h2>\n<p>The Activity page in Hostinger AI Router shows how many credits caching saved for each request. You can break the savings down by time period and by model.<\/p>\n<p>Hostinger AI Router caching can reduce token usage by up to 30%. Savings are calculated only for requests sent after caching savings were released, so older requests show no savings.<\/p>\n<h2 id=\"multiple_keys\">How to manage multiple Hostinger AI Router API keys and spending limits<\/h2>\n<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>\n<p>For each key you can:<\/p>\n<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>\n<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 \u2192 AI Router \u2192 API keys<\/strong>.<\/p>\n<h2 id=\"summary\">Tips for using Hostinger AI Router effectively<\/h2>\n<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>\n<p>You can monitor your balance and usage at any time in <strong>Hostinger dashboard \u2192 AI Router<\/strong>, and top up at <a data-click-id=\"hgr-post-content-link-ai-router-2\" href=\"https:\/\/hpanel.hostinger.com\/ai-router\" target=\"_blank\" rel=\"noopener\">AI Router<\/a> in Hostinger dashboard.<\/p>\n<p>You&#8217;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 your shared Hostinger credits balance.<\/p>\n","protected":false},"author":568,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_content_updated_date":"","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":12,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/19146\/revisions"}],"predecessor-version":[{"id":25450,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/19146\/revisions\/25450"}],"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}]}}