Developer documentation
From your first API request to client integration, find model, interface, and call troubleshooting guides.
DunDun provides unified model API access for applications and development tools. You can create an API Key in the console, select a model and view the call record, and then call the model through a compatible SDK, HTTP request or client.
Start here
| What you want to accomplish | Where to start | Check after completion |
|---|---|---|
| Write your own code | Quick Start | Query the model and receive the first conversation reply |
| Configure the ready-made client | Client and tool integration | The client actually uses the website address and your key |
| Migrate existing applications | Migration Guide | Addresses, models, and business-dependent interface capabilities have all been verified |
| Troubleshoot call failure | Error code and troubleshooting | Locate the failure link based on status code and request record |
Complete the first access
1. Prepare account and API Key
Log in to the Console and check the account’s available balance. Create a separate key for this test at API Key and confirm that the validity period, quota, and model limits are appropriate for your application. Console login status cannot replace API Key.
2. Select model and interface
View the target model’s capabilities, access protocols, and current prices at Models & Prices. Use this key to query the model list and copy the actual returned model ID; not all models displayed in the catalog are open to the current key.
3. Send request and check the result
Press Quick Start to start a short conversation. After receiving the reply, open Call Record, check the request time, model, status and usage, and then configure the official application.
Three configurations required for access
| Configuration | Get location or fill in content | Purpose |
|---|---|---|
| API Key | API Key | Authentication, and apply the grouping and permissions of this key |
| Base URL | OpenAI compatible SDK usually fill in https://dunduntoken.com/v1 |
Specify request to send to this site |
| Model ID | data[].id returned by calling GET /v1/models with the current key |
Specify the model used in this request |
The API root address of this site is https://dunduntoken.com. The Base URL is different from the full request endpoint: OpenAI SDK usually appends /chat/completions by itself, and Anthropic and Gemini clients have their own path rules. For the specific filling method, see Interface Overview and the corresponding client tutorial.
MODEL_IDin the example needs to be replaced with the model ID available for the current key. API Key should be provided through server-side environment variables or key management services. Do not write web scripts, public warehouses or screenshots.
Browse documents by task
| Task | Recommended Reading |
|---|---|
| Text dialogue and programming | Chat Completions, Responses, Streaming output |
| Claude or Gemini protocol access | Select access protocol, Anthropic Messages, Gemini native protocol |
| Tool call and structured results | Tool call, Structured output |
| Image input, generation and editing | Multi-modal input, Image generation, Image editing |
| Video generation and result downloading | Video task, Polling, downloading and recovery |
| Python or Node.js development | SDK access |
| Programming Assistant and Chat Client | Client and Tool Integration |
| Check before going online | Request tracking and retry, Network troubleshooting, Data and log |
Model capabilities and available scope
Models may support different protocols, parameters, and input and output types. The existence of a path does not mean that every model supports this interface; capabilities such as tool calling and image input also need to be supported by both the model and the current channel. Complete the minimum request first, and then verify the scalability item by item according to business needs.
Available models, groups, prices, and limits are subject to the current console, key permissions, and actual interface responses. If you need assistance, press Contact Support to provide the failure time, model, status code and request ID, and remove the key and sensitive request content.