\n<|grounding|>Convert the document to markdown.
\nParse the figure.
\nLocate <|ref|> the teacher<|/ref|> in the image.
\nFree OCR.
Authorization: Bearer ********************{
"model": "deepseek-ocr",
"stream": true,
"messages": [
{
"role": "system",
"content": "<image>\nFree OCR."
// "content": "<image>\n<|grounding|>Convert the document to markdown."
// "content": "Parse the figure."
// "content": "Locate <|ref|> the teacher<|/ref|> in the image."
},
{
"role": "user",
"content": [
{
"type": "image_url",
"image_url": {
"url": "https://s3.ffire.cc/files/pdf_to_markdown.jpg" //支持 base64
}
}
]
}
]
}curl --location --request POST 'https://api.chatfire.cn/v1/chat/completions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "deepseek-ocr",
"stream": true,
"messages": [
{
"role": "system",
"content": "<image>\nFree OCR."
// "content": "<image>\n<|grounding|>Convert the document to markdown."
// "content": "Parse the figure."
// "content": "Locate <|ref|> the teacher<|/ref|> in the image."
},
{
"role": "user",
"content": [
{
"type": "image_url",
"image_url": {
"url": "https://s3.ffire.cc/files/pdf_to_markdown.jpg" //支持 base64
}
}
]
}
]
}'{
"id": "oCrTEp6GtuWhyVqajzVDEs",
"choices": [
{
"finish_reason": null,
"index": 0,
"logprobs": null,
"message": {
"content": "",
"refusal": null,
"role": "assistant",
"annotations": null,
"audio": null,
"function_call": null,
"tool_calls": null,
"reasoning_content": ""
}
}
],
"created": 1744596467,
"model": "gemini-2.0-flash-exp-image-generation",
"object": "chat.completion",
"service_tier": null,
"system_fingerprint": null,
"usage": {
"completion_tokens": 34,
"prompt_tokens": 44,
"total_tokens": 78,
"completion_tokens_details": null,
"prompt_tokens_details": null
}
}