Text Completion
The original GPT-style endpoint — takes a raw string prompt and continues it. For new projects, use /v1/chat/completions instead; it supports richer message structure, system prompts, and tool calling.
POST/v1/completions
Generate a text completion for a prompt (legacy endpoint). For most use cases, prefer /v1/chat/completions.
Request
Responses
- 200
Successful Response