Recognize document text
POST
/ocr/v1/recognizeExtract text and layout from a document or image using DeepSeek. Upload at most 100 MiB. Reserve up to 1000 pages; charge validated page_count only after complete recognition and release unused reservation. Pages marked length contain truncated text and remain billable. Failures are not charged. Token usage is informational.
$0.002 / pageHow billing works ↗
Parameters
This operation has no published parameters.
Success response200
Fields inside data
| Name | Type | Required | Description |
|---|---|---|---|
created | integer | No | |
id | string | No | |
object | string | No | |
page_count | integer | No | |
pages | object[] | No | |
pages[].finish_reason | string | No | |
pages[].index | integer | No | |
pages[].text | string | No | |
purpose | string | No | |
usage | object | No | |
usage.input_tokens | integer | No | |
usage.output_tokens | integer | No | |
usage.total_tokens | integer | No |
JSON model
Illustrative JSON shape generated from the published schema. Field values are examples, not live results.
JSON model
{
"code": 0,
"data": {
"created": 0,
"id": "string",
"object": "string",
"page_count": 0,
"pages": [
{
"finish_reason": "string",
"index": 0,
"text": "string"
}
],
"purpose": "string",
"usage": {
"input_tokens": 0,
"output_tokens": 0,
"total_tokens": 0
}
},
"error": "string"
}