/통합/Vercel AI SDK
통합 가이드

Vercel AI SDK + OrcaRouter

The Vercel AI SDK is the de-facto way to build streaming LLM apps in Next.js, SvelteKit, and Nuxt. Its OpenAI provider accepts a custom baseURL — wire it to OrcaRouter and ship every model on the catalog with one key.

설정 단계

5분 만에 OrcaRouter 연결

  1. 1.Install: npm install ai @ai-sdk/openai
  2. 2.Set ORCAROUTER_API_KEY in your .env.local
  3. 3.Use createOpenAI({ baseURL, apiKey }) with baseURL=https://api.orcarouter.ai/v1
  4. 4.Call streamText / generateText / generateObject as usual.
  5. 5.Every streaming token routes through the cheapest healthy backend.
설정 예시
import { createOpenAI } from '@ai-sdk/openai';
import { streamText } from 'ai';

const orca = createOpenAI({
  baseURL: 'https://api.orcarouter.ai/v1',
  apiKey: process.env.ORCAROUTER_API_KEY,
});

const result = await streamText({
  model: orca('claude-sonnet-4'),
  prompt: 'Write a haiku about TypeScript.',
});

// In a Next.js route handler:
return result.toDataStreamResponse();
Vercel AI SDK을(를) OrcaRouter로 라우팅하는 이유는 무엇입니까?

The Vercel AI SDK's model abstraction already gives you portability across OpenAI, Anthropic, etc. Adding OrcaRouter on top means you don't need to manage N API keys or hit N different rate limits — one key, one bill, automatic failover under the hood.

기타 통합

Vercel AI SDK을(를) OrcaRouter로 라우팅할 준비가 되었나요?

API 키를 받으면 Vercel AI SDK을(를) OrcaRouter를 통해 200+ 모델로 라우팅할 수 있습니다 — 마크업 없음.

API 키 받기
© 2026 OrcaRouter