API Endpoints
Available endpoints for the GenPDF API
| Method | Endpoint | Description |
|---|---|---|
| POST | /v1/generate-pdf | Generate a PDF document from a text prompt |
Generate PDF Endpoint
The primary endpoint for generating PDF documents from text prompts.
Request Method
POST
/v1/generate-pdfRequired Parameters
prompt* Required. The text prompt describing the document you want to generate.
Example Request
curl -X POST "https://bjubpqvkpmjxnbmgqfdx.supabase.co/functions/v1/generate-pdf" -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{
"prompt": "Create a professional invoice for web development services"
}' --output invoice.pdfAuthentication
All requests require an API key in the Authorization header.