Chat Completions
DEVUP AI provides an OpenAI-compatible Chat Completions endpoint for supported chat models. Note that feature and parameter support may vary by model.
https://api.devupai.com/v1/chat/completionsChoose your SDK
The DEVUP AI SDK provides native access to the platform. OpenAI SDKs can be used with the OpenAI-compatible endpoint by configuring the DEVUP AI base URL, API key, and model identifier.
Basic chat completion
By setting the baseURL and passing your DEVUP AI token, you can send requests directly to our optimized inference infrastructure.
Multi-turn conversations
Models do not store memory. To maintain conversational state, you must pass the entire conversation history in the messages array on each request.
Supported parameters
We support the majority of standard OpenAI chat completion parameters.
Required
ID of the model to use. See the model library for all available options.
A list of messages comprising the conversation so far.
Generation controls
The maximum number of tokens that can be generated in the chat completion.
What sampling temperature to use. Higher values make output more random, lower values make it more focused.
An alternative to sampling with temperature, called nucleus sampling.
Up to 4 sequences where the API will stop generating further tokens.
Positive values penalize new tokens based on whether they appear in the text so far.
Positive values penalize new tokens based on their existing frequency in the text so far.
Streaming
If set, partial message deltas will be sent. Tokens will be sent as data-only server-sent events.
Structured output & tools
An object specifying the format that the model must output. Compatible with JSON mode and structured outputs.
A list of tools the model may call, and controls for which tool is called.
Controls which tool is called by the model.
Max output tokens
Model limits
Due to hardware limits, there is a hard cap on how many output tokens models can generate in a single request. For models like DeepSeek V3, this is usually 8192 tokens.
Continuing responses
If a model stops generating because it reached the limit, the finish_reason will be length. You can send the truncated response back as an assistant message and the model will continue right where it left off.
Note: The model may repeat or overlap slightly when continuing. It is not always a completely seamless continuation.