{"id":50912212,"url":"https://github.com/fboucher/caption-this","last_synced_at":"2026-06-16T11:01:42.067Z","repository":{"id":328031088,"uuid":"1112547114","full_name":"fboucher/caption-this","owner":"fboucher","description":"Examples in C#, Python, and HTTP for using the Reka Vision API to caption images and videos.","archived":false,"fork":false,"pushed_at":"2026-03-05T19:20:53.000Z","size":3238,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-29T16:00:09.314Z","etag":null,"topics":["ai","captioning-images","csharp","demo","dotnet","http","python","sample","vision","vscode"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fboucher.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-08T19:22:19.000Z","updated_at":"2026-03-05T19:20:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/fboucher/caption-this","commit_stats":null,"previous_names":["fboucher/caption-this"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fboucher/caption-this","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fboucher%2Fcaption-this","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fboucher%2Fcaption-this/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fboucher%2Fcaption-this/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fboucher%2Fcaption-this/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fboucher","download_url":"https://codeload.github.com/fboucher/caption-this/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fboucher%2Fcaption-this/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34402663,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","captioning-images","csharp","demo","dotnet","http","python","sample","vision","vscode"],"created_at":"2026-06-16T11:01:39.165Z","updated_at":"2026-06-16T11:01:42.061Z","avatar_url":"https://github.com/fboucher.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Caption This\n\nExamples in C#, Python, and HTTP for using the Reka Vision API to caption images and videos. See https://docs.reka.ai/vision for API details.\n\n## Prerequisites\n\n- Copy `.env-sample` to `.env` and set your API keys.\n- `API_KEY`: Required for Reka Vision API (it's free! [Get yours from here](https://link.reka.ai/free))\n- `GOOGLE_API_KEY`: Required for video generation in Python.\n\n## Samples\n\nThis repository contains similar/ equivalent samples in multiple languages for captioning images and videos using the Reka Vision API.\n\nIt also includes small image and video assets for testing in the `assets/` folder.\n\n### Python\n\nIn the `/python` folder, there are three Python scripts that demonstrate the Reka Vision API:\n\n**Installation:**\n\n```bash\npip install -r python/requirements.txt\n```\n\n**Scripts:**\n\n- **[caption_this.py](python/caption_this.py)** - Caption a video file and save the result to JSON\n\n  ```bash\n  python python/caption_this.py ../assets/test-b.mp4\n  ```\n\n- **[vision_app.py](python/vision_app.py)** - Interactive CLI application for managing images and videos (list, upload, caption, delete)\n\n  ```bash\n  python python/vision_app.py\n  ```\n\n- **[create_video.py](python/create_video.py)** - Generate AI video using Google's Generative AI (requires `GOOGLE_API_KEY`)\n\n  ```bash\n  python python/create_video.py\n  ```\n\n  Note: Edit the prompt in the script before running.\n\n### C# - File-based\n\nIn the `/dotnet` folder, there the `caption-this.cs` file-based program that can caption a single image or video file. You can run it from the command line:\n\n```bash\ndotnet ./caption-this.cs ../assets/test-a.png\n```\n\n### C# - Spectre Console App\n\nIn the `/spectre` folder, there's a full-featured interactive console application built with [Spectre.Console](https://spectreconsole.net/). This app provides a rich terminal UI with menus, tables, spinners, and progress bars for working with the Reka Vision API.\n\n**Run the app:**\n\n```bash\ncd spectre\ndotnet run\n```\n\n### HTTP\n\nIn the `/http` folder, there's a [caption-this.http](http/caption-this.http) file that contains REST API examples using the [VS Code REST Client extension](https://marketplace.visualstudio.com/items?itemName=humao.rest-client).\n\n**Available requests:**\n\n- List all videos in library\n- List all images\n- Caption a video by ID\n- Caption an image by URL or ID\n- Upload a video file\n- Upload a photo file\n- Delete a video by ID\n\n**Usage:**\nOpen [caption-this.http](http/caption-this.http) in VS Code and click \"Send Request\" above any request.\n\n## Questions or Issues\n\nIf you have any questions or run into issues, please open an issue on the GitHub repository or reach out on our - [Discord Community](https://link.reka.ai/discord)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffboucher%2Fcaption-this","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffboucher%2Fcaption-this","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffboucher%2Fcaption-this/lists"}