This command is generated from the current form values. It runs directly from your terminal to the target endpoint.
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-7",
"max_tokens": 64,
"messages": [
{
"role": "user",
"content": "just say hi, nothing else"
}
]
}'The API key is invalid, expired, malformed, or not accepted by this provider.
Check the provider dashboard and use an active key in the expected format.
The account lacks permission, billing is disabled, or the endpoint rejects this request format.
Confirm account permissions, credits, model access, and the selected API format.
Too many requests were sent in a short time.
Wait and retry, lower request frequency, or upgrade the provider plan.
The browser is not allowed to read this API response.
Run the generated curl command from your terminal for a direct test.
Choose the API format, enter the endpoint, key, model, and message, complete verification, then start the test.
The key is not submitted to Hvoy AI. It is only used in your browser request and in the generated curl command shown on this page.
Check the status code and raw response first. Most failures are caused by an invalid key, wrong request format, insufficient balance, rate limits, or CORS.
Yes. Replace the key and run a new independent test.
Some providers block browser requests. curl avoids browser CORS rules and is closer to how server-side applications call APIs.