bash
# Закодируйте изображение в base64:
# base64 -i image.jpg > image_b64.txt
curl -X POST "https://tsarrouter.ru/v1/chat/completions" \
-H "Authorization: Bearer tsarrouter-ваш-ключ" \
-H "Content-Type: application/json" \
-d '{
"model": "vkcloud/scene-detect",
"messages": [
{
"role": "user",
"content": [
{"type": "text", "text": "Распознай текст на изображении"},
{"type": "image_url", "image_url": {"url": "data:image/jpeg;base64,<BASE64>"}}
]
}
],
"ocr_options": {"language_codes": ["ru", "en"]}
}'