Why stream? 🌊
Users perceive streaming responses as much faster. The first token often arrives in under a second, even when the full answer takes longer.

Enable stream in the request
Add "stream": true to your request body. The server then returns server-sent events with one delta per chunk.
Event shape
| Field | Meaning |
|---|---|
| choices[0].delta.content | The next piece of text |
| choices[0].finish_reason | stop / length / tool_calls |
| usage | Final token counts |
Handle the final usage event 📈
The last event includes usage. Accumulate it so you can display tokens consumed to your users.
Common pitfalls
- Do not buffer the whole stream
- Handle network reconnects
- Cancel the request when the user stops
With streaming enabled your app instantly feels snappier ✨.
Frequently asked questions ❓
Do I still get the full usage numbers?
Yes. The final chunk of the stream includes the usage object with input and output token counts.
Can I stream with the official SDKs?
Yes. Set stream=True in openai-python (or stream in openai-node) and iterate over the deltas.
Do tool calls work in streaming mode?
Yes. Tool-call deltas arrive in the same server-sent event stream as text deltas.
Does streaming cost more?
No. Streaming uses the same per-token pricing as non-streaming requests.
How to Redeem Your API Credits
Every purchase on DaqiToken includes a unique redemption code (ONEAPI-XXXXXX). Here is how to turn it into usable credits:
1. Buy a package
Get your redemption code at checkout from the TOKEN store.
2. Log in
Open the Daqi account panel. Create an account in seconds if you do not have one.
3. Redeem
Paste the code in your account and press Redeem. Credits appear instantly.
4. Create an API token
Use your token as the API key with any OpenAI-compatible client.
Frequently asked questions ❓
How long does redemption take?
Credits appear on your account instantly after you press Redeem — there is no waiting period.
What if my code does not work?
Check for extra spaces or a typo first. If it still fails, contact support with your order number and we will sort it out.
Do credits expire?
No, credits never expire. You can keep them for as long as you need.
Can I split one code across multiple accounts?
No. Each redemption code can be used only once and credits go to the account that redeems it.
Comments (201)