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

# deepseek-v4.1-flash

> Model details for deepseek-v4.1-flash. Reasoning, coding, and agentic workflows with a 1M-token context window.

> DeepSeek's DeepSeek-V4.1-Flash is an open-weight sparse Mixture-of-Experts model and the first built on DeepSeek's Causal Encoder-Decoder (CED) architecture, activating 8B parameters on input and 16B on output, served on ZeroGPU for general text generation. It keeps the 1,048,576-token (1M) context window of the V4 Flash line, which suits large codebases, long documents, extended conversations, and multi-step agent tasks, and supports function calling alongside both fast non-thinking replies and higher-effort reasoning.

**References:** [Model docs](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash) • [Terms](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash/blob/main/LICENSE) • [Privacy](https://zerogpu.ai/privacy-policy)


## OpenAPI

````yaml api-reference/openapi/playgrounds/deepseek-v4_1-flash.openapi.json POST /responses
openapi: 3.1.0
info:
  title: deepseek-v4.1-flash playground
  version: '1.0'
  description: >-
    Interactive playground for **deepseek-v4.1-flash**.

    Model is always `deepseek-v4.1-flash` on this page (shown in the form, not
    editable).

    Use the **request example** selector to switch use cases (JSON, NER, PII,
    etc.).

    Authentication: `x-api-key` (required) and `x-project-id` (optional).
servers:
  - url: https://api.zerogpu.ai/v1
    description: Production
security:
  - ApiKey: []
paths:
  /responses:
    post:
      tags:
        - deepseek-v4.1-flash
      summary: 'deepseek-v4.1-flash: Responses'
      operationId: createResponse_deepseek-v4_1-flash
      parameters:
        - name: x-project-id
          in: header
          required: false
          schema:
            type: string
          description: >-
            Optional project identifier. Scopes the request to a specific
            project when provided.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              allOf:
                - $ref: '#/components/schemas/CreateResponseRequest'
                - type: object
                  properties:
                    model:
                      type: string
                      const: deepseek-v4.1-flash
                      default: deepseek-v4.1-flash
                      example: deepseek-v4.1-flash
                      description: >-
                        Model identifier (fixed for this playground). Use
                        request examples to change use cases.
            examples:
              default:
                summary: Default
                value:
                  input: Hello!
                  model: deepseek-v4.1-flash
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '420':
          description: Insufficient quota
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
components:
  schemas:
    CreateResponseRequest:
      type: object
      required:
        - model
        - input
      properties:
        model:
          type: string
          const: deepseek-v4.1-flash
          default: deepseek-v4.1-flash
          example: deepseek-v4.1-flash
          description: >-
            Model identifier (fixed for this playground). Use request examples
            to change use cases.
        input:
          type: string
          minLength: 1
          format: textarea
          maxLength: 131072
          description: Multi-line text or document content to send to the model.
        instructions:
          type: string
        max_tokens:
          type: integer
          minimum: 1
          example: 800
          description: Maximum number of tokens to generate in the response.
        metadata:
          type: object
          additionalProperties: true
    Response:
      type: object
      additionalProperties: true
    ErrorResponse:
      type: object
      additionalProperties: true
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key

````