Install
- Python
- TypeScript / JavaScript
Requires Python 3.10+. Install in your project’s virtual environment:Save a Python example below as
example.py and run python example.py.YOUR_API_KEY and the video source before running it.
Evaluate a local video
create() uploads the file, starts the evaluation, and waits for the result.
Use this for scripts that need the answer before continuing.
- Python
- TypeScript
prompt for visual-glitch detection only.
Submit a job
submit() returns an evaluation ID without waiting for the analysis to finish.
Use it when your application needs to continue working while Galileo evaluates the video.
This example uses a public video URL. You can also pass a local path; the SDK
finishes uploading and validating the file before returning the ID.
- Python
- TypeScript
job.id. You can retrieve that evaluation from another process or after a restart.
In TypeScript, both create() and submit() return promises; only create() waits
for the evaluation to finish.
Retrieve the result
ReplaceEVALUATION_ID with the ID printed above. retrieve() fetches the current
status once; a queued or processing evaluation may not have a result yet.
- Python
- TypeScript
retrieve() line above with:
- Python
- TypeScript
completed, partial, or failed.
See Evaluations for status meanings, findings, and history.
Keep API keys in server-side code. API keys covers environment-variable
setup; the changelog lists SDK updates.