@core/ai Package Test

This page demonstrates the AI integration capabilities using local Next.js API routes powered by the @core/ai package. Test different AI models, text generation, streaming responses, and structured data generation.

API Architecture

This playground demonstrates both approaches for AI integration:

Local API Routes
Microservice Architecture
@core/ai Package

Text Generation

Streaming Generation

Generate text with real-time streaming response.

Structured Data Generation

Generate structured data that follows a specific schema.

Available AI Features

Multi-Provider Support
OpenAI
Anthropic
Google
Mistral

Unified API across multiple AI providers

Generation Types
Text
Objects
Arrays
Streaming

Generate text, structured data, and more

Advanced Features
Function Calling
RAG
Embeddings

Function calls, RAG, and embeddings