# Image text to JSON

Extract the items and prices from a fish market photo and output them in JSON.

|---|---|
| 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/Image%20text%20to%20JSON) <br /> ||
| #### Prompt Freeform Extract the items and prices from a fish market photo and output them in JSON. #### Response { "fish_market_prices": [ { "item": "Fresh Whole Black Cod", "price": "$18.99/lb" }, { "item": "Fresh Branzino", "price": "$14.99/lb" }, { "item": "Fresh Rainbow Trout", "price": "$11.99/lb" }, { "item": "Copper River King Salmon", "price": "$89.99" } ] } | |---|---| | **Model:** | gemini-2.5-pro | | **Temperature:** | 0.2 | | **Max output tokens:** | 8192 | | **TopK:** | 40.0 | | **TopP:** | 0.95 | |