DeepSeek V4 Pro
DeepSeek's high-capability reasoning model (Mixture of Experts, 131k context) — frontier-level reasoning at one of the lowest prices in the catalog. Call it through the OpenAI-compatible POST /v1/chat/completions — swap the base URL on your existing OpenAI SDK and pay per call. Billing is a pre-charged ceiling: (estimated input tokens + your max_tokens) at the per-1M rates ($1.74 in / $3.48 out), so set max_tokens to bound spend; the response returns real usage.
Quick start
# 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-pro-0813",
"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-pro-0813", "messages": [{"role": "user", "content": "<your message>"}]}'Parameters
OpenAI-style chat messages: [{ role: "user" | "system" | "assistant" | "tool", content }]. Vision: content may be a parts array with { type: "image_url", image_url: { url } } (public URL — upload via POST /v1/media).
Parameters for audio output. Required when modalities includes 'audio'.
Penalizes new tokens based on their existing frequency in the text so far.
Modify the likelihood of specified tokens appearing in the completion. Maps token IDs to bias values from -100 to 100.
Whether to return log probabilities of the output tokens.
An upper bound for the number of tokens that can be generated for a completion.
Output cap — bounds the pre-charged ceiling. Default 1024.
Set of 16 key-value pairs that can be attached to the object.
Output types requested from the model (e.g. ['text'] or ['text', 'audio']).
ID of the model to use (e.g. '@cf/zai-org/glm-4.7-flash, etc').
How many chat completion choices to generate for each input message.
Whether to enable parallel function calling during tool use.
Penalizes new tokens based on whether they appear in the text so far.
Reasoning effort. Supported levels: max, high, low, none. Compatibility aliases: minimal maps to low; medium maps to high; xhigh maps to high.
How the result is returned (e.g. a URL or base64 data).
If specified, the system will make a best effort to sample deterministically.
Up to 4 sequences where the API will stop generating further tokens.
Whether to store the output for model distillation / evals.
true → Server-Sent Events (OpenAI chunk format) on /v1/chat/completions.
Sampling temperature. Passed through where the provider supports it.
"auto" (default) | "none" | "required" | { type: "function", function: { name } }.
OpenAI function tools: [{ type: "function", function: { name, description, parameters } }]. Response returns tool_calls (finish_reason "tool_calls"); send results back as { role: "tool", tool_call_id, content }.
How many top log probabilities to return at each token position (0-20). Requires logprobs=true.
Nucleus sampling. Passed through where the provider supports it.
A unique identifier representing your end-user, for abuse monitoring.
Options for the web search tool (when using built-in web search).