Venice AI Python SDK v1.2.0
🎉 Venice AI Python SDK v1.2.0
Major Features
💰 Cost Management & Estimation
- New
venice_ai.costsmodule for calculating and estimating API usage costs - Support for both USD and VCU (Venice Compute Units)
get_model_pricing()method to fetch model pricing information
🧠 Enhanced Chat Completions
- Web search integration with citation support
- Reasoning/thinking controls for supported models
- Advanced sampling parameters (logit_bias, parallel_tool_calls, dynamic temperature)
📦 Dependency Optimization
tiktokenis now optional (install withpip install venice-ai[tokenizers])- Moved heavy dependencies to dev-only, resulting in a leaner production package
Breaking Changes
- Model type structure refactored (metadata consolidated under
model_spec) - Chat responses now use Pydantic models instead of TypedDict
Other Improvements
- Project status upgraded to Production/Stable
- Complete test suite overhaul
- Enhanced type safety throughout
See the CHANGELOG for complete details.
Installation
# Lean install (recommended)
pip install venice-ai==1.2.0
# With token counting
pip install venice-ai[tokenizers]==1.2.0