DeepSeek API on Novita AI

Build your next idea.With DeepSeek

Reason, code, create, and understand documents. Find the right DeepSeek model for your task. Start building with one API.

  • OpenAI-compatible
  • Pay per token
  • Flexible model choice
DeepSeek model versions
9
Max. context window
1M
Core use cases
4
Serverless. No GPUs to manage.
Pay as you go

Built for your next task

What will you build with DeepSeek?

Start with your task. Find your model.

The DeepSeek collection

A model for every kind of task.

Explore all models

All models · 9 versions · Showing 6

  • DeepSeek V4.1 FlashEveryday choice

    DeepSeek V4.1 Flash

    deepseek/deepseek-v4.1-flash

    Text and image input with chat, reasoning, and tool calling. A versatile starting point for everyday tasks.

    • General chat
    • Image understanding
    • Tool calling
    Context
    1M
    Max output
    384K
    Input
    $0.3
    Output
    $1.2
  • DeepSeek V4.1 Flash 10171017 version

    DeepSeek V4.1 Flash 1017

    deepseek/deepseek-v4.1-flash-1017

    The 1017 version of V4.1 Flash, with text and image input for chat and multimodal understanding.

    • Text & images
    • Tool calling
    • 1017 version
    Context
    1M
    Max output
    384K
    Input
    $0.3
    Output
    $1.2
    Details & playground: DeepSeek V4.1 Flash 1017
  • DeepSeek V4 Pro 08130813 version

    DeepSeek V4 Pro 0813

    deepseek/deepseek-v4-pro-0813

    The 0813 version of V4 Pro, with reasoning, structured output, and tool calling. Compare it with other Pro versions.

    • Complex reasoning
    • Tool calling
    • 0813 version
    Context
    1M
    Max output
    384K
    Input
    $1.32
    Output
    $3.96
    Details & playground: DeepSeek V4 Pro 0813
  • DeepSeek V4 Flash 0731Coding & agents

    DeepSeek V4 Flash 0731

    deepseek/deepseek-v4-flash-0731

    The 0731 revision of V4 Flash, suited to coding, reasoning, and agent workflows with tool calling.

    • Code generation
    • Agent workflows
    • Long context
    Context
    1M
    Max output
    384K
    Input
    $0.44
    Output
    $1.32
    Details & playground: DeepSeek V4 Flash 0731
  • DeepSeek V4 ProComplex tasks

    DeepSeek V4 Pro

    deepseek/deepseek-v4-pro

    Built for complex coding, mathematical reasoning, and multi-step agents, with long context and structured output.

    • Agentic coding
    • Complex reasoning
    • Tool calling
    Context
    1M
    Max output
    384K
    Input
    $1.6
    Output
    $3.2
  • DeepSeek OCR 2Document specialist

    DeepSeek OCR 2

    deepseek/deepseek-ocr-2

    Extract text and reading order from images and complex documents for search, organization, and knowledge bases.

    • Document recognition
    • Layout understanding
    • Image to text
    Context
    8K
    Max output
    8K
    Input
    $0.03
    Output
    $0.03

USD / 1M tokens · Live pricing from the Novita model catalog.

Not sure where to start? Try Flash for everyday tasks, R1 or Pro for complex reasoning, and OCR 2 for scanned documents.

Less setup. More building.

Your first API call. Start right here.

Use the OpenAI SDK you already know. Connect to the DeepSeek model you need.

  1. 01
    Create a Novita account

    Open the console and create your API key.

  2. 02
    Choose your model

    Copy the model ID and set your API endpoint.

  3. 03
    Make a request. Start building.

    Check your balance and model pricing, then send a request.

Copy code
# pip install openai
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["NOVITA_API_KEY"],
    base_url="https://api.novita.ai/openai",
)

response = client.chat.completions.create(
    model="deepseek/deepseek-v4.1-flash",
    messages=[{"role": "user", "content": "Explain how an API works."}],
    max_tokens=2048,
)
print(response.choices[0].message.content)

OpenAI-compatible API · Set your key via an environment variable

Good questions. Clear answers.

Good to know. Before you build.

Explore the docs
Which DeepSeek model should I choose?

Start with your task: try V4.1 Flash for everyday chat, compare R1 and V4 Pro for complex reasoning, math, and coding, or choose OCR 2 for document recognition. Then evaluate context length, pricing, and results on your own workload.

Does this page include every DeepSeek version?

This page lists every DeepSeek model currently available in the Novita model catalog, including models that run on on-demand deployment. Retired versions are not listed.

Can I use the OpenAI SDK?

Yes. Set base_url to https://api.novita.ai/openai, use your Novita API key, and specify the model ID from its detail page. Support for tool calling, structured output, and other features varies by model.

How does pricing work? Do I need to deploy a model?

Serverless models are billed by token usage, including input and output, with no deployment to manage. Cache-read pricing varies by model. Models marked On-demand deployment run on a dedicated deployment instead; see their model pages for options.

Can I build a knowledge assistant with DeepSeek?

Yes. Use an embedding model to index and retrieve relevant text, then pass the retrieved context to DeepSeek to generate an answer. Scanned documents can go through OCR first. Evaluate answer quality against your own business data.

Your next idea starts here

The right model. Your next big idea.

From your first API call to your next AI application.

Build with DeepSeek