Subspace Institute
Background Decoration

Translation API

Translates text between languages using LLM services

POST
/chat-translate

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

text/plain

text/plain

text/plain

curl -X POST "https://edge-workers.laplace.cn/laplace/chat-translate" \  -H "Content-Type: application/json" \  -d '{    "text": "こんにちは、世界!",    "loginSyncToken": "string",    "translateTo": "en-US"  }'
{
  "success": true,
  "translation": "string"
}
"string"
"string"
"string"