{"id":26122983,"url":"https://github.com/clarifai/clarifai-java-grpc","last_synced_at":"2025-07-09T03:10:16.518Z","repository":{"id":43189194,"uuid":"217546855","full_name":"Clarifai/clarifai-java-grpc","owner":"Clarifai","description":"Clarifai gRPC Java client","archived":false,"fork":false,"pushed_at":"2025-07-03T15:42:36.000Z","size":9103,"stargazers_count":9,"open_issues_count":7,"forks_count":6,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-07-03T16:54:14.841Z","etag":null,"topics":["ai","clarifai","clarifai-client","grpc","java"],"latest_commit_sha":null,"homepage":"https://docs.clarifai.com","language":"Java","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,"zenodo":null}},"created_at":"2019-10-25T14:03:41.000Z","updated_at":"2025-07-03T15:42:40.000Z","dependencies_parsed_at":"2023-12-20T16:29:35.870Z","dependency_job_id":"7cfccc3d-a2d0-4c50-a57c-5793e07cba9a","html_url":"https://github.com/Clarifai/clarifai-java-grpc","commit_stats":null,"previous_names":[],"tags_count":169,"template":false,"template_full_name":null,"purl":"pkg:github/Clarifai/clarifai-java-grpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clarifai%2Fclarifai-java-grpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clarifai%2Fclarifai-java-grpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clarifai%2Fclarifai-java-grpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clarifai%2Fclarifai-java-grpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Clarifai","download_url":"https://codeload.github.com/Clarifai/clarifai-java-grpc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clarifai%2Fclarifai-java-grpc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264384389,"owners_count":23599612,"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","grpc","java"],"created_at":"2025-03-10T15:14:44.035Z","updated_at":"2025-07-09T03:10:16.502Z","avatar_url":"https://github.com/Clarifai.png","language":"Java","readme":"![image](https://github.com/user-attachments/assets/ed10c659-2007-4a58-bdf3-c00b3ef1d9f5)\n\n\n# Clarifai Java gRPC Client\n\nThis is the official Clarifai gRPC Java 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\n[ ![Download](https://api.bintray.com/packages/clarifai/Clarifai/ClarifaiGrpc/images/download.svg) ](https://bintray.com/clarifai/Clarifai/ClarifaiGrpc)\n[![Build](https://github.com/Clarifai/clarifai-java-grpc/workflows/Run%20tests/badge.svg)](https://github.com/Clarifai/clarifai-java-grpc/actions)\n\n## Installation\n\nVia Gradle:\n\n```\nrepositories {\n    mavenCentral()\n}\n\ndependencies {\n    implementation 'com.clarifai:clarifai-grpc:LATEST_VERSION'\n}\n```\n\nVia Maven:\n\n```\n\u003crepositories\u003e\n    \u003crepository\u003e\n        \u003cid\u003emavenCentral\u003c/id\u003e\n        \u003cname\u003emavenCentral\u003c/name\u003e\n        \u003curl\u003ehttp://repo1.maven.org/maven2\u003c/url\u003e\n    \u003c/repository\u003e\n\u003c/repositories\u003e\n\n\u003cdependencies\u003e\n    \u003cdependency\u003e\n        \u003cgroupId\u003ecom.clarifai\u003c/groupId\u003e\n        \u003cartifactId\u003eclarifai-grpc\u003c/artifactId\u003e\n        \u003cversion\u003eLATEST_VERSION\u003c/version\u003e\n    \u003c/dependency\u003e\n\u003c/dependencies\u003e\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 *Stub* object using which you'll access all the Clarifai API functionality:\n\n```java\nimport com.clarifai.channel.ClarifaiChannel;\nimport io.grpc.Channel;\n\n...\n\nV2Grpc.V2BlockingStub stub = V2Grpc.newBlockingStub(ClarifaiChannel.INSTANCE.getGrpcChannel())\n    .withCallCredentials(new ClarifaiCallCredentials(\"YOUR_CLARIFAI_API_KEY\"));\n```\n\n\u003e Alternatives to the encrypted gRPC channel (`ClarifaiChannel.INSTANCE.getGrpcChannel()`) are:\n\u003e - the HTTPS+JSON channel (`ClarifaiChannel.INSTANCE.getJsonChannel()`), and\n\u003e - the unencrypted gRPC channel (`ClarifaiChannel.INSTANCE.getInsecureGrpcChannel()`).\n\u003e\n\u003e We only recommend them in special cases.\n\n\nPredict concepts in an image:\n\n```java\nimport com.clarifai.credentials.ClarifaiCallCredentials;\nimport com.clarifai.grpc.api.*;\nimport com.clarifai.grpc.api.status.StatusCode;\n\n...\n\nMultiOutputResponse response = stub.postModelOutputs(\n    PostModelOutputsRequest.newBuilder()\n        .setModelId(\"aaa03c23b3724a16a56b629203edc62c\")\n        .addInputs(\n            Input.newBuilder().setData(\n                Data.newBuilder().setImage(\n                    Image.newBuilder().setUrl(\"YOUR_IMAGE_URL\")\n                )\n            )\n        )\n        .build()\n);\n\nif (response.getStatus().getCode() != StatusCode.SUCCESS) {\n  throw new RuntimeException(\"Request failed, status: \" + response.getStatus());\n}\n\nfor (Concept c : response.getOutputs(0).getData().getConceptsList()) {\n  System.out.println(String.format(\"%12s: %,.2f\", c.getName(), c.getValue()));\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclarifai%2Fclarifai-java-grpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclarifai%2Fclarifai-java-grpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclarifai%2Fclarifai-java-grpc/lists"}