Skip to navigationSkip to main contentSkip to footerScaleway Docs HomepageAsk our AI
Ask our AI

Understanding rate limits in Scaleway Generative APIs - Serverless

Overview of quotas, rate limits, and budgets

Scaleway Generative APIs - Serverless has tools to manage usage, prevent abuse, and give you granular control over your spending across teams and end users.

  • Organization quotas: System-level limits managed by Scaleway. They apply globally across your entire Organization (measured in tokens per minute), to manage burst.
  • Project rate limits: Custom limits set by you at the Project level. These cannot exceed the top-level Organization quota (measured in tokens per minute) to manage burst.
  • User budgets: Usage limits set per end user (enforced on a daily or monthly timeframe, and measured in token volume) to manage costs.

Comparison of the different limits

Limit typeEnforced atMeasured inManaged by
Organization quotasOrganizationTokens/min, Queries/minScaleway (default)
Project rate limitsProjectTokens/min, Queries/minYou (Console)
User budgetsAPI key / End userDaily / Monthly allowance ($ or tokens)You (Console)

Base Organization limits (quotas) apply automatically if you registered a valid payment method, and are upgraded when you verify your identity. These values apply to your Organization, and are shared by all Projects within your Organization. The exact limit values are detailed in Organization quotas for Generative APIs - Serverless.

How to configure Project rate limits and User budget limits

You can customize Project-level rate limits and User budgets directly from the Scaleway console:

  1. In the Scaleway console (External link), go to AI > Generative APIs. A page displaying the list of models opens.

  2. Click the Rate limit tab.

  3. From here, click Edit limits next to the model you want, and choose:

    • Project rate limit: Set maximum tokens per minute allocated to this specific Project. Must be inferior to the Organization quota.
    • User daily budget: Define a daily consumption limit for end users.
    • User monthly budget: Define a monthly consumption limit for end users.

    A dialog box appears.

  4. Set the new limit, and click Edit rate limit (or Edit usage limit) to confirm.

How to increase the Organization rate limits (Organization quotas)

We actively monitor usage and will improve rates based on feedback. If you need to increase your rate limits:

Why do we set rate limits?

The Organization quotas safeguard against abuse or misuse of Scaleway Generative APIs - Serverless, helping to ensure fair access to the API with consistent performance.

Regarding the Project rate limits and User budgets, these mechanisms protect your account against unexpected runaway costs, guard against API misuse, and ensure consistent, reliable performance for all workloads.

How can I monitor rate limits?

Rate limit information is provided in HTTP response headers:

Header fieldExample valueDescription
x-ratelimit-limit-requests600Maximum number of requests allowed over a minute.
x-ratelimit-remaining-requests599Remaining number of requests allowed before reaching rate limit over a minute.
x-ratelimit-reset-requests250msTime until rate limit request usage resets to its initial value.
x-ratelimit-limit-tokens1000000Maximum number of tokens (input and output) allowed over a minute.
x-ratelimit-remaining-tokens999976Remaining number of tokens allowed before reaching rate limit over a minute.
x-ratelimit-reset-tokens35msTime until rate limit token usage resets to its initial value.

You can see these headers by performing the following HTTP request, using the curl -i option:

curl -i https://api.scaleway.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $SCW_SECRET_KEY" \
  -d '{
    "model": "mistral-small-3.2-24b-instruct-2506",
    "messages": [
      {
        "role": "system",
        "content": "You are a helpful assistant."
      },
      {
        "role": "user",
        "content": "Hello!"
      }
    ]
  }'
Still need help?

Create a support ticket
No Results