محلِّل النصوص
Extracts text from a document file. Supports PDF, DOCX, PPTX, XLSX, and plain text formats. Upload a file via multipart/form-data.
Privacy: Text parsing runs entirely in-memory on Venice’s infrastructure with zero data retention. Documents are processed and immediately discarded — no content is stored or logged.
Authentication: This endpoint accepts either a Bearer API key or a SIGN-IN-WITH-X header for x402 wallet-based authentication. The legacy X-Sign-In-With-X header is also accepted during migration. When using x402, a 402 Payment Required response indicates insufficient balance and includes top-up instructions.
file، حتى 25MB.
الصيغ المدعومة أوسع من مجموعة المستندات المهيكلة. يقبل هذا الـ endpoint:
- المستندات — PDF و EPUB و DOCX و PPTX و XLSX و XLS
- النصوص العادية والبيانات — النصوص العادية و Markdown و CSV و JSON و YAML و TOML و XML وأي نوع MIME من فئة
text/* - الشيفرة المصدرية — نحو 140 امتدادًا معروفًا، بما في ذلك
.pyو.tsو.jsو.goو.rsو.cو.cppو.javaو.ps1و.shو.sql، إضافة إلى الملفات بلا امتداد مثلDockerfileوMakefile
.doc و.ppt الثنائيتان القديمتان غير مقبولتين — حوّلهما إلى .docx أو .pptx أولًا. أما صيغة .xls القديمة فهي مقبولة.response_format إلى json (الافتراضي) للحصول على إخراج مهيكل مع النص المستخرج وعدد الـ tokens، أو text للحصول على النص المستخرج الخام.
الخصوصية: يعمل تحليل النصوص بالكامل في الذاكرة على بنية Venice التحتية مع عدم الاحتفاظ بأي بيانات. تتم معالجة مستنداتك ثم التخلص منها فورًا — لا يتم تخزين أي محتوى أو تسجيله.
التسعير: $0.01 لكل طلب.
مثال (cURL)
التفويضات
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
الجسم
The document file to parse. Supported formats: PDF, DOCX, PPTX, XLSX, and plain text files. Maximum size: 25MB.
The format of the response output. "json" returns structured JSON with text and token count, "text" returns only the extracted text.
json, text