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.

Facts checked on 20 November 2026 · No command on this page downloads and runs a script, or asks for administrator rights.

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
  1. 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.

  2. 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.

  3. 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.

    Mac
    python3 --version
    
    Windows · PowerShell
    py --version
    
  4. 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.

    infomaniak_test.py
    # 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"])
    
  5. 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.

    Mac
    export INFOMANIAK_TOKEN="paste-your-token-here"
    
    Windows · PowerShell
    $env:INFOMANIAK_TOKEN = "paste-your-token-here"
    
  6. Find your product ID

    The script lists your AI products. Look for “product_id” and copy the number after it.

    Mac
    python3 infomaniak_test.py
    
    Windows · PowerShell
    py infomaniak_test.py
    
  7. 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.

    Mac
    export INFOMANIAK_PRODUCT="your-product-id"
    python3 infomaniak_test.py
    
    Windows · PowerShell
    $env:INFOMANIAK_PRODUCT = "your-product-id"
    py infomaniak_test.py
    
  8. 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.

  9. 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.

  1. Infomaniak AI Services
  2. Infomaniak Getting started guide: AI Tools
  3. Infomaniak Create an API token
  4. Infomaniak API: list AI products
  5. Infomaniak API: chat completions (OpenAI-compatible)
  6. Infomaniak AI Services prices
  7. 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.

Contact

A question? A project?

A real person reads every message. No commitment.

We only use this information to reply to you. See our privacy policy.

A personal reply, usually within 2 working days.