Agent Factory API for Developers
OpenAI-compatible API with specialized agent models, research tools, and cross-industry capabilities. Built for modern legal applications with enterprise-grade security.
Get Started in Minutes
Install the SDK package or use our OpenAI-compatible REST API directly.
Quick Start with Vercel AI SDK
Install our provider package and start building AI agent applications
npm install @briefcase/ai-sdk-legalNYC Housing Rights Assistant
See how the Intelligence Supply Chain transforms general legal research infrastructure into specialized, 100% accurate domain models — from 18 examples to production deployment.
OpenAI-Compatible NYC Housing API
100% accurate production model for NYC tenant rights questions
NYC Housing Rights Integration
Connect to the production NYC Housing Rights assistant with OpenAI compatibility
import OpenAI from 'openai'; // Domain-specific model integrationconst client = new OpenAI({ baseURL: 'https://nyc-tenant-assistant-985807032281.us-central1.run.app/v1', apiKey: 'not_required' // Public API}); // Critical tenant rights questionsconst questions = [ "What is The Legal Aid Society phone number?", "What's the maximum application fee in NYC?", "How long does a landlord have to return security deposit?", "Can a landlord evict without a court order?"]; for (const question of questions) { const response = await client.chat.completions.create({ model: 'aanshshah/nyc-housing-rights', messages: [{ role: 'user', content: question }], temperature: 0.05, max_tokens: 150 }); console.log(response.choices[0].message.content); // 100% accuracy on critical NYC tenant questions}Intelligence Supply Chain Methodology
From general infrastructure to domain-specific models (18 examples → 597 samples → 100% accuracy)
Domain Specialization Process
How to build domain-specific models using Intelligence Supply Chain methodology
// From general legal research to domain specialization// Intelligence Supply Chain methodology example // Step 1: Start with general legal research infrastructureimport { createBriefcaseLegal } from '@briefcase/ai-sdk-legal' const briefcase = createBriefcaseLegal({ apiKey: 'your-api-key', baseURL: 'https://briefcasebrain.ai/api/v1'}) // Step 2: Collect domain-specific data (18 examples → 597 samples)const trainingData = await collectDomainData({ source: 'web-scraping', domain: 'nyc-housing-rights', expansion_ratio: 33.2 // Intelligence Supply Chain expansion}) // Step 3: Fine-tune for domain specializationconst specializedModel = await trainDomainModel({ baseModel: 'legal-research-pro', trainingData: trainingData, accuracy_target: 1.0 // 100% accuracy on critical questions}) // Step 4: Deploy with OpenAI compatibility// Result: Production API with 99.9% uptime, <2s response time100% Accuracy
Perfect accuracy on critical NYC tenant questions through domain specialization
OpenAI Compatible
Drop-in replacement for OpenAI API with specialized domain knowledge
Production Ready
Enterprise-grade deployment with 99.9% uptime and auto-scaling
Built for Legal Applications
Specialized features designed specifically for legal research and compliance workflows.
OpenAI-Compatible API
Drop-in replacement for OpenAI's API with specialized agent models and research capabilities.
Vercel AI SDK Ready
Purpose-built provider package for seamless integration with the Vercel AI SDK ecosystem.
8 Legal Research Tools
Case law search, statute analysis, contract review, citation generation, and more specialized tools.
Cross-Jurisdiction Support
Compare laws across different jurisdictions and ensure compliance with local regulations.
Enterprise Security
SOC 2 compliant with secure API key management and encrypted data transmission.
Flexible Rate Limits
Multiple tiers from development to enterprise with transparent pricing and usage tracking.
Specialized Legal Models
Choose from our collection of fine-tuned models for different legal domains.
legal-research-pro
Advanced legal research and analysis with domain expertise
Best for:
Complex legal questions, case analysis, regulatory research
case-law-analyzer
Specialized in precedent analysis and case law interpretation
Best for:
Case law research, precedent analysis, legal citations
contract-reviewer
Contract analysis and review with risk assessment
Best for:
Contract drafting, review, risk assessment, clause analysis
litigation-assistant
Litigation support and strategy development
Best for:
Discovery analysis, brief writing, legal strategy
aanshshah/nyc-housing-rights
100% accurate NYC tenant rights assistant (Production Model)
Best for:
NYC housing law, tenant rights, emergency contacts, eviction protection
Production Metrics:
Legal Research Tools
Access specialized tools for comprehensive legal research and analysis.
Rate Limits & Pricing
Transparent pricing with flexible limits for every use case.
Basic
100/hour
Free
- 10 requests/minute
- Standard models
- Email support
Professional
1,000/hour
$49/month
- 50 requests/minute
- All models
- Priority support
- Usage analytics
Enterprise
10,000/hour
Custom
- 200 requests/minute
- Custom models
- Dedicated support
- SLA guarantee
Ready to Build AI Agent Applications?
Join developers building the future of AI agent technology with our specialized API. Legal was our first case study.