Render a PDF document into images
POST/v1/render
Render a PDF document into images.
Request
- application/json
Body
required
- MOD1
document_url Document Url (string)required
The URL of the file to render. Supports two URL types:
1. Public URLs - accessible from the internet
2. `nomic://` prefixed URLs - obtained from the `/upload` endpoint
first_page
object
Starting page number for rendering (zero-indexed). If not specified, rendering starts from the first page of the file.
anyOf
integer
Responses
- 201
- 403
- 422
The task id of the rendering task.
- application/json
- Schema
- Example (from schema)
Schema
task_id Task Id (string)required
The id of the task.
{
"task_id": "string"
}
The user is not authorized to perform this action.
- application/json
- Schema
- Example (from schema)
- Example
Schema
any
{
"status_code": 403,
"detail": "The user is not authorized to perform this action."
}
{
"status_code": 403,
"detail": "The user is not authorized to perform this action."
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...