> ## Documentation Index
> Fetch the complete documentation index at: https://docs.simplismart.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# DeepSeek V3 API

> Create a chat completion for given messages with streaming support



## OpenAPI

````yaml openapi-specs/playground/deepseek-v3.yaml POST /chat/completions
openapi: 3.1.0
info:
  title: DeepSeek V3 API
  description: >
    Mixture-of-Experts (MoE) language model with 671B total parameters and 37B

    activated parameters per token. Adopts Multi-head Latent Attention (MLA) and

    DeepSeekMoE architectures for efficient inference and training, pre-trained
    on

    14.8 trillion tokens.
  version: 1.0.0
servers:
  - url: https://api.simplismart.live
    description: Production LLM Proxy Server
security:
  - BearerAuth: []
tags:
  - name: Chat Completion
    description: Large Language Model chat completion services
paths:
  /chat/completions:
    post:
      tags:
        - Chat Completion
      summary: Create chat completion with DeepSeek V3
      description: Create a chat completion for given messages with streaming support
      operationId: createChatCompletionDeepSeekV3
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                messages:
                  type: array
                  description: Array of messages in the conversation
                  items:
                    type: object
                    properties:
                      role:
                        type: string
                        enum:
                          - system
                          - user
                          - assistant
                        description: The role of the message sender
                      content:
                        type: string
                        description: The content of the message
                    required:
                      - role
                      - content
                model:
                  type: string
                  description: Model identifier
                  enum:
                    - deepseek-v3
                  default: deepseek-v3
                stream:
                  type: boolean
                  description: Whether to stream the response
                  default: false
                temperature:
                  type: number
                  description: Sampling temperature
                  minimum: 0
                  maximum: 2
                  default: 0.7
                max_tokens:
                  type: integer
                  description: Maximum number of tokens to generate
                  minimum: 1
                  maximum: 4096
                  default: 1024
                top_p:
                  type: number
                  description: Nucleus sampling parameter
                  minimum: 0
                  maximum: 1
                  default: 0.95
                stop:
                  type: array
                  description: Sequences where the API will stop generating
                  items:
                    type: string
                  nullable: true
              required:
                - messages
                - model
            example:
              model: deepseek-v3
              messages:
                - role: user
                  content: what is 2+2?
              max_tokens: 1024
              stream: false
      responses:
        '200':
          description: Successful chat completion
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Unique identifier for the completion
                  model:
                    type: string
                  object:
                    type: string
                    example: chat.completion
                  choices:
                    type: array
                    items:
                      type: object
                      properties:
                        index:
                          type: integer
                          description: Index of the choice
                        message:
                          type: object
                          properties:
                            role:
                              type: string
                              example: assistant
                            content:
                              type: string
                              description: Generated text content
                        finish_reason:
                          type: string
                          enum:
                            - stop
                            - length
                            - content_filter
                          description: Reason for finishing the generation
                  usage:
                    type: object
                    properties:
                      prompt_tokens:
                        type: integer
                      completion_tokens:
                        type: integer
                      total_tokens:
                        type: integer
              example:
                id: gen-1796039412-N6WN5T21Sjj51J1XOETR
                model: deepseek/deepseek-chat-v3.1
                object: chat.completion
                choices:
                  - index: 0
                    finish_reason: stop
                    message:
                      role: assistant
                      content: |-
                        That's a classic! 

                        2 + 2 equals **4**.
                usage:
                  prompt_tokens: 11
                  completion_tokens: 15
                  total_tokens: 26
        '400':
          description: Invalid request parameters
        '401':
          description: Unauthorized - Invalid token
        '500':
          description: Internal server error
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT token for authentication

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.