Proxy Integration
Fetch
1
2
Create Google Generative AI API Key
Visit the Google Generative AI API Key page.
Follow the instructions to create a new API key. Make sure to save the key as you will need it for the next steps.
3
Set API keys as environment variables
4
Install necessary packages
Ensure you have the necessary packages installed in your Javascript project:
5
Send a request using fetch
Google Generative AI SDK
1
2
Create Google Generative AI API Key
Visit the Google Generative AI API Key page.
Follow the instructions to create a new API key. Make sure to save the key as you will need it for the next steps.
3
Set API keys as environment variables
4
Install necessary packages
Ensure you have the necessary packages installed in your Javascript project:
5
Import and configure the client
6
Generate content using the model