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

# DeepSeek V4 Flash

> 빠르고 저렴한 추론에 최적화된 MoE 모델.

<Info>
  **모델 ID:** `deepseek/deepseek-v4-flash` | **엔드포인트 ID:** `deepseek-v4-flash` | **파라미터:** 284B (MoE, 활성 13B) | **출시일:** 2026-04-24
</Info>

|     입력 가격    |     출력 가격    |   컨텍스트  |    모달리티   |
| :----------: | :----------: | :-----: | :-------: |
| \$0.098 / 1M | \$0.196 / 1M | 131,072 | 텍스트 → 텍스트 |

## 개요

DeepSeek V4 Flash는 DeepSeek의 효율 최적화 Mixture-of-Experts 모델입니다. 총 284B 파라미터 중 토큰당 13B만 활성화해 빠른 응답과 낮은 비용을 제공합니다. 코딩 어시스턴트, 챗봇, 에이전트 워크플로처럼 속도와 비용이 중요한 워크로드에 적합합니다. 최대 131,072 토큰의 컨텍스트를 지원합니다.

<CardGroup cols={3}>
  <Card title="Air API Playground" icon="play" href="https://ap-1.aieev.cloud:3007/ko/models/deepseek%2Fdeepseek-v4-flash">
    플레이그라운드에서 모델을 체험하세요.
  </Card>

  <Card title="AIR Container로 배포" icon="container-storage" href="/docs/ko/air-container/deploy-a-container">
    AIR Container로 배포하세요.
  </Card>

  <Card title="OpenAI 호환 API" icon="arrow-left-right" href="/docs/ko/air-api/openai-compatible-api">
    OpenAI SDK 그대로 연동하세요.
  </Card>
</CardGroup>

## 가격

| 구분  | 입력 (1M 토큰) | 출력 (1M 토큰) |
| :-- | ---------: | ---------: |
| USD |    \$0.098 |    \$0.196 |
| KRW |       147원 |       294원 |

## 지원 기능

모든 기능은 [OpenAI 호환 API](/docs/ko/air-api/openai-compatible-api)로 사용할 수 있습니다.

