Legacy OpenAI-compatible completions API for raw text generation.The completions API is the legacy text generation interface — you provide a raw prompt string and the model continues it. For most use cases, the Chat Completions API is simpler and recommended instead. The endpoint is:
Example
The example below usesdeepseek-ai/DeepSeek-V3 with its prompt format:
Supported parameters
For every model, you can check its prompt format in the API section on its page.
For the complete parameter reference, see the API reference.
