Files
Download File
Download a file from the repository. Supports image resizing and video thumbnail generation via query parameters.
get/api/repos/{namespace}/{repo_name}/file/{resource}
Request
- Base URLhttps://hub.oxen.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
namespacestring required
Namespace of the repository
repo_namestring required
Name of the repository
resourcestring required
Path to the file (including branch/commit info)
Query parameters
widthinteger
Width for image resize or video thumbnail
heightinteger
Height for image resize or video thumbnail
timestampnumber double
Timestamp in seconds to extract video thumbnail from (default: 1.0)
thumbnailboolean
Set to true to generate a video thumbnail instead of returning the full video
Response
File content stream
Changes
No recorded changes to this operation across all 1 revision of this API.