deployments
inference

Deployment Chat Completion

Changed on

Test this exact deployment without changing the slug's production target.

post/api/v1/deploy/{deployment_id}/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/api/v1/deploy/{deployment_id}/chat/completions
  • Auth
    HTTP bearer

Path parameters

deployment_idstring required

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