Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.anyfast.ai/llms.txt

Use this file to discover all available pages before exploring further.

DeepSeek V4 Pro is available through Anyfast via an OpenAI-compatible interface. It features thinking mode, function calling, and JSON mode support.

Key capabilities

  • OpenAI-compatible — Works as a drop-in replacement with the OpenAI SDK
  • Thinking mode — Supports reasoning with configurable effort levels
  • Function calling — Call tools and functions natively
  • JSON mode — Structured output via response_format
  • Long context — Handles large documents and multi-turn conversations
  • Streaming — Supports real-time token streaming via SSE
  • Prompt caching — Automatic cache with hit/miss token reporting

Quick example

curl https://www.anyfast.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4-pro",
    "messages": [
      { "role": "user", "content": "Explain quantum entanglement in simple terms." }
    ]
  }'

Parameters

ParameterTypeRequiredDescription
modelstringYesMust be deepseek-v4-pro
messagesarrayYesList of { role, content } objects. Supports system, user, assistant, tool roles.
thinkingobjectNoEnable/disable thinking: {"type": "enabled"} or {"type": "disabled"}. Optional reasoning_effort: high, max, low, medium.
max_tokensintegerNoMaximum tokens to generate
temperaturefloatNo02. Controls randomness. Default: 1
streambooleanNoEnable SSE streaming. Default: false
stream_optionsobjectNo{"include_usage": true} includes token usage in the final streaming chunk
top_pfloatNoNucleus sampling threshold. Default: 1
stopstring / arrayNoSequences that stop generation (up to 16)
response_formatobjectNo{"type": "json_object"} for JSON mode
toolsarrayNoList of function tools for function calling
tool_choicestring / objectNoControl tool selection: none, auto, required, or specific function
user_idstringNoCustom user ID for content safety and KVCache isolation

API Reference

View the interactive API playground for DeepSeek V4 Pro.