{"uid":"cap_YmrRtp6JlVTZCvLSKLJit","slug":"24k-labs-document-extraction-api-3bca23b9","name":"24K Labs Document Extraction API","description":"Extract and structure key information from any document.","url":"https://api.24klabs.ai/api/v1/extract-document","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"code":{"type":"string","description":"Primary input content"},"context":{"type":"string","description":"Optional context or instructions"},"language":{"type":"string","description":"Programming language (code services)"}}},"responseSchema":{"type":"json","example":{"model":"claude-haiku-4-5","result":"**Title:** Meeting Notes\n**Decisions:** Ship v2 by Friday\n**Actions:** Sean: update docs","tokens_used":160}},"example":{"request":{"code":"Team meeting notes from Q3 planning session. Attendees: John, Sarah, Mike. Title: Q3 Roadmap Review. Key decisions: (1) Approved budget increase for infrastructure, (2) Decided to prioritize mobile app redesign. Action items: John to prepare detailed budget breakdown by Friday, Sarah to schedule stakeholder meetings next week, Mike to create technical specifications for mobile redesign.","context":"Extract title, decisions, and action items from these meeting notes","language":"text"},"response":{"tier":"standard","model":"claude-haiku-4-5-20251001","result":"# Document Analysis: Q3 Roadmap Review Meeting Notes\n\n## Document Information\n- **Title:** Q3 Roadmap Review\n- **Type:** Team Meeting Notes\n- **Session:** Q3 Planning Session\n\n---\n\n## Key Decisions\n\n1. **Budget Increase Approved** – Infrastructure budget increase was approved\n2. **Mobile App Redesign Prioritized** – Mobile app redesign selected as priority initiative\n\n---\n\n## Action Items\n\n| Owner | Task | Deadline |\n|-------|------|----------|\n| John | Prepare detailed budget breakdown | Friday |\n| Sarah | Schedule stakeholder meetings | Next week |\n| Mike | Create technical specifications for mobile redesign | *Not specified* |\n\n---\n\n## Attendees\n- John\n- Sarah\n- Mike","service":"extract-document","request_id":"1dcee5a7-41dc-48f9-b64a-3283666d5dde","tokens_used":391}},"exampleRequest":{"code":"Team meeting notes from Q3 planning session. Attendees: John, Sarah, Mike. Title: Q3 Roadmap Review. Key decisions: (1) Approved budget increase for infrastructure, (2) Decided to prioritize mobile app redesign. Action items: John to prepare detailed budget breakdown by Friday, Sarah to schedule stakeholder meetings next week, Mike to create technical specifications for mobile redesign.","context":"Extract title, decisions, and action items from these meeting notes","language":"text"},"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RLml8M3MDGmTgsgvzkQdC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts structured information (titles, decisions, action items) from document text using Claude AI, paid per-request with USDC on Base L2","exampleAgentPrompt":"Can you extract the key information from these meeting notes — pull out the title, any decisions made, and action items assigned: 'Team synced on Q3 roadmap. Decided to ship v2 by Friday. Sean to update docs, Maria to notify stakeholders.'","exampleUseCases":null,"resultDescription":"Returns a JSON object with the AI model used (claude-haiku-4-5), a structured markdown-formatted result containing extracted fields like title, decisions, and action items, and the number of tokens consumed","failureModes":["Empty or missing 'code' field returns an error or empty result","Document too long may exceed token limits and return a truncated or failed response","Payment not included or insufficient USDC causes a 402 Payment Required response","Malformed JSON input returns a 400 error","Service temporarily unavailable returns a 5xx error"],"whenToPreferThis":"Choose this endpoint when you need lightweight, pay-per-request AI document extraction without committing to a subscription or managing API keys — ideal for sporadic or low-volume document parsing tasks billed in USDC on Base L2","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:47:06.199Z","isFirstParty":false}