@reka-ai/vercel-ai-sdk-provider
v1.0.0
Published
The Reka provider for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for Reka Research API - a powerful answer engine with real-time web search capabilities, reasoning steps, and comprehensive citations.
Readme
AI SDK - Reka Provider
The Reka provider for the AI SDK contains language model support for Reka Research API - a powerful answer engine with real-time web search capabilities, reasoning steps, and comprehensive citations.
Features
- Real-time web search grounding for accurate, up-to-date responses
- Reasoning transparency with detailed step-by-step traces
- Comprehensive citations with precise character-level indexing
- Web search configuration with domain filtering and usage limits
Setup
The Reka provider is available in the @reka-ai/vercel-ai-sdk-provider module. You can install it with:
npm i @reka-ai/vercel-ai-sdk-providerProvider Instance
You can import the default provider instance reka from @reka-ai/vercel-ai-sdk-provider:
import { reka } from '@reka-ai/vercel-ai-sdk-provider';For custom configuration, you can import createReka and create a provider instance with your settings:
import { createReka } from '@reka-ai/vercel-ai-sdk-provider';
const reka = createReka({
apiKey: process.env.REKA_API_KEY ?? '',
});You can use the following optional settings to customize the Reka provider instance:
baseURL string
Use a different URL prefix for API calls. The default prefix is
https://api.reka.ai/v1.apiKey string
API key that is being sent using the
Authorizationheader. It defaults to theREKA_API_KEYenvironment variable.headers Record<string,string>
Custom headers to include in the requests.
fetch (input: RequestInfo, init?: RequestInit) => Promise<Response>
Custom fetch implementation.
Language Models
You can create Reka models using a provider instance:
import { reka } from '@reka-ai/vercel-ai-sdk-provider';
import { generateText } from 'ai';
const { text } = await generateText({
model: reka('reka-flash-research'),
prompt: 'What are the latest developments in quantum computing?',
});Model Capabilities
| Model | Image Input | Object Generation | Tool Usage | Tool Streaming |
| --------------------- | ------------------- | ------------------- | ------------------- | ------------------- |
| reka-flash-research | ❌ | ✅ | ❌ | ❌ |
Documentation
Please check out the Reka Research API documentation for detailed API information and the latest updates.
