Migrate from LlamaParse to Webcite

To move from LlamaParse, replace the upload-and-poll pair with two Webcite calls: upload the file, then extract it. Extract returns the finished document in one response, with the whole Markdown in markdown and each page in units. The key moves from the Authorization header to x-api-key.

Last updated

Who wrote this

Webcite wrote this guide. Each LlamaParse term links the LlamaParse documentation it comes from, checked on 25 November 2026; the Webcite calls follow the API reference. Corrections: support@webcite.co.

What maps to what

LlamaParse to Webcite
LlamaParseWebcite
POST /api/v2/parse/uploadPOST /api/v1/upload with the file field, then POST /api/v1/extract with data.asset_id
GET /api/v2/parse/{job_id}Extract returns the finished document in the same request. Check state before reading markdown
Authorization: Bearerx-api-key header
expand=markdown_fullmarkdown
expand=itemsunits[].elements: typed blocks in reading order, each with markdown and a bbox

The replacement calls

Upload is free and returns data.asset_id. Extract returns when every page is read, so allow a long timeout.

curl --fail-with-body -X POST https://api.webcite.co/api/v1/upload \
  -H "x-api-key: $WEBCITE_API_KEY" \
  -F "file=@./report.pdf"

curl --fail-with-body --max-time 900 -X POST https://api.webcite.co/api/v1/extract \
  -H "x-api-key: $WEBCITE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"asset_id":"YOUR_ASSET_ID","mode":"standard"}'

With the TypeScript SDK

npm install webcite
import { readFile } from "node:fs/promises";
import { Webcite } from "webcite";

const client = new Webcite();
const bytes = new Uint8Array(await readFile("irs-form-w9-page-1.pdf"));
const { data } = await client.upload(bytes, { filename: "irs-form-w9-page-1.pdf" });
const doc = await client.extract({ asset_id: data.asset_id, mode: "standard" });
console.log(doc.state, doc.usage?.credits);
console.log(doc.markdown?.split("\n")[0]);
complete 0.4966
Form **W-9**

The output above is recorded from the API for the sample W-9. The Free plan includes 100 credits.

Create a free account

Before you switch

Webcite vs LlamaParse API shows where LlamaParse is the better choice.