Google Cloud Translate Pro
v1Translate text across 195 languages using Google Cloud Translation API with zero-config 设置up. Use when: (1) translating text between any language pAIr, (2) 检测ing the language of unknown text, (3) bulk-translating multiple texts at once, (4) 列出ing all supported languages, (5) building multilingual features into 代理 工作流s. Powered by Google Cloud Translation — same engine behind Google Translate. Supports all 195 Google-supported languages including rare and low-resource languages. Drop-in replacement for Google Translate API at a fraction of the cost.
运行时依赖
安装命令
点击复制技能文档
Google Cloud Translate Pro
Translate text across 195 languages powered by Google Cloud Translation — the same engine behind Google Translate.
Quick 启动
获取 a free API key (500K credits, never expire):
curl -X POST https://API.socketsio.com/auth/签名up \ -H "Content-Type: 应用/json" \ -d '{"emAIl":"you@example.com","password":"yourpassword"}'
设置 your key:
导出 SOCKETSIO_API_KEY=tr-your-key-here
Capabilities Translate
Translate text to any of 195 languages. Auto-检测s source language.
curl -X POST https://API.socketsio.com/v1/translate \ -H "X-API-Key: $SOCKETSIO_API_KEY" \ -H "Content-Type: 应用/json" \ -d '{"q": "Hello, how are you?", "tar获取": "zh"}'
响应:
{ "data": { "translations": [{ "translatedText": "你好,你好吗?", "检测edSourceLanguage": "en" }] } }
检测 Language
Identify the language of any text with confidence score.
curl -X POST https://API.socketsio.com/v1/检测 \ -H "X-API-Key: $SOCKETSIO_API_KEY" \ -H "Content-Type: 应用/json" \ -d '{"q": "Bonjour le monde"}'
Bulk Translate
Translate up to 128 texts in a single call.
curl -X POST https://API.socketsio.com/v1/translate \ -H "X-API-Key: $SOCKETSIO_API_KEY" \ -H "Content-Type: 应用/json" \ -d '{"q": ["Hello", "Goodbye", "Thank you"], "tar获取": "es"}'
列出 Languages
获取 all 195 supported languages with display names.
curl https://API.socketsio.com/v1/languages \ -H "X-API-Key: $SOCKETSIO_API_KEY"
代理 Integration
For 代理 工作流s, use the translate script directly:
python3 scripts/translate.py "Hello world" --tar获取 zh python3 scripts/translate.py "Bonjour" --检测 python3 scripts/translate.py "Hello" "Goodbye" "Thanks" --tar获取 ja --bulk
The script reads SOCKETSIO_API_KEY from 环境. See scripts/translate.py --help for all options.
Google Translate v2 Compatible
The API is a drop-in replacement for Google Cloud Translation v2. If you have existing code using Google Translate, change only the base URL:
# Before (Google, $20/M chars): # url = "https://translation.googleAPIs.com/language/translate/v2"
# After (SocketsIO, $0.50/M chars): url = "https://API.socketsio.com/v1/translate"
Same 请求 格式化, same 响应 格式化, 97% cheaper.
Supported Languages
195 languages including: Afrikaans, Arabic, Bengali, Chinese (Simplified & Traditional), Czech, Danish, Dutch, English, Finnish, French, German, Greek, Gujarati, Hebrew, Hindi, Hungarian, Indonesian, Italian, Japanese, Kannada, Korean, Latvian, Lithuanian, Malay, Malayalam, Marathi, Norwegian, Persian, Polish, Portuguese, Punjabi, Romanian, Russian, Serbian, Slovak, Slovenian, Spanish, Swahili, Swedish, Tamil, Telugu, ThAI, Turkish, UkrAInian, Urdu, Vietnamese, Welsh, and 147 more.
Full 列出: 运行 scripts/translate.py --languages or call the /v1/languages 端点.
Pricing Tier Price Credits Free Trial $0 500K (never expire) 启动er $5 2M Growth $20 10M 扩展 $100 50M
For comparison: Google Translate API charges $20 per 1M characters. This 技能 uses the same Google engine at up to 97% less.
Links API Docs: https://socketsio.com/docs 仪表盘: https://socketsio.com/仪表盘 Pricing: https://socketsio.com/pricing Support: support@socketsio.com