Prerequisites
- A refile API key (available from your refile dashboard)
- Node.js project with Vercel AI SDK installed
- Basic familiarity with Vercel AI SDK usage patterns
Quick Start
- Install the dependencies:
- Copy the refile tool code from refileTool.js:
- Replace
<token>
in index.js with your refile API key and start generating PDFs!
Customization Options
Want a different look? Just change these parameters when callinggetRefileTool()
: