WuDi APIWuDi API

API Base URL: root address, /v1 and complete endpoints

A base address and a complete endpoint serve different purposes. An incorrect path can cause a 404, an HTML response, or a request to the wrong interface. For the common WuDi chat interface, distinguish these addresses:

Address typeExamplePurpose
Site roothttps://wudiapi.comA client that adds the version and resource path itself
Common Base URLhttps://wudiapi.com/v1A compatible client requesting a versioned base address
Complete chat endpointhttps://wudiapi.com/v1/chat/completionsA direct chat HTTP request

Check what the client appends

If it appends /chat/completions, use the base address ending in /v1. If it appends /v1/chat/completions, use the root. A field requesting the complete request URL needs the full endpoint. These are path-composition examples, not compatibility guarantees for every client version.

Inspect the final URL in the client's request log rather than relying on a field's label. Some clients normalize slashes; others concatenate strings directly.

Diagnose /v1/v1, repeated endpoints and 404s

  1. Check whether the version prefix appears twice, such as /v1/v1/chat/completions. Keep it in the appropriate place once.
  2. Remove a repeated resource path such as /chat/completions/chat/completions.
  3. If the response is HTML, verify the endpoint, request method and redirects.
  4. A browser address normally sends GET. A chat request uses POST with authentication and a JSON body; the two are not equivalent tests.
  5. Confirm the protocol needed by the client. A correct chat address does not provide another protocol's features.

Match the key and model to the platform

Use a key created on WuDi API and an exact available model ID. Credentials or subscriptions from another platform do not automatically give access here. Preserve prefixes, case and hyphens. Check the key's group, restrictions, expiry and allowance as well as wallet credit.

Use the model list as an initial check

curl -i https://wudiapi.com/v1/models -H "Authorization: Bearer $WUDI_API_KEY"

In PowerShell, use curl.exe and the variable syntax $env:WUDI_API_KEY. Do not publish credentials from request headers or logs.

A successful model-list request checks that step's connection and visibility. It does not verify chat, image generation, tools or streaming. Follow it with a short request for the actual model and inspect the usage record.

Image and native protocols have different paths

Do not put every request through the chat endpoint. Confirm the protocol, available route, parameters and key permissions. See the platform address reference and client guides.

Frequently asked questions

Must every Base URL end in /v1? No. It depends on which path the client adds.

Does an error in a browser address mean the API is unavailable? No. Authentication, method and body requirements still apply.

Why does a client fail when the model list works? Check its generation protocol, model parameters and permissions next. Use the error guide for a structured diagnosis.