Skip to main content

POST /v1/completions

Legacy text-completions endpoint. It adapts prompt → chat messages and delegates to chat completions, then translates the result back.

Request

Response

Differences from chat:
  • Chunks carry text (from delta.content), not delta.
  • tool_calls finish reasons are mapped to stop — there is no tool-calling or reasoning channel here. Use chat completions for tools.
  • Usage-only chunks are skipped in the stream.
Prefer chat completions for new integrations.