Skip to content

Using Cloudflare AI for SEO to take any image and create alt text for it

License

Notifications You must be signed in to change notification settings

johnmurch/cf-image-to-alt-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cf-image-to-alt-text

Using Cloudflare AI for SEO to take any image and create alt text for it

Setup

npm install

Run Dev

npm run dev

Test Locally

You can change the image to anything on the web btw :)

curl -X POST http://localhost:8787/api/v1/image \
-H "Content-Type: application/json" \
-d '{
  "url": "https://www.johnmurch.com/assets/img/john-murch.jpg"
}'

Example output

{
	"imageUrl": "https://www.johnmurch.com/assets/img/john-murch.jpg",
	"altText": "A man wearing a plaid shirt and a black shirt is smiling."
}

About

Using Cloudflare AI for SEO to take any image and create alt text for it

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published