| 기능                                                                                   |  지원 | 비고                                                                       |
| :----------------------------------------------------------------------------------- | :-: | :----------------------------------------------------------------------- |
| [Streaming](/docs/ko/air-api/openai-compatible-api#streaming)                        |  ✅  | SSE, `include_usage` 지원                                                  |
| [Tool Calling](/docs/ko/air-api/openai-compatible-api#tool-calling-function-calling) |  ✅  | 복수 호출 지원, `parallel_tool_calls`로 제어                                      |
| [Vision](/docs/ko/air-api/openai-compatible-api#vision-이미지-입력)                       |  ❌  | 지원하지 않음                                                                  |
| [Reasoning](/docs/ko/air-api/openai-compatible-api#reasoning-추론-출력)                  |  ✅  | 추론 과정이 `reasoning` 필드로 분리 반환됩니다. `enable_thinking: false`로 비활성화할 수 있습니다. |
| [JSON 모드](/docs/ko/air-api/openai-compatible-api#json-모드-structured-outputs)         |  ✅  | `response_format: json_object`                                           |
| logprobs                                                                             |  ✅  | `logprobs` / `top_logprobs`                                              |

## 주요 기능

* MoE 희소 활성화(284B 중 13B)로 빠르고 저렴한 추론
* 추론(thinking) 지원 — 필요 없을 때는 끌 수 있음
* Tool calling과 JSON 모드 지원
* 코딩·에이전트 워크로드에 최적화

## 활용 사례

### 코딩 어시스턴트

실용적인 개발 작업을 위해 코드를 생성하고 설명합니다.

<CodeGroup>
  ```text 입력 theme={null}
  Write a Python function to check if a number is prime and explain the logic.
  ```

  ```python 출력 theme={null}
  def is_prime(n):
      if n <= 1:
          return False
      for i in range(2, int(n ** 0.5) + 1):
          if n % i == 0:
              return False
      return True

  # This function checks divisibility only up to the square root of n,
  # which improves efficiency.
  ```
</CodeGroup>

### 에이전트 워크플로

<CodeGroup>
  ```text 입력 theme={null}
  Given a list of files in a directory, write a plan to find and delete all files older than 30 days.
  ```

  ```text 출력 theme={null}
  1. List all files with their last-modified timestamps.
  2. Compute the cutoff date (today - 30 days).
  3. Filter files whose modified time is before the cutoff.
  4. Confirm the filtered list, then delete each file.
  5. Log the deleted file names for auditing.
  ```
</CodeGroup>

### 일반 챗

일상적인 대화와 범용 Q\&A를 빠르고 낮은 비용으로 처리합니다.

## 파라미터

| 파라미터                 | 타입               | 필수 | 기본값   | 설명                                  |
| -------------------- | ---------------- | -- | ----- | ----------------------------------- |
| `messages`           | array            | 필수 | -     | 채팅 기반 생성을 위한 입력 메시지 목록.             |
| `max_tokens`         | integer          | 선택 | -     | 생성할 최대 출력 토큰 수                      |
| `temperature`        | number           | 선택 | 1     | 샘플링 온도 (0.0-2.0)                    |
| `top_p`              | number           | 선택 | 1     | 핵 샘플링 임계값                           |
| `top_k`              | integer          | 선택 | -     | 상위 k개의 가장 확률 높은 토큰으로 샘플링 제한         |
| `min_p`              | number           | 선택 | -     | 토큰 샘플링을 위한 최소 확률 임계값                |
| `frequency_penalty`  | number           | 선택 | 0     | 토큰 빈도 페널티                           |
| `presence_penalty`   | number           | 선택 | 0     | 토큰 존재 페널티                           |
| `repetition_penalty` | number           | 선택 | -     | 반복 토큰 생성 페널티                        |
| `stop`               | string \| array  | 선택 | -     | 생성을 종료할 중지 시퀀스                      |
| `seed`               | integer          | 선택 | -     | 재현 가능한 샘플링을 위한 랜덤 시드                |
| `stream`             | boolean          | 선택 | false | 스트리밍 응답 활성화                         |
| `tools`              | array            | 선택 | -     | Tool calling 함수 정의                  |
| `tool_choice`        | string \| object | 선택 | auto  | Tool 호출 방식 (`auto`, `none`, 특정 함수)  |
| `response_format`    | object           | 선택 | -     | JSON 모드 (`{"type": "json_object"}`) |
| `logprobs`           | boolean          | 선택 | false | 토큰별 로그 확률 반환                        |

## 모델 세부정보

| 속성       | 값                                                 |
| -------- | ------------------------------------------------- |
| 컨텍스트 길이  | 131,072                                           |
| 최대 출력 길이 | 131,072                                           |
| 입력 모달리티  | text                                              |
| 출력 모달리티  | text                                              |
| 지원 기능    | tools, reasoning, streaming, json\_mode, logprobs |

## 시작하기

<Steps>
  <Step title="API 키 발급하기">
    [AirCloud 계정](https://aieev.com)에서 API 키를 발급받습니다.
  </Step>

  <Step title="코드 실행하기">
    아래 코드에서 `YOUR_API_KEY` 자리에 실제 발급받은 키를 넣어 실행하세요. 언어별(Python, cURL, Node.js) 코드 예시를 선택할 수 있습니다.
  </Step>
</Steps>

<CodeGroup>
  ```python Python theme={null}
  from openai import OpenAI

  client = OpenAI(
      api_key="YOUR_API_KEY",
      base_url="https://ap-1.aieev.cloud/endpoints/deepseek-v4-flash/v1"
  )

  response = client.chat.completions.create(
      model="deepseek/deepseek-v4-flash",
      messages=[{"role": "user", "content": "안녕하세요!"}]
  )

  print(response.choices[0].message.content)
  ```

  ```bash cURL theme={null}
  curl https://ap-1.aieev.cloud/endpoints/deepseek-v4-flash/v1/chat/completions \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "model": "deepseek/deepseek-v4-flash",
      "messages": [{"role": "user", "content": "안녕하세요!"}]
    }'
  ```

  ```javascript Node.js theme={null}
  import OpenAI from "openai";

  const client = new OpenAI({
    apiKey: "YOUR_API_KEY",
    baseURL: "https://ap-1.aieev.cloud/endpoints/deepseek-v4-flash/v1",
  });

  const response = await client.chat.completions.create({
    model: "deepseek/deepseek-v4-flash",
    messages: [{ role: "user", content: "안녕하세요!" }],
  });

  console.log(response.choices[0].message.content);
  ```
</CodeGroup>

## 태그

`open-source` `conversational` `moe` `reasoning` `efficient`
