{"id":28476405,"url":"https://github.com/context-labs/inference-samples","last_synced_at":"2025-09-13T12:39:45.905Z","repository":{"id":297312446,"uuid":"996373961","full_name":"context-labs/inference-samples","owner":"context-labs","description":"Cookbooks, examples, and guides for using the Inference API.","archived":false,"fork":false,"pushed_at":"2025-06-20T00:55:22.000Z","size":4451,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-20T01:34:14.721Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/context-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2025-06-04T21:26:27.000Z","updated_at":"2025-06-20T00:55:25.000Z","dependencies_parsed_at":"2025-06-20T01:38:55.987Z","dependency_job_id":null,"html_url":"https://github.com/context-labs/inference-samples","commit_stats":null,"previous_names":["context-labs/inference-samples"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/context-labs/inference-samples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/context-labs%2Finference-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/context-labs%2Finference-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/context-labs%2Finference-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/context-labs%2Finference-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/context-labs","download_url":"https://codeload.github.com/context-labs/inference-samples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/context-labs%2Finference-samples/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263049902,"owners_count":23405730,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-06-07T15:06:48.633Z","updated_at":"2025-09-13T12:39:45.894Z","avatar_url":"https://github.com/context-labs.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"logo.png\" alt=\"Inference.net Logo\" width=\"200\"\u003e\n\n# Inference.net API Examples\n\nWelcome to the Inference.net API examples repository! This collection provides code samples and guides for common tasks using the Inference.net API.\n\n## Getting Started\n\nTo run these examples, you'll need:\n\n1. An Inference.net account - [Create a free account here](https://inference.net/signin)\n2. An API key from your account dashboard\n\n### Setting Up Your API Key\n\nYou can set up your API key in one of two ways:\n\n1. **Environment Variable**:\n   ```bash\n   export INFERENCE_API_KEY=your_api_key_here\n   ```\n\n2. **.env File** (recommended for development):\n   Create a `.env` file in your project root:\n   ```bash\n   INFERENCE_API_KEY=your_api_key_here\n   ```\n   Most IDEs (like VS Code) will automatically load this file.\n\n## Available Resources\n\nMost examples are written in Python, but the concepts can be applied to any language.\n\n### Featured Examples\n\n#### Example Notebooks\n\n- [Webhook Example](examples/webhook-classification/README.md) - A minimalistic API that uses Inference.net to detect Magnus Carlsen in images using webhooks\n- [RAG with ChromaDB, Chonkie, and Paul Graham's Essays](examples/RAG-chroma/RAG-chroma.ipynb) - End-to-end Retrieval-Augmented Generation pipeline using Inference.net, ChromaDB, and Chonkie\n- [ClipTagger-12B Semantic Video Search With Chroma](examples/cliptagger-video-search/cliptagger-video-search.ipynb) - Semantic search and filtering over video frames using ClipTagger-12B and ChromaDB\n- [Video Captioning with VLMs: Generic Model Example](examples/video-captioning/video-captioning.ipynb) \u003ca name=\"video-captioning.ipynb\"\u003e\u003c/a\u003e\n- [Sentiment Analysis with Structured Outputs](examples/sentiment-analysis/sentiment-analysis.ipynb) \u003ca name=\"sentiment-analysis.ipynb\"\u003e\u003c/a\u003e\n\n\n#### API Features \u0026 Resources\n\n- [Batch Processing](https://docs.inference.net/features/batch-api) - Process multiple asynchronous requests in a single API call\n- [Function Calling](https://docs.inference.net/features/function-calling) - Give your models tools\n- [Structured Outputs](https://docs.inference.net/features/structured-outputs) - Have your models output structured outputs\n- [Vision](https://docs.inference.net/features/vision) - Process images with AI models\n- [Background Inference](https://docs.inference.net/features/asynchronous-inference/overview) - Use the asynchronous API for cost-effective processing\n\n## License\n\nMIT License","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontext-labs%2Finference-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontext-labs%2Finference-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontext-labs%2Finference-samples/lists"}