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.

Prompt Freeform

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

Response

{
  "items_and_prices": [
    {
      "item": "Black Cod",
      "price": "18.99"
    },
    {
      "item": "Rainbow Trout",
      "price": "11.99"
    },
    {
      "item": "Branzino",
      "price": "14.99"
    }
  ]
}
Model: gemini-1.5-flash-preview-0514
Temperature: 1
Max output tokens: 8192
TopK: 40
TopP: 0.95