Skip to main content

Scaleway Generative APIs smart home integration, free and open source

Scaleway Generative APIs integration for Gladys Assistant

Run the Gladys assistant on Scaleway Generative APIs: open models hosted in Paris.

Overview​

This integration runs the Gladys assistant on Scaleway Generative APIs, the AI service of Scaleway: open models (Mistral, Qwen, DeepSeek, Gemma…) served from its data centres in Paris, billed per token. Once selected in Settings → Artificial Intelligence, every AI request of Gladys goes to Generative APIs: the chat and the devices it controls, the scenes it creates, the "ask the AI" scene action and the weekly digest. It works with or without a Gladys Plus account.

It also adds two scene triggers (the assistant fails, the assistant answers again) and a dashboard widget with the requests, the tokens and an estimated cost in euros of the day and the month.

Not affiliated with Scaleway. Not tested with a real key yet: feedback is welcome.

Requirements​

  • Gladys Assistant 5.3.0 or newer.
  • A Scaleway account with a payment method: the base rate limits apply once it is registered, and rise once the identity is verified.
  • An API key: Scaleway console → Security and Identity → API keys → Generate an API key, for a user or an application with the GenerativeApisModelAccess permission set (or the owner of the organization). Copy the secret key (a UUID): it is shown only once; an expiry date is optional.
  • Price: the first million tokens are free, then per token, in euros before tax, different for each model (for instance Mistral Medium 3.5: €1.50 per million input tokens and €7.50 per million output tokens; Mistral Small 3.2: €0.15 and €0.35, public prices of December 2026). A chat message makes at least two requests (router, then chat). The Scaleway bill stays the reference.
  • Limits: tokens and requests per minute for the organization, plus the optional limits and budgets you set per project in the console (Generative APIs → Rate limit tab).
  • What leaves your home: every chat message, the history, the tools Gladys offers and their results (the state of the devices the assistant reads) and the chat images go to Scaleway over HTTPS. Scaleway says it applies a zero data retention policy, never uses them to train a model and processes them in France; it may keep for up to two weeks a request that causes a server error, to investigate it. The answers control your devices and create scenes.

Configuration​

Field or buttonDefaultPurpose
Secret key—Required. Never shown again, never logged
Project ID (optional)—Empty: the default project. Otherwise the requests and the bill go to that project
Chat modelMistral Medium 3.5Answers the chat, creates the scenes, writes the weekly digest
Router modelMistral Small 3.2Sorts every message before the answer and must reply within 20 seconds
Other model id—Only for "Other model": the exact id of a chat model (function calling!)
Reasoning of the chat modelLowMore reasoning, better scenes, slower answers that use more tokens
Maximum answer length (tokens)8192A ceiling, reasoning included, bounded by each model: only the tokens written count
Test the connection—A short answer from each model with its time and the requests left this minute

The status of the Configuration screen says whether Scaleway accepts the key and whether both models are chat models served by Generative APIs, without spending anything.

Usage​

  1. Integrations → Scaleway Generative APIs → Configuration: paste the secret key, keep the default models, press Test the connection.
  2. Settings → Artificial Intelligence: choose Scaleway Generative APIs.
  3. Talk to Gladys in the chat: "turn on the living room", "what is the temperature in the bedroom?", "create a scene that closes the shutters at sunset".

Choosing the models​

  • Mistral Medium 3.5 (chat default): the model of Mistral AI, multilingual, calls tools and reads the images of the chat; the most expensive of the list.
  • Qwen 3.8 27B and DeepSeek V4.1 Flash: capable with tools, read images, and cost less (tokens already seen are billed at the cache price).
  • Qwen 3.5 397B, Qwen 3.6 35B and Gemma 4 26B: other models that read images; GLM 5.3 does not read images.
  • Mistral Small 3.2 (router default): does not reason, answers fast, reads images and calls tools; a good chat model too for a small home, at €0.15 / €0.35 per million tokens.
  • Other model: any id of a chat model of the supported models list that supports function calling, such as qwen3-235b-a22b-instruct-2507. An embedding, OCR or transcription model is refused at once. GPT-OSS 120B is not offered: at Scaleway it does not call tools through the Chat Completions API.

At Scaleway, the models that reason do so by default: the integration therefore always sends a level, "off" included, and reasoning is turned off for the router. Each model gets the closest level it accepts, from the public catalog of Scaleway (Mistral Medium 3.5 has only "off" and "high": "low" gives "off"); Mistral Small 3.2 never reasons. If a model refuses the parameter, the integration sends it without from then on.

Dashboard widget​

The Scaleway AI usage widget shows the requests, tokens, estimated cost and errors of the day, the estimated cost of the month, the tokens per day over 30 days, whether Scaleway answers, the models, the last request and the last error, and a link to the console. The cost is estimated by the integration from the public prices of Scaleway, read again every 12 hours (in euros before tax, without the free million tokens): the bill stays the reference, and requests made outside Gladys with the same key are not in it.

