Skip to navigation

Trajectory through an OpenAI-style chat request

View as Markdown

Compatibility adapter for trajectory generation. Images go in the user message as image_url parts; egomotion, camera_order and trajectory controls go in nvext. The assistant message content is a JSON string with the trajectory result. Prefer POST /v1/infer for new integrations.

Request

This endpoint expects an object.
messageslist of objectsRequired
modelstring or nullOptionalDefaults to nvidia/alpamayo-2-super

Served model ID from /v1/models. Omitted, null, or an empty string selects the served model, as over gRPC; other model names are rejected.

max_tokensinteger or nullOptional1-1024

Maximum VLM generation tokens for /v1/vqa. Omit this field from trajectory requests to /v1/chat/completions.

temperaturedouble or nullOptional0-2Defaults to 0.6
VLM sampling temperature. Null selects the default.
top_pdouble or nullOptional<=1Defaults to 0.98

VLM nucleus sampling top-p. Null selects the default.

top_kinteger or nullOptional1-2147483647
seedinteger or nullOptional0-2147483647

Optional per-request sampling seed. When omitted, the container default seed is used. For deterministic greedy language decoding on the same deployment, use temperature=0.

streamfalse or nullOptionalDefaults to false

Streaming is not supported; omit this field or set it to false or null.

ninteger or nullOptional

Accepted for OpenAI client compatibility; only 1 is supported. Use nvext.num_traj_samples for multiple trajectories.

presence_penaltydouble or nullOptional

Accepted for OpenAI client compatibility; only 0 is supported.

frequency_penaltydouble or nullOptional

Accepted for OpenAI client compatibility; only 0 is supported.

nvextobject or nullOptional

Response

Successful Response
idstring
createdinteger
modelstring
choiceslist of objects
object"chat.completion"OptionalDefaults to chat.completion
usageobject or nullOptional

VLM prompt/completion token counts. Populated only when the backend reports them, independently of profiling mode; otherwise null rather than an estimate.

inference_timedouble or nullOptional

Server-side inference time in seconds for this request, matching the inference_time field returned by /v1/infer and /v1/vqa.

Errors

400
Bad Request Error
413
Content Too Large Error
415
Unsupported Media Type Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error