---
title: "Migrating a production bot to Nebius Token Factory"
description: "The one-line diff that moved my live Telegram translation bot to Token Factory, plus a measured three-model comparison on the real workload."
url: "https://davidezambiasi.dev/projects/translator-bot-token-factory"
---

typescript · llm · telegram

# Migrating a production bot to Nebius Token Factory

The one-line diff that moved my live Telegram translation bot to Token Factory, plus a measured three-model comparison on the real workload.

Published July 22, 2026 · 1 min read

[Repository ↗](https://github.com/soos3d/translator-bot-token-factory)

## The setup

I run a translation bot in live multilingual Telegram groups (English, Italian, Portuguese). Token Factory is OpenAI-compatible, so the migration was a `baseURL` and API-key change — the handlers, prompts, streaming, and token accounting kept working on the official OpenAI Node SDK.

## The comparison

I ran the bot’s core translate call over ten real-shaped group messages across three price tiers and published the numbers: median time to first token, total latency, tokens out, and cost per thousand messages. The surprise: the flagship model was also the fastest, because it is the only one that does not burn hundreds of reasoning tokens before answering — which collapses the price gap on paper.

## Why it reads like DevRel

Latency and tokens are measured; quality verdicts are labeled as my own human eval (native Italian speaker, fluent Portuguese). The repo shows the actual diff and honest notes on the experience, not a vendor pitch.

DZ

Davide Zambiasi

Senior Developer Relations Engineer

I ship the docs, guides, and example apps that get developers building, and I hire for the roles that do the same.

[GitHub](https://github.com/soos3d)[LinkedIn](https://www.linkedin.com/in/davide-zambiasi)[Blog](https://blog.davideai.dev)

[

Can Nova-3 understand air traffic control?

Previous Page

](/projects/atc-live-transcript)[

Chat with any GitHub repo

Next Page

](/projects/chat-with-repo-langchain-openai)
