Semua model

Deepseek V4.1 Flash

@cf/deepseek-ai/deepseek-v4.1-flash-1017
DeepSeek

Mulai cepat

# Inspect the price — a plain request returns the 402 challenge:
curl -i https://api.glianalabs.com/v1/chat/completions \
  -H "content-type: application/json" \
  -d '{
    "model": "@cf/deepseek-ai/deepseek-v4.1-flash-1017",
    "messages": [{"role": "user", "content": "<your message>"}]
  }'

# Pay + run in one step with the mppx CLI (create a wallet: npx mppx account create):
npx mppx https://api.glianalabs.com/v1/chat/completions \
  -J '{"model": "@cf/deepseek-ai/deepseek-v4.1-flash-1017", "messages": [{"role": "user", "content": "<your message>"}]}'

Parameter

Input
messages array wajib

A list of messages comprising the conversation so far.

audio object opsional

Parameters for audio output. Required when modalities includes 'audio'.

chat_template_kwargs object opsional
frequency_penalty number opsional bawaan: 0

Penalizes new tokens based on their existing frequency in the text so far.

function_call string opsional
functions array opsional
logit_bias object opsional

Modify the likelihood of specified tokens appearing in the completion. Maps token IDs to bias values from -100 to 100.

logprobs boolean opsional bawaan: false

Whether to return log probabilities of the output tokens.

max_completion_tokens integer opsional

An upper bound for the number of tokens that can be generated for a completion.

max_tokens integer opsional

Deprecated in favor of max_completion_tokens. The maximum number of tokens to generate.

metadata object opsional

Set of 16 key-value pairs that can be attached to the object.

modalities array opsional

Output types requested from the model (e.g. ['text'] or ['text', 'audio']).

model string opsional

ID of the model to use (e.g. '@cf/zai-org/glm-4.7-flash, etc').

n integer opsional bawaan: 1

How many chat completion choices to generate for each input message.

parallel_tool_calls boolean opsional bawaan: true

Whether to enable parallel function calling during tool use.

prediction object opsional
presence_penalty number opsional bawaan: 0

Penalizes new tokens based on whether they appear in the text so far.

reasoning_effort string opsional bawaan: "high"

Reasoning effort. Supported levels: max, high, low, none. Compatibility aliases: auto maps to high; minimal maps to none; medium maps to high; xhigh maps to max.

response_format opsional

Cara hasil dikembalikan (misalnya URL atau data base64).

seed integer opsional

If specified, the system will make a best effort to sample deterministically.

stop string opsional

Up to 4 sequences where the API will stop generating further tokens.

store boolean opsional bawaan: false

Whether to store the output for model distillation / evals.

stream boolean opsional bawaan: false

If true, partial message deltas will be sent as server-sent events.

stream_options object opsional
temperature number opsional bawaan: 1

Sampling temperature between 0 and 2.

tool_choice opsional
tools array opsional

A list of tools the model may call.

top_logprobs integer opsional

How many top log probabilities to return at each token position (0-20). Requires logprobs=true.

top_p number opsional bawaan: 1

Nucleus sampling: considers the results of the tokens with top_p probability mass.

user string opsional

A unique identifier representing your end-user, for abuse monitoring.

web_search_options object opsional

Options for the web search tool (when using built-in web search).

Keluaran