Examples
Real-world LLM usage examples
Real-World Examples
Example 1: Deposition Summary
curl -X POST https://api.case.dev/llm/v1/chat/completions \
-H "Authorization: Bearer sk_case_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-sonnet-4.5",
"messages": [
{
"role": "system",
"content": "You are a legal assistant. Create concise deposition summaries with: 1) Key admissions, 2) Timeline of events, 3) Credibility assessment, 4) Contradictions or weaknesses."
},
{
"role": "user",
"content": "Summarize this deposition:\n\nQ: Where were you on the night of January 15th?\nA: I was at home...\n[full deposition text]"
}
],
"max_tokens": 2000,
"temperature": 0.3
}'
Example 2: Medical Record Analysis with Vision
curl -X POST https://api.case.dev/llm/v1/chat/completions \
-H "Authorization: Bearer sk_case_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-sonnet-4.5",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Review this medical chart. Identify: 1) Vitals trends, 2) Medications administered, 3) Any red flags or concerning patterns."
},
{
"type": "image_url",
"image_url": {
"url": "https://your-s3-bucket.com/medical-chart.jpg"
}
}
]
}
],
"max_tokens": 1500
}'
Example 3: Contract Clause Extraction
curl -X POST https://api.case.dev/llm/v1/chat/completions \
-H "Authorization: Bearer sk_case_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5",
"messages": [
{
"role": "system",
"content": "Extract all indemnification clauses from legal contracts. Output as JSON array with: clause_text, page_number, party_protected, scope."
},
{
"role": "user",
"content": "[contract text here]"
}
],
"max_tokens": 3000,
"temperature": 0
}'
Example 4: Multi-Document Comparison
curl -X POST https://api.case.dev/llm/v1/chat/completions \
-H "Authorization: Bearer sk_case_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-2.5-flash",
"messages": [
{
"role": "user",
"content": "Compare these three witness statements and identify:\n1. Consistent facts\n2. Contradictions\n3. Timeline discrepancies\n\nWitness 1: [...]\nWitness 2: [...]\nWitness 3: [...]"
}
],
"max_tokens": 2500,
"temperature": 0.2
}'