Skip to main content
GET
/
ocr
/
models
Python
import requests

response = requests.get(
    "https://api.opper.ai/v2/ocr/models",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
)

result = response.json()

print(f"Available OCR models: {result['meta']['total_count']}")
for model in result["data"]:
    print(f"  - {model['name']} ({model['hosting_provider']}, {model['location']})")
    print(f"    Cost per page: ${model['cost_per_page']}")
{
  "meta": {
    "total_count": 1
  },
  "data": [
    {
      "hosting_provider": "<string>",
      "name": "<string>",
      "location": "<string>",
      "cost_per_page": 0.001
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

Successful Response

meta
Meta · object
required

Metadata about the response

data
ListOCRModelsResponse · object[]
required

List of items returned in the response