# Classify objects

Label objects with custom categories using examples.

|---|---|
| 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/Classify%20objects) <br /> ||
| |---| | **System instructions** | | Multiple-choice problem: What is the category of the object? - red wine - white wine Please only print the category name without anything else. | #### Examples Structured |---|---| | **<br /> Text** | **<br /> The answer is** | | <br /> chardonnay <br /> | <br /> white wine <br /> | | <br /> cabernet sauvignon <br /> | <br /> red wine <br /> | #### Test |---|---|---| | **<br /> Text** | **<br /> The answer is** | | <br /> merlot <br /> | <br /> red wine | |---|---| | **Model:** | gemini-2.5-pro | | **Temperature:** | 0.2 | | **Max output tokens:** | 256 | | **TopK:** | 40.0 | | **TopP:** | 0.95 | | |