Skip to main content

Overview

OVHcloud AI Endpoints expose an OpenAI-compatible API at https://oai.endpoints.kepler.ai.cloud.ovh.net/v1 for multiple model families. Model profiles are matched by name prefix. Model Class: OVHcloudModel

Authentication

export OVHCLOUD_API_KEY="..."

Examples

from upsonic import Agent, Task
from upsonic.models.ovhcloud import OVHcloudModel

model = OVHcloudModel(model_name="deepseek-r1-distill-llama-70b")
agent = Agent(model=model)

task = Task("Hello, how are you?")
result = agent.do(task)
print(result)

Model Settings

You can set model parameters in two ways: on the model or on the Agent. On the model:
from upsonic import Agent, Task
from upsonic.models.ovhcloud import OVHcloudModel, OVHcloudModelSettings

model = OVHcloudModel(
    model_name="deepseek-r1-distill-llama-70b",
    settings=OVHcloudModelSettings(max_tokens=1024, temperature=0.7)
)
agent = Agent(model=model)
On the Agent:
from upsonic import Agent, Task
from upsonic.models.ovhcloud import OVHcloudModelSettings

agent = Agent(
    model="ovhcloud/deepseek-r1-distill-llama-70b",
    settings=OVHcloudModelSettings(max_tokens=1024, temperature=0.7)
)

Parameters

ParameterTypeDescriptionDefaultSource
max_tokensintMaximum tokens to generateModel defaultBase
temperaturefloatSampling temperature (0.0-2.0)1.0Base
top_pfloatNucleus sampling1.0Base
seedintRandom seedNoneBase
stop_sequenceslist[str]Stop sequencesNoneBase
presence_penaltyfloatToken presence penalty0.0Base
frequency_penaltyfloatToken frequency penalty0.0Base
parallel_tool_callsboolAllow parallel toolsTrueBase
timeoutfloatRequest timeout (seconds)600Base