Parse a Document
Upload the file asmultipart/form-data:
json response format returns the extracted text and its token count. Use response_format=text when you only need the extracted text.
Text Parser or Chat File Input?
Both features extract document content, but they serve different workflows:Typical Pipeline
1
Parse the file
Upload the source document and request a JSON response.
2
Inspect the output
Check the token count against the target model’s context window. Trim or split large documents before inference.
3
Use the text
Add it to a chat prompt, generate embeddings for retrieval, or save it in your own data store.
Parsing runs in memory with zero data retention. Venice processes the uploaded document and immediately discards it without storing or logging its content.