The DeepSeek V4 models are available through Upmore via the standard Chat Completions API (/v1/chat/completions). Both are reasoning models — they think before answering and stream a reasoning_content field alongside the reply.
Light — low latency and cost, good for everyday chat and high-concurrency use
Reasoning tokens are billed as completion tokens. Set max_tokens generously — the thinking phase consumes part of the budget before the visible answer starts.
from openai import OpenAIclient = OpenAI( api_key="YOUR_API_KEY", base_url="https://api.upmore.net/v1")response = client.chat.completions.create( model="deepseek-v4-pro", messages=[ {"role": "user", "content": "Explain quantum entanglement in one paragraph."} ])print(response.choices[0].message.content)
from openai import OpenAIclient = OpenAI( api_key="YOUR_API_KEY", base_url="https://api.upmore.net/v1")stream = client.chat.completions.create( model="deepseek-v4-flash", messages=[ {"role": "user", "content": "Write a short poem about the sea."} ], stream=True)for chunk in stream: delta = chunk.choices[0].delta if chunk.choices else None if delta and getattr(delta, "reasoning_content", None): print(delta.reasoning_content, end="") # thinking phase elif delta and delta.content: print(delta.content, end="") # final answer