{"id":26122985,"url":"https://github.com/clarifai/clarifai-csharp-grpc","last_synced_at":"2025-04-13T13:50:59.483Z","repository":{"id":43278188,"uuid":"217547029","full_name":"Clarifai/clarifai-csharp-grpc","owner":"Clarifai","description":" Clarifai gRPC C# client ","archived":false,"fork":false,"pushed_at":"2025-04-10T15:40:50.000Z","size":13801,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-10T16:54:36.075Z","etag":null,"topics":["ai","clarifai","clarifai-client","csharp","grpc"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Clarifai.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}},"created_at":"2019-10-25T14:04:31.000Z","updated_at":"2025-04-10T15:40:54.000Z","dependencies_parsed_at":"2023-11-27T22:27:17.777Z","dependency_job_id":"b24f2e66-3dfd-4c6e-9867-a2e842af916e","html_url":"https://github.com/Clarifai/clarifai-csharp-grpc","commit_stats":null,"previous_names":[],"tags_count":113,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clarifai%2Fclarifai-csharp-grpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clarifai%2Fclarifai-csharp-grpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clarifai%2Fclarifai-csharp-grpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clarifai%2Fclarifai-csharp-grpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Clarifai","download_url":"https://codeload.github.com/Clarifai/clarifai-csharp-grpc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248724588,"owners_count":21151559,"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":["ai","clarifai","clarifai-client","csharp","grpc"],"created_at":"2025-03-10T15:14:45.185Z","updated_at":"2025-04-13T13:50:59.451Z","avatar_url":"https://github.com/Clarifai.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"![image](https://github.com/user-attachments/assets/c6087cf2-e4d4-4064-a111-1fa5887f4466)\n\n\n# Clarifai C# gRPC Client\n\nThis is the official Clarifai gRPC C# client for interacting with our powerful recognition\n[API](https://docs.clarifai.com).\nClarifai provides a platform for data scientists, developers, researchers and enterprises to master the entire\nartificial intelligence lifecycle. Gather valuable business insights from images, video and text using computer vision\nand natural language processing.\n\n* Try the Clarifai demo at: https://clarifai.com/demo\n* Sign up for a free account at: https://portal.clarifai.com/signup\n* Read the documentation at: https://docs.clarifai.com/\n\n[![NuGet](https://img.shields.io/nuget/v/ClarifaiGrpc.svg)](https://www.nuget.org/packages/ClarifaiGrpc)\n[![Run tests](https://github.com/Clarifai/clarifai-csharp-grpc/workflows/Run%20tests/badge.svg)](https://github.com/Clarifai/clarifai-csharp-grpc/actions)\n\n## Installation\n\nInstall it via the NuGet Package Manager by searching for `ClarifaiGrpc`, or use one of the commands below.\n\n```\ndotnet add package ClarifaiGrpc\n\nInstall-Package ClarifaiGrpc\n```\n\n## Versioning\n\nThis library doesn't use semantic versioning. The first two version numbers (`X.Y` out of `X.Y.Z`) follow the API (backend) versioning, and\nwhenever the API gets updated, this library follows it.\n\nThe third version number (`Z` out of `X.Y.Z`) is used by this library for any independent releases of library-specific improvements and bug fixes.\n\n## Getting started\n\nConstruct the client and setup your API key or Personal Access Token in the `metadata` variable.\n\n```csharp\nusing System;\nusing System.Collections.Generic;\nusing Clarifai.Api;\nusing Clarifai.Channels;\nusing Grpc.Core;\nusing StatusCode = Clarifai.Api.Status.StatusCode;\n\nvar client = new V2.V2Client(ClarifaiChannel.Grpc());\n\nvar metadata = new Metadata\n{\n    {\"Authorization\", \"Key {YOUR_PERSONAL_TOKEN}\"}\n};\n```\n\nPredict concepts in an image:\n\n```csharp\nvar response = client.PostModelOutputs(\n    new PostModelOutputsRequest()\n    {\n        UserAppId = \n            new UserAppIDSet()\n            { \n                UserId = \"{YOUR_USER_ID}\",\n                AppId = \"{YOUR_APP_ID}\"\n            },\n        ModelId = \"aaa03c23b3724a16a56b629203edc62c\", // \u003c- This is the general model_id\n        Inputs =\n        {\n            new List\u003cInput\u003e()\n            {\n                new Input()\n                {\n                    Data = new Data()\n                    {\n                        Image = new Image()\n                        {\n                            Url = \"https://samples.clarifai.com/dog2.jpeg\"\n                        }\n                    }\n                }\n            }\n        }\n    },\n    metadata\n);\n\nif (response.Status.Code != StatusCode.Success)\n    throw new Exception(\"Request failed, response: \" + response);\n\nConsole.WriteLine(\"Predicted concepts:\");\nforeach (var concept in response.Outputs[0].Data.Concepts)\n{\n    Console.WriteLine($\"{concept.Name, 15} {concept.Value:0.00}\");\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclarifai%2Fclarifai-csharp-grpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclarifai%2Fclarifai-csharp-grpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclarifai%2Fclarifai-csharp-grpc/lists"}