Diagnose duplicated API version prefixes in an AI gateway URL

Compare the configured base URL with the path that the SDK actually appends. Two components can each add the same version prefix.

Example

A client configured with a versioned base URL automatically adds a version segment again. The resulting route returns an error before model selection.

What to do

  1. Inspect the actual request path in the authorized test setup.
  2. Compare it with the path listed for the compatible endpoint and the SDK’s configuration requirements.
  3. Fix one source of the prefix and run the same synthetic request again.

How to verify

The SDK sends the intended route exactly once and the result is attributed to the expected integration.

Limits

Different SDKs expect different base URLs. Check the version and method you actually use.

Spendplane for this workflow

Open the API gateway quickstart

Related reading