abi / screenshot-to-code

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
https://screenshottocode.com
MIT License
60.52k stars 7.43k forks source link

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

Open arttkeller opened 6 days ago

arttkeller commented 6 days ago

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

huynhhq commented 6 days ago

me too

abi commented 6 days ago

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

arttkeller commented 6 days ago

@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

abi commented 4 days ago

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