How to run a model list check
The API Key Tester sends one catalog request from your browser to a provider model list endpoint and reports what comes back. Developers use this check to separate credential mistakes, route version mismatches, HTTP error codes, and browser connectivity blocks before debugging application code.
- Select a provider schema in API format by choosing OpenAI-compatible, Anthropic, or Gemini.
- Enter your target HTTPS address in API base URL or models URL.
- Paste the credential into API key.
- Select Check model list to dispatch one GET request and view the returned HTTP status, elapsed milliseconds to response headers, and parsed entry count.
- Select Clear key when finished to empty the API key input.
While you work in API Key Tester, the value entered in API key stays in temporary form state. Selecting Clear key removes the key from that field immediately. Details on how the site handles browser data appear in the Privacy Policy.
URL normalization and request headers
Entering the right base address prevents avoidable 404 responses when switching between hosted providers and self-hosted gateways. The API Key Tester enforces strict URL validation before your browser opens a network connection.
Accepted HTTPS base and models URLs
Every address entered in API base URL or models URL must use HTTPS. The form rejects query strings, URL fragments, and embedded URL credentials such as a username or password before the host. Keeping those parts out of the URL ensures the browser sends credentials only in the expected request headers and targets a clean catalog path.
API Key Tester normalizes the path using three rules based on what you enter. A host-only URL automatically receives the default versioned catalog path, which uses v1 for OpenAI-compatible and Anthropic endpoints or v1beta for Gemini endpoints. A versioned or prefixed base URL receives /models appended to the end of the path. An address that already ends with an explicit /models segment stays exactly as entered.
Common HTTPS base examples illustrate how versioned paths resolve cleanly. For OpenAI, enter https://api.openai.com/v1 to target /v1/models. For Anthropic, enter https://api.anthropic.com/v1 to target /v1/models. For Gemini, enter https://generativelanguage.googleapis.com/v1beta to target /v1beta/models. If your custom API endpoint uses a gateway prefix such as /api/v1, entering that prefixed base appends /models automatically without duplicating the prefix.
Provider headers and expected JSON keys
After resolving the URL, API Key Tester instructs your browser to send one GET request directly to that route. Because authentication headers trigger cross-origin security rules in modern browsers, the browser may send a CORS preflight request before the GET request reaches the server.
Selecting OpenAI-compatible in API format attaches a bearer Authorization header containing your key and inspects the JSON response body for a top-level data array. This matches the standard catalog structure documented in the OpenAI model list.
Selecting Anthropic sends both x-api-key and anthropic-version headers on the GET request. When the endpoint responds with JSON, the parser looks for a top-level data array matching the schema described in Anthropic List Models.
Selecting Gemini attaches the key in the x-goog-api-key header. The parser then reads the top-level models array defined in Gemini Models.
Reading the response metrics and status label
When an API endpoint returns an HTTP response, the API Key Tester displays three diagnostic measurements alongside the status summary. Together they describe the response the browser received.
The HTTP status code shows the exact numeric response returned by the server, such as 200, 401, 403, 404, 429, or a 5xx server error. Use the code to narrow the investigation and confirm its meaning with the service operating the endpoint.
Elapsed milliseconds to response headers measures the time from dispatching the browser request until the response headers arrive. This timing can include DNS lookup, TLS negotiation, cross-origin preflight, and gateway response time. It gives a practical baseline for endpoint reachability without conflating network overhead with token generation speed.
On the returned page, the entry count in API Key Tester reports how many items appear inside the expected data or models array. When the endpoint returns a successful HTTP status and a readable catalog structure matching the selected API format, the interface displays Model list request succeeded.
Keep two edge cases in mind when reading Model list request succeeded. First, a valid empty array counts as a readable response and displays zero entries, which can happen on restricted accounts or newly provisioned gateways. Second, providers that paginate their model list only return the first page in a single GET request, so the reported count reflects the entries on that first page.
Checking access beyond the model list
The API Key Tester runs the model-list route. Use a provider's protected endpoints or dashboard to check permissions and account details for the operations your application needs.
To check model access, use the provider's documented generation route for the specific model and workspace. Review credit balances and spending limits in the provider's account dashboard.
API Key Tester can display the catalog from gateways that return their model list without checking credentials. For example, OpenRouter serves /api/v1/models publicly and responds with HTTP 200 even when no key is supplied.
To verify a credential on a provider whose catalog is public, you need to call a provider route that enforces authentication. OpenRouter independently documents GET /api/v1/key for inspecting the current key, its limits, and its usage status outside this tool. You can review that route in the OpenRouter current-key endpoint.
When you want to move past catalog reachability and compare live model behavior or inspect model fingerprints across endpoints, use AI Model Tester.
Troubleshooting status codes and unexpected responses
Start with the reported HTTP status and the response format. Use those details to decide whether to inspect the credential, the endpoint address, or the browser connection.
401 and 403 responses
An HTTP 401 status in API Key Tester means the endpoint refused authentication for that request. Check for a revoked, expired, or incomplete key and confirm the selected API format. Choose Anthropic or Gemini for their native endpoints so the browser sends the corresponding x-api-key or x-goog-api-key header.
An HTTP 403 status indicates the server understood the request but refused access. This often happens when a key has project restrictions, API scope limits, IP allowlists, or workspace policies that block the catalog route. It can also appear when a web application firewall or gateway blocks browser-originated requests based on origin headers.
404, 429, and 5xx responses
An HTTP 404 status points you toward the requested path and API version. Check API base URL or models URL for missing version prefixes, duplicated segments, or typos. If your provider documents a catalog URL ending in /models, enter the full HTTPS URL. Gateways that use another catalog path require a client that supports their documented route.
Seeing an HTTP 429 status in API Key Tester signals that the API endpoint enforced a rate limit or quota ceiling. Wait for the provider window to reset or check whether other services share the same key.
An HTTP 5xx status, such as 500, 502, 503, or 504, points to a failure on the remote provider or an intermediate reverse proxy. Retrying after a brief pause confirms whether the outage is transient.
HTTP 200 with HTML or unexpected JSON
A successful check requires a readable catalog in the expected format. Corporate gateways and single sign-on portals can return an HTML login screen or documentation page with HTTP 200. In other cases, a custom API endpoint returns valid JSON under a property name different from the selected format's expected field.
When the API Key Tester flags unexpected HTML or wrong JSON on a 200 response, verify the base URL against the provider's API documentation and confirm that API format matches the response schema.
Diagnosing missing HTTP responses and browser blocks
Sometimes a check finishes without any HTTP status code at all. Because the API Key Tester executes the GET request directly from your browser, network-layer failures and browser security policies prevent JavaScript from reading a status line or response body.
Cross-Origin Resource Sharing can block a call in a browser even when the same endpoint works in a terminal. When your browser sends custom headers such as Authorization, x-api-key, anthropic-version, or x-goog-api-key, the browser typically issues an OPTIONS preflight request first. The endpoint must allow the page origin and those request headers before the browser can read the response. Technical details on preflight checks and response headers are covered in MDN on CORS.
A typo, inaccessible private hostname, TLS error, firewall, or VPN can also leave API Key Tester without a readable browser response. The tool rejects redirects and stops waiting after 15 seconds. It can display an HTTP status only if the browser received readable response headers.
To separate a browser CORS block from a broken endpoint, check the host spelling first, confirm the endpoint is reachable from your current network, and verify in your provider documentation whether browser-originated requests are permitted on the model list route.