name = "Alibaba Token Plan" env = ["ALIBABA_TOKEN_PLAN_API_KEY"] npm = "@ai-sdk/openai-compatible" # Reasoning HTTP format (accessed 2026-06-25): # OpenAI plan base .../compatible-mode/v1 uses POST /chat/completions with # top-level `enable_thinking`: true or false and integer `thinking_budget`. # POST /responses uses `reasoning.effort`: none, minimal, low, medium, or high; # `thinking_budget` is not accepted there. Anthropic plan base .../apps/anthropic # uses POST /v1/messages with `thinking.type`: enabled or disabled, integer # `thinking.budget_tokens`, and DeepSeek V4-only `reasoning_effort`: high or max. # Sources: # https://www.alibabacloud.com/help/en/model-studio/token-plan-quickstart # https://www.alibabacloud.com/help/en/model-studio/deep-thinking # https://www.alibabacloud.com/help/en/model-studio/compatibility-with-openai-responses-api # https://www.alibabacloud.com/help/en/model-studio/anthropic-api-messages doc = "https://www.alibabacloud.com/help/en/model-studio/token-plan-overview" api = "https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1"