inference

Create Chat Completion

Changed on
post/v1/chat/completions

Request

  • Base URL
    https://api.trajectory.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.trajectory.ai/v1/chat/completions
  • Auth
    HTTP bearer

Headers

X-Trajectory-Idstring required
Idempotency-Keystring nullable
X-API-Keystring nullable

Request body

modelstring required
streamboolean nullable
disable_thinkingboolean nullable
temperaturenumber nullable
max_tokensinteger nullable

Maximum generated tokens, including reasoning tokens when emitted.

top_pnumber nullable

Response

Successful Response

idstring required
objectstring required
createdinteger required
modelstring required

Changes

    • warning

      deleted the header request parameter X-Model-Endpoint-Id

    • warning

      deleted the header request parameter x-model-endpoint-access-token

    • info

      added the new optional request property

    • info

      request property list-of-types was widened by adding types null to media type application/json

    • info

      added the optional property /// to the response with the status