instructions. Persisted as an Edit resource, retrievable via GET /v1/edits/{edit_id}.
Either document or template_id must be provided; they are mutually exclusive.
template_id.EditTemplate id to fill. When provided, uses the template’s pre-defined form fields. Mutually exclusive with document.color (hex code of the color used for the filled text, default #000080).true, bypass the cache and re-run the edit.null for direct-document edits.Instructions describing how to fill the form fields.
Input document (PDF, DOCX, XLSX, or PPTX). Mutually exclusive with template_id.
EditTemplate id to fill. When provided, uses the template's pre-defined form fields and empty PDF. Mutually exclusive with document.
The model to use for edit inference.
Edit configuration (rendering options).
If true, skip the LLM cache and force a fresh completion.
Successful Response
Unique identifier of the edit.
Information about the source file (input document or template PDF).
Model used for the edit operation.
Instructions supplied with the edit request.
Configuration used for the edit operation.
The edit result: filled form fields and the rendered PDF.
Usage information for the edit operation.
Template id used when the edit was created from a template; null for direct-document edits.