Skip to main content
Chat Completions is the most widely used chat protocol for large language models: send a list of messages, get the model’s reply. GPT, DeepSeek, Kimi, GLM, Grok and Qwen on DreamTo all speak it, and the OpenAI SDKs as well as frameworks such as LangChain and LlamaIndex connect by changing base_url.

Models

OpenAI GPT

The GPT-6 family is organised in tiers: Astra is the most capable, Sol is the flagship workhorse, Terra balances intelligence and cost, and Luna is the fastest and cheapest. Every model takes text and image input, returns text, and lets you tune reasoning with reasoning_effort (reasoning.effort in Responses).

DeepSeek

Moonshot Kimi

The Kimi K3 series understands images natively; thinking is always on and reasoning_effort steers it.

Z.ai GLM

xAI Grok

Grok 4.7 takes text and image input, returns text, and accepts reasoning_effort.

Alibaba Cloud Qwen

Context window and max output are in tokens, as published by each model’s vendor. Claude and Gemini models can be called through this endpoint too, with the common chat, sampling and tool parameters only; for everything they offer, use Anthropic Messages and Gemini generateContent. The full list with prices is in the model catalog; GET /v1/models lists the models your API Key can use.

Endpoints

The base URL is https://api.dreamto.ai. Create an API Key in the DreamTo console; see Authentication.

Quick start

Streaming

Add "stream": true and the reply arrives as server-sent events: each frame is a chat.completion.chunk and the last one is data: [DONE]. The final chunk of a streamed request carries usage.
Python

Notes

  • Models do not all accept the same parameters: reasoning models reject temperature, for example, and only some models take image input. An unsupported parameter is answered with a 400 by the model.
  • Use the system role for the system prompt; it works with every model.
  • Conversations are not stored: store and the endpoints that list or delete stored completions are not available.
  • Errors use one common structure, see Errors.