Why OpenAI-compatible? 🤔
Because thousands of tools already speak the OpenAI protocol, you can plug them in without writing any special integration code. Same JSON structure, same authentication header, same streaming events.

Example with curl 🖥️
The fastest way to test your token is a single curl request:
curl https://oneapi.daqi.tech/v1/chat/completions -H "Authorization: Bearer sk-your-token" -H "Content-Type: application/json" -d '{"model":"gpt-4o-mini","messages":[{"role":"user","content":"Hello"}]}'
Example with Python 🐍
The official openai Python library works out of the box. Just point base_url to our endpoint and set your API key.
Supported frameworks table
| Framework | base_url option | Works out of the box |
|---|---|---|
| openai-python | openai.base_url | Yes ✅ |
| openai-node | baseURL | Yes ✅ |
| LangChain | openai_api_base | Yes ✅ |
| LiteLLM | api_base | Yes ✅ |
| Open WebUI | OPENAI_API_BASE_URL | Yes ✅ |
What about LangChain, and other frameworks? 🧩
All major frameworks let you configure a custom base URL and API key. Look for the base_url option and set it to our endpoint. It really is that simple.
Frequently asked questions ❓
Is the endpoint truly OpenAI-compatible?
Yes. Requests, responses and streaming events match the OpenAI protocol, so tools work without modification.
Which SDKs can I use?
Any library that lets you set a base URL: openai-python, openai-node, LangChain, LiteLLM, Open WebUI and more.
Do I need a special API key format?
No. A normal Bearer token created in the panel works with every SDK.
What happens if I send a wrong model name?
You get a model_not_found error that lists the models available on your account.
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 (200)