Tako chat
A multi-turn conversation with Tako.
- Upstream
/aweme/v1/tako/op/stream/- Access
- Every plan
- Runs on
- LeanPool · android · tiktok · 47.5.41
- Client
os,app_flavour,app_versionoverrides- Billing
- Failed calls are free
Authorization & parameters
Your API key. Create one in API keys.
Body
Send JSON with content-type: application/json.
The conversation so far, oldest first. For example [{"role":"user","content":"Best budget mechanical keyboards?"}].
Two-letter country code for egress and storefront. For example US.
A city in that region. See the supported cities list. For example miami.
Client and egress
Optional. Leave them out to run as android · tiktok · 47.5.41 from the default LeanPool context. See Clients and versions.
android or ios. For example android.
Run as tiktok, lite, lite_coin, pro, studio, shop, tv, douyin. For example tiktok.
A release of that app. Defaults to the current default for (os, app_flavour). For example 47.5.41.
Two-letter country code for egress. For example US.
A supported city in that region. For example miami.
Response
A 200 returns JSON with stable field names. Every response carries x-credits-cost, x-credits-tier and x-credits-remaining.
Response fields
Key top-level and nested fields decoded from the mobile upstream payload:
Upstream TikTok mobile status code (0 indicates success).
Full mobile IM conversation identifier.
Server-assigned IM message Snowflake ID.
Decoded reply value.
Decoded follow ups value.
List of cited video identifiers.
Upstream request trace envelope from the mobile gateway.
Upstream TikTok impression / trace identifier.
Errors
Errors return a JSON body with a stable code and cost 0 credits. See Errors and retries.