screenshot-to-code icon indicating copy to clipboard operation
screenshot-to-code copied to clipboard

Getting this error when trying to integrate anthropic api key Error code: 401 - {'type': 'error', 'error': {'type': 'authentication_error', 'message': 'invalid x-api-key'}}

Open arttkeller opened this issue 1 year ago • 4 comments

Describe the bug Getting this error when trying to integrate anthropic api key Error code: 401 - {'type': 'error', 'error': {'type': 'authentication_error', 'message': 'invalid x-api-key'}}

Captura de tela 2024-11-16 113211

arttkeller avatar Nov 16 '24 14:11 arttkeller

me too

huynhhq avatar Nov 16 '24 15:11 huynhhq

@arttkeller your screenshot doesn't look like this repo?

invalid x-api-key usually means that you don't have the right API key from Anthropic.

abi avatar Nov 16 '24 17:11 abi

@arttkeller your screenshot doesn't look like this repo?

invalid x-api-key usually means that you don't have the right API key from Anthropic.

i got the api from the link in dify thar lead me to the anthropic dashboard, created de api key and pasted in dify

arttkeller avatar Nov 16 '24 18:11 arttkeller

How does dify interact with screenshot to code? I am confused. Where you running screenshot to code?

abi avatar Nov 17 '24 20:11 abi