PixMind Docs
API ReferenceLanguage ModelsDeepSeek V4.1 Flash

DeepSeek V4.1 Flash API

DeepSeek V4.1 Flash API reference

DeepSeek V4.1 Flash through PixMind's OpenAI-compatible chat completions endpoint.

Provider

DeepSeek

Model ID

deepseek-v4.1-flash

Endpoint

POST /api-platform/v1/chat/completions

Model notes

  • Keep the API key on your server and use streaming when the client needs incremental output.
  • Peak hours are Monday to Friday 09:00-12:00 and 14:00-18:00 (UTC+8); all other times, including weekends, are off-peak. The tier is selected by the time the request is billed.
  • DeepSeek V4.1 Flash offers a 1M-token context window, up to 384K output tokens, image input, tool calling, and three thinking levels (low / high / max, enabled by default).

Request parameters

ParameterTypeRequiredDescription
modelstringYes

Stable PixMind model ID. Use `deepseek-v4.1-flash`.

Allowed values: deepseek-v4.1-flash

messagesarrayYes

OpenAI-compatible chat messages. Gemini user content may be a string or an array of text, image_url, and video_url blocks.

max_tokensintegerNo

Maximum number of completion tokens to generate.

Default: 4096

temperaturenumberNo

Sampling temperature for the response.

Allowed values: 0, 0.5, 1, 2

Default: 1

streambooleanNo

Return tokens incrementally when enabled.

Allowed values: true, false

Default: false

Request example

cURL
curl https://aihub-admin.aimix.pro/api-platform/v1/chat/completions \
  -H "Authorization: Bearer $PIXMIND_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "deepseek-v4.1-flash",
  "messages": [
    {
      "role": "user",
      "content": "Draft three launch concepts for this product."
    }
  ],
  "stream": false
}'
JavaScript
const response = await fetch("https://aihub-admin.aimix.pro/api-platform/v1/chat/completions", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.PIXMIND_API_KEY}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
  "model": "deepseek-v4.1-flash",
  "messages": [
    {
      "role": "user",
      "content": "Draft three launch concepts for this product."
    }
  ],
  "stream": false
})
});

const task = await response.json();

Accepted task response

Generation is asynchronous. Save taskId and poll GET /api-platform/v1/tasks/{taskId} until status is ready or failed.

200 OK
{
  "code": 1000,
  "data": {
    "id": "img_44160",
    "taskId": 44160,
    "type": "image",
    "model": "deepseek-v4.1-flash",
    "status": "processing"
  }
}

API pricing

ConfigurationPrice
Input · peak hours168 credits (~$0.18) / 1M tokens
Output · peak hours672 credits (~$0.71) / 1M tokens
Cache read · peak hours3.36 credits / 1M tokens
Input · off-peak hours84 credits (~$0.09) / 1M tokens
Output · off-peak hours336 credits (~$0.36) / 1M tokens
Cache read · off-peak hours1.68 credits / 1M tokens

API pricing uses the apiPlatform role and is separate from PixMind Studio credits. The accepted task response is the final pricing snapshot.