Test LLM API Online — OpenAI-Compatible & Claude Endpoints | Send Web Request
Built an app on an LLM API, or put a gateway in front of one? Before you wire it into code, send one request by hand and see exactly what comes back. Send Web Request runs the request from your browser (through a proxy when CORS blocks it), shows the status code, headers, and JSON, and lets you copy the working request as curl, Python, or JavaScript.
What can I test here?
Any HTTP endpoint that speaks JSON: the OpenAI-compatible /v1/chat/completions format (used by OpenAI, OpenRouter, Groq, Together, DeepSeek, Mistral, LiteLLM, vLLM, and Ollama), the Claude Messages API, or your own gateway or proxy in front of them. If it takes a POST with a JSON body, you can test it here.
Test an OpenAI-compatible endpoint
Send a POST to /v1/chat/completions with a Bearer token and a messages array. Swap the base URL and model for your provider or gateway:
POST https://api.openai.com/v1/chat/completions
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
{
"model": "your-model-id",
"messages": [
{ "role": "user", "content": "Say hello in one word." }
]
}Test the Claude Messages API
Claude uses its own format: the key goes in an x-api-key header, an anthropic-version header is required, and max_tokens is required in the body:
POST https://api.anthropic.com/v1/messages
x-api-key: YOUR_API_KEY
anthropic-version: 2026-10-21
Content-Type: application/json
{
"model": "claude-opus-5-5",
"max_tokens": 1024,
"messages": [
{ "role": "user", "content": "Say hello in one word." }
]
}Why am I getting 401, 400, or 404?
401 Unauthorized: the key is missing, wrong, or in the wrong header (Bearer for OpenAI-compatible APIs, x-api-key for Claude). 400 Bad Request: the JSON body is invalid or a required field (model, messages, max_tokens) is missing — the response body usually names the field. 404 Not Found: the path or model id is wrong; check that the base URL ends in /v1 only once. 429 Too Many Requests: you hit a rate limit or ran out of credit.
Is my API key safe?
Requests go from your browser to the API, or through our proxy when the API blocks browser requests (CORS). We don't store request headers or bodies. Two rules still apply: use a test key or one you can rotate, and never share a request link that has your real key in it — anyone with the link can see it.
Can I turn the request into code?
Yes. Once the request works, open the code snippet panel to copy it as curl, JavaScript (fetch), Python, Go, and more — with the same URL, headers, and body you just tested.
Try it now
Open Send Web Request, paste your endpoint and key, and send your first request.