I’m not sure how to word this - How to pull out the Auto-generated description

I’m working on a Shortcut which includes uploading images to Micro.blog. Once the image is uploaded I have found out how to access the image’s URL, and I wondered if it is also possible to access the AI generated AltText? If so, how or where is it - I’m not sure how to word the question?

Thank you.
David.

Yes, the auto-generated alt text is included in an alt field when requesting the recent list of uploads:

https://micro.blog/micropub/media?q=source

The text is not immediately available since it is processed after the photo is uploaded, so you may need to wait 5-10 seconds or more. The official clients basically call that media endpoint a couple times, waiting in between each request.

In other words, something like:

  1. Upload the photo.
  2. Wait a few seconds.
  3. Fetch the recent photos looking for the alt text.
  4. If alt text is still blank, wait 10+ more seconds and try again.
1 Like

Thank you Manton. Yes, that is what I was trying to ask for :slightly_smiling_face: