An open API service indexing awesome lists of open source software.

https://github.com/thundernet8/gemini-api-demo


https://github.com/thundernet8/gemini-api-demo

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Gemini API Image Generation Demo

This is a simple demo of the [Gemini API](https://ai.google.dev/gemini-api/docs/quickstart?lang=node) for image generation, using `gemini-2.0-flash-exp` model.

## Usage

- Edit the promot in `index.ts`
- Run `yarn && yarn test`

example1: `Convert the following image to pixel style`

![input](./test.png)

![output](./output.png)

example2: `Swap the face of leonardo dicaprio to Trump`

![input](./test2.jpg)

![output](./image1.png)