AI models · Step by step
Use a Swiss-hosted AI model through Infomaniak’s API
Apertus, Gemma, Mistral or Qwen, running in Infomaniak’s Swiss data centres. Your first answer from Apertus in about twenty minutes, with a free month to test.
Key points
- Infomaniak says requests are neither recorded nor used to train models, and run in its Swiss data centres.
- The API uses OpenAI’s format, so many existing tools can connect to it.
- The free trial gives one million credits for a month; a credit card is required.
Step by step
Install Infomaniak
About 20 minutes. Commands to copy, for a Mac or a Windows PC.
Before you start
- An Infomaniak account and a credit card for the free trial
- Python 3, free from python.org, for the test script only
- A Mac or a Windows PC
-
Open AI Tools in the Infomaniak Manager
Sign in at manager.infomaniak.com and open the AI Tools product. There can be one per organisation. Start the free trial.
-
Create an API token
In your profile, open the API tokens page and create a new token. Select the AI product, choose a short validity, confirm with your password and copy the token: it is shown only once. Treat it like a password.
-
Open a terminal and check Python
Mac: Terminal, in Applications › Utilities. Windows: PowerShell, from the Start menu. You should see a version number; if not, install Python from python.org first.
python3 --versionpy --version -
Save the test script
Open TextEdit (Mac: Format › Make Plain Text) or Notepad (Windows), paste this script and save it as infomaniak_test.py in your home folder. It uses only Python’s built-in tools: nothing else to install.
# Test of the Infomaniak AI API (Swiss-hosted). # Your token and product ID come from the terminal, never from this file. import json import os import urllib.request API = "https://api.infomaniak.com" TOKEN = os.environ["INFOMANIAK_TOKEN"] PRODUCT = os.environ.get("INFOMANIAK_PRODUCT") def call(path, body=None): data = json.dumps(body).encode() if body else None headers = {"Authorization": "Bearer " + TOKEN, "Content-Type": "application/json"} request = urllib.request.Request(API + path, data=data, headers=headers) with urllib.request.urlopen(request) as response: return json.load(response) if not PRODUCT: print(json.dumps(call("/1/ai"), indent=2)) else: question = {"role": "user", "content": "Hello! In two sentences, what is a Swiss SME?"} body = {"model": "swiss-ai/Apertus-v1.5-70B", "messages": [question]} answer = call("/2/ai/" + PRODUCT + "/openai/v1/chat/completions", body) print(answer["choices"][0]["message"]["content"]) -
Give the script your token
Replace paste-your-token-here with your token. It stays in this terminal window only, and disappears when you close it.
export INFOMANIAK_TOKEN="paste-your-token-here"$env:INFOMANIAK_TOKEN = "paste-your-token-here" -
Find your product ID
The script lists your AI products. Look for “product_id” and copy the number after it.
python3 infomaniak_test.pypy infomaniak_test.py -
Ask Apertus a question
Replace your-product-id with that number, then run the script again. The answer comes from Apertus 1.5 70B (in beta at Infomaniak), processed in Switzerland.
export INFOMANIAK_PRODUCT="your-product-id" python3 infomaniak_test.py$env:INFOMANIAK_PRODUCT = "your-product-id" py infomaniak_test.py -
Connect your own tools
Any tool made for OpenAI’s API can use Infomaniak: base address https://api.infomaniak.com/2/ai/YOUR-PRODUCT-ID/openai/v1, your token as the API key, and a model name from Infomaniak’s list, such as swiss-ai/Apertus-v1.5-70B or google/gemma-4-31B-it.
-
When you’re done
Delete the token in the Manager if you no longer need it, and watch your credits in the AI Tools dashboard.
Steps from Infomaniak’s own guides and API documentation, checked on 20 November 2026. We didn’t run them for this page; if a screen looks different, tell us. Prices and model names change: check Infomaniak’s price list before you commit.
Sources
Every fact on this page comes from the provider’s own pages, checked on the date shown. Facts checked on 20 November 2026.
- Infomaniak AI Services
- Infomaniak Getting started guide: AI Tools
- Infomaniak Create an API token
- Infomaniak API: list AI products
- Infomaniak API: chat completions (OpenAI-compatible)
- Infomaniak AI Services prices
- Infomaniak Open-source models
Models change fast. Tell us if a fact is out of date and we’ll check and correct it.
NotHuman is independent and not affiliated with, endorsed or sponsored by any AI provider named here. Names are trademarks of their owners.