Free Claude 3.5 Sonnet API on Vercel AI Gateway

เข้าถึง Claude 3.5 Sonnet ได้ฟรีผ่าน Vercel AI Gateway

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

Why choose Claude 3.5 Sonnet?

Claude 3.5 Sonnet stands out as the industry leader for coding tasks. It natively supports computer use capabilities, excels at understanding large codebases, and provides incredibly nuanced reasoning in its outputs.

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

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

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

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

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

// Powered by Vercel AI Gateway's monthly credits (No Anthropic Key needed if configured in Vercel project)
const { text } = await generateText({
  model: anthropic('claude-3-5-sonnet-latest'),
  prompt: 'Write a robust React hook for fetching and caching data.',
});
console.log(text);