Skip to main content
POST
/
v1
/
ocr
OCR
curl --request POST \
  --url https://api.vivgrid.com/v1/ocr \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "DeepSeek-OCR",
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "image_url",
          "image_url": {
            "url": "data:image/jpeg;base64,BASE64_IMAGE_DATA"
          }
        },
        {
          "type": "text",
          "text": "Free OCR."
        }
      ]
    }
  ]
}
'
{
  "id": "<string>",
  "object": "<string>",
  "created": 123,
  "model": "<string>",
  "choices": [
    {
      "index": 123,
      "message": {
        "role": "<string>",
        "content": "<string>"
      },
      "finish_reason": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
string
required

DeepSeek-OCR

messages
object[]
required
Minimum array length: 1

Response

OCR result

id
string
required
object
string
required
created
integer<int64>
required
model
string
required
choices
object[]
required