It looks like you may prefer a different language. Switch anytime.

Text DeepSeek

DeepSeek API

Korzystaj z API DeepSeek przez RunAPI z model skillem, wspólnym uwierzytelnianiem i cennikiem pay-as-you-go.

runapi.ai
# Base URL
https://runapi.ai

# Endpoints
POST /v1/chat/completions
POST /v1/responses
POST /v1/messages
POST /v1beta/models/{model}:generateContent
POST /v1beta/models/{model}:streamGenerateContent
curl https://runapi.ai/v1/chat/completions \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "deepseek-v4-flash-vision-exp",
  "messages": [
    {
      "role": "user",
      "content": "Refactor this Python module for readability, explain each change, then add unit tests for the edge cases."
    }
  ]
}'
from openai import OpenAI

client = OpenAI(
    base_url="https://runapi.ai/v1",
    api_key="your-runapi-key"
)

response = client.chat.completions.create(
    model="deepseek-v4-flash-vision-exp",
    messages=[{"role": "user", "content": "Refactor this Python module for readability, explain each change, then add unit tests for the edge cases."}]
)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://runapi.ai/v1",
  apiKey: "your-runapi-key"
});

const response = await client.chat.completions.create({
  model: "deepseek-v4-flash-vision-exp",
  messages: [{ role: "user", content: "Refactor this Python module for readability, explain each change, then add unit tests for the edge cases." }]
});
https://runapi.ai 5 endpoints
OVERVIEW

O DeepSeek

DeepSeek is a family of reasoning-first language models. deepseek-v4-flash is the fast, low-cost tier with an optional thinking mode; deepseek-v4-pro targets the hardest reasoning and agentic workloads; deepseek-v4-flash-vision-exp is the experimental vision variant for image input. All three are available through RunAPI with one key and per-token billing.

Dostawca
DeepSeek
Modalność
Text

Endpointy API DeepSeek

EndpointProtocol
POST /v1/chat/completionsOpenAI compatible
POST /v1/responsesOpenAI Responses
POST /v1/messagesAnthropic compatible
POST /v1beta/models/{model}:generateContentGemini generateContent
POST /v1beta/models/{model}:streamGenerateContentGemini streamGenerateContent

Porównaj wszystkie warianty API

Wariant Rozliczenia Cennik
deepseek-v4-flash 1K tokens Input $0.22 / 1M tokens | Output $0.66 / 1M tokens Zobacz →
deepseek-v4-flash-vision-exp 1K tokens Input $0.22 / 1M tokens | Output $0.66 / 1M tokens Zobacz →
deepseek-v4-pro 1K tokens Input $0.66 / 1M tokens | Output $1.98 / 1M tokens Zobacz →
PRICING

Cennik DeepSeek

Endpoint Rozdzielczość Czas trwania Cena
chat_completion Input $0.22 / 1M tokens | Output $0.66 / 1M tokens
message Input $0.22 / 1M tokens | Output $0.66 / 1M tokens

Ceny podane dla deepseek-v4-flash. Pozostałe warianty mają własne cenniki endpointów.

Integracja agentów

Uruchamiaj DeepSeek z agenta

JAK TO DZIAŁA

Zacznij korzystać z DeepSeek

  1. Wybierz model

    Wybierz model i wariant pasujące do typu wyjścia, progu jakości i celu opóźnienia.

  2. Konfiguracja

    Ustaw klucz RunAPI i zainstaluj model skill w workspace kodu.

  3. Implementacja

    Użyj instrukcji skilla, aby dodać funkcję modelu w swojej aplikacji.

  4. Odbiór

    Odpytuj po task ID, streamuj gdy wspierane albo obsłuż callback webhook.

CONTEXT

Czym jest API DeepSeek?

DeepSeek models are large language models tuned for reasoning, code, and agentic tool use. Through RunAPI they share a single API key with pay-as-you-go token billing, and are callable from both the OpenAI and Anthropic SDKs.

Dostawca
DeepSeek
Zobacz wszystko →
Modalność
Text
Przeglądaj modele →

Dlaczego używać API DeepSeek przez RunAPI

Jedno uwierzytelnienie, wszyscy providerzy

Jeden klucz RunAPI odblokowuje cały katalog. Bez osobnych kont i rotacji kluczy dla każdej integracji.

Ujednolicony cennik i rozliczenia

Rozliczanie za wywołanie w USD, fakturowane co miesiąc. Nieudane generacje nie są naliczane.

Skill ze schematami

Typowane schematy i notatki setupu są spakowane w model skill, więc implementacja startuje od właściwego kontraktu.

Pytania o DeepSeek

What is the difference between deepseek-v4-flash and deepseek-v4-pro?

Flash is the fast, low-cost tier for everyday tasks; pro targets the most complex reasoning and long agentic workflows at a higher token price.

How do I turn on thinking (reasoning) mode?

Thinking is a request parameter on deepseek-v4-flash, not a separate model — set it per request when you want step-by-step reasoning.

Can I call DeepSeek with both the OpenAI and Anthropic SDKs?

Yes. DeepSeek is available on both the OpenAI Chat Completions and the Anthropic Messages surfaces; point either SDK at RunAPI and pass the deepseek model id.

How are cached prompt tokens billed?

Cached prompt tokens bill at a much lower cache-read rate than fresh input tokens; cache hits are detected automatically and reflected in usage.

Which DeepSeek variants should I use?

Use deepseek-v4-flash for fast everyday work and deepseek-v4-pro for more complex reasoning and agentic workflows; use deepseek-v4-flash-vision-exp for image input.

Od jakiego wariantu powinienem zacząć?

Wybierz najtańszy wariant, który spełnia Twoje wymagania jakościowe. Większość zespołów zaczyna od szybkiego wariantu, a do produkcji przechodzi na pro.

PODOBNE MODELE

Jeśli podoba Ci się API DeepSeek, wypróbuj też te

Zacznij budować z API DeepSeek.