clarifai-grpc
Clarifai gRPC API Client
What it is and what it does
Clarifai-grpc is the official Python client for Clarifai's AI platform, wrapping the gRPC API to let developers call computer vision and natural language processing models from Python code. It handles authentication, request marshalling, and response parsing for tasks like image classification, object detection, and text analysis. The library version tracks the backend API version (first two numbers) with independent patch releases for library improvements.
You construct a V2Stub object using ClarifaiChannel to access all API functionality, then build and send requests using protobuf message types. The library supports encrypted gRPC, HTTPS+JSON, and unencrypted gRPC channels, though the encrypted channel is recommended for production. Authentication is credential-based (API key) passed as gRPC metadata.
Use it for:
- Classify images using Clarifai's general-image-recognition model or custom trained models.
- Extract concepts and tags from images or video frames in batch processing workflows.
- Build AI-powered content moderation or tagging systems integrated with Clarifai's models.
- Perform natural language processing tasks via Clarifai's text models in Python applications.
- Integrate Clarifai's pre-trained models into data science pipelines for computer vision tasks.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A gRPC client library for the Clarifai AI platform, enabling Python developers to call computer vision and natural language processing models via the Clarifai API.
Yes, if you need to call Clarifai's AI models from Python. The library is actively maintained, has low install friction, carries a permissive license, and requires no known security patches. It is the official client and the primary way to access Clarifai's API from Python. Install it only if you have a Clarifai account and API credentials.
Install
clarifai-grpc on PyPI
pip
pip install clarifai-grpcuv
uv add clarifai-grpcpoetry
poetry add clarifai-grpcInstalling clarifai-grpc
Before you install
Low install friction with a pure-Python wheel distribution. Actively maintained with a release within the last month. Requires grpcio, protobuf, and googleapis-common-protos as runtime dependencies, all standard gRPC ecosystem packages.
License in practice
Licensed under Apache 2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions.
Quickstart
pip install clarifai-grpc
from clarifai_grpc.channel.clarifai_channel import ClarifaiChannel
from clarifai_grpc.grpc.api import service_pb2_grpc
stub = service_pb2_grpc.V2Stub(ClarifaiChannel.get_grpc_channel())
Requires a Clarifai API key and application ID; setuptools >= 40.7.1 may be needed if grpcio wheel build fails during installation.
Verify before relying
- Whether the library maintains backward compatibility across API version updates, given its non-semantic versioning scheme.
- Performance characteristics and latency expectations for typical inference requests.
- Rate limiting and quota behavior when calling the Clarifai API.
Package facts
| License | Apache 2.0 (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — grpcio, protobuf, googleapis-common-protos |
| Maintenance | actively maintained — 31 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 157,943/month — #10,740 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: clarifai_grpc-12.6.0-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
clarifaiOfficial Python client for Clarifai's AI…
permissive · top 15,000 on PyPI
clarifai-protocolProvides the protocol layer for Clarifai's…
permissive · top 15,000 on PyPI
nebiusClient library for Nebius AI Cloud services…
unclear · top 5,000 on PyPI
yagrcYagrc is a gRPC reflection client that lets you…
permissive · top 15,000 on PyPI
grpclibgrpclib is a pure-Python asyncio-based…
permissive · top 1,000 on PyPI
tritonclienttritonclient is a Python client library for…
permissive · top 5,000 on PyPI
grpc-requestsA Python client library that uses gRPC…
permissive · top 15,000 on PyPI
grpcio-adminExposes debugging and monitoring services for…
permissive · top 15,000 on PyPI
hindsight-clientA Python client library for interacting with…
permissive · top 15,000 on PyPI
grpcio-channelzProvides live debugging and introspection of…
permissive · top 15,000 on PyPI