API keys

Overview
Oops! Something went wrong. Please try again in a few minutes.
# pip install requests
 
import requests
 
api_key = "UPSTAGE_API_KEY"  # ex: up_xxxYYYzzzAAAbbbCCC
filename = "YOUR_FILE_NAME"  # ex: ./image.png
 
url = "https://api.upstage.ai/v1/document-digitization"
headers = {"Authorization": f"Bearer {api_key}"}
files = {"document": open(filename, "rb")}
data = {"ocr": "force", "base64_encoding": "['table']", "model": "document-parse"}
response = requests.post(url, headers=headers, files=files, data=data)
 
print(response.json())

🎉

Sign up to receive $10 free credit!

Welcome to
the Upstage console

Don't have an account?

OR

    We use cookies to improve your experience on www.upstage.ai. By continuing to browse, you agree to our use of cookies.