This app (value AI) allows users to upload an image of a vehicle and find out an estimated market value of that car. Value AI turns anyones camera into a car-valuation tool. It is a full-stack web app based on Python and React+Vite using FastAPI and Open AI GPT-4o vision API to identify make, model, and year to return up to the minute USD estimates.
*THE FOLLOWING INSTRUCTIONS ARE TEMPORARY AND ARE FOR ANYONE WHO WANTS TO TRY OUT THE SYSTEM BEFORE I HAVE IT HOSTED ONLINE. YOU CAN ALSO WATCH THE DEMO VIDEO ABOVE TO SEE IT IN ACTION. IT WILL BE AVALIABLE ONLINE SOON!*
This document summarizes the minimal configuration and code snippets for the React frontend and FastAPI backend so
that the VITE_API_URL
env var, fetch call, and JSON keys all align correctly. Feel free to reach out with
any questions.
Follow these steps to clone the repo, configure your environment, spin up both servers, and try the full upload→estimate flow yourself.
git clone https://github.com/tylermcclelland/valueai.git
cd valueai
Create a file named .env
in the project root (next to backend/
and frontend/
):
OPENAI_API_KEY=sk-<your-key-here>
VITE_API_URL=http://localhost:8000
(You would need to sign up at platform.openai.com to generate your own key.)
python3 -m venv .venv
source .venv/bin/activate
pip install fastapi uvicorn python-dotenv openai
uvicorn backend.main:app --reload --port 8000
brew install node
cd frontend
npm install
npm run dev
curl -X POST http://localhost:8000/upload \
-F 'image=@/full/path/to/car.jpg'
A JSON response like {"value":"2019 Toyota Camry — approx. $17,000"}
indicates success.
If you run into CORS or missing-key errors, verify:
.env
is in the root and matches the variable names exactly.