Skip to content

OVHcloud AI Endpoints

OVHcloud AI Endpoints offers access to a wide range of language models from a European cloud provider, with data sovereignty and GDPR compliance.

The OpenAI provider is an optional dependency. To install, run:

Terminal window
pip install 'strands-agents[openai]'

Generate an API key in the OVHcloud Manager under Public Cloud > AI & Machine Learning > AI Endpoints > API keys, export it as OVHCLOUD_API_KEY, and point the provider at the AI Endpoints endpoint:

import os
from strands import Agent
from strands.models.openai import OpenAIModel
model = OpenAIModel(
client_args={
# An empty key selects the rate-limited free tier
"api_key": os.environ.get("OVHCLOUD_API_KEY", ""),
"base_url": "https://oai.endpoints.kepler.ai.cloud.ovh.net/v1",
},
model_id="Meta-Llama-3_3-70B-Instruct",
)
agent = Agent(model=model)
response = agent("Explain tool calling in one sentence.")
print(response)

Two client settings connect the provider to OVHcloud AI Endpoints:

  • API key: from the OVHcloud Manager. Without a key, requests use a rate-limited free tier; the Python provider accepts an empty key string, while the TypeScript provider requires a non-empty key.
  • Base URL: https://oai.endpoints.kepler.ai.cloud.ovh.net/v1

Model IDs come from the AI Endpoints catalog, for example Meta-Llama-3_3-70B-Instruct. For model parameters and other provider options, see the OpenAI provider guide.