Venice Augment (text parse / scrape / search)
Three lightweight helpers for agent pipelines that need document text, web pages, or search results without spinning up your own crawler.
| Endpoint |
Input |
Output |
Privacy |
POST /augment/text-parser |
multipart/form-data file (PDF / DOCX / XLSX / plain text, ≤ 25 MB) |
{ text, tokens } JSON or plain text |
In-memory only, zero retention |
POST /augment/scrape |
{ url } |
{ url, content (markdown), format: "markdown" } |
Zero retention |
POST /augment/search |
{ query, limit?, search_provider? } |
{ query, results: [{ title, url, content, date }] } |
Brave ZDR / Google anonymized; zero retention |
All three accept Bearer API key or SIWE (x402 wallet). All three are priced dynamically ($0.001–$10.00).
POST /augment/text-parser — extract text from documents
Request
Always multipart/form-data:
| Field |
Notes |
file |
Required. PDF, DOCX, XLSX, or plain text. Max 25 MB. |
response_format |
json (default) or text. |
curl -X POST https://api.venice.ai/api/v1/augment/text-parser \
-H "Authorization: Bearer $VENICE_API_KEY" \
-F "file=@./contract.pdf" \
-F "response_format=json"
Response
response_format=json:
{
"text": "…extracted plaintext…",
"tokens": 3821
}
response_format=text — raw plaintext body (Content-Type: text/plain).
Tips
tokens is the count of the extracted text — use it to pre-budget a downstream chat request.
- Scanned image PDFs are not OCR'd. Run images through a vision model via
/chat/completions instead.
- Documents are processed in memory only and content is not retained after the response. (Operational metadata like request IDs and error traces may still be logged for debugging — this is a no-content-retention guarantee, not a zero-log guarantee.)
POST /augment/scrape — URL → markdown
Request
{ "url": "https://example.com/article" }
curl -X POST https://api.venice.ai/api/v1/augment/scrape \
-H "Authorization: Bearer $VENICE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com"}'
Response
{
"url": "https://example.com",
"content": "# Example Domain\n\nThis domain is for use in …",
"format": "markdown"
}
Tips
- Blocked sites — X/Twitter and Reddit reject automated access and return
400 immediately. Use enable_x_search or enable_web_search on /chat/completions for those.
- Some sites may return a partial body. Verify with the returned
content length before piping into a model.
- Use together with
/chat/completions: scrape → feed markdown into messages → summarize.
- For bulk scraping, issue requests in parallel; each is billed independently.
POST /augment/search — web search
Request
| Field |
Notes |
query |
1–400 chars. Required. |
limit |
1–20. Default 10. |
search_provider |
"brave" (default, ZDR) or "google" (anonymized). |
curl -X POST https://api.venice.ai/api/v1/augment/search \
-H "Authorization: Bearer $VENICE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "venice ai api pricing",
"limit": 5,
"search_provider": "brave"
}'
Response
{
"query": "venice ai api pricing",
"results": [
{
"title": "Pricing — Venice.ai",
"url": "https://venice.ai/pricing",
"content": "Venice offers per-token pricing …",
"date": "2026-04-10"
}
]
}
Providers
| Provider |
Retention |
Bias / filter |
brave (default) |
Zero Data Retention — Brave never stores queries. |
Safesearch defaults, Brave Index. |
google |
Anonymized — proxied through Venice so Google doesn't see you; Venice doesn't log queries. |
Google ranking. |
Tips
- Pair with
/chat/completions + venice_parameters.enable_web_citations to generate cited answers. See venice-chat.
- For "search + read" pipelines, feed
results[*].url into /augment/scrape in parallel.
query is validated as 1–400 chars. Anything longer is rejected (400 INVALID_REQUEST), not truncated.
Errors
| Status |
Cause |
400 |
Missing/oversized file, unsupported format, URL on a blocklist (X, Reddit), empty query, query > 400 chars. |
401 |
Missing/invalid Bearer or SIWE. |
402 |
Insufficient balance. x402 wallets receive the PAYMENT-REQUIRED header with base64 top-up instructions; Bearer users get INSUFFICIENT_BALANCE. |
403 |
Unauthorized access. |
429 |
Rate limit tripped. Back off with jitter. |
500 |
Upstream fetch / parse failure. Safe to retry. |
Response headers
X-Balance-Remaining — remaining x402 credit (x402 auth only).
Content-Encoding — present when Accept-Encoding: gzip, br is sent (text-parser + scrape outputs compress well).
Patterns
- Document QA — Upload PDF via
/augment/text-parser, pass text into a /chat/completions system message, ask questions.
- Research agent —
/augment/search → parallel /augment/scrape → /chat/completions with all markdown bodies.
- Data extraction — XLSX via text-parser surfaces tab-delimited cell data you can then pipe to a model with
response_format: { type: "json_schema", ... }.
- Citation pipeline — Use
/augment/search to pick sources, then give the chat model venice_parameters.enable_web_citations: true for inline [n] marks.
1---
2name: venice-augment
3description: Venice augmentation endpoints for agent pipelines. Covers POST /augment/text-parser (extract text from PDF/DOCX/XLSX/plain text, multipart, up to 25MB, JSON or plain text response), POST /augment/scrape (fetch a URL and return markdown; blocks X/Reddit), and POST /augment/search (Brave ZDR or anonymized Google; structured title/url/content/date results, up to 20 per query). Privacy (zero data retention), rate limits, and error shapes.
4metadata:
5 source: https://skillmd.com/skills/aibot88/venice-augment
6---
7
8# Venice Augment (text parse / scrape / search)
9
10Three lightweight helpers for agent pipelines that need document text, web pages, or search results without spinning up your own crawler.
11
12| Endpoint | Input | Output | Privacy |
13|---|---|---|---|
14| `POST /augment/text-parser` | `multipart/form-data` file (PDF / DOCX / XLSX / plain text, ≤ 25 MB) | `{ text, tokens }` JSON or plain text | In-memory only, zero retention |
15| `POST /augment/scrape` | `{ url }` | `{ url, content (markdown), format: "markdown" }` | Zero retention |
16| `POST /augment/search` | `{ query, limit?, search_provider? }` | `{ query, results: [{ title, url, content, date }] }` | Brave ZDR / Google anonymized; zero retention |
17
18All three accept **Bearer API key** or **SIWE** (x402 wallet). All three are priced dynamically (`$0.001–$10.00`).
19
20## `POST /augment/text-parser` — extract text from documents
21
22### Request
23
24Always `multipart/form-data`:
25
26| Field | Notes |
27|---|---|
28| `file` | Required. PDF, DOCX, XLSX, or plain text. Max **25 MB**. |
29| `response_format` | `json` (default) or `text`. |
30
31```bash
32curl -X POST https://api.venice.ai/api/v1/augment/text-parser \
33 -H "Authorization: Bearer $VENICE_API_KEY" \
34 -F "file=@./contract.pdf" \
35 -F "response_format=json"
36```
37
38### Response
39
40`response_format=json`:
41
42```json
43{
44 "text": "…extracted plaintext…",
45 "tokens": 3821
46}
47```
48
49`response_format=text` — raw plaintext body (`Content-Type: text/plain`).
50
51### Tips
52
53- `tokens` is the count of the extracted text — use it to pre-budget a downstream chat request.
54- Scanned image PDFs are not OCR'd. Run images through a vision model via `/chat/completions` instead.
55- Documents are processed **in memory only** and **content is not retained** after the response. (Operational metadata like request IDs and error traces may still be logged for debugging — this is a no-content-retention guarantee, not a zero-log guarantee.)
56
57## `POST /augment/scrape` — URL → markdown
58
59### Request
60
61```json
62{ "url": "https://example.com/article" }
63```
64
65```bash
66curl -X POST https://api.venice.ai/api/v1/augment/scrape \
67 -H "Authorization: Bearer $VENICE_API_KEY" \
68 -H "Content-Type: application/json" \
69 -d '{"url":"https://example.com"}'
70```
71
72### Response
73
74```json
75{
76 "url": "https://example.com",
77 "content": "# Example Domain\n\nThis domain is for use in …",
78 "format": "markdown"
79}
80```
81
82### Tips
83
84- **Blocked sites** — X/Twitter and Reddit reject automated access and return `400` immediately. Use `enable_x_search` or `enable_web_search` on `/chat/completions` for those.
85- Some sites may return a partial body. Verify with the returned `content` length before piping into a model.
86- Use together with `/chat/completions`: scrape → feed markdown into messages → summarize.
87- For bulk scraping, issue requests in parallel; each is billed independently.
88
89## `POST /augment/search` — web search
90
91### Request
92
93| Field | Notes |
94|---|---|
95| `query` | 1–400 chars. Required. |
96| `limit` | 1–20. Default `10`. |
97| `search_provider` | `"brave"` (default, ZDR) or `"google"` (anonymized). |
98
99```bash
100curl -X POST https://api.venice.ai/api/v1/augment/search \
101 -H "Authorization: Bearer $VENICE_API_KEY" \
102 -H "Content-Type: application/json" \
103 -d '{
104 "query": "venice ai api pricing",
105 "limit": 5,
106 "search_provider": "brave"
107 }'
108```
109
110### Response
111
112```json
113{
114 "query": "venice ai api pricing",
115 "results": [
116 {
117 "title": "Pricing — Venice.ai",
118 "url": "https://venice.ai/pricing",
119 "content": "Venice offers per-token pricing …",
120 "date": "2026-04-10"
121 }
122 ]
123}
124```
125
126### Providers
127
128| Provider | Retention | Bias / filter |
129|---|---|---|
130| `brave` (default) | Zero Data Retention — Brave never stores queries. | Safesearch defaults, Brave Index. |
131| `google` | Anonymized — proxied through Venice so Google doesn't see you; Venice doesn't log queries. | Google ranking. |
132
133### Tips
134
135- Pair with `/chat/completions` + `venice_parameters.enable_web_citations` to generate cited answers. See [`venice-chat`](../venice-chat/SKILL.md).
136- For "search + read" pipelines, feed `results[*].url` into `/augment/scrape` in parallel.
137- `query` is validated as 1–400 chars. Anything longer is **rejected** (400 `INVALID_REQUEST`), not truncated.
138
139## Errors
140
141| Status | Cause |
142|---|---|
143| `400` | Missing/oversized file, unsupported format, URL on a blocklist (X, Reddit), empty query, query > 400 chars. |
144| `401` | Missing/invalid Bearer or SIWE. |
145| `402` | Insufficient balance. x402 wallets receive the `PAYMENT-REQUIRED` header with base64 top-up instructions; Bearer users get `INSUFFICIENT_BALANCE`. |
146| `403` | Unauthorized access. |
147| `429` | Rate limit tripped. Back off with jitter. |
148| `500` | Upstream fetch / parse failure. Safe to retry. |
149
150## Response headers
151
152- `X-Balance-Remaining` — remaining x402 credit (x402 auth only).
153- `Content-Encoding` — present when `Accept-Encoding: gzip, br` is sent (text-parser + scrape outputs compress well).
154
155## Patterns
156
157- **Document QA** — Upload PDF via `/augment/text-parser`, pass `text` into a `/chat/completions` system message, ask questions.
158- **Research agent** — `/augment/search` → parallel `/augment/scrape` → `/chat/completions` with all markdown bodies.
159- **Data extraction** — XLSX via text-parser surfaces tab-delimited cell data you can then pipe to a model with `response_format: { type: "json_schema", ... }`.
160- **Citation pipeline** — Use `/augment/search` to pick sources, then give the chat model `venice_parameters.enable_web_citations: true` for inline `[n]` marks.