Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

TikTok Content Translation

APIドキュメント
https://api.sandbase.ai/v1/api/tiktok/app-v3/content-translate

Translates provided text content into a designated target language. Accepts source text up to 5000 characters and returns the corresponding translated text string.

料金
$0.001USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 0 件 · 任意 2 件

プレイグラウンド

入力
Source content, that is, the content that needs to be translated, the length does not exceed 5000 characters, if it exceeds 5000 characters, only the first 5000 characters will be translated.
Target language
出力例
レスポンスoutputs · 500 B · 23 行
[
  {
    "data": {
      "extra": {
        "fatal_item_ids": [],
        "logid": "202610061239112C072D19832236975281",
        "now": 1791290351000
      },
      "log_pb": {
        "impr_id": "202610061239112C072D19832236975281"
      },
      "status_code": 0,
      "status_msg": "",
      "translated_content_list": [
        {
          "src_content": "Hello, welcome to TikHub!",
          "translated_content": "您好,欢迎来到TikHub!",
          "variant": "default"
        }
      ]
    }
  }
]

例

例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。

API README

TikTok Content Translation API

Translates a block of text into a target language and returns the translated string. Send the text in src_content and the target language code in trg_lang. Text over 5000 characters is cut to the first 5000 before translation.

Use cases

  • Translate a TikTok video caption into your own language before you review it.
  • Convert comments from a video into one language so you can compare them.
  • Localize a short marketing message into the language of a target audience.
  • Translate hashtag or bio text collected from other TikTok APIs.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tiktok/app-v3/content-translate" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
src_contentstringNoSource content, that is, the content that needs to be translated, the length does not exceed 5000 characters, if it exceeds 5000 characters, only the first 5000 characters will be translated.
trg_langstringNoTarget language

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "extra": {
    "fatal_item_ids": [],
    "logid": "20261103074351BB9CC598720C27019497",
    "now": 1793691831000
  },
  "log_pb": {
    "impr_id": "20261103074351BB9CC598720C27019497"
  },
  "status_code": 0,
  "status_msg": "",
  "translated_content_list": [
    {
      "translated_content": "您好,欢迎来到TikHub!",
      "variant": "default"
    }
  ]
}

Response fields

FieldMeaning
translated_content_listList of translation results. The sample response holds one item.
translated_content_list[].translated_contentThe translated text. In the sample, the default English greeting comes back as a Chinese string, because trg_lang defaults to zh-Hans.
translated_content_list[].variantLabel for the kind of translation returned. The sample value is default.
status_codeResult code of the call. 0 appears in the sample response, which is a successful call.
status_msgStatus message text. It is an empty string in the sample.
extra.logid / log_pb.impr_idRequest identifiers. Both hold the same value in the sample. Keep them if you need to reference a specific call.
extra.nowTimestamp for the response, shown as a 13-digit number.

Notes

  • trg_lang defaults to zh-Hans. Pass a different language code to change the target language.
  • Both parameters are optional. If you send nothing, the API translates its default sample text to zh-Hans.
  • Read the translation from translated_content_list[0].translated_content.
  • To get text to translate, fetch captions or comments first, for example with TikTok Video Details or TikTok Video Comments (App V3).

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
TikTok$0.001 / 回JSON
TikTok$0.001 / 回JSON
TikTok$0.01 / 回JSON
TikTok$0.001 / 回JSON
TikTok$0.001 / 回JSON
TikTok$0.001 / 回JSON

ガイド:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

質問

FAQ

TikTok Content Translation API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/tiktok/app-v3/content-translate に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

TikTok Content Translation API の料金はいくらですか?

1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

TikTok Content Translation API はどのパラメータを受け付けますか?

必須パラメータはありません。 任意: src_content (string) と trg_lang (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

TikTok Content Translation API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

TikTok の開発者アカウントまたは API key は必要ですか?

いいえ。TikTok Content Translation は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。TikTok の API アクセスを別途申請する必要はありません。