Home

Awesome

img-alt-api

Simple API endpoint for image alt description generation, powered by OpenAI GPT-4 with Vision.

This is inspired by Ice Cubes. It's really cool.

Development

Requires Deno.

Add environment variable OPENAI_API_KEY. Could create a .env file and put the variable there too.

REST API Endpoints

Response:

{
  "description": "a picture of a cat"
}

Error response:

{
  "error": "Failed to generate description"
}

License

MIT.

References