I ran out of tokens for premium models and tried adding my own Anthropic API key. Now, any request to Opus/Sonnet fail with Error 57. Other models seem to work ok and the key itself works with Anthropic directly.
Steps to Reproduce
Add a custom Anthropic key. Make a request using a specific model (Opus/Sonnet). Request fails with Error 57.
Thank you for a quick response. I was getting the error with a completely fresh and working key. If you tested with my key just now (prior to 6pm EST), then ‘yes’, you are correct. The limit just got reset at 6pm EST, so if you want to verify, go ahead.
The screenshot you’re sharing doesn’t appear to be related to API keys. While Anthropic offers plans that include usage credits, this doesn’t mean you can use that credit with your own API keys. I’d suggest checking the following pages to see what’s available to you:
You are absolutely correct. I verified with curl, this is my bad, thank you. Would have been really useful for the Provider Error 57 to include the text of the actual error from the provider.