Skip to main content
POST
/
v1
/
aicc
/
aicc-translator
Create text translate
curl --request POST \
  --url https://api.ai.cc/v1/aicc/aicc-translator \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data @- <<EOF
{
  "texts": [
    "hello. world!",
    "<b>hello. google!</b>",
    "<i>hello. AI Translate!</i>",
    "<notranslate class=\"notranslate\">don't translate me!</notranslate>"
  ],
  "tl": "ja",
  "sl": "en"
}
EOF
{
  "texts": [
    "hello. world!",
    "<b>hello. google!</b>",
    "<i>hello. AI Translate!</i>",
    "<notranslate class=\"notranslate\">don't translate me!</notranslate>"
  ],
  "tl": "ja",
  "sl": "en"
}

Authorizations

Authorization
string
header
required

Authentication is done using Bearer Token. Format: Authorization: Bearer sk-xxxxxx

Body

application/json
texts
string[]
required

Original text

tl
string
required

target language

sl
string

source language

Response

200 - application/json

Response created successfully

texts
string[]

Target text

Example:
[
"こんにちは世界!",
"<b>こんにちは。グーグル!</b>",
"<i>こんにちは。AI翻訳です!</i>",
"<notranslate class=\"notranslate\">don't translate me!</notranslate>"
]
tl
string

target language

Example:

"ja"

code
integer

status code

Example:

"200"