Skip to content

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.

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.

macOS or Linux:

Terminal window
export WUDI_API_KEY='YOUR_WUDI_API_KEY'

Windows PowerShell, for the current session:

Terminal window
$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.

Terminal window
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.

The example model must be available to your key. Otherwise, replace it with an available text model.

Terminal window
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.

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.