ViT Diabetic Retinopathy Grading

huggingface
Image Generation

Vision Transformer fine-tuned on retinal fundus photographs to grade diabetic retinopathy severity. Given a fundus image it returns scores across the five-level scale (0 no DR through 4 proliferative DR). Most-downloaded retinopathy classifier in this search. Research and education only, not a diagnostic tool.

Generate with ViT Diabetic Retinopathy Grading
Describe what you want and pick a size β€” the image renders inline.
Sign in to try this model with €5 free credits.
Sign in
Result appears here
TL;DRΒ·Last updated June 24, 2026

ViT Diabetic Retinopathy Grading is image generation AI model from huggingface, priced at €0.000 per 1M input tokens with a unknown context window.

About this model

This ViT classifier predicts diabetic retinopathy severity from colour fundus photographs on the standard 0 to 4 grading scale (no DR, mild, moderate, severe, proliferative). It takes one retinal image and outputs a five-class probability distribution. It supports research into automated DR screening and teaching, but it is not a medical device and must not be used to manage real patients.
Try ViT Diabetic Retinopathy Grading
Sign in to generate β€” 50 free credits on sign-up

Pricing

Price per Generation
Per generation€1.00

API Integration

Use our OpenAI-compatible API to integrate ViT Diabetic Retinopathy Grading into your application.

Install
npm install railwail
JavaScript / TypeScript
import railwail from "railwail";

const rw = railwail("YOUR_API_KEY");

const images = await rw.run("vit-diabetic-retinopathy-grading", "A beautiful sunset over Tokyo");
console.log(images[0].url);

// Or use the image() method for full control
const res = await rw.image("vit-diabetic-retinopathy-grading", "A cat in space", {
  size: "1024x1024",
  n: 1,
});
console.log(res.data[0].url);
Specifications
Price
€1.00
Developer
huggingface
Category
Image Generation
Supported Formats
image
Tags
medical
research
not-diagnostic
radiology
huggingface
diabetic-retinopathy
fundus
image-classification
vit

Frequently asked questions

Start using ViT Diabetic Retinopathy Grading today

Get started with free credits. No credit card required. Access ViT Diabetic Retinopathy Grading and 100+ other models through a single API.