[GH-ISSUE #145] Anthropic API error - invalid x-api-key #70

Closed
opened 2026-10-18 21:02:08 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @yblis on GitHub (Jul 1, 2024).
Original GitHub issue: https://github.com/open-webui/pipelines/issues/145

Hello,

I integrated the Anthropic pipeline available at this link: https://github.com/open-webui/pipelines/blob/main/examples/pipelines/providers/anthropic_manifold_pipeline.py to test its capabilities. I retrieved the API, but I get this error message when attempting to communicate with the AI Claude 3-5:

Error: Error code: 401 - {type: error, error: {type: authentication_error, message: invalid x-api-key}}

Note: The API key is valid.

Please help

Originally created by @yblis on GitHub (Jul 1, 2024). Original GitHub issue: https://github.com/open-webui/pipelines/issues/145 Hello, I integrated the Anthropic pipeline available at this link: https://github.com/open-webui/pipelines/blob/main/examples/pipelines/providers/anthropic_manifold_pipeline.py to test its capabilities. I retrieved the API, but I get this error message when attempting to communicate with the AI Claude 3-5: `Error: Error code: 401 - {type: error, error: {type: authentication_error, message: invalid x-api-key}}` Note: The API key is valid. Please help
Author
Owner

@justinh-rahb commented on GitHub (Jul 2, 2024):

you can either start the Pipelines Docker container with environment variable -e ANTHROPIC_API_KEY=your-api-key or set it in Admin Settings > Pipelines Anthropic valves configuration:

Screenshot 2024-07-01 at 10 12 01 PM
<!-- gh-comment-id:2201681309 --> @justinh-rahb commented on GitHub (Jul 2, 2024): you can either start the Pipelines Docker container with environment variable `-e ANTHROPIC_API_KEY=your-api-key` or set it in **Admin Settings > Pipelines** Anthropic valves configuration: <img width="484" alt="Screenshot 2024-07-01 at 10 12 01 PM" src="https://github.com/open-webui/pipelines/assets/52832301/e1f658ab-88ac-454e-8587-822add548683">
Author
Owner

@yblis commented on GitHub (Jul 2, 2024):

Thank you for your response, bur that's exactly what I did.

image

image

<!-- gh-comment-id:2201976786 --> @yblis commented on GitHub (Jul 2, 2024): Thank you for your response, bur that's exactly what I did. ![image](https://github.com/open-webui/pipelines/assets/10268910/7fa948e6-816d-4f25-8f0d-451832d8735b) ![image](https://github.com/open-webui/pipelines/assets/10268910/802b0117-cd08-4634-a0e2-36af48b7770c)
Author
Owner

@yblis commented on GitHub (Jul 2, 2024):

Well, the problem came from my API key, I think there are issues on Anthropic's side, thank you for your help.

<!-- gh-comment-id:2201979104 --> @yblis commented on GitHub (Jul 2, 2024): Well, the problem came from my API key, I think there are issues on Anthropic's side, thank you for your help.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
open-webui/pipelines#70
No description provided.