{"library":"cohere","type":"library","category":null,"description":"Official Python SDK for Cohere API. Has two coexisting client classes: Client (v1, legacy) and ClientV2 (v2, current). Most LLM-generated code uses v1 patterns. The Generate endpoint is deprecated. model is now required in all v2 calls.","language":"python","status":"active","version":"5.20.4","tags":["cohere","llm","chat","embeddings","rerank","rag","command"],"last_verified":"Tue Jun 09","install":[{"cmd":"pip install cohere","imports":["import cohere; co = cohere.ClientV2()","response.message.content[0].text","messages=[{'role': 'system', 'content': '...'}, {'role': 'user', 'content': '...'}]","import cohere; co = cohere.AsyncClientV2()"]},{"cmd":"uv add cohere","imports":[]}],"homepage":"https://cohere.com","github":"https://github.com/cohere-ai/cohere-python","docs":null,"changelog":null,"pypi":"https://pypi.org/project/cohere/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":50,"avg_install_s":8.1,"avg_import_s":null,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/cohere/compatibility"}}