Skip to main content
The @runcrate/ai package is a Runcrate provider for the Vercel AI SDK. Use it to build AI-powered applications with generateText, streamText, generateImage, structured output, and tool calling — all backed by Runcrate’s 140+ open-source models.

Installation

Requires ai v6+ and Node.js 18+.

Quick Start

Set the RUNCRATE_API_KEY environment variable, or pass apiKey directly when creating the provider.

Configuration

A default instance is also exported for convenience:

Text Generation

Basic

Streaming

Chat Messages

Structured Output

Image Generation

Embeddings

Model Methods


When to Use Which SDK