Semua model
DeepSeekTersedia128K context

DeepSeek R1

DeepSeek R1 tersedia di Hostlinku lewat satu API yang kompatibel dengan OpenAI.

Harga · per 1M token
USD
Input / 1M token$0.55
Output / 1M token$2.19

Contoh: 1M masuk / 1M keluar

$2.74

Tentang DeepSeek R1

DeepSeek R1 tersedia di Hostlinku lewat satu API yang kompatibel dengan OpenAI.

Contoh kode

Hubungi DeepSeek R1 lewat OpenAI SDK — cukup arahkan base URL ke Hostlinku dan gunakan kunci API kamu.

example.ts
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.hostlinku.dev/v1",
  apiKey: process.env.HOSTLINKU_API_KEY,
});

const reply = await client.chat.completions.create({
  model: "deepseek-reasoner",
  messages: [
    { role: "system", content: "You are a helpful assistant." },
    { role: "user", content: "Halo, DeepSeek R1!" },
  ],
});

console.log(reply.choices[0].message.content);
example.py
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.hostlinku.dev/v1",
    api_key=os.environ["HOSTLINKU_API_KEY"],
)

reply = client.chat.completions.create(
    model="deepseek-reasoner",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Halo, DeepSeek R1!"},
    ],
)

print(reply.choices[0].message.content)
terminal
curl https://api.hostlinku.dev/v1/chat/completions \
  -H "Authorization: Bearer $HOSTLINKU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-reasoner",
    "messages": [
      { "role": "user", "content": "Halo, DeepSeek R1!" }
    ]
  }'

Pertanyaan yang sering diajukan

Model lain dari DeepSeek

Model serupa

Model lain dari DeepSeek yang bisa kamu pakai tanpa mengubah kode.

Lihat semua

DeepSeek-V4.1-Flash

DeepSeek

256K ctx

DeepSeek-V4.1-Flash — cepat dan hemat.

texttool-callingfunction-callingstructured-outputs+7
fastbudget
$0.30/M masuk·$1.20/M keluar
Lihat
DeepSeekDeepSeek

DeepSeek-V4-Pro

DeepSeek

256K ctxUnggulan

DeepSeek-V4-Pro — penalaran kuat dengan biaya efisien.

texttool-callingfunction-callingstructured-outputs+7
flagshipreasoning
$0.60/M masuk·$2.40/M keluar
Lihat
DeepSeekDeepSeek