{"library":"genai-prices","type":"library","category":null,"description":"genai-prices is a Python library for calculating the cost of interacting with various Large Language Model (LLM) inference APIs. It aggregates pricing information from major providers like OpenAI, Anthropic, Google, AWS Bedrock, and more. The library is actively maintained by Pydantic, with frequent minor releases (typically weekly or bi-weekly) to keep pricing data and model definitions up-to-date.","language":"python","status":"active","version":"0.0.56","tags":["AI","LLM","pricing","cost","models","generative-ai"],"last_verified":"Wed May 20","install":[{"cmd":"pip install genai-prices","imports":["from genai_prices import get_model_price","from genai_prices import TokenUsage","from genai_prices import ModelInfo"]}],"homepage":"https://genaiprices.com","github":"https://github.com/pydantic/genai-prices","docs":null,"changelog":"https://github.com/pydantic/genai-prices/releases","pypi":"https://pypi.org/project/genai-prices/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":50,"avg_install_s":3.8,"avg_import_s":null,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/genai-prices/compatibility"}}