logo

Alpha

Get Started

Introduction

Core Concepts

Utilities

Integrations

Vercel AI SDK Integration

Vercel AI SDK provides a modern, React-friendly way to integrate with Interfaze's AI capabilities. It offers excellent support for streaming responses and is optimized for building real-time AI applications with React and Next.js.

Installation

...

Official Documentation

  • Vercel AI SDK Documentation
  • Vercel OpenAI Integration
  • Vercel Stream

Important Note: If you're using AI SDK v5, you need to use .chat() method when specifying the model. For example: openai.chat('interfaze-alpha') instead of openai('interfaze-alpha').

Basic Setup

...

Examples

Normal Text Generation

v4

v5

...

Streaming

v4

v5

...

Function Calling

v4

v5

...