Skip to content
Agentmart
Submit a tool

googletranslate-use

用 curl / OpenAI SDK / Cherry Studio 调用翻译 API(流式/非流式/批量/语言检测),含认证与错误码。

Skill by lza6

IndexedApache-2.0★ 49
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/lza6-googletranslate-use

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

用 curl / OpenAI SDK / Cherry Studio 调用翻译 API(流式/非流式/批量/语言检测),含认证与错误码。

Use cases: backend

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/googletranslate-use

What's inside

Skill name
googletranslate-use
Description
用 curl / OpenAI SDK / Cherry Studio 调用翻译 API(流式/非流式/批量/语言检测),含认证与错误码。
License
Apache-2.0
Instructions
16 lines in SKILL.md · view on GitHub

Before installing

  • Instructions call the network

Files (1)

  • SKILL.md

SKILL.md (first lines)

# 使用

- **认证**:`Authorization: Bearer $API_MASTER_KEY`(多 key 取其一;`1`/空=关闭认证仅限本地)。
- **非流式**:
  ```bash
  curl -s -X POST http://localhost:8088/v1/chat/completions -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer $KEY' \
    -d '{"messages":[{"role":"user","content":"Hello world"}],"target_lang":"zh-CN","stream":false}'
  ```
- **流式**:同上但 `"stream":true`,接收 SSE `chat.completion.chunk` 至 `[DONE]`。
- **批量**:`POST /v1/translate/batch`,`{"texts":[...],"target_lang":"zh-CN"}`,条目级 `ok/error`,整体 200。
- **语言检测**:`POST /v1/translate/detect`(`source=script_heuristic`,推断非官方)。
- **模型别名**:`model=gpt-3.5-turbo` 会被 `MODEL_ALIASES` 映射到默认模型。
- **错误码**:400 参数 / 401 缺认证 / 403 key 无效 / 413 超长 / 422 校验 / 429 限流(带 Retry-After) / 502 上游 / 503 熔断。

From lza6/googletranslate-2api, Apache-2.0.

Signals

Stars
49
Forks
19
Open issues
1
Last commit (this folder)
Sep 21, 2026 (1 month ago)
Last release
Sep 22, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from lza6

Cite this page

googletranslate-use skill. Agent Mart. https://agentmart.dev/skills/lza6-googletranslate-use (last updated 2026-10-24)