Overview
The AI integration acts as a managed gateway to multiple AI providers. You configure models in your dashboard and access them through a unified API.Technology Stack
Supported Models
Yboard supports all models available through OpenRouter, including:- GPT-4o, GPT-4o-mini — OpenAI
- Claude 3.5 Sonnet, Claude 3 Haiku — Anthropic
- Gemini 2.0 Flash, Gemini 1.5 Pro — Google
- Llama 3.1, Mistral Large — Open source
- DALL-E 3, Stable Diffusion — Image generation
Capabilities
- Chat Completions — Text generation with streaming support
- Tool Calling — Function calling for agentic workflows
- Image Generation — Create images from text prompts
- Embeddings — Generate vector embeddings for similarity search
Chat Completions
Request
Streaming Architecture
Streaming uses Server-Sent Events (SSE) for real-time token delivery:- Request validated and authorized
- Forwarded to OpenRouter
- Tokens streamed back to client
- Usage tracked on completion
Tool Calling
Image Generation
Image Parameters
Configuration Management
Manage AI configurations through the dashboard or API:Usage Tracking
Yboard automatically tracks AI usage per project:Metrics Collected
Security & Rate Limiting
- API key required for all AI requests
- Per-project rate limits based on subscription plan
- Usage quotas with configurable alerts
- No data retention — requests are not stored by Yboard
Best Practices
- Use streaming for chat interfaces to improve perceived performance
- Set system prompts in configurations rather than per-request
- Monitor usage regularly to stay within budget
- Use appropriate models — smaller models for simple tasks, larger for complex ones
- Implement retry logic for transient failures