Free Llama 3.1 70B API on Vercel AI Gateway

Access Meta's Llama 3.1 70B through Vercel AI Gateway using your monthly Vercel free credits.

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

About the Model

Why choose Llama 3.1 70B?

Llama 3.1 70B provides excellent general-purpose instruction following and reasoning, offering a robust open-source alternative to GPT-4 class models.

How to Access for Free (via Vercel AI Gateway)

Why choose to use LLAMA 3.1 70B via Vercel?

As an open source overlord, the local deployment of the 70B model requires extremely high hardware costs. With Vercel AI Gateway, you can invoke this powerful model in the cloud freely and free of charge.

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 { openai } from '@ai-sdk/openai';

// Often accessed via a compatible provider within Vercel's routing
const { text } = await generateText({
  model: openai('meta-llama/Meta-Llama-3.1-70B-Instruct'), 
  prompt: 'Write a quick poem about free AI models',
});
console.log(text);