Free Gemini 1.5 Pro API on Vercel AI Gateway

Access gemini-1-5-pro free through Vercel's $5 monthly credit.

Updated 5/11/20261 code examples
加载评分…

About the Model

Why choose Gemini 1.5 Pro?

Gemini 1.5 Pro natively supports vast 1M to 2M token context windows, allowing it to process hours of video, massive codebases, and entire books in a single prompt.

How to Access for Free (via Vercel AI Gateway)

Why choose via Vercel call?

Vercel offers a $5 per month for each team (including the free Hobby personal plan) for $5 per month. You can try this model for free with the Vercel AI SDK as long as your call for the month does not exceed the $5 equivalent token consumption.

Try it in your browser

Pick a model, paste your own free key, and run. Your key is sent once to call the provider and never stored on our servers.

Pick a model, paste your own free key, and run. Your key is sent once to call the provider and never stored on our servers.

Code Examples

javascript
import { generateText } from 'ai';
import { google } from '@ai-sdk/google';

const { text } = await generateText({
  model: google('gemini-1.5-pro-latest'),
  prompt: 'Write a quick poem about free AI models',
});
console.log(text);

Community Feedback

Comments are tied to your GitHub account — sign in to join the discussion.