gigachat
GigaChat. Python-library for GigaChat API
What it is and what it does
GigaChat is a Python SDK that wraps the GigaChat REST API, a large language model service. It provides a typed, Pydantic V2-based interface for chat completions, streaming responses, text embeddings, function calling (tool use), and vision capabilities. The library supports both synchronous and asynchronous operations, making it suitable for integration into synchronous scripts, async applications, or frameworks like LangChain through the official langchain-gigachat integration.
The SDK handles authentication through multiple methods (OAuth, password, TLS certificates, access tokens), includes automatic retry logic with configurable exponential backoff, and offers token counting to estimate usage before making requests. It requires Python 3.8 or later and depends on httpx for HTTP operations and pydantic for data validation. The library is actively maintained and marked as production-stable.
Use it for:
- Build chatbots or conversational agents that stream responses in real-time to users.
- Generate vector embeddings for text to power semantic search or similarity-based retrieval systems.
- Create agents that call external functions or tools by leveraging the function-calling capability.
- Integrate GigaChat into LangChain workflows using the official langchain-gigachat integration.
- Analyze images or multimodal content using the vision capabilities of the model.
- Estimate token usage before making API requests to manage costs and request planning.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python SDK for the GigaChat REST API, a large language model, providing chat completions, streaming, embeddings, function calling, and vision capabilities with synchronous and asynchronous support.
Yes. The package is actively maintained, has low install friction, carries a permissive MIT license, and supports modern Python versions (3.8–3.13). It offers a complete, typed interface to a production-grade LLM service with no known vulnerabilities. Install it if you need to integrate GigaChat into a Python application.
Install
gigachat on PyPI
pip
pip install gigachatuv
uv add gigachatpoetry
poetry add gigachatInstalling gigachat
Before you install
Low install friction with a pure-wheel distribution and only three runtime dependencies (httpx, pydantic, pydantic-settings). Actively maintained with a recent release 14 days ago and ongoing repository activity.
License in practice
MIT license permits commercial and private use with minimal restrictions, making it suitable for most projects without licensing concerns.
Quickstart
pip install gigachat
from gigachat import GigaChat
with GigaChat(credentials="<key>", model="GigaChat-2") as client:
response = client.chat.create("Hello, GigaChat!")
print(response.messages[0].content[0].text)
Requires GigaChat authorization credentials and a model specification; TLS certificate setup recommended for production use.
Verify before relying
- Whether the SDK's automatic retry mechanism with exponential backoff is configurable and what the default retry limits are.
- Performance characteristics and rate limits when handling large batches of embeddings or concurrent requests.
- Specific details on which image formats and sizes are supported for vision/multimodal operations.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4,>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — httpx, pydantic-settings, pydantic |
| Maintenance | actively maintained — 14 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 142,955/month — #11,192 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: gigachat-0.2.3-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
reka-apiProvides a Python client library for accessing…
permissive · top 15,000 on PyPI
unique-toolkitProvides high-level abstractions and services…
unclear · top 15,000 on PyPI
ai21Python SDK for accessing AI21 Labs' language…
unclear · top 15,000 on PyPI
ollamaProvides a Python client to interact with…
permissive · top 5,000 on PyPI
zai-sdkOfficial Python SDK for Z.ai's large model…
unclear · top 15,000 on PyPI
xai-sdkOfficial Python SDK for xAI's APIs, providing…
permissive · top 5,000 on PyPI
mistralaiPython client SDK for the Mistral AI API,…
unclear · top 1,000 on PyPI
zhipuaiOfficial Python SDK for ZhipuAI's large model…
unclear · top 15,000 on PyPI
writer-sdkPython client library for the Writer REST API,…
permissive · top 15,000 on PyPI
qianfanPython SDK for Baidu Qianfan large language…
permissive · top 15,000 on PyPI