One notice, four languages
A Chinese notice to users, posted in English, Japanese, Spanish and French.
The notice
各位用户:本周六(11月15日)凌晨 2:00 至 4:00(北京时间)我们将升级数据库,期间 API 可能出现短暂报错,请为请求加上重试。升级完成后,视频生成的排队时间会明显缩短。感谢理解!
English
Dear users, we'll be upgrading our database this Saturday (November 15) from 2:00 to 4:00 AM (Beijing Time). During this period, the API may briefly return errors, so please add retries to your requests. Once the upgrade is complete, video generation queue times will be noticeably shorter. Thanks for your understanding!
Japanese
ユーザーの皆様へ:今週土曜日(11月15日)午前2:00~4:00(北京時間)にデータベースのアップグレードを行います。その間、APIで一時的なエラーが発生する可能性がありますので、リクエストにリトライを追加してください。アップグレード完了後、動画生成の待ち時間が大幅に短縮されます。ご理解のほどよろしくお願いいたします!
Spanish
Apreciados usuarios: este sábado (15 de noviembre) de 2:00 a 4:00 (hora de Pekín) actualizaremos la base de datos. Durante ese periodo, la API podría devolver errores breves, así que añadan reintentos a sus solicitudes. Una vez completada la actualización, el tiempo de espera para la generación de vídeos se reducirá notablemente. ¡Gracias por su comprensión!
French
Chers utilisateurs, ce samedi (15 novembre) de 2h00 à 4h00 (heure de Pékin), nous procéderons à la mise à niveau de la base de données. Pendant cette période, l'API pourra renvoyer des erreurs temporaires ; veuillez donc ajouter des tentatives de reprise à vos requêtes. Une fois la mise à niveau terminée, le temps d'attente pour la génération de vidéos sera nettement réduit. Merci de votre compréhension !
Elapsed–
Cost$0.0003
Recorded run, replayed faster than it ran.
$0.0003this recorded run's cost
- 4 languages≈ $0.0003
Forking copies the step into your dashboard. You change the input, press Run, and each call is billed to your balance.
Build it yourself
Each step is one request to the Hyperouter API with your key. A later step reads an earlier one's output through {{steps.<id>…}}, and your inputs through {{vars.<name>}}. Models: deepseek/deepseek-v4.1-flash.
The request
Translate the notice
POST /v1/chat/completionsdeepseek/deepseek-v4.1-flashText · ≤ 2000 tokens{ "model": "deepseek/deepseek-v4.1-flash", "messages": [ { "role": "system", "content": "You translate product notices. Translate the user's notice into English, Japanese, Spanish and French. Keep its meaning, its tone and every fact: dates, times, time zones, numbers, product names and code stay as written. Write each one as a native speaker would post it, not word for word. Answer with one JSON object whose values are all strings: english, japanese, spanish, french." }, { "role": "user", "content": "{{vars.notice}}" } ], "response_format": { "type": "json_object" }, "reasoning_effort": "none", "max_tokens": 2000 }
Run the whole pipeline from code
SYSTEM="You translate product notices. Translate the user's notice into English, Japanese, Spanish and French. Keep its meaning, its tone and every fact: dates, times, time zones, numbers, product names and code stay as written. Write each one as a native speaker would post it, not word for word. Answer with one JSON object whose values are all strings: english, japanese, spanish, french." NOTICE='各位用户:本周六(11月15日)凌晨 2:00 至 4:00(北京时间)我们将升级数据库,期间 API 可能出现短暂报错,请为请求加上重试。升级完成后,视频生成的排队时间会明显缩短。感谢理解!' jq -n --arg s "$SYSTEM" --arg u "$NOTICE" \ '{model:"deepseek/deepseek-v4.1-flash", reasoning_effort:"none", response_format:{type:"json_object"}, messages:[{role:"system",content:$s},{role:"user",content:$u}]}' | curl -s https://api.hyperouter.app/v1/chat/completions -H "Authorization: Bearer $HYPEROUTER_API_KEY" -H 'Content-Type: application/json' -d @- | jq -r '.choices[0].message.content | fromjson | to_entries[] | "== \(.key)\n\(.value)\n"'
// run.mjs import OpenAI from 'openai'; const c = new OpenAI({ baseURL: 'https://api.hyperouter.app/v1', apiKey: process.env.HYPEROUTER_API_KEY }); const SYSTEM = "You translate product notices. Translate the user's notice into English, Japanese, Spanish and French. Keep its meaning, its tone and every fact: dates, times, time zones, numbers, product names and code stay as written. Write each one as a native speaker would post it, not word for word. Answer with one JSON object whose values are all strings: english, japanese, spanish, french."; const NOTICE = '各位用户:本周六(11月15日)凌晨 2:00 至 4:00(北京时间)我们将升级数据库,期间 API 可能出现短暂报错,请为请求加上重试。升级完成后,视频生成的排队时间会明显缩短。感谢理解!'; const r = await c.chat.completions.create({ model: 'deepseek/deepseek-v4.1-flash', reasoning_effort: 'none', response_format: { type: 'json_object' }, messages: [ { role: 'system', content: SYSTEM }, { role: 'user', content: NOTICE }] }); for (const [lang, text] of Object.entries(JSON.parse(r.choices[0].message.content))) console.log(`== ${lang}\n${text}\n`);
import json, os from openai import OpenAI c = OpenAI(base_url='https://api.hyperouter.app/v1', api_key=os.environ['HYPEROUTER_API_KEY']) SYSTEM = "You translate product notices. Translate the user's notice into English, Japanese, Spanish and French. Keep its meaning, its tone and every fact: dates, times, time zones, numbers, product names and code stay as written. Write each one as a native speaker would post it, not word for word. Answer with one JSON object whose values are all strings: english, japanese, spanish, french." NOTICE = '各位用户:本周六(11月15日)凌晨 2:00 至 4:00(北京时间)我们将升级数据库,期间 API 可能出现短暂报错,请为请求加上重试。升级完成后,视频生成的排队时间会明显缩短。感谢理解!' r = c.chat.completions.create(model='deepseek/deepseek-v4.1-flash', reasoning_effort='none', response_format={'type': 'json_object'}, messages=[ {'role': 'system', 'content': SYSTEM}, {'role': 'user', 'content': NOTICE}]) for lang, text in json.loads(r.choices[0].message.content).items(): print(f'== {lang}\n{text}\n')
Run One notice, four languages on your account
A Chinese notice to users, posted in English, Japanese, Spanish and French. Fork it, change the input, and run it from the dashboard: ≈ $0.0003 per run at the default settings.