# Alt text from a scene description — prompt for Gemma

Write a text alternative for an image using its existing description and role on the page.

Canonical URL: https://boswidget.ru/en/alt-text-from-a-scene-description-prompt-for-gemma/

Model: Gemma

Category: Writing

Tags: alt, accessibility, images

![Alt text from a scene description](https://boswidget.ru/assets/images/text-preview-gm-alt-tekst-po-opisaniyu-sceny-1200.9e90dbcf5a57.webp)

Alt text from a scene description

## Prompt

Verbal description of an image: {scene}. Surrounding text and the image's function: {context}. Suggest alt text covering only what matters on this page and explain your choice. If the image is decorative, propose empty alt text with a reason. Do not claim to have seen the file. Do not add colors, emotions, brands or lettering absent from the description. Include image text when relevant and not repeated nearby. Avoid unhelpful duplication between the caption and alt text.

## Template fields

- `{scene}` — Scene description. Example input: What is clearly visible and which inscriptions appear
- `{context}` — Role on the page. Example input: Surrounding text, caption and image purpose

## Launch

[Open Gemma in YesAI](https://yesai.su/en/gemma)
