# Configure Translate for Zotero with Router One's Chat Completions API

> Markdown mirror of https://router.one/integrations/zotero for AI assistants and crawlers. Router One is a unified, OpenAI-compatible LLM API gateway.
> Last updated: 2026-11-30

Translate for Zotero (windingwind/zotero-pdf-translate) is an open-source Zotero 7/8 plugin that translates selected PDF text, annotations, titles, and abstracts inside your library. Routing a Custom GPT slot to Router One sends each translation to POST /v1/chat/completions on one API key, with any catalog chat model that accepts temperature (the plugin always sends it). Translation sends plain chat completions and needs no tool calling. Each request the gateway forwards to a model appears in Dashboard → Logs with tokens and the wallet charge or plan quota used (pre-model refusals leave no row, and streamed calls failing before output may leave none either). Checked 2026-11-30 against stable v2.4.8 (2026-10-03; AGPL-3.0).

## Use Custom GPT 1 instead of the built-in ChatGPT slot

In v2.4.8 (src/modules/services/gpt.ts), the plugin includes ChatGPT plus three Custom GPT slots (Custom GPT 1–3; Rename Custom GPT Services renames them, effective after restarting the plugin or Zotero). Pick Custom GPT 1 for Router One: it adds an API Format dropdown defaulting to OpenAI (chat/completions), skips the ChatGPT slot's key-format regex warning, and keeps Custom GPT 2–3 free for extra models or prompts. Create a dedicated Router One key in Dashboard → API Keys with a maxSpend cap to isolate Zotero usage in Dashboard → Logs.

## Set Translate for Zotero's Custom GPT URL, key, and model

Open Edit → Settings → Translate → Service. Select Custom GPT 1 under Translation Services, paste your Router One key into Secret right below (keys are stored per service ID in secretObj, so each slot keeps its own), then click Config. Keep API Format on OpenAI (chat/completions), enter https://api.router.one/v1/chat/completions in API, type a live Chat Completions catalog ID such as deepseek-v4.1-flash or grok-4.7 in Model, keep Stream checked, and click Save:

`zotero-custom-gpt-settings`

```text
# Zotero: Edit -> Settings -> Translate -> Service
Translation Services:  Custom GPT 1
Secret:                sk-your-router-one-key

# Click Config (Custom GPT 1)
API Format:            OpenAI (chat/completions)
API:                   https://api.router.one/v1/chat/completions
Model:                 deepseek-v4.1-flash
# Alternative catalog model: grok-4.7
Temp:                  1.0
Stream:                checked (true)
Thinking:              Default
Prompt:                Translate from ${langFrom} to ${langTo}. Return only the translation:
                       ${sourceText}
```

## Why enter the full /v1/chat/completions URL

v2.4.8 added normalizeLLMEndpoint (src/utils/llmEndpoint.ts), which keeps a full /v1/chat/completions URL unchanged and expands /v1 or the bare host https://api.router.one; v2.4.7 sends the URL as typed, so anything shorter returns HTTP 404. The full URL works in both. Avoid /responses (Claude and Gemini IDs are not served there) and https://api.router.one/chat/completions, which both send as typed and which returns HTTP 404 because /v1 is missing.

| API value entered | v2.4.8 behavior | v2.4.7 | Verdict |
| --- | --- | --- | --- |
| https://api.router.one/v1/chat/completions | Used as entered | Used as entered | Recommended (both) |
| https://api.router.one/v1 | Appends /chat/completions | Sent verbatim -> 404 | v2.4.8 only |
| https://api.router.one/chat/completions | Unchanged (no /v1) -> 404 | Sent verbatim -> 404 | Avoid |

## Models, temperature, prompts, streaming, and thinking

Translate for Zotero sends plain messages with no tools array, so translation does not need tool calling — any Chat Completions text model on /models that accepts temperature works. In the 2026-11-30 catalog, deepseek-v4.1-flash and grok-4.7 list temperature as a supported parameter. Four v2.4.8 details:

- Temperature: the plugin always sends it (default 1.0), so skip models whose vendor says to leave it out or accepts only the default: GPT-6.2 and, unless reasoning effort is none, GPT-6 models (OpenAI), Claude 4.7 and later models (Anthropic; see https://router.one/claude-sampling-parameters-400) and Gemini 3.8 Flash (Google).
- Prompt template: ${sourceText} is required (saving without it is blocked); ${langFrom} and ${langTo} are optional. v2.4.8 splits text around ${sourceText} into system and user messages. With Feed GPT/Claude/Gemini Services with Title and Abstract enabled, requests whose item has a title or abstract carry them as extra input tokens.
- Stream (default on): clears XHR timeout on chunk progress and strips <think> tags.
- Thinking dropdown: thinkingParams.ts emits {} for unrecognized hosts like api.router.one; use Custom Request JSON for extra fields (standard keys like model, messages, temperature, and stream are filtered out).

## Concurrency, batch translation, and 429 errors

v2.4.8 has no concurrency slider. Built-in batch title/abstract translation runs sequentially with a 1,000 ms pause (batchTaskDelay in src/addon.ts). Concurrency spikes come from three sources: Additional services in standalone window (runs Promise.all in parallel), rapid paragraph selection with Automatically Translate Selection enabled, or third-party full-PDF plugins calling Zotero.PDFTranslate.api.translate concurrently. When the result shows [Request Error] with status code 429, disable parallel extra services on the same key, pause auto-translate while skimming, or lower concurrency in the full-PDF plugin. A 429 that has a row in Dashboard → Logs came from upstream; a 429 from the key's or account's own limits never has one (email support@router.one for higher limits), and a streamed request that failed before any output may have none either.

## Which model ID should Translate for Zotero send?

Copy the exact model ID from /models, preserving case, hyphens, and version suffixes; do not substitute a display name. Open its detail page and match the supported API endpoints, context window, and capabilities such as tool calling to the provider and features selected in Translate for Zotero. A catalog listing does not mean the client can use every feature of that model. Give each client or application a dedicated API key with a maxSpend cap. A key's spend cap (maxSpend) limits what that key can charge to your wallet: once its cumulative wallet charges reach the cap, its wallet-billed requests return HTTP 402. Requests covered by your plan's quota draw from the account's shared plan quota and do not count toward any key's cap.

## Which API protocol is Translate for Zotero using?

OpenAI-compatible describes an interface format; it does not make Chat Completions (/v1/chat/completions), Responses (/v1/responses), and Anthropic Messages (/v1/messages) interchangeable. Check the installed client version, provider configuration, and actual request path against the model detail page and API compatibility fact sheet. A successful plain-text chat does not establish support for hosted tools, conversation state, or file-editing features.

## Verify the Translate for Zotero call in your request trace

Send a simple text request from Translate for Zotero, then match its trace in Dashboard → Logs by time, model, and request_id: tokens, the wallet charge or plan quota it used, latency, and status. Next, test streaming, tool calls, and multi-turn history separately. For failures, retain the actual request path, full error message, and request_id. If there is no matching log, either the request never reached the gateway (client configuration or connectivity) or the gateway refused it before calling a model — a 401 for the key, a 402 for funds, a 429 from your key's or account's limits, or a 400 or 404 for the model ID or endpoint; a streamed request that failed before any output may have no log either. The status and error message the client received tell which, so check them before attributing the error to the gateway or upstream.

## FAQ

### Should the API field be https://api.router.one/v1 or https://api.router.one/v1/chat/completions?

Enter the full https://api.router.one/v1/chat/completions. v2.4.8 keeps it unchanged and also expands /v1, whereas v2.4.7 sends /v1 as typed and fails with HTTP 404, so the full URL works in both.

### Does Zotero translation need a tool-calling model?

No. Translate for Zotero v2.4.8 sends plain system and user messages with no tools field, so any Chat Completions text model that accepts temperature works, such as deepseek-v4.1-flash or grok-4.7.

### Why does Custom GPT 1 report a missing key or 401 after switching from ChatGPT?

Keys are stored separately per service ID inside secretObj (Edit → Settings → Translate → Service → Secret, or Manage Secret Keys). If Custom GPT 1 has no key saved yet, its Secret box is empty — paste your Router One key while Custom GPT 1 is selected.

### Why do I hit 429 during full-paper or rapid PDF translation?

Built-in batch title/abstract runs sequentially with a 1,000 ms delay, but parallel Additional services in the standalone window, rapid auto-translate selections, or third-party full-PDF plugins calling Zotero.PDFTranslate.api.translate concurrently can exceed default key/account limits. Disable parallel slots, pause auto-translate, throttle external PDF plugins, or email support@router.one for higher limits.

### Which models can Translate for Zotero use through the gateway?

Choose a current catalog model that supports both the endpoint and the features Translate for Zotero uses. Check /models and the model detail page for the exact ID, current rates, and capabilities; a family name such as GPT or Claude is not a compatibility guarantee. A client that lists a model has only read the ID, from its own configuration or from GET /v1/models; verify an actual request too.

### Models are listed, but requests fail with 400 or 404. What should I check?

Record the actual request path and error message, then check the exact model ID. A 400 can indicate invalid parameters, unsupported tools, or a model/endpoint mismatch; a 404 can indicate an incorrect path or missing resource, so it does not by itself establish that a model was retired. If the error says must be called via, use the named endpoint or select a model supported on the current endpoint. Do not add or remove /v1 or /chat/completions across all clients indiscriminately.

### Does this work from Mainland China?

Yes. The gateway is reachable from Mainland China without a VPN, and the configuration is identical to the global setup.

### How do I debug a 401/402/403/429?

Start from what your client received: the status, the error body and the X-Request-ID header. A 401 (missing, unknown, revoked or expired key), a 402 (wallet balance, or the key's maxSpend cap) and a 429 from your key's or account's rate limits are refused before any model is called, so they never appear in Dashboard → Logs — nor does a 400 or 404 for a wrong model ID or endpoint. For 401, check that the full key is sent and still active in Dashboard → API Keys; for 402, top up or raise the key's maxSpend; for a 403, keep the full error body. For 429, back off and retry later; a 429 that does show up in Logs came back from upstream after the gateway's retries. Keep the request_id and follow the error-codes reference.

## See also

- All integration guides: https://router.one/integrations
- Debug API errors in Translate for Zotero: https://router.one/llm-api-error-codes
- API compatibility: endpoints and supported features: https://router.one/facts/api-compatibility.md
- Responses API setup and limits: https://router.one/codex-responses-api
- Cline setup: https://router.one/integrations/cline
- Aider setup: https://router.one/integrations/aider
- Immersive Translate setup: browser & PDF translation: https://router.one/integrations/immersive-translate
- Copilot for Obsidian setup: notes & vault AI: https://router.one/integrations/obsidian-copilot
- Fix LLM API 429 rate-limit errors: https://router.one/blog/llm-api-429-rate-limit-fix
- Claude temperature & sampling 400 fix: https://router.one/claude-sampling-parameters-400
- Connection and /v1 path troubleshooting: https://router.one/api-connection-troubleshooting
- Translate for Zotero GitHub repository: https://github.com/windingwind/zotero-pdf-translate
- Translate for Zotero v2.4.8 release: https://github.com/windingwind/zotero-pdf-translate/releases/tag/v2.4.8
- Model reliability and rolling error rates: https://router.one/benchmarks/model-reliability
- LLM API gateway overview: https://router.one/llm-api-gateway
- OpenAI-compatible API: https://router.one/openai-compatible-api
- API docs: https://router.one/docs
- Canonical page: https://router.one/integrations/zotero
- Models and per-model token rates: https://router.one/models (markdown: https://router.one/models.md)
- Pricing: https://router.one/pricing
- API docs (markdown): https://router.one/docs.md
- Company facts: https://router.one/facts/company.md
