/image-to-code

Image to Code with GPT-4-vision-preview

Primary LanguageTypeScriptMIT LicenseMIT

Image to code converter with AI + GPT-4-vision-preview

image-to-code.mov

What is this?

This is a tool that converts images to code. It uses AI to generate code from images. It is based on the GPT-4-vision-preview model.

How to use it?

  1. Upload an image

  2. Wait for the AI to generate code

  3. Copy the code

  4. Paste the code into your project

How does it work?

The GPT-4-Vision-Preview model generates code from images. It's trained on a dataset containing images and their associated code. It uses neural networks for this process.

How to run it locally?

  1. Clone this repository

  2. Install the dependencies with npm install

  3. You have to create a .env file with your OPENAI_API_KEY compatible with gpt-4-vision-preview model.

  4. Run the server with npm run dev

  5. Open http://localhost:3000 in your browser