@tanstack/ai-byteplus has 2,503 recorded weekly downloads on npm, a decrease of 10.8% over the past 30 days, ranking #1812 of 3,247 tracked listings.
About @tanstack/ai-byteplus
@tanstack/ai-byteplus
BytePlus ModelArk adapter for TanStack AI — Seed chat models, Seedance video generation, Seedream image generation, and Seed Speech text-to-speech and transcription.
Installation
npm install @tanstack/ai-byteplus
# or
pnpm add @tanstack/ai-byteplus
# or
yarn add @tanstack/ai-byteplus
Setup
BytePlus splits its models across two products with two different API keys:
# Ark (ModelArk): chat, Seedance video, Seedream image
export ARK_API_KEY="..."
# Seed Speech: text-to-speech and transcription — a separate product key
export BYTEPLUS_VOICE_API_KEY="..."
Ark keys are region-isolated. The default base URL is the Asia-Pacific
south-east endpoint (https://ark.ap-southeast.bytepluses.com/api/v3); per the
BytePlus docs the EU endpoint serves chat and image only (docs-derived — only
the ap-southeast host was exercised live).
Why there's no Volcengine SDK dependency
This package does not depend on @volcengine/ark-runtime (or any other
first-party BytePlus/Volcengine SDK). That is deliberate:
- Chat doesn't need one. Ark's
/chat/completionsis OpenAI-compatible, so the chat adapter rides theopenaiSDK through@tanstack/openai-base— the same path@tanstack/ai-grokand@tanstack/ai-groqtake, with identical dependencies. That reuses the shared streaming, tool-calling and structured-output machinery instead of forking it per provider. - Nothing else is OpenAI-shaped anyway. Seedance video, Seedream image and Seed Speech are bespoke endpoints on two different hosts with two different auth headers. An SDK would not spare us the wire types; it would add a second dependency that still had to be translated at the boundary.
The cost is that the non-chat wire types are hand-written and pinned by tests
rather than generated. That is a considered trade, not an oversight — see
src/video/wire-types.ts, src/image/wire-types.ts and
src/audio/wire-types.ts, each of which records how its shape was verified.
Usage
Chat
import { chat } from '@tanstack/ai'
import { byteplusText } from '@tanstack/ai-byteplus'
// The adapter carries the model — there is no separate `model` option.
const adapter = byteplusText('seed-2-0-lite-260428')
const { text } = await chat({
adapter,
messages: [{ role: 'user', content: 'Explain diffusion models briefly' }],
threadId: 'thread-1',
stream: false,
})
console.log(text)
Drop stream: false to get the default streaming form, which yields
StreamChunks you can iterate with for await.
Seed models reason by default. Reasoning arrives as a separate stream of
reasoning_content deltas and is surfaced as reasoning content, not answer
text. Pass reasoning: 'off' to chat() to turn it off, on a model that
can stop thinking (for example glm-5-2-260617).
Video (Seedance)
Seedance is an async task API, so generateVideo() only opens the job and
returns its jobId. Poll getVideoJobStatus() until the job settles — the
video URL arrives with the terminal status.
import { generateVideo, getVideoJobStatus } from '@tanstack/ai'
import { byteplusVideo } from '@tanstack/ai-byteplus'
const adapter = byteplusVideo('seedance-1-5-pro-251215')
const { jobId } = await generateVideo({
adapter,
threadId: 'thread-1',
prompt: 'a guitar being played in a store',
size: '16:9_720p',
duration: 5,
})
let status = await getVideoJobStatus({ adapter, jobId })
while (status.status === 'pending' || status.status === 'processing') {
await new Promise((resolve) => setTimeout(resolve, 5000))
status = await getVideoJobStatus({ adapter, jobId })
}
console.log(status.status === 'completed' ? status.url : status.error)
To let the core drive the whole lifecycle instead, pass stream: true and hand
the resulting chunk stream to your transport:
import { generateVideo, toServerSentEventsResponse } from '@tanstack/ai'
import { byteplusVideo } from '@tanstack/ai-byteplus'
export function POST() {
const stream = generateVideo({
adapter: byteplusVideo('seedance-1-5-pro-251215'),
threadId: 'thread-1',
prompt: 'a guitar being played in a store',
stream: true,
pollingInterval: 5000,
})
return toServerSentEventsResponse(stream)
}
Generated video URLs expire after 24 hours (the task record itself is kept for 7 days), so download anything you need to keep.
Image (Seedream)
import { generateImage } from '@tanstack/ai'
import { byteplusImage } from '@tanstack/ai-byteplus'
const result = await generateImage({
adapter: byteplusImage('seedream-4-0-250828'),
threadId: 'thread-1',
prompt: 'a guitar being played in a store',
size: '2K',
modelOptions: { watermark: false },
})
console.log(result.images[0]?.url)
size takes either a token (1K, 2K, 4K) or explicit pixels
(2048x2048) — never a mix. Pass image parts in the prompt array to edit or
condition on existing images (up to 14 references, 10 on
dola-seedream-5-0-pro-260628).
Two behaviors surprise people:…
Description from the npm listing.
- ai
- ai-sdk
- typescript
- tanstack
- byteplus
- modelark
- seed
- seedance
- seedream
- adapter
- llm
- chat
- video-generation
- image-generation
- text-to-speech
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (170)Similar npm AI SDKs plugins
All 20 @tanstack/ai-byteplus alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@tanstack/ai-byteplus. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.