TensaHub › Scaleway Generative APIs

Scaleway Generative APIs

1M free tokens (hosted in Europe). curl, Python and JavaScript samples, live testing.

Test and rate in the catalog

Type
Provider
Provider
Scaleway Generative APIs
Pricing
Free + paid
Keyless access
No
Key variable
SCW_SECRET_KEY
Base URL (OpenAI-compatible)
https://api.scaleway.ai/v1
Inputs
Text
Developer rating
Not rated yet
Documentation
https://www.scaleway.com/en/generative-apis/
Last check
2026-12-04T20:20:29+00:00

Code samples

cURL

curl https://api.scaleway.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $SCW_SECRET_KEY" \
  -d '{"model":"MODEL_NAME","messages":[{"role":"user","content":"Hello, introduce yourself in one sentence."}]}'

Python

# pip install openai
import os
from openai import OpenAI

client = OpenAI(base_url="https://api.scaleway.ai/v1", api_key=os.environ["SCW_SECRET_KEY"])
r = client.chat.completions.create(
    model="MODEL_NAME",
    messages=[{"role": "user", "content": "Hello, introduce yourself in one sentence."}],
)
print(r.choices[0].message.content)

JavaScript

// npm install openai
import OpenAI from 'openai'

const client = new OpenAI({ baseURL: 'https://api.scaleway.ai/v1', apiKey: process.env.SCW_SECRET_KEY })
const r = await client.chat.completions.create({
  model: 'MODEL_NAME',
  messages: [{ role: 'user', content: 'Hello, introduce yourself in one sentence.' }],
})
console.log(r.choices[0].message.content)

Generate the integration code →

Popular searches

Frequently asked questions

Is the Scaleway Generative APIs API free?

Scaleway Generative APIs offers a limited free tier; beyond it, usage is paid.

How do I call Scaleway Generative APIs from my code?

Scaleway Generative APIs exposes an OpenAI-compatible API at https://api.scaleway.ai/v1: use any OpenAI SDK (Python, JavaScript…) with this base URL. Ready-to-use code (streaming, JSON, retries) is available in the developer toolkit.