Anthropic API error - invalid x-api-key #71

Closed
opened 2026-02-15 19:15:22 -05:00 by yindo · 3 comments
Owner

Originally created by @yblis on GitHub (Jul 1, 2024).

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). 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
yindo closed this issue 2026-02-15 19:15:22 -05:00
Author
Owner

@justinh-rahb commented on GitHub (Jul 1, 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
@justinh-rahb commented on GitHub (Jul 1, 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

@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.

@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.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: open-webui/pipelines#71