The usage widget: requests, tokens, estimated cost and errors of the day, estimated cost of the month, tokens per day, models, last request and last error (generated illustration, not a screenshot)

Scenes​

  • Trigger "Scaleway: the assistant fails": once per failure (key refused, rate limit, request too large, model unavailable, API unreachable, too slow, Scaleway error), with the kind, the message, the request and the model.
  • Trigger "Scaleway: the assistant answers again": the first answer after a failure, with the minutes of failure.

No scene action of its own: the "ask the AI" action of Gladys already asks the model chosen here. Examples: when the assistant fails because the key is refused, send a Telegram message to the administrator; when it answers again, tell them how many minutes the failure lasted.

Troubleshooting​

  • "Scaleway refused the secret key": the key is wrong, expired or revoked, its user or application lacks the GenerativeApisModelAccess permission set, or the Project ID is not one of its projects.
  • "Generative APIs rate limit reached": wait a minute; add a payment method or verify your identity for higher limits, or raise the limit of the project in the console.
  • "… is not served by Generative APIs - Serverless": the id is wrong or the model was retired.
  • "… has reached its end of life at Scaleway": its requests already go to a successor model; choose a newer model.
  • "cannot read images": choose Mistral Medium 3.5 as the chat model.
  • "The answer was cut at max_tokens": raise the maximum answer length.
  • Logs: Settings → System, the logs of the integration. Never share your secret key.

Configuration settings​

These are the settings Scaleway Generative APIs asks for in its configuration screen in Gladys.

SettingTypeRequiredDescription
Getting startedsectionNoGenerative APIs is the AI service of Scaleway: open models (Mistral, Qwen, DeepSeek, Gemma…) served from its data centres in Paris, billed per token. Create an API key in the Scaleway console (Security and Identity, API keys) for a user or an application with the GenerativeApisModelAccess permission set, paste its secret key below, then select this integration in Settings, Artificial Intelligence. Scaleway then sees every chat message, the history, the state of the devices the assistant reads and the chat images; it says it keeps no prompt (zero data retention) and trains no model on them.
Price and limitssectionNoThe first million tokens are free, then you pay per token, in euros before tax: about €1.50 per million tokens read and €7.50 per million written with Mistral Medium 3.5, a few cents a day for a household. The widget estimates the cost from the public prices of Scaleway, without the free tier; the Scaleway bill stays the reference. Limits: tokens and requests per minute of the organization (higher once a payment method is added and the identity verified), and optional limits and budgets you set per project in the console.
Secret keysecretYesThe secret key of the API key (a UUID), shown only once when the key is created. It stays in Gladys and is never shown again nor logged. Give the key an expiry date if you like: the status says when it is refused.
Project ID (optional)stringNoLeave empty to use the default project of the organization. To send the requests and the bill to another project (Project settings in the console), paste its ID: the rate limits and user budgets of that project then apply.
Chat modelselectYesAnswers the chat, creates the scenes and writes the weekly digest. Mistral Medium 3.5 is French, multilingual and reads the images of the chat; Qwen 3.8 27B and DeepSeek V4.1 Flash cost less; GLM 5.3 does not read images.
Router modelselectYesSorts every chat message before the answer, and must reply within 20 seconds: Mistral Small 3.2 does not reason and answers fast. The others get reasoning turned off here.
Other model idstringNoOnly for “Other model”: the exact id of a chat model of Generative APIs - Serverless (supported models page of the docs), such as a newer model. It must support function calling.
Reasoning of the chat modelselectYesMost models reason by default at Scaleway: more reasoning gives better scenes but slower answers that use more tokens. Each model gets the closest level it accepts (Mistral Medium 3.5 has only Off and High, so Low gives Off); Mistral Small 3.2 never reasons.
Maximum answer length (tokens)numberNoA ceiling for one answer, reasoning included, bounded by each model (16k to 32k): only the tokens written are billed. Raise it if the logs say an answer hit max_tokens.

How to install Scaleway Generative APIs in Gladys​

  1. In Gladys, open Integrations: Scaleway Generative APIs appears in the catalog, next to the native integrations, with a community badge.
  2. Click Install. Gladys pulls the Docker image (ghcr.io/william-de71/gladys-scaleway-generative-apis:0.1.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration).
  3. Open the Configuration screen of the integration, fill in the settings, and save.
  4. You can also install it directly from its repository URL: https://github.com/William-De71/gladys-scaleway-generative-apis.

Scaleway Generative APIs requires Gladys >=5.3.0. The catalog inside Gladys refreshes every hour, so a new version becomes available at most one hour after its release.

Not running Gladys yet? It is free and open source: follow the installation guide to get started.

About external integrations​

Scaleway Generative APIs is an external integration: a community integration packaged as a Docker container and published on GitHub, that Gladys installs in one click and runs in a sandbox isolated from its core. It is published and maintained by William-De71, not by the Gladys core team.

Subscribe to the Gladys Assistant newsletter

A few emails per month about new releases and project news. Sent by Pierre-Gilles Leymarie, founder of the project. Unsubscribe anytime 🙂