Help centre
Guides for translators and project managers working in Lab Forge.
Lab Forge takes a source file from upload to a checked, deliverable translation. Translators work in the review page; project managers set up projects, glossaries and client rules.
No account is needed to look: Open Translate takes pasted text and keeps it for you across sign-in — you are asked for an account only when you press Translate.
37 file extensions have a dedicated processor. This list is generated from the processor registry, so it always matches what the pipeline accepts. Maximum upload size: 250 MB.
Trados, memoQ and Phrase exports. Inline tags are validated after translation and locked segments are left untouched. Packages are unpacked, translated and re-zipped so they re-open in the original tool.
Word, PowerPoint, Excel, bilingual RTF, InDesign IDML and PDF. Layout and run-level styling are preserved. PDF keeps its layout: the translated PDF is the primary deliverable, with text replaced in place on the original pages, and scanned pages are OCR'd and retypeset in place. A structured Word copy is produced on every run and downloadable as the second output; it becomes the primary only when the file is mostly scanned or the layout pass fails.
SRT, WebVTT and ASS/SSA keep timing, cue settings and style overrides. In File Translation, upload an MP4, MOV, MKV or WebM video to translate visible titles, signs and labels into a timed SRT. Review the duration and price before starting. If no usable text is found or only part of the video can be inspected, the task ends without a deliverable or charge.
i18n resource files and markup, including XLIFF 1.2 and 2.0 (routed by the document's own version), Flutter ARB and Apple .stringsdict plural rules. Keys, placeholders, plural categories and structure stay intact; only translatable text changes.
The deterministic QA layer has 50 rule-based checks. 32 of them run on every translated segment; the rest run per file or per format (packages, subtitles, spreadsheets). They are rule-based, so the same file always gives the same result. Each finding is either blocking (delivery stops) or a warning (logged for review).
Tags, codes and formatting must survive translation exactly, and nothing may be cut off.
Every number in the source appears in the target, none are invented, and decimals follow the target locale.
Catches empty targets, targets that copy or echo the source, and source-script text leaking into the target.
Glossary terms, passthrough terms, named entities and capitalisation are checked, and terms stay consistent across the batch. A client's own style guide is checked too, as a warning that never blocks delivery.
Length ratio against the language pair, CJK punctuation and spacing, continuation markers and known typos for the target language.
When a task is blocked the deliverable is kept but not shipped. Fix and retry, or force-ship with a written reason; the reason is recorded in the audit log.
Term pairs are injected into every run and checked by the terminology gate. Each term has a category:
Approved segments are stored and offered as matches on later runs. Memories can be imported and exported as TMX or Trados SDLTM.
Paste raw client feedback on the project. Lab Forge extracts short, imperative rules you review before they bind a run; on conflict they override the default baseline.
Rates below are read from the same source as the Pricing page. Each task shows a cost estimate before it runs, and prepaid balance is drawn down as tasks complete.
| Meter | Rate | Note |
|---|---|---|
| Source words | ¥75 / 1000 words | CJK characters count 1:1. |
| Translator token | 1 token = 1 source word (¥0.075) | The same ¥75 / 1000 words, expressed per token. |
| Short-drama subtitles (SRT / video) | ¥5 / minute | About 67 tokens per minute. |
| Bilingual output | ×1.5 | Source and target side by side. |
| Locked / pre-translated rows | Not billed | Excluded from the word meter. |
Share links for reviewers expire after 30 days by default and can be revoked at any time.
On macOS use Option (⌥); on Windows and Linux use Alt. Shortcuts are ignored while you type in a field.
Yes. Open Translate takes pasted text with no signup and keeps your draft across sign-in; you are asked for an account only when you press Translate.
Each task type uses the translation route the operator configured for that job, so translation and video runs do not necessarily share one route. Every result then passes the same deterministic QA checks.
Yes. Pause and resume from the task page, or cancel it. A finished task cannot be cancelled; a settled task can be deleted, and its share links are removed with it.
Uploads are fingerprinted. An identical file already in the project is skipped as a duplicate instead of being stored twice. The bilingual-file project flow can upload it again on purpose; through the API, send force=true.
Only the extensions in Supported formats have a processor. Other types are refused at upload so you never pay for a run that cannot produce a deliverable.
Create a share link on the task or project. The recipient needs no account. Links can be revoked at any time.
Sessions last 7 days. Signing out ends the session on the server as well as in the browser.
Email support@lab-forge.com.cn.
For integrators. A browser session comes from /api/v1/auth/login and travels as a lab_session cookie; a long-lived key travels in the Authorization header instead. Every path below is checked against the live router source in CI.
For scripts, CI and CAT-tool integrations, create a long-lived key instead of driving the browser session. Keys start with "lab_live_". The Lab API keys panel in Settings mints one; the full secret is shown once and only its display prefix is kept.
Send the key as a bearer token in the standard Authorization header. The same header carries a session JWT, so the value's prefix is what tells the server which kind it is.
Authorization: Bearer lab_live_…
A key authenticates as the account that created it, and only on the endpoints that opt in: tasks (dispatch, status, deliverable, review), documents and uploads, document versions, bilingual review, QA export, redline import, PDF compare, image studio, and the MCP server. Project and glossary routes still need the session cookie.
A key with no scopes acts with its owner's full access. One capability scope exists today — news:publish — and only an admin account may grant it. It is required on the news draft and publish routes; without it those routes return 403. A key can also be limited to a single project when created.
Task progress streams as Server-Sent Events from /api/v1/tasks/{task_id}/events. Each message is a JSON envelope; the type field is one of progress, segment, thought, tier_trace, quality_violation, stall, stall_critical, paused, done, and each carries a payload. A snapshot of current progress is sent first, so a late subscriber is never left blank, and the server asks proxies not to buffer the stream. Browsers open it with EventSource; scripts use curl -N.
This stream is session-only: it accepts the cookie or a session token, not a lab_live_ key. Poll the task endpoint with your key, or open the stream from the browser where the session lives.
There is no idempotency header on this API. The one repeat-safe write is /api/v1/billing/checkout/stripe, which takes an idempotency_key field in the JSON body (8 to 128 characters). Repeating the same key and package returns the same order instead of creating a second one; reusing it with a different package is rejected.
For log correlation, send X-Request-Id; the server honours it when it is at most 64 safe characters and echoes it on the response.
POST /api/v1/billing/checkout/stripe
{ "package_id": "<id>", "idempotency_key": "<at-least-8-chars>" }An MCP client can drive the same jobs over one POST endpoint at /api/v1/mcp. Authenticate with the same bearer key; cookies are not accepted there, so the endpoint is immune to cross-site request forgery. The server exposes 7 tools, listed below. It is switched on per deployment, so a 404 means the operator has it off.
Uploads through MCP are capped at 5 MB decoded, and the endpoint accepts up to 240 requests per minute per key. MCP can create and inspect but cannot dispatch a translation: dispatch stays on the task route so the spend check runs in the worker.
/api/v1/auth/loginAuthenticate with your username OR your registered email, plus password. Returns BOTH: a lab_session cookie (HttpOnly, SameSite=Lax, 7-day TTL) for browsers, and a token in the response body. API clients should send that body token as Authorization: Bearer <token> — the cookie is the browser path.200 { "token": "<jwt>", "github_login": "operator", "email": "op@example.com" } + Set-Cookie: lab_session=<jwt>; HttpOnly; SameSite=Lax; Max-Age=604800curl -X POST https://lab.tempproject.online/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{"username":"operator","password":"your-password"}' \
-o ./login.json/api/v1/auth/registerRegister a new operator account. An invite code from your account manager is required unless the operator has opened signup.201 { "token": "...", "github_login": "newop", "email": "op@example.com" }curl -X POST https://lab.tempproject.online/api/v1/auth/register \
-H "Content-Type: application/json" \
-d '{"username":"newop","password":"...","email":"op@example.com","registration_code":"..."}'/api/v1/auth/meVerify the current session. Returns operator info or 401.200 { "github_login": "operator", "email": "...", "token_version": 0, "is_admin": false }curl -X GET https://lab.tempproject.online/api/v1/auth/me \ -b ./cookies.txt
/api/v1/projectsList all projects for the authenticated operator.200 [{ "id": "uuid", "client_name": "...", "source_lang": "EN", ... }]curl -X GET https://lab.tempproject.online/api/v1/projects \ -b ./cookies.txt
/api/v1/projectsCreate a new project with client name, language pair, and rules profile.201 { "id": "uuid", "client_name": "Acme Corp", ... }curl -X POST https://lab.tempproject.online/api/v1/projects \
-H "Content-Type: application/json" \
-b ./cookies.txt \
-d '{"client_name":"Acme Corp","source_lang":"EN","target_langs":["NL"],"rules_profile_id":"example-ifu"}'/api/v1/projects/{project_id}Update project metadata or rules profile.200 { "id": "uuid", ... }curl -X PATCH https://lab.tempproject.online/api/v1/projects/<id> \
-H "Content-Type: application/json" \
-b ./cookies.txt \
-d '{"client_name":"Acme Corp (updated)","cost_cap_usd":5.0}'/api/v1/projects/{project_id}Delete a project and all associated files/tasks. Irreversible.204 No Content
curl -X DELETE https://lab.tempproject.online/api/v1/projects/<id> \ -b ./cookies.txt
/api/v1/documentsUpload a source document (bilingual RTF, XLIFF/CAT package, DOCX, SRT, etc. — routed by extension). project_id is a form field. Max 250 MB; 409 on a duplicate SHA-256 unless force=true.201 { "id": "uuid", "filename": "bilingual.rtf", "mode": "translate", ... }curl -X POST https://lab.tempproject.online/api/v1/documents \ -F "project_id=<project-uuid>" \ -F "file=@bilingual.rtf" \ -F "mode=translate" \ -b ./cookies.txt
/api/v1/glossaryAdd a glossary term pair (source → target) with category and flags. 409 if the exact source_term + target_lang pair already exists.201 { "id": "uuid", "source_term": "Low Speckle", ... }curl -X POST https://lab.tempproject.online/api/v1/glossary \
-H "Content-Type: application/json" \
-b ./cookies.txt \
-d '{"project_id":"<project-uuid>","source_lang":"EN","target_lang":"NL","source_term":"Low Speckle","target_term":"Lage speckle","category":"technical","case_sensitive":true}'/api/v1/projects/{project_id}/extract-rulesPaste raw client feedback; the extractor returns one-sentence imperative rules you can review before they bind a run.200 { "rules": [{ "imperative": "Product names must stay in English.", ... }] }curl -X POST https://lab.tempproject.online/api/v1/projects/<id>/extract-rules \
-H "Content-Type: application/json" \
-b ./cookies.txt \
-d '{"raw_text":"Product names must stay in English. Use NL decimal comma."}'/api/v1/tasksDispatch a translation task for an uploaded document. Returns immediately; follow progress by polling the task or streaming its events.201 { "id": "uuid", "status": "queued", ... }curl -X POST https://lab.tempproject.online/api/v1/tasks \
-H "Content-Type: application/json" \
-b ./cookies.txt \
-d '{"project_id":"<project-uuid>","document_id":"<doc-uuid>","target_lang":"NL"}'/api/v1/tasks/{task_id}Get task status, progress, and QA findings.200 { "id": "uuid", "status": "running", "qa_report": { "progress": { "latest": { "stage": "translate", "percent": 61.3, "current": 87, "total": 142 } } }, ... }curl -X GET https://lab.tempproject.online/api/v1/tasks/<task-id> \ -b ./cookies.txt
/api/v1/tasks/{task_id}/eventsSSE stream for real-time task progress events. Connect via EventSource for live updates.text/event-stream: data: {"type":"progress","payload":{"step":"translate","message":"…","percent":61.3}}curl -N https://lab.tempproject.online/api/v1/tasks/<task-id>/events \ -b ./cookies.txt
/api/v1/tasks/{task_id}/cancelCancel a running task. Terminal tasks cannot be cancelled.200 { "id": "uuid", "status": "cancelled", ... } | 409 { "code": "task_not_cancellable" }curl -X POST https://lab.tempproject.online/api/v1/tasks/<task-id>/cancel \ -b ./cookies.txt
/api/v1/tasks/{task_id}/confirmConfirm a completed task for delivery. Idempotent — calling twice returns 200.200 { "status": "confirmed" }curl -X POST https://lab.tempproject.online/api/v1/tasks/<task-id>/confirm \ -b ./cookies.txt
/api/v1/tasks/{task_id}/force-shipForce-deliver a blocked task with an audit note.200 { "status": "force_shipped" }curl -X POST https://lab.tempproject.online/api/v1/tasks/<task-id>/force-ship \
-H "Content-Type: application/json" \
-b ./cookies.txt \
-d '{"reason":"False positive on gate #14 — client approved override."}'/api/v1/tasks/{task_id}/deliverableDownload the finished deliverable, returned in the shape the source arrived in (bilingual RTF, CAT package, DOCX, SRT, …).200 application/octet-stream (binary, Content-Disposition names the file)
curl -X GET https://lab.tempproject.online/api/v1/tasks/<task-id>/deliverable \ -b ./cookies.txt \ -OJ
/api/v1/api-keysCreate a long-lived lab_live_ key. The full secret is returned once and never again; only its display prefix is stored alongside a SHA-256 hash. Pass an optional project_id to limit the key to one project.201 { "id": "uuid", "key_prefix": "lab_live_a1b2c3", "api_key": "lab_live_…", "scopes": [], "request_count": 0 }curl -X POST https://lab.tempproject.online/api/v1/api-keys \
-H "Content-Type: application/json" \
-b ./cookies.txt \
-d '{"name":"CI pipeline"}'/api/v1/api-keysList your keys with their prefix, scopes, creation time, last use and request count. Revoked keys stay in the list with a revoked_at timestamp.200 [{ "id": "uuid", "key_prefix": "lab_live_a1b2c3", "scopes": [], "revoked_at": null, "request_count": 42 }]curl -X GET https://lab.tempproject.online/api/v1/api-keys \ -b ./cookies.txt
/api/v1/api-keys/{key_id}Revoke a key. Requests using it fail with 401 from the next call on; the row and its usage history are kept.204 No Content
curl -X DELETE https://lab.tempproject.online/api/v1/api-keys/<key-id> \ -b ./cookies.txt
/api/v1/mcpMCP server (JSON-RPC 2.0 over HTTP). Authenticate with a lab_live_ key; cookies are not accepted. Tools: get_quote, create_project, list_projects, upload_file, get_task_status, list_review_rows, get_trust_certificate. Returns 404 when the deployment has it switched off.200 { "jsonrpc": "2.0", "id": 1, "result": { "tools": [{ "name": "get_quote", "inputSchema": { … } }] } }curl -X POST https://lab.tempproject.online/api/v1/mcp \
-H "Authorization: Bearer lab_live_…" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'