MedicalAI Web Demo

Connect your website to the MedicalAI API server

Checking API...

Radiology Caption

Upload a chest X-ray and get an AI-generated radiology report.

Upload an image and click Analyze.

Symptom Check

Upload an X-ray with patient symptoms for diagnosis.

Upload an image and enter symptoms.

How to connect your website

Use fetch() from JavaScript to call the API server running on your machine.

// Example: Radiology Caption const form = new FormData(); form.append('file', imageFile); const res = await fetch('http://YOUR_SERVER:8000/api/vision', { method: 'POST', body: form, }); const data = await res.json(); console.log(data.caption); // Example: Symptom Check const form2 = new FormData(); form2.append('file', imageFile); form2.append('symptoms', 'cough, fever'); const res2 = await fetch('http://YOUR_SERVER:8000/api/symptom-check', { method: 'POST', body: form2, }); const data2 = await res2.json(); console.log(data2.diagnosis, data2.confidence);