Sand AISand AI MAGI-2ตอนนี้ MAGI-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 / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
0 จำเป็น · 2 ไม่บังคับ

Playground

อินพุต
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"
        }
      ]
    }
  }
]

ตัวอย่าง

เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground

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

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ TikTok Content Translation API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/tiktok/app-v3/content-translate โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

TikTok Content Translation API ราคาเท่าไร?

$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

TikTok Content Translation API รับพารามิเตอร์อะไรบ้าง?

ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: src_content (string) และ trg_lang (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

TikTok Content Translation API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ TikTok ไหม?

ไม่จำเป็น TikTok Content Translation ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง TikTok API แยกต่างหาก