DeepSeek API (OpenAI Compatible)
DeepSeek provides high-performance models (V3, R1) for free for initial development and offers generous monthly token allowances.
🚀 Key Specs
- Model Support: DeepSeek-V3, DeepSeek-Chat, DeepSeek-Coder.
- Initial Free Credits: Usually 1M~3M Initial Tokens during trial period.
- Cost: Extremely low (among the cheapest in the industry for paid usage if credits run out).
- Style: Fully OpenAI API compatible.
🗝 How to get an API Key
- Visit DeepSeek Platform (platform.deepseek.com).
- Register and go to API Keys.
- Create a secret key.
🛠 Usage Example (Python/OpenAI Library)
from openai import OpenAI
client = OpenAI(
api_key="<DeepSeek API Key>",
base_url="https://api.deepseek.com"
)
response = client.chat.completions.create(
model="deepseek-chat",
messages=[{"role": "user", "content": "Tell me a joke about AI."}],
stream=False
)
print(response.choices[0].message.content)