mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #23319] issue: Anthropic API : GET + x-api-key = authorization failure #58612
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Touffman78 on GitHub (Apr 1, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23319
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.8.12
Ollama Version (if applicable)
v0.17.8-rc4
Operating System
Linux
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When using Anthropic-compatible client with Open-WebUI API get model list should work on /v1/models URL using x-api-key header
NB : x-api-key header is well recognized when POSTing to /v1/messages
Actual Behavior
When using Anthropic-compatible client with Open-WebUI API get model list doesn't work on /v1/models URL with x-api-key header : return 401 Unauthorized
Steps to Reproduce
make a GET request on Anthropic-compatible API endpoint to get model list using x-api-key header:
curl -sS -v -H "Content-Type: apcation/json" -H "x-api-key: sk-f8....a2" 'http://127.0.0.1:3000/api/v1/models'Logs & Screenshots
But works fine with Authorization header (with the same token) :
Additional Information
No response
@dylanmorris1231ho-spec commented on GitHub (Apr 1, 2026):
Thanks for the detailed report and for providing clear reproduction steps.
On Wed, Apr 1, 2026, 7:13 AM Touffman78 @.***> wrote: