Skip to main content
POST
Generate Document
Generate structured documents from a natural language prompt. Supports PDF, DOCX, PPTX, XLSX, and CSV formats.

Authentication

Requires a Bearer token. See Authentication.

Request Body

string
required
Description of the document to generate.
string
default:"pdf"
Output format. One of: pdf, docx, pptx, xlsx, csv.

Request Examples

Response

string
Unique document ID (prefixed doc_).
string
ISO 8601 timestamp.
string
The output format (e.g., "pdf").
string
Auto-generated document title.
string | null
Presigned URL to download the document file. May be null if file generation is still processing.
integer | null
File size in bytes.
string
Text content of the generated document.
object

Example Response

Errors