# case.dev > The complete API platform for legal technology developers. case.dev provides a unified suite of AI-powered services and infrastructure tools that enable developers to build production-grade legal applications without managing complex infrastructure. ## Quick Facts - **Type**: API Platform (REST APIs) - **Industry Focus**: Legal Technology - **Authentication**: API Keys (`case_sk_live_*` or `case_sk_test_*`) - **Base URL**: `https://api.case.dev` - **Documentation**: https://docs.case.dev - **Console**: https://console.case.dev - **OpenAI Compatible**: Yes (LLM endpoints are drop-in replacements) - **Pricing Model**: Pass-through (upstream provider cost, no markup) ## News Articles (Markdown Available) All news articles on case.dev are available in markdown format for AI agents: - **HTML version**: `/news/[slug]` - **Markdown version**: `/news/[slug].md` The markdown version includes YAML frontmatter with metadata (title, date, author, category, url, canonical). Example: `https://case.dev/news/test.md` ## Legal Agent Skills (MCP) Access 800+ curated legal skills via Model Context Protocol: - **MCP Endpoint**: `https://skills.case.dev/api/mcp` - **Tools**: - `resolve_skill` - Search skills by topic (e.g., "appellate brief", "contract review") - `read_skill` - Get full skill content by slug - **Browse**: https://agentskills.legal/skills - **Documentation**: https://docs.case.dev/agent-skills Skills cover: litigation, transactional, corporate, regulatory, research, drafting, analysis. ## Core Value Proposition Stop stitching together multiple vendors. case.dev provides: - **One Unified API** for document processing, AI, storage, search, and automation - **90% Cost Savings** on vector storage (10 credits/GB/month vs competitors) - **Legal-Optimized** with 800+ expert skills and legal embeddings - **Production-Ready** with multi-tenant architecture, encryption, and audit logs ## Pricing Model ### Platform Tiers | Tier | Price/Month | Description | |------|-------------|-------------| | OSS Pay-Go | $0 + usage | Pass-through pricing at upstream provider cost. $10 free usage included. 100 RPM LLM rate limit. | | Enterprise | Custom | Custom pricing, BAA/HIPAA available, dedicated support. Contact sales. | All API usage is billed at upstream provider cost with no markup. ## Services (19 Total) ### Vault API - Document Storage & Semantic Search Store legal documents with encryption, automatic OCR, semantic chunking, and vector embeddings. - Endpoint: `/vault` - Features: Presigned uploads, semantic search, metadata filtering, GraphRAG - Pricing: 3 credits/GB/month storage, 10 credits/GB/month vectors ### OCR/Vision API - Document Text Extraction Extract text from scanned PDFs and images with 95-99% accuracy. - Endpoint: `/ocr/v1/process` - Features: Table extraction, searchable PDF generation, multi-language - Pricing: 1-3 credits/page (Simple/Complex/Legal Grade) ### Voice API - Transcription & Text-to-Speech Convert audio/video to text with speaker identification and PII redaction. - Endpoint: `/voice/transcription` - Features: Speaker diarization, auto chapters, sentiment analysis, 100+ languages - Pricing: 15-65 credits/hour (Standard/High Quality/Premium) ### Translation API - Multilingual Document Processing Neural machine translation powered by Google Cloud Translation, supporting 100+ languages. - Endpoint: `/translate/v1/translate` - Features: Auto language detection, batch translation, HTML preservation - Pricing: 3 credits/1,000 characters ### LLM API - Unified AI Model Access Access 140+ AI models through one OpenAI-compatible API. - Endpoint: `/llm/v1/chat/completions` (OpenAI compatible) - Endpoint: `/llm/v1/embeddings` (OpenAI compatible) - Features: Multi-provider (OpenAI, Anthropic, Google, DeepSeek, xAI), BYOK support, cost tracking - Flagship Model: CaseMark Core 1 (200K context, legal-optimized) - Pricing: 35-2,500 credits/1M tokens by tier ### Workflows API - Multi-Step Automation Orchestrate document processing pipelines with declarative JSON. - Endpoint: `/workflows/v1` - Features: Durable execution, automatic retries, webhook notifications - Pricing: 1-15 credits/execution by complexity ### Actions API - Event-Driven Automation Execute workflows in response to events, schedules, or webhooks. - Endpoint: `/actions/v1` - Triggers: API events, cron schedules, external webhooks - Pricing: Free (underlying services charged separately) ### Convert API - File Format Conversion Convert FTR court recordings to standard M4A audio. - Endpoint: `/convert/v1/process` - Pricing: 15 credits/hour ### Format API - Document Generation Transform Markdown/JSON into professional PDF, DOCX, or HTML. - Endpoint: `/format/v1/document` - Templates: Pleading, letter, memo, brief, contract, report - Pricing: 1 credit/document ### Email API - Transactional Email Send notifications and alerts with attachments. - Endpoint: `/email/v1/send` - Pricing: 1 credit/100 emails ### Graph API - Knowledge Graphs (GraphRAG) Extract entities and relationships from documents. - Endpoint: `/vault/:id/graphrag/init` - Features: Entity extraction, relationship mapping, community detection - Pricing: 15 credits/1,000 entities (build), 1 credit/query ### Billing API - Usage Tracking Real-time usage tracking and payment management. - Endpoint: `/billing/v1/usage` - Features: Per-service breakdown, credit balance tracking ### Orbit Compute - Application Hosting Deploy web applications with one-click from GitHub. - Endpoint: `/deployments/v1` - Features: Live URLs on case.systems, pause/resume, GPU access (T4, A100, H100) - Pricing: From $0.03/hour (small instance) ### Payments Platform - Trust Accounting (Early Access) IOLTA-compliant trust accounting and payment infrastructure. - Features: Double-entry ledger, Stripe Connect, holds/approvals - Status: Early access for select partners ### Web Search API - Search & AI Answers Programmatic web search with AI-powered answer generation. - Endpoint: `/search/v1/search`, `/search/v1/answer`, `/search/v1/research` - Features: Domain filtering, citations, multi-step research - Note: Web data only - use specialized platforms for case law/statutes ### Databases API - Serverless PostgreSQL Serverless PostgreSQL databases powered by Neon with instant branching. - Endpoint: `/database/v1/projects` - Features: Auto-scaling, branching (dev/staging/prod), connection pooling, PostgreSQL 17 - Regions: 8 AWS regions worldwide ### Memory API - Persistent Agent Memory Persistent, searchable memory for AI agents across conversations. - Endpoint: `/memory/v1` - Features: Fact extraction, semantic search, 12 tag fields for filtering, deduplication - Pricing: $0.001/operation (add, search) ### SuperDoc API - Document Conversion Convert documents between formats and populate DOCX templates. - Endpoint: `/superdoc/v1/convert`, `/superdoc/v1/annotate` - Conversions: DOCX↔PDF, Markdown→DOCX/PDF, HTML→DOCX - Features: Template field population, high-fidelity formatting ### AI Governance - Provider Control Control which AI providers handle your organization's requests. - Endpoint: `/governance` - Features: Trust tiers, compliance certifications (SOC 2, HIPAA, BAA), audit logs - Enforcement: Hard block, soft block, or warn modes ## Available AI Models (via LLM API) | Tier | Credits/1M Tokens | Example Models | |------|-------------------|----------------| | Premium | 2,500 | Claude Opus 4.5, GPT-4 Turbo | | Standard | 750 | Claude Sonnet 4.5, GPT-4o, CaseMark Core 1 | | Efficient | 250 | Claude Haiku 4.5, GPT-4o-mini | | Budget | 35 | DeepSeek V3, Gemini Flash | ### Featured Models | Model | Provider | Context | Best For | |-------|----------|---------|----------| | CaseMark Core 1 | case.dev | 200K | Legal workflows (flagship) | | Claude Sonnet 4.5 | Anthropic | 200K | Balanced quality/cost | | Claude Haiku 4.5 | Anthropic | 200K | Fast, cost-effective | | Claude Opus 4.5 | Anthropic | 200K | Maximum capability | | GPT-5 | OpenAI | 128K | General purpose | | GPT-5-mini | OpenAI | 128K | Ultra-affordable | | o4-mini | OpenAI | 128K | Reasoning tasks | | Gemini 2.5 Flash | Google | 1M | Ultra-fast | | Gemini 2.5 Pro | Google | 2M | Complex reasoning | | DeepSeek V3 | DeepSeek | 64K | Open, affordable | | Grok 4 | xAI | 128K | Real-time data | ## Pass-Through Pricing Quick Reference | Service | Unit | Price (USD) | Provider | |---------|------|-------------|----------| | Transcription | 1 hour | $0.30 | AssemblyAI | | Text-to-Speech | 1K characters | $0.12 | ElevenLabs | | OCR | 1K pages | $1.50 | Self-hosted (doctr) | | Web Search | 1K searches | $5.00 | Exa | | Translation | 1M characters | $20.00 | Google Cloud | | LLM (CaseMark) | 1M tokens (input) | $1.50 | Baseten | | LLM (CaseMark) | 1M tokens (output) | $3.50 | Baseten | | LLM (3rd party) | varies | Provider rate | AI Gateway | | GPU (H100) | 1 hour | $3.95 | Modal | | DB Compute | 1 CU-hour | $0.222 | Neon | | DB Storage | 1 GB/month | $0.35 | Neon | | Memory | operation | $0.001 | case.dev | ## Code Examples ### Chat Completion (OpenAI Compatible) ```bash curl https://api.case.dev/llm/v1/chat/completions \ -H "Authorization: Bearer case_sk_live_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "casemark/core-1", "messages": [{"role": "user", "content": "Summarize this contract..."}], "max_tokens": 1000 }' ``` ### Upload & Search Documents ```bash # Create vault curl -X POST https://api.case.dev/vault \ -H "Authorization: Bearer case_sk_live_YOUR_KEY" \ -d '{"name": "Case Documents"}' # Search (after ingestion) curl -X POST https://api.case.dev/vault/{vault_id}/search \ -H "Authorization: Bearer case_sk_live_YOUR_KEY" \ -d '{"query": "indemnification clause", "limit": 10}' ``` ### Transcribe Audio ```bash curl -X POST https://api.case.dev/voice/transcription \ -H "Authorization: Bearer case_sk_live_YOUR_KEY" \ -d '{ "audio_url": "https://example.com/deposition.mp3", "speaker_labels": true, "redact_pii": true }' ``` ## SDKs - **Python**: `pip install casemark` (PyPI) - **TypeScript/JavaScript**: `npm install @casemark/sdk` (npm) - **cURL**: All endpoints documented with examples ## Related Products - **Console** (https://console.case.dev): Web dashboard for API management ## Contact - **Documentation**: https://docs.case.dev - **Support**: support@case.dev - **Sales**: sales@case.dev - **Security**: https://trust.casemark.com ## Optional - [Documentation](https://docs.case.dev) - [API Reference](https://docs.case.dev/api-reference) - [Pricing](https://case.dev/pricing) - [Changelog](https://docs.case.dev/changelog)