Quick start
1. Create an account and check your balance
Section titled “1. Create an account and check your balance”Register an account, then check your wallet. Account balance and a key’s spending limit are separate: a funded account cannot use a key that has exhausted its own allowance.
Online recharge is available. Buy a code in your wallet, then redeem it there to add credit.
2. Create an API key
Section titled “2. Create an API key”Open API keys, create a key with a recognizable name, and choose a group that contains your target model. Check that model restrictions allow it. Save the complete key in a local environment variable. The API key is different from your account password.
3. Set an environment variable
Section titled “3. Set an environment variable”macOS or Linux:
export WUDI_API_KEY='YOUR_WUDI_API_KEY'Windows PowerShell, for the current session:
$env:WUDI_API_KEY = 'YOUR_WUDI_API_KEY'In PowerShell, use curl.exe and $env:WUDI_API_KEY for the equivalent commands. See the complete examples for native PowerShell requests.
4. Query available models
Section titled “4. Query available models”curl https://wudiapi.com/v1/models \ -H "Authorization: Bearer $WUDI_API_KEY"Copy an exact data[].id, including its slashes, hyphens and version number. A display name or an arbitrary value such as 1 is not a model ID. If a model is missing, check the key’s group, restrictions and the current catalog.
5. Send a short chat request
Section titled “5. Send a short chat request”The example model must be available to your key. Otherwise, replace it with an available text model.
curl https://wudiapi.com/v1/chat/completions \ -H "Authorization: Bearer $WUDI_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"deepseek-v4.1-flash","messages":[{"role":"user","content":"Hello. Briefly describe your capabilities."}],"stream":false}'Read the answer from choices[0].message.content and inspect usage. Start with a short request before enabling tools, images, long contexts or batch jobs.
6. Check the usage record
Section titled “6. Check the usage record”Open usage logs to confirm the model, group, tokens and charge. A successful model-list request checks authentication and visibility, not the full generation workflow. For failures, retain the status code and redacted error response; see troubleshooting.
