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>"
}
]
}Extracts text from an image via chat-style message with image_url content.
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>"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.