Free Gemini 1.5 Pro API on Vercel AI Gateway

เข้าถึง Gemini 1.5 Pro ได้ฟรีผ่าน Vercel AI Gateway

เกี่ยวกับโมเดล

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.

วิธีเข้าถึงฟรี (ผ่าน Vercel AI Gateway)

ทำไมต้องเลือกโทรผ่าน Vercel?

Vercel มอบเครดิต AI มูลค่า $5 ต่อเดือนสำหรับทุกทีม คุณสามารถทดลองใช้โมเดลนี้ได้ฟรีผ่าน Vercel AI SDK ตราบใดที่การใช้งานของคุณไม่เกินขีดจำกัดนั้น

ตัวอย่างโค้ด

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);