Scan your whole stack
From OX Research Newsroom
Are you using apiverve-imagetotext?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.2.7
apiverve-imagetotext was last scanned on 30 Nov 2026 at version 1.2.7. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.2.7 LATEST | 30 Nov 2026 | No rules fired |
| 1.2.6 | 16 Nov 2026 | No rules fired |
| 1.2.5 | 9 Nov 2026 | No rules fired |
| 1.2.4 | 2 Nov 2026 | Not shown |
| 1.2.3 | 26 Oct 2026 | Not shown |
Findings for v1.2.7. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.2.7; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Image to Text is an OCR and image to text API that extracts text from image files or remote image URLs using optical character recognition. Upload a JPG, PNG, or GIF up to 5 MB to receive the raw extracted text.
This is a Python wrapper for the Image to Text API
Using pip:
pip install apiverve-imagetotext
Using pip3:
pip3 install apiverve-imagetotext
Before using the Image to Text API client, you have to setup your account and obtain your API Key. You can get it by signing up at https://apiverve.com
Here's a simple example to get you started quickly:
from apiverve_imagetotext.apiClient import ImagetotextAPIClient
# Initialize the client with your APIVerve API key
api = ImagetotextAPIClient("[YOUR_API_KEY]")
# This API requires a file upload
files = { "image": open("/path/to/image.jpg", "rb") }
try:
# Make the API call
result = api.execute_with_file(files)
# Print the result
print(result)
except Exception as e:
print(f"Error: {e}")
The Image to Text API documentation is found here: https://docs.apiverve.com/ref/imagetotext. You can find parameters, example responses, and status codes documented here.
# Import the client module
from apiverve_imagetotext.apiClient import ImagetotextAPIClient
# Initialize the client with your APIVerve API key
api = ImagetotextAPIClient("[YOUR_API_KEY]")
Using the API client, you can perform requests to the API.
# This API requires a file upload
files = { "image": open("/path/to/image.jpg", "rb") }
# Make a request to the API
result = api.execute_with_file(files)
# Print the result
print(result)
{
"status": "ok",
"error": null,
"data": {
"text": "A year after that (in 2021) I hired somebody tp#lp me write blog posts for\nmy personal website.\n\nThe point is, | like reinvesting the money | make\nback into my business.",
"words": 32,
"characters": 169,
"lines": 5,
"language": [
"en"
],
"confidence": 87.7,
"wordBoxes": [
{
"text": "after",
"confidence": 96.7,
"left": 76,
"top": 19,
"width": 35,
"height": 13,
"block": 1,
"line": 1
},
{
"text": "that",
"confidence": 96.9,
"left": 115,
"top": 19,
"width": 30,
"height": 12,
"block": 1,
"line": 1
},
{
"text": "tp#lp",
"confidence": 62.6,
"left": 357,
"top": 19,
"width": 49,
"height": 16,
"block": 1,
"line": 1
},
{
"text": "business.",
"confidence": 96.9,
"left": 174,
"top": 150,
"width": 99,
"height": 20,
"block": 3,
"line": 2
}
]
}
}
The API client provides comprehensive error handling through the ImagetotextAPIClientError exception. Here are some examples:
from apiverve_imagetotext.apiClient import ImagetotextAPIClient, ImagetotextAPIClientError
api = ImagetotextAPIClient("[YOUR_API_KEY]")
# This API requires a file upload
files = { "image": open("/path/to/image.jpg", "rb") }
try:
result = api.execute(query)
print("Success!")
print(result)
except ImagetotextAPIClientError as e:
print(f"API Error: {e.message}")
if e.status_code:
print(f"Status Code: {e.status_code}")
if e.response:
print(f"Response: {e.response}")
from apiverve_imagetotext.apiClient import ImagetotextAPIClient, ImagetotextAPIClientError
api = ImagetotextAPIClient("[YOUR_API_KEY]")
# This API requires a file upload
files = { "image": open("/path/to/image.jpg", "rb") }
try:
result = api.execute(query)
# Check for successful response
if result.get('status') == 'success':
print("Request successful!")
print(result.get('data'))
else:
print(f"API returned an error: {result.get('error')}")
except ImagetotextAPIClientError as e:
# Handle API client errors
if e.status_code == 401:
print("Unauthorized: Invalid API key")
elif e.status_code == 429:
print("Rate limit exceeded")
elif e.status_code >= 500:
print("Server error - please try again later")
else:
print(f"API error: {e.message}")
except Exception as e:
# Handle unexpected errors
print(f"Unexpected error: {str(e)}")
The client supports the context manager protocol for automatic resource cleanup:
from apiverve_imagetotext.apiClient import ImagetotextAPIClient, ImagetotextAPIClientError
# This API requires a file upload
files = { "image": open("/path/to/image.jpg", "rb") }
# Using context manager ensures proper cleanup
with ImagetotextAPIClient("[YOUR_API_KEY]") as api:
try:
result = api.execute(query)
print(result)
except ImagetotextAPIClientError as e:
print(f"Error: {e.message}")
# Session is automatically closed here
Enable debug logging to see detailed request and response information:
from apiverve_imagetotext.apiClient import ImagetotextAPIClient
# Enable debug mode
api = ImagetotextAPIClient("[YOUR_API_KEY]", debug=True)
# This API requires a file upload
files = { "image": open("/path/to/image.jpg", "rb") }
# Debug information will be printed to console
result = api.execute(query)
If you need to manually manage the session lifecycle:
from apiverve_imagetotext.apiClient import ImagetotextAPIClient
api = ImagetotextAPIClient("[YOUR_API_KEY]")
# This API requires a file upload
files = { "image": open("/path/to/image.jpg", "rb") }
try:
result = api.execute(query)
print(result)
finally:
# Manually close the session when done
api.close()
Need any assistance? Get in touch with Customer Support.
Stay up to date by following @apiverveHQ on Twitter.
All usage of the APIVerve website, API, and services is subject to the APIVerve Terms of Service and all legal documents and agreements.
Licensed under the MIT License (MIT)
Copyright (©) 2026 APIVerve, and EvlarSoft LLC
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.