Skip to content
Docs

Create a Scaleway Generative APIs key

This guide is part of the Publicus connection catalog. Once you have the credentials, connect the service and Publicus stores them for you.

Distilled from Scaleway’s Using Generative APIs, How to create a Scaleway Project, How to create an IAM application, Create an IAM policy, Permission sets, How to create API keys, Fixing common issues with Generative APIs and rate limits pages, retrieved 2026-10-16.

Scaleway Generative APIs serve open-weight models through an OpenAI-compatible API hosted in Paris. Scaleway’s privacy policy for Generative APIs applies zero data retention by default and does not use your data to train models.

A Scaleway API key has exactly the permissions of its bearer, so the setup below gives the key to an IAM application that can query models in one Project and do nothing else.

  1. Create a Project for AI usage, or pick an existing one. On the Organization Dashboard, open the Projects tab, click + Create Project, enter a Project Name and a description, and click Create Project (how to create a Project). A Project of its own keeps AI usage on its own bill and out of reach of keys for your other resources.

  2. Copy the Project ID from that Project’s Project settings. The connection needs it: Scaleway puts the Project in the API URL, https://api.scaleway.ai/{project_id}/v1 (Using Generative APIs).

  3. Create an IAM application. Click IAM & API keys in the top-right drop-down menu of the console, open the Applications tab and click Create application. Name it after where it will be used, skip attaching a policy for now, and click Create application (how to create an IAM application). Use an application rather than your own user: Scaleway recommends an application as the bearer of long-lived production keys, because its keys keep working when a member leaves the Organization (how to create API keys). Until a policy is attached, the application has no permissions.

  4. Give the application a policy. In IAM, open the Policies tab and click Create policy. Enter a name, select the application from step 3 as the principal, and add a rule (create an IAM policy):

    • permission set: GenerativeApisModelAccess (“Access to Generative APIs models”). It is the narrowest of the three sets Scaleway lists for querying models; GenerativeApisFullAccess and AllProductsFullAccess also work but grant more (permission sets);
    • scope: Specific projects, and select the Project from step 1.

    Click Confirm rule, then Create policy.

  5. Generate the API key. Back in IAM & API keys, open the API keys tab and click + Generate API key. Select the application from step 3 as the bearer, add a description, and choose an expiration. Object Storage is not involved, so answer No, skip for now. Click Generate API key (how to create API keys). Generating a key for an application takes the Organization Owner or the IAMManager or IAMApplicationManager permission set.

  6. Copy the secret key now. The screen shows an access key and a secret key, and this is the only time the secret key is shown. The connection needs the secret key; the access key is only an ID.

  7. Paste the secret key and the Project ID into the connection.

The connection checks the key by listing the models at https://api.scaleway.ai/{project_id}/v1/models, which runs no model. A 403 there means the key is valid but its policy does not reach that Project: without a Project ID in the URL, Scaleway uses the Organization’s default Project, so a key scoped to another Project is refused (fixing common issues).

Rate limits are set per Organization and shared by every Project in it, so a separate Project isolates access and billing but not the limits (rate limits).

Open Connections under Credentials, choose Scaleway, and pick Scaleway Generative APIs key. Publicus asks for exactly the fields listed above and keeps them in your workspace’s secret storage.

See also: Scaleway in the catalog.

This guide is maintained by Publicus and published under CC BY 4.0.