DeepSeek R1 (Basic)
deepseek-ai/DeepSeek-R1
Overview
DeepSeek R1 is a powerful reasoning model designed for complex problem-solving and advanced coding tasks, going beyond simple code regurgitation. It utilizes reinforcement learning built upon the foundation of DeepSeek V3 to refine its reasoning capabilities. R1 employs a chain-of-thought approach, thinking through problems before generating a response, making it suitable for tasks requiring high-level cognitive operations and structured solutions. It is presented as a competitor to models like OpenAI's o1, excelling in logic-heavy questions and maintaining context over long interactions.
Tags
CentML Optimized
Chat
Dedicated
LLM
Serverless
API
curl -X POST "https://api.centml.com/openai/v1/chat/completions" \
-H "Authorization: Bearer *******************************************" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-ai/DeepSeek-R1",
"messages": [{ "role": "system", "content": "You are a helpful assistant." }],
"stream": false
}'
from openai import OpenAI
client = OpenAI(
api_key="*******************************************",
base_url="https://api.centml.com/openai/v1"
)
completion = client.chat.completions.create(
model="deepseek-ai/DeepSeek-R1",
messages=[{ "role": "system", "content": "You are a helpful assistant." }],
stream=False,
)
print(completion.choices[0].message)
import OpenAI from "openai";
const client = new OpenAI(
api_key="*******************************************",
base_url="https://api.centml.com/openai/v1"
)
async function main() {
const completion = await client.chat.completions.create({
model: "deepseek-ai/DeepSeek-R1",
messages: [{ "role": "system", "content": "You are a helpful assistant." }],
stream: false,
});
console.log(completion.choices[0])
}
main()