| **Note:** Image attachment is currently available in Gemini's no-cost tier.

Attach an image to your query for Gemini in Android Studio to better
understand an app's architecture and accelerate the UI development process.

To attach an image to your prompt, click **Attach Image File**
![Attach Image File icon](https://developer.android.com/static/studio/images/attach-image-file.png)
and upload the image.

Here are just a few ways Gemini can help with images:

- If you have a mock-up of the UI you'd like, Gemini can provide the code that
  creates it. Here we've shown Gemini a screenshot of the
  [Now in Android](https://github.com/android/nowinandroid) app and
  asked it to provide the Compose code to create it. To learn more, see
  [Generate UI with image attachments](https://developer.android.com/studio/gemini/generate-ui-with-images).

  ![](https://developer.android.com/static/studio/images/nia-screenshot-2.png) ![](https://developer.android.com/static/studio/images/gias-response-2.png)
- If you want to learn how an app is constructed, Gemini can explain how the UI
  works in terms of its component parts. Here we've asked Gemini to explain
  the composables and data flow behind another Now in Android screenshot.

  ![](https://developer.android.com/static/studio/images/nia-screenshot-1.png) ![](https://developer.android.com/static/studio/images/gias-response-1.png)
- If you have an app architecture diagram, Gemini can suggest code to create the
  app based on the diagram, serving as a full stack development assistant. Gemini
  can also help document the diagram and explain the construction of the app,
  which helps when writing a design doc for your teammates to review.

  ![](https://developer.android.com/static/studio/gemini/images/architecture-diagram.png)
- If you notice a UI bug, take a screenshot and ask Gemini to brainstorm
  solutions. You can help point out what's wrong by circling the area that has the
  error.

  ![](https://developer.android.com/static/studio/gemini/images/ui-bug.png)