abi / screenshot-to-code

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

Invalid access code or you're out of credits. Please try again. #166

Closed onion0835 closed 11 months ago

onion0835 commented 11 months ago

Invalid access code or you're out of credits. Please try again. my key is ok, and I have test it from openai import OpenAI

client = OpenAI()

response = client.chat.completions.create( model="gpt-4-vision-preview", messages=[ { "role": "user", "content": [ {"type": "text", "text": "What’s in this image?"}, { "type": "image_url", "image_url": { "url": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg", "detail": "high" }, }, ], } ], max_tokens=300, )

print(response.choices[0].message.content)

abi commented 11 months ago

Hi there, that field is for access code you purchase directly from screenshot to code. See the form field below for where to put your OpenAI key.