OCR
Extracts text from an image via chat-style message with image_url content.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://api.vivgrid.com/v1/ocr" \ -H "Content-Type: application/json" \ -d '{ "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": 0,
"model": "string",
"choices": [
{
"index": 0,
"message": {
"role": "string",
"content": "string"
},
"finish_reason": "string"
}
]
}{
"error": {
"message": "string",
"type": "string",
"param": "string",
"code": "string"
}
}