curl "https://api.mixroute.ai/v1/chat/completions" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "hy-mt2-plus", "messages": [ { "role": "user", "content": "Translate into Japanese while preserving the formal tone: Our service will be unavailable for maintenance on Friday." } ], "max_tokens": 256 }'
from openai import OpenAIclient = OpenAI(api_key="YOUR_API_KEY", base_url="https://api.mixroute.ai/v1")response = client.chat.completions.create( model="hy-mt2-plus", messages=[{"role": "user", "content": "Translate into Japanese while preserving the formal tone: Our service will be unavailable for maintenance on Friday."}], max_tokens=256,)print(response.choices[0].message.content)