# Extract text from images

Transcribe text from a handwritten note.

|---|---|
| You can query a model directly and test the results returned when using different parameter values with the Cloud console, or by calling the Vertex AI API directly. - For an example of using the Vertex AI API, see [Quickstart using the Vertex AI API](https://docs.cloud.google.com/vertex-ai/generative-ai/docs/start/quickstarts/api-quickstart). - To view this sample in the Cloud console: [Go to Google Cloud console](https://console.cloud.google.com/vertex-ai/generative/language/prompt-examples/Extract%20text%20from%20images) <br /> ||
| #### Prompt Freeform Read the text in this image. #### Response Based on the image, here is the text written in the notebook and on the pen: **In the notebook (in calligraphy):** > the best > dreams > HAPPEN > when you are > awake **On the pen:** > 水性・顔料インク \[水性\] > WS-BH 150 | |---|---| | **Model:** | gemini-2.5-pro | | **Temperature:** | 0.2 | | **Max output tokens:** | 8192 | | **TopK:** | 40.0 | | **TopP:** | 0.95 | |