DeepSeek-R1 Distill Llama 8B

DEEPSEEK_R1

Reasoning-focused language model with chain-of-thought output.

Text GenerationllmdeepseekreasoningFine-tunableRAG
DeepSeek-R1 Distill Llama 8B: Text Generation model on Kainguru

About DeepSeek-R1 Distill Llama 8B

DeepSeek-R1 Distill Llama 8B — a reasoning-focused language model with chain-of-thought output. Takes a text prompt (with an optional system prompt) and returns a generated response containing the final answer, its reasoning trace, and a finish reason.

Capabilities

  • Chain-of-thought reasoning — prompt (optionally with system_prompt) returns both the final answer and its reasoning trace
  • Extended output budget — max_new_tokens supports up to 32768 tokens for long reasoning chains
  • Sampling control — temperature, top_p, and do_sample shape output diversity
  • Reproducible outputs — fix generation with seed

DeepSeek-R1 Distill Llama 8B inputs and output

NameTypeRequiredDefaultDetails
prompttextYes—User prompt for the reasoning task.
Min 1 characters
system_prompttextNo—System-level instruction prepended before the user prompt.
max_new_tokensintegerNo4096Maximum number of tokens to generate.
1–32768
temperaturenumberNo0.6Sampling temperature.
0–2
top_pnumberNo0.95Cumulative probability threshold for nucleus sampling.
0–1
do_samplebooleanNotrueWhether to use sampling; if false, greedy decoding is used.
seedintegerNo—Random seed for reproducibility.

Output. Generated reasoning response containing text (final answer), thoughts (chain-of-thought), and finish_reason.

Run DeepSeek-R1 Distill Llama 8B with the API

Send your API key in the X-API-Key header. The run is asynchronous: submit it, then poll it until it finishes. Create an API key.

cURL
curl -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=DEEPSEEK_R1" \
  -H "X-API-Key: kg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "Solve step by step: if a train travels 60 km in 45 minutes, what is its speed in km/h?",
    "do_sample": true,
    "max_new_tokens": 4096,
    "temperature": 0.6,
    "top_p": 0.95
  },
  "outputFormat": "json"
}'

# Poll until the execution reaches a terminal state
curl "https://api.kainguru.com/api/v1/executions/{executionId}" \
  -H "X-API-Key: kg_your_api_key"
Python
from kainguru import KainguruClient

with KainguruClient(api_key="kg_your_api_key", base_url="https://api.kainguru.com/api") as client:
    submitted = client.executions.execute(
        "DEEPSEEK_R1",
        {
          "prompt": "Solve step by step: if a train travels 60 km in 45 minutes, what is its speed in km/h?",
          "do_sample": True,
          "max_new_tokens": 4096,
          "temperature": 0.6,
          "top_p": 0.95
        },
        output_format="json",
    )
    result = client.executions.await_completion(submitted.id)
    print(result.execution.output)

Fine-tune DeepSeek-R1 Distill Llama 8B

You can fine-tune DeepSeek-R1 Distill Llama 8B on your own data and run the tuned model through the same API. Dataset: JSONL file(s): one JSON object per line, either {"text": "..."} or {"prompt": "...", "response": "..."}.

DeepSeek-R1 Distill Llama 8B also supports retrieval-augmented generation.

The steps are in the docs.

DeepSeek-R1 Distill Llama 8B pricing

Price per 1M tokens: 950 credits ($9.50). The price is shown again before every run; all prices are on the pricing page.

Licence and source

DeepSeek-R1-0528 Qwen3 8B: Text Generation model on Kainguru
Text Generation

DeepSeek-R1-0528 Qwen3 8B

DeepSeek-R1-0528 Qwen3 8B, a reasoning model for maths, code and science that works through a problem step by step…

Fine-tunable
Gemma 4 E2B: Text Generation model on Kainguru
Text Generation

Gemma 4 E2B

Small multimodal language model that takes text, image, audio and video input.

Fine-tunable
Gemma 4 12B IT: Text Generation model on Kainguru
Text Generation

Gemma 4 12B IT

Google Gemma 4 12B, a multilingual assistant for chat, writing, code and maths in over 140 languages, that can reason…

Fine-tunable
Gemma 4 31B IT: Text Generation model on Kainguru
Text Generation

Gemma 4 31B IT

Gemma 4 31B, Google's open assistant for chat, reasoning, writing and code in over 35 languages, that thinks step by…

Fine-tunable
MiniCPM5 2B: Text Generation model on Kainguru
Text Generation

MiniCPM5 2B

MiniCPM5 2B, a small English and Chinese assistant for chat, code, maths and long documents, that can reason step by…

Fine-tunable
Qwen3.5 2B: Text Generation model on Kainguru
Text Generation

Qwen3.5 2B

Qwen3.5 2B, a small assistant for chat, writing, summaries and code in about 200 languages, Azerbaijani included, that…

Fine-tunable