The low-cost member of the DeepSeek V4 family. Supports both thinking and non-thinking modes under one id, a native 1M-token context window, and the cheapest per-token rate in the lineup. Use for high-volume, latency-sensitive tasks.
Este modelo foi descontinuado. As solicitações para ele são encaminhadas automaticamente para o DeepSeek V4.1 Flash (deepseek/deepseek-v4.1-flash) e cobradas pelo preço do DeepSeek V4.1 Flash — não é preciso alterar o código. Os preços desta página são os cobrados atualmente.
Substitua o placeholder ONEHOP_KEY pela sua API key. Criar →
from openai import OpenAI
client = OpenAI(
base_url="https://api.onehop.ai/v1",
api_key="<ONEHOP_KEY>",
)
completion = client.chat.completions.create(
model="deepseek/deepseek-v4-flash",
messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(completion.choices[0].message.content)