Choose a sample to view an example of a prompt and a response from one of Google's generative AI models. Alternatively, you can view and test prompts in the Google Cloud console if you have a Google Cloud account:
For details on how to query a model with different parameter values and compare results, see one of the following topics based on your use case: image understanding, video understanding, audio understanding, or document understanding.
-
Audio diarization
Audio: Segment an audio record by speaker labels and aims to answer the question "who spoke when?".
-
Audio summary on clean energy
Audio: Summarize a piece of audio recording.
-
Audio transcription
Audio: Generate the transcription for a piece of audio recording.
-
A rainbows and sunshine chatbot
Chat: A chatbot that provides positive and cheerful responses.
-
Animal facts
Chat: Answer questions about an animal only based on provided paragraphs.
-
Company chatbot
Chat: Create a chatbot for customers with basic company information.
-
Newsletter design
Chat: A chatbot to help create engaging newsletters
-
Swimming Q&A
Chat: Questions & answers about learning swimming.
-
Video ad script writer
Chat: Write social media style video ad scripts
-
Classify articles
Classification: Label articles with custom topics.
-
Classify headlines
Classification: Label news headlines with custom topics using examples.
-
Classify help tickets
Classification: Label help tickets with custom categories using examples.
-
Classify objects
Classification: Label objects with custom categories using examples.
-
Sentiment analysis
Classification: Assign a positive or negative sentiment to text.
-
Person sentiment
Classification: Assign a positive or negative sentiment to a person in a news article.
-
Classify text
Classification: Label short-form text with custom categories using examples.
-
Build a TensorFlow neural network
Code Explanation: An example based tutorial on how to build Tensorflow neural network for better accuracy.
-
Debug check sum parity
Code Explanation: Debug the given C++ code.
-
Explain a SQL function
Code Explanation: Explain a SQL code snippet.
-
Generate a web form
Code Generation: Generate a modern Web form using HTML and Javascript.
-
Generate Java changelogs
Code Generation: Generate a concise code change-log entry based on a diff file for Java code.
-
Generate Python docstrings & comments
Code Generation: Generate docstrings and comments for Python functions.
-
Generate quick sort unit test
Code Generation: Generate unit tests for a given Python function.
-
Generate SQL query
Code Generation: Generate a SQL query to count and sort unique logins in the last month
-
Python from documentation
Code Generation: Generate a Python function given its docstring
-
Python visualization
Code Generation: Write Python code to visualize a weighted directed graph with example data
-
Replace callbacks by async/await
Code Generation: Replace callbacks by async/await for better readability and error handling in JavaScript.
-
Document classification
Document: Find the category of a document among a list of categories.
-
Document comparison
Document: Compare the contents of 2 documents
-
Document entity extraction
Document: Extract a set of entities from a document and return them in JSON.
-
Document question answering
Document: Answer question(s) over a document.
-
Document summarization
Document: Summarize the content of a document.
-
Document translation
Document: Translate the content of a document.
-
Table parsing from document
Document: Extract a table from a document and return it in a structured format (e.g., HTML).
-
Contract analysis
Extraction: Find the governing law in a contract.
-
Extract from earnings report
Extraction: Extract insights of an earnings report.
-
Extract dates & events
Extraction: Extract dates and description of events in chronological order from a paragraph.
-
Hedge unanswerable question
Extraction: Ask an unanswerable question to the model.
-
Tech specs
Extraction: Generate technical specifications in JSON format.
-
Stock price table as JSON
Extraction: Generate key information from a stock data table and return as JSON
-
Troubleshoot
Extraction: Suggest a solution to a technical issue using help documentation.
-
Troubleshoot - German
Extraction: Suggest a solution to a technical issue using help documentation in German.
-
Advice
Ideation: Make a list of suggestions for solving a given issue.
-
Advice - Hindi
Ideation: Make a list of suggestions for solving a given issue in Hindi.
-
Meme ideas
Ideation: Come up with funny ideas for memes.
-
Interview questions
Ideation: Create interview questions based on a job title.
-
Creative naming
Ideation: Generate an interesting name for a store.
-
Reading test
Ideation: Generate questions designed to test reading comprehension from an article.
-
Extract information from a chart
Image: Generate a description of a diagram, so that it can be indexed and searched over.
-
Fill an empty form
Image: Automatically fill a form field in a target form from a source document.
-
Question answering about a chart
Image: Answer questions by analyzing a simple line chart.
-
Question answering about an image
Image: Answer knowledge-extensive questions about an image
-
Ad copy from video
Video: Write a creative ad copy based on a video.
-
Audio/video Q&A
Video: Audio/video Q&A
-
Describe video content
Video: Get a description of the contents of a rock climbing video.
-
Extract entities from an invoice
Document: Extract entities from an invoice document and return them in JSON.
-
Extract text from images
Image: Transcribe text from a handwritten note.
-
Few shot image to JSON
Image: Use world knowledge and the provided examples to answer questions.
-
Image question answering
Image: Show the model an image of a fruit and find the price from another image.
-
Image text to JSON
Image: Extract the items and prices from a fish market photo and output them in JSON.
-
Video QA - exercise
Video: Get the activity that's being performed in an exercise video by asking a question.
-
Write story from image
Image: Write a story based on the image of a dog in the snow wearing ski goggles.
-
Analyze market share
Question Answering: Analyze the competitive landscape of the streaming service market based on financial data.
-
Cuisine questions
Question Answering: Use the provided sources to answer questions about Vietnamese cuisine with citations.
-
Skin care questions
Question Answering: Use only the provided sources to answer questions without citations.
-
Analyze financial news
Summarization: Provide an overall investment rating on a company based on recent news.
-
Support call next steps
Summarization: Summarize actions taken during a custom support call and agent next steps.
-
Support call summary
Summarization: Summarize a customer support call from the agent perspective.
-
Dialog summary
Summarization: Summarize a conversation using examples.
-
Financial table summarization
Summarization: Summarize key insights from a financial report table with heavy numerical info.
-
Hashtag tokenization
Summarization: Create and tokenize hashtags.
-
Summarize hotel reviews
Summarization: Summarize the pros and cons from a set of hotel reviews.
-
Article summary
Summarization: Summarize a news article.
-
Support chat summary
Summarization: Summarize a customer support call.
-
Support chat summary - French
Summarization: Summarize a customer support chat in French.
-
Title generation
Summarization: Create a title for an article using examples.
-
Transcript summary
Summarization: Summarize a transcript using examples.
-
Hashtags for a video
Video: Generate hashtags for a video ad
-
Extract video chapters
Video: Extract the chapters in a video as structured JSON
-
Summarize video
Video: Summarize a video and extract important dialogue.
-
Video Q&A
Video: Answer questions about the key moments in the video.
-
Job post
Writing: Write a job post and description.
-
Job post - Chinese
Writing: Write a job post and description in Chinese.
-
Ad copy
Writing: Write ad copy for different topics from a product description.
-
Grammar help
Writing: Rewrite text with correct grammar.
-
Create job postings & emails
Writing: Create job postings and marketing emails.
-
Essay outline
Writing: Create an essay outline and structure on a given topic.
-
Hotel brand strategy
Writing: Create a brand strategy for a boutique hotel chain for book lovers
-
Product announcement
Writing: Write a marketing announcement highlighting product features.
-
Email writing
Writing: Turn a paragraph into a formal email or letter.
-
Email writing - Spanish
Writing: Turn a paragraph into a formal email or letter in Spanish.
-
Docker script
Code Generation: Writing a script in Docker to set up your environment
-
Regexed
Code Generation: Convert natural language queries and constraints to regex constructs
-
Brand extractor
Extraction: Extract product and brand names from text.
-
Blog post creator
Image: Create a blog post
-
Hurricane chart identification
Image: Identify elements of a hurricane chart
-
Barista bot
Question Answering: Order common coffee drinks from this virtual barista.
-
Research assistant
Question Answering: Understand the key attributes of the research paper's methodology
-
Creative rewrite
Writing: Rewrite a blog post for social media
-
Modify tone & writing style
Writing: Change the tone and writing style of a blurb.