Skip to main content
Build a complete streaming chat in the terminal using just Node.js and the General Compute SDK. No frameworks, no build tools. Clone the full example project:

1. Set up the project

2. Write the chat loop

This creates a multi-turn chat that streams responses token-by-token:
index.ts
We’re using minimax-m2.7 — our best general-purpose model. For complex reasoning tasks, try deepseek-v3.2. See all models on the Models & Pricing page.

3. Add your API key

4. Run it

You’ll get an interactive chat in your terminal with streaming responses: