Zum Hauptinhalt springen
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
}
Dies ist eine experimentelle API. Das Request- und Response-Format kann sich ohne Vorankündigung ändern.
Laden Sie eine Dokumentdatei per multipart/form-data über das Feld file hoch. Unterstützte Formate sind PDF, DOCX, XLSX und Klartext-Dateien (bis zu 25 MB). Setzen Sie response_format auf json (Standard) für strukturierte Ausgabe mit extrahiertem Text und Token-Anzahl, oder auf text für den reinen extrahierten Text. Datenschutz: Das Text-Parsing läuft vollständig im Arbeitsspeicher auf der Infrastruktur von Venice mit Zero Data Retention. Ihre Dokumente werden verarbeitet und sofort verworfen — kein Inhalt wird gespeichert oder protokolliert. Preise: $0.01 pro Anfrage.

Beispiel (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"

Autorisierungen

Authorization
string
header
erforderlich

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

Body

multipart/form-data
file
file
erforderlich

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

response_format
enum<string>
Standard:json

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

Verfügbare Optionen:
json,
text

Antwort

Text extraction completed successfully

Text parser response containing extracted text and token count.

text
string
erforderlich

The extracted text content from the document.

tokens
number
erforderlich

The token count of the extracted text.