{"library":"deepseek","type":"library","category":null,"description":"DeepSeek has NO official Python SDK. The correct integration pattern is using the openai package with base_url='https://api.deepseek.com'. The deepseek PyPI package (1.0.0) is a stub placeholder — do not use it. DeepSeek API is fully OpenAI-compatible. Two primary models: deepseek-chat (V3.2, general purpose) and deepseek-reasoner (R1, chain-of-thought reasoning).","language":"python","status":"active","version":"API only — no SDK version","tags":["deepseek","llm","openai-compatible","python","r1","v3","reasoning"],"last_verified":"Tue Jun 09","install":[{"cmd":"pip install openai","imports":["from openai import OpenAI\nimport os\n\nclient = OpenAI(\n    api_key=os.environ['DEEPSEEK_API_KEY'],\n    base_url='https://api.deepseek.com'\n)\n\nresponse = client.chat.completions.create(\n    model='deepseek-chat',\n    messages=[\n        {'role': 'system', 'content': 'You are a helpful assistant'},\n        {'role': 'user', 'content': 'Hello'}\n    ],\n    stream=False\n)\nprint(response.choices[0].message.content)","from openai import OpenAI\n\nclient = OpenAI(\n    api_key='DEEPSEEK_API_KEY',\n    base_url='https://api.deepseek.com'\n)\n\nresponse = client.chat.completions.create(\n    model='deepseek-reasoner',  # R1 thinking model\n    messages=[{'role': 'user', 'content': 'Solve: 2x + 5 = 13'}]\n)\n# Access reasoning content separately\nreasoning = response.choices[0].message.reasoning_content\nanswer = response.choices[0].message.content\nprint(reasoning)\nprint(answer)"]}],"homepage":"https://deepseek.com","github":"https://github.com/deskpai/deepseek","docs":null,"changelog":null,"pypi":"https://pypi.org/project/deepseek/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":5.2,"avg_import_s":1.89,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/deepseek/compatibility"}}