Compare and test open-weight models for text, code, voice and vision, no sign-up required. Then move to production with the same OpenAI-compatible API.
Olala v1.0 Translate 7A1B is a translation-only Mixture-of-Experts model from OVHcloud, with 6.8B total parameters and 1.5B active parameters. The text to translate is sent as the user message, and the source and target languages are given in English (for example "French").
Olala-v1.0-translate is a translation-only model: you send the text to translate as the user message, and the languages as extra fields of the request. It answers with the translation and nothing else.
In addition to the usual chat completion fields, the request takes:
| Field | Required | Description |
|---|---|---|
| source_language | yes | Language of the text, written in English (for example "English") |
| target_language | yes | Language to translate to, written in English (for example "French") |
| domain | no | Domain of the text (for example "medical"), to choose the right vocabulary |
| terminology_mapping | no | Terms that must be translated in a given way: a list of {"source_term": "...", "target_term": "..."} |
The languages are single-line names of at most 64 characters, the domain is a single line of at most 128 characters, and the mapping has at most 100 entries of at most 200 characters each. Anything else is refused with a 400 error.
The text to translate goes in the content of one user message. A system message does not change the style of the translation.
First install the requests library:
pip install requestsNext, export your access token to the OVH_AI_ENDPOINTS_ACCESS_TOKEN environment variable:
export OVH_AI_ENDPOINTS_ACCESS_TOKEN=<your-access-token>If you do not have an access token key yet, follow the instructions in the AI Endpoints – Getting Started.
Finally, run the following Python code:
import os
import requests
headers = {
"Content-Type": "application/json",
"Authorization": f"Bearer {os.getenv('OVH_AI_ENDPOINTS_ACCESS_TOKEN')}",
}
url = "https://oai.endpoints.kepler.ai.cloud.ovh.net/v1/chat/completions"
payload = {
"model": "Olala-v1.0-translate",
"max_tokens": 512,
"messages": [
{
"role": "user",
"content": "The weather is nice today, let's go for a walk."
}
],
"source_language": "English",
"target_language": "French",
# Optional
"domain": "outdoor activities",
"terminology_mapping": [
{"source_term": "walk", "target_term": "randonnée"}
],
}
response = requests.post(url, json=payload, headers=headers)
if response.status_code == 200:
# Handle response
response_data = response.json()
translation = response_data["choices"][0]["message"]["content"]
print(translation)
else:
print("Error:", response.status_code, response.text)The Olala-v1.0-translate API is compatible with the OpenAI specification. The translation fields are not part of it: pass them with the extra_body argument, which adds them to the request.
First install the openai library:
pip install openaiNext, export your access token to the OVH_AI_ENDPOINTS_ACCESS_TOKEN environment variable:
export OVH_AI_ENDPOINTS_ACCESS_TOKEN=<your-access-token>Finally, run the following Python code:
import os
from openai import OpenAI
client = OpenAI(
base_url="https://oai.endpoints.kepler.ai.cloud.ovh.net/v1",
api_key=os.getenv("OVH_AI_ENDPOINTS_ACCESS_TOKEN"),
)
response = client.chat.completions.create(
model="Olala-v1.0-translate",
max_tokens=512,
messages=[{"role": "user", "content": "The weather is nice today, let's go for a walk."}],
extra_body={
"source_language": "English",
"target_language": "French",
},
)
print(response.choices[0].message.content)When using AI Endpoints, the following rate limits apply:
If you exceed this limit, a 429 error code will be returned.
For a broader overview of AI Endpoints, explore the full AI Endpoints Documentation.
Reach out to our support team or join the OVHcloud Discord #ai-endpoints channel to share your questions, feedback, and suggestions for improving the service, to the team and the community.
New to AI Endpoints? This guide walks you through everything you need to get an access token, call AI models, and integrate AI APIs into your apps with ease.
Start TutorialExplore what AI Endpoints can do. This guide breaks down current features, future roadmap items, and the platform's core capabilities so you know exactly what to expect.
Start TutorialRunning into issues? This guide helps you solve common problems on AI Endpoints, from error codes to unexpected responses. Get quick answers, clear fixes, and helpful tips to keep your…
Start TutorialLearn how to use Structured Output with OVHcloud AI Endpoints.
Start TutorialLearn how to use Function Calling with OVHcloud AI Endpoints.
Start TutorialLearn how to use OVHcloud AI Endpoints Virtual Models.
Start TutorialTurn hours of audio into sharp, readable summaries! This guide walks you through building an AI-powered audio assistant using ASR and LLMs, perfect for meetings, podcasts, or any voice recordings.
Start TutorialBuild a voice-enabled assistant in under 100 lines of code! Learn how to combine ASR, LLM, and TTS endpoints to create an AI that listens, understands, and responds.
Start TutorialImplement a Python chatbot from scratch with LangChain and AI Endpoints! Learn to set up streaming, prompt handling, and command-line interactivity for a better user experience.
Start TutorialBring LangChain to the JavaScript world! Learn how to build a chatbot in Node.js using AI Endpoints, complete with real-time response streaming.
Start TutorialCreate a Java-based AI chatbot using LangChain4j and Quarkus. Connect to AI Endpoints, customize prompts, and expose your assistant as a full-featured API.
Start TutorialLevel up your chatbot! Learn how to stream LLM responses in real time using LangChain4j, Quarkus, and OVHcloud AI Endpoints for seamless, conversational experiences.
Start TutorialMake your chatbot feel human! This guide teaches you how to add memory with LangChain, enabling your assistant to remember past interactions and respond contextually.
Start TutorialBuild a Java chatbot that remembers! Learn how to use LangChain4j to create a memory-enabled assistant that holds rich, ongoing conversations.
Start TutorialCombine AI with your own data! This tutorial shows how to build a Python-based RAG chatbot that retrieves custom documents to enhance its answers.
Start TutorialCreate a Java-based RAG chatbot that blends LLMs with your own data. Learn how to use LangChain4j and AI Endpoints to build smart, document-aware assistants.
Start TutorialLearn how to use Structured Output with Java, LangChain4j and OVHcloud AI Endpoints.
Start TutorialLearn how to use Function Calling with Java, LangChain4j and OVHcloud AI Endpoints.
Start TutorialLearn how to use Model Context Protocol (MCP) with Java, LangChain4j and OVHcloud AI Endpoints.
Start Tutorial