الانتقال إلى المحتوى الرئيسي
POST
/
augment
/
text-parser
/api/v1/augment/text-parser
curl --request POST \
  --url https://api.venice.ai/api/v1/augment/text-parser \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form response_format=json
{
  "text": "<string>",
  "tokens": 123
}
هذه واجهة API تجريبية. قد يتغير تنسيق الطلب والاستجابة دون إشعار.
ارفع ملف مستند عبر multipart/form-data باستخدام حقل file. تشمل الصيغ المدعومة PDF وDOCX وXLSX وملفات النصوص العادية (حتى 25MB). عيّن response_format إلى json (الافتراضي) للحصول على إخراج مهيكل مع النص المستخرج وعدد الـ tokens، أو text للحصول على النص المستخرج الخام. الخصوصية: يعمل تحليل النصوص بالكامل في الذاكرة على بنية Venice التحتية مع عدم الاحتفاظ بأي بيانات. تتم معالجة مستنداتك ثم التخلص منها فورًا — لا يتم تخزين أي محتوى أو تسجيله. التسعير: $0.01 لكل طلب.

مثال (cURL)

curl -X POST https://api.venice.ai/api/v1/augment/text-parser \
  -H "Authorization: Bearer $VENICE_API_KEY" \
  -F "[email protected]" \
  -F "response_format=json"

التفويضات

Authorization
string
header
مطلوب

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

الجسم

multipart/form-data
file
file
مطلوب

The document file to parse. Supported formats: PDF, DOCX, PPTX, XLSX, and plain text files. Maximum size: 25MB.

response_format
enum<string>
افتراضي:json

The format of the response output. "json" returns structured JSON with text and token count, "text" returns only the extracted text.

الخيارات المتاحة:
json,
text

الاستجابة

Text extraction completed successfully

Text parser response containing extracted text and token count.

text
string
مطلوب

The extracted text content from the document.

tokens
number
مطلوب

The token count of the extracted text.