Prerequisites
- A Google AI Studio account with an API key (https://aistudio.google.com/app/apikey)
Important Notes
- Google AI Studio usage may incur costs based on your plan.
- Be mindful of sensitive data and consider security measures when integrating with external services.
Generate Content
Create a Table: In Pixeltable, create a table with columns to represent your input data and the columns where you want to store the results from Gemini.| input | response |
|---|---|
| Tell me a science joke. | Why did the chemist make a periodic table t-shirt? |
| Write a story about a magic backpack. | Flora hated Mondays. This Monday was especially egregious. Her shoelace broke, she spilled yogurt on her favorite shirt, and now, lugging her overflowing backpack to school, she felt like a pack mule. As she slumped onto a park bench, defeated, her gaze fell upon a battered leather backpack nestled under a bush. It looked ancient, the leather cracked and faded, but strangely compelling. |
Generate Images with Imagen
| prompt | generated_image |
|---|---|
| A friendly dinosaur playing tennis in a cornfield |
Generate Video with Veo
| prompt | generated_video |
|---|---|
| A giant pixel floating over the open ocean in a sea of data |
Generate Video from an existing Image
We’ll add an additional computed column to our existingimages_t to
animate the generated images.
| prompt | generated_image | generated_video |
|---|---|---|
| A friendly dinosaur playing tennis in a cornfield |