APIMaster.ai

AI API 接口測試工具

100% browser-side · key never sent to our servers

免費驗證 OpenAI、Claude、Gemini、DeepSeek API Key 是否有效,快速檢測接口連通性

本工具從你的瀏覽器直接向填寫的 URL 發起一次短請求,APIMaster.AI 不會接收或保存你的 API Key。

Request configuration

API format

Test result

No result yet. Fill in the form, confirm the notice above, then run a test.

Test with curl in your terminal

The command below mirrors the browser request. Replace <API_KEY> with your real key when running locally.

curl -sS 'https://api.example.com/v1/messages' \
  -X POST \
  -H 'content-type: application/json' \
  -H 'x-api-key: <API_KEY>' \
  -H 'anthropic-version: 2023-06-01' \
  -H 'anthropic-dangerous-direct-browser-access: true'
  --data-binary '{
  "model": "claude-opus-4-8",
  "max_tokens": 64,
  "messages": [
    {
      "role": "user",
      "content": "just say hi, nothing else"
    }
  ]
}'
  1. Click Copy above.
  2. Open Terminal (macOS/Linux) or PowerShell (Windows).
  3. Paste the command and press Enter.
  4. Inspect HTTP status and JSON in the output.

Common issues

401Unauthorized

Invalid, expired, or malformed API key. Regenerate the key at your provider and paste without extra spaces.

403Forbidden

Account lacks permission, billing is blocked, or this API format is not enabled for your key.

429Rate limited

Too many requests. Wait and retry, or reduce concurrency.

CORSCORS / Failed to fetch

Many providers block browser calls. Use the generated curl command instead.

FAQ

How do I test my API key?

Pick a format, enter base URL, API key, model, and a short prompt, confirm the notice, then click Run test.

Is my key safe on this page?

Yes. Requests go straight from your browser to your API URL. APIMaster servers are not in the path and we do not log your key.

What if the test fails?

Check HTTP status and the raw body. Typical causes: wrong key, wrong format, insufficient balance, model access denied, rate limits, or CORS in the browser.

Can I test multiple keys?

Yes. Replace the key and run again; each run is independent.

Why provide a terminal command?

Terminal curl bypasses browser CORS and matches how backend services call APIs.