The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
feat(scaleway): add scaleway provider (#21121)
fpagny37157ee35fcc
diff --git a/docs/my-website/docs/providers/scaleway.md b/docs/my-website/docs/providers/scaleway.mdnew file mode 100644index 00000000000..ea57c24db30--- /dev/null+++ b/docs/my-website/docs/providers/scaleway.md@@ -0,0 +1,62 @@++# Scaleway+LiteLLM supports all [models available on Scaleway Generative APIs ↗](https://www.scaleway.com/en/docs/generative-apis/reference-content/supported-models/).++## Usage with LiteLLM Python SDK++```python+import os+from litellm import completion++os.environ["SCW_SECRET_KEY"] = "your-scaleway-secret-key"++messages = [{"role": "user", "content": "Write a short poem"}]+response = completion(model="scaleway/qwen3-235b-a22b-instruct-2507", messages=messages)+print(response)+```++## Usage with LiteLLM Proxy++### 1. Set Scaleway models in config.yaml++```yaml+model_list:+ - model_name: scaleway-model+ litellm_params:+ model: scaleway/qwen3-235b-a22b-instruct-2507+ api_key: "os.environ/SCW_SECRET_KEY" # ensure you have `SCW_SECRET_KEY` in your .env+```++### 2. Start proxy++```bash+litellm --config config.yaml+```++### 3. Query proxy++Assuming the proxy is running on [http://localhost:4000](http://localhost:4000):+```bash+curl http://localhost:4000/chat/completions \+ -H "Content-Type: application/json" \+ -H "Authorization: Bearer YOUR_LITELLM_MASTER_KEY" \+ -d '{+ "model": "scaleway-model",+ "messages": [+ {+ "role": "system",+ "content": "You are a helpful assistant."+ },+ {+ "role": "user",+ "content": "Write a short poem"+ }+ ]+ }'+```+`-H "Authorization: Bearer YOUR_LITELLM_MASTER_KEY" ` is only required if you have set a LiteLLM master key+++## Supported features++Scaleway provider supports all features in [Generative APIs reference documentation ↗](https://www.scaleway.com/en/developers/api/generative-apis/), such as streaming, structured outputs and tool calling.diff --git a/docs/my-website/sidebars.js b/docs/my-website/sidebars.jsindex 579b5699101..7cb6f624c34 100644--- a/docs/my-website/sidebars.js+++ b/docs/my-website/sidebars.js@@ -873,6 +873,7 @@ const sidebars = {},"providers/sambanova","providers/sap",+ "providers/scaleway","providers/stability","providers/synthetic","providers/snowflake",diff --git a/litellm/llms/openai_like/providers.json b/litellm/llms/openai_like/providers.jsonindex b4f9cbe42de..1b1b1c2f8cc 100644--- a/litellm/llms/openai_like/providers.json+++ b/litellm/llms/openai_like/providers.json@@ -26,6 +26,10 @@"max_completion_tokens": "max_tokens"}},+ "scaleway": {+ "base_url": "https://api.scaleway.ai/v1",+ "api_key_env": "SCW_SECRET_KEY"+ },"synthetic": {"base_url": "https://api.synthetic.new/openai/v1","api_key_env": "SYNTHETIC_API_KEY",