API

Completions

Use the legacy OpenAI-compatible completions endpoint for prompt-in, text-out models.

Overview

The Completions endpoint is retained for legacy clients. New applications should prefer Chat Completions unless a model or client specifically requires this shape.

Request

`POST https://uouo.cloud/v1/completions`

Body parameters

ParameterTypeRequiredDescription
modelstringYesCompletion model ID.
promptstring or arrayYesInput prompt.
max_tokensintegerNoMaximum output tokens.
temperaturenumberNoSampling temperature.
top_pnumberNoNucleus sampling.
streambooleanNoReturn SSE chunks when true.
stopstring or arrayNoStop sequences.

Example

curl https://uouo.cloud/v1/completions \
  -H "Authorization: Bearer $UOUODUO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-3.5-turbo-instruct",
    "prompt": "Write a one-sentence release note:",
    "max_tokens": 80
  }'

Notes

  • Prefer Chat Completions for multi-turn conversations.
  • Legacy completion models may not support tools or multimodal input.
  • Streaming follows the same `data:` and `[DONE]` SSE pattern as Chat Completions.
Completions · uouo cloud