API Reference
Alpamayo 2 Super. For the previous generation, see Alpamayo 1.5 API Reference.
Alpamayo 2 Super exposes HTTP on port 8000 and trajectory gRPC on port 50051.
The default model ID is nvidia/alpamayo-2-super; discover a renamed
deployment’s ID through GET /v1/models.
Host-side commands on this page require the builder, clients and sample_data
from Set up a client outside the NIM. Complete that copy step before running any
Python or shell example below; Inference Tasks also shows builders run
directly inside the ready container.
Example Target
Set these for your deployment before running the shell examples. Bash is
assumed; pipefail prevents a failed builder or HTTP request being hidden
by the last command in a pipeline. Use the container name you own.
NIM_URL is the HTTP base URL and GRPC_TARGET the gRPC host:port as
published on the host; use your remapped host ports if you changed them. The
packaged host clients read both variables. ALPAMAYO_OUT is a private
directory for the request and response files written below.
HTTP Endpoints
Schema Access
Use GET /openapi.json for the HTTP schema or GET /docs for interactive
API documentation. Without a running container,
download the OpenAPI YAML.
The schema includes one POST /v1/infer example per task and declares the
Retry-After header on 429 and 503 responses. The OpenAPI document lists
the accepted camera names and the default order; always send
camera_order when your images are not in that order. Images in a
non-default order sent without camera_order return HTTP 200 and a wrong
plan, with no warning. Some per-task rules are described only on this page
and in Camera order and sample files; the payload builder output is a
reliable starting point. The POST /v1/infer operation ID is infer.
Service Discovery
GET /v1/models describes the running configuration. Every field is
fixed for the lifetime of the container, so read it once after readiness
instead of discovering settings from rejected requests:
max_model_len is the context limit in tokens
(NIM_ALPAMAYO_MAX_MODEL_LEN). speculative_model is the container path
of the active DFlash2 draft head: the packaged head
(/opt/nim/workspace/dflash2), or a custom head mounted with
NIM_ALPAMAYO_SPECULATIVE_MODEL. It is null when speculative decoding
is off, as in the bf16 example above. checkpoint_quantization is the
checkpoint format vLLM serves: bf16 or modelopt-fp8 (also after a BYOC
FP8 conversion). action_expert_max_batch_size is the effective
NIM_ALPAMAYO_ACTION_EXPERT_MAX_BATCH_SIZE: the largest number of trajectory
samples the action expert evaluates in one call, 1 on every packaged
profile. spec_metrics is the speculative metrics mode
(none, summary or detailed). All JSON response bodies end with a
newline.
k_values lists accepted num_traj_samples values, configured by
NIM_ALPAMAYO_TRAJ_SAMPLES (default 1). An integer from 1 through 32
that is not in the list returns HTTP 400, for example:
Profile bf16 supports num_traj_samples values [1]; got 4. A value outside
1 through 32, or one that is not an integer (such as 1.0, "1" or
true), fails schema validation with HTTP 422.
To change this list, the profile, or checkpoint, follow
Configuring a NIM.
GET /v1/health/ready returns HTTP 200 only when the serving backend
and the Alpamayo model are both ready. Once the HTTP listener is running,
an unavailable backend returns HTTP 503. During model loading and warmup,
inference endpoints also return 503 with a readiness-polling instruction.
Initial setup and model downloads can precede the HTTP listener, so
connection failures are still possible in that phase; use the quickstart’s
bounded readiness loop. A ready response is one line of compact JSON:
Automation should key on the HTTP status code and status rather than
on object or message. The liveness body uses the label
Alpamayo service liveness check; the model execution backend is
vLLM-Omni.
GET /v1/version returns
{"release":"1.0.0","api":"3.1.0"}: release is the container
release, while api identifies the OpenAPI specification version.
The documentation version and model-artifact tag are separate identifiers:
Version identifiers
GET /v1/metadata includes
selectedModelProfileId and repeats the GET /v1/license document as
licenseInfo.
Super Request Fields
These fields belong to POST /v1/infer for Alpamayo 2 Super.
See Sampling Control for sampling bounds. Do not copy the
16-image Alpamayo 1.5 examples from the Alpamayo 1.5 page.
Request contract
seed must be a JSON integer from 0 through 2147483647; booleans,
floats and quoted numbers return HTTP 422. Omitted or null values use the
container default. The same type/range validation applies to top-level
seed and nvext.seed on both compatibility routes. temperature,
top_p and nav_guidance_weight must be JSON numbers or null;
null selects the default, and strings and booleans return HTTP 422. egomotion accepts only ego_history_xyz and
ego_history_rot; other keys return HTTP 422.
Which fields each task accepts on POST /v1/infer
Legacy mode="both" accepts egomotion, a required question,
nav_text and K above 1, and rejects max_tokens. Rejected means HTTP 422.
On the compatibility routes, /v1/chat/completions rejects
nvext.question and ignores text content parts, because it always returns a
trajectory; /v1/vqa takes the question from a text part or
nvext.question.
When both task and legacy mode are supplied, they must describe the
same task. Conflicting values return HTTP 422; neither field silently overrides
the other.
Camera Order and Sample Files
Requests accept either the short name or the full camera name below. Response
camera fields use the full names; for example, a grounding request using
front_wide returns camera_front_wide_120fov. These identify the same
camera. Names are case-insensitive and surrounding whitespace is trimmed.
Driving inputs default to four frames for each camera in this order:
Six-camera driving layout
For VQA or single-camera grounding, rear_tele is also an
accepted alias for camera_rear_tele_30fov (rear-facing telephoto camera).
It is not part of the supported trajectory camera set.
For a four-camera trajectory request, set
camera_order=["cross_left", "front_wide", "cross_right", "front_tele"]
and num_frames_per_camera=4, and supply 16 images. Camera names must be
unique and correspond to the supplied image groups. Missing cameras are not
padded or synthesized; their model camera IDs remain [0,1,2,6].
Changing the camera set changes model input and can change accuracy.
For HTTP, place these fields at the top level on /v1/infer and inside
nvext on /v1/chat/completions. For gRPC, set camera_order or provide
complete camera/timestep metadata on every frame; the server can infer the
subset from that metadata. Image count alone never identifies missing cameras.
Within each camera group, supply frames oldest first. The bundled sample
uses images/<short-name>_t0 through _t3 with a supported image
extension; t0 is the oldest frame and t3 is the latest. Do not
interleave different cameras at each timestep. The root sample directory
also contains egomotion.json and gt_trajectory.json. Its
auto_labeling/ subdirectory contains another scene with its own
images/, egomotion.json and gt_trajectory.json. The top-level
gt_trajectory.json contains future positions only; it is not a complete
provided-future request. Use the auto_labeling/ scene for the documented
provided-future example because its file includes positions and rotations.
The navigation/ subdirectory contains a junction scene, its six-camera
image history, ego-motion and source provenance for the navigation example
in Inference Tasks.
Ego-Motion and Trajectory Coordinates
egomotion.ego_history_xyz is a list with shape [16,3] in meters.
egomotion.ego_history_rot is either 16 scalar-first quaternions
[w,x,y,z] or 16 rotation matrices with shape [3,3]. The API accepts
mixed representations row by row, but use one consistently for easier
validation and debugging. All entries must be finite; matrices must
represent proper rotations and quaternions must have nonzero norm.
Supply history in chronological order ending at the latest image time, sampled at 0.1-second intervals. Express positions and orientations in the ego vehicle’s local frame at that latest time, as the bundled sample does. The final history translation must be the origin and its rotation the identity; otherwise the request is rejected with HTTP 422. This check catches global coordinates and many ordering errors, but other convention errors, such as scalar-last quaternions or centimeter units, still produce confident wrong plans; follow the conversion recipe in Preparing Inputs. To convert global poses, subtract the latest position and rotate by the inverse of the latest orientation; apply that inverse orientation to each global rotation as well. The API does not perform this global-to-local conversion for you.
Predicted trajectories and caller-provided futures use the same local frame. Their 64 points follow the latest history pose at 0.1-second intervals. Never substitute image count for history length: the history always has 16 poses, independently of the number of supplied cameras.
Canonical Inference
POST /v1/infer accepts one explicit task plus common image and sampling
fields. Task-specific validation occurs before inference. Refer to
Inference Tasks for input profiles, output fields, and runnable examples.
Use Bash on the Docker host after Quickstart Guide has started
the alpamayo2-super container. Copy the sample and request builder to
the client directory used in the quickstart client setup
(Set up a client outside the NIM); the copy is the same:
Then create and send a task without manually writing 24 data URLs:
Replace trajectory with vqa, meta_action, auto_labeling, or
grounding. The builder selects the correct sample layout. Use
--question for VQA or grounding; grounding defaults to an object-localization
request rather than a general scene question.
Auto-labeling defaults to a model-predicted future. To label a caller-provided
future, use the packaged /workspace/sample_data/auto_labeling scene or
pass --future-source provided --future-trajectory future.json with your
own scene. The file must contain 64 XYZ points and 64 rotation matrices as
documented in Inference Tasks.
This copyable suite exercises every canonical task and keeps each response for inspection:
Successful responses use task as their discriminator. Trajectory returns
pred_trajectories and pred_rotations; VQA returns answer;
meta-action returns meta_action; auto-labeling returns auto_labeling;
and grounding returns grounding_boxes. The complete normalized response
shapes and example fragments are in Inference Tasks.
Every grounding response also carries "bbox_space": "grid_0_1000", so a
client can tell from the response alone that bbox is
[x_min, y_min, x_max, y_max] on the model’s 0–1000 grid, not pixels.
Multiply x by width/1000 and y by height/1000 of the source image to
get pixels. Other tasks do not set bbox_space.
For VQA, answer_reason is set when VQA returns no answer text, the
answer was cut off at max_tokens, or the answer is another task’s
structured output (grounding bbox_2d or auto-labeling JSON) rather than
prose; ordinary answers omit it. For task="vqa", metrics reports
vllm_prompt_tokens and vllm_generation_tokens when the backend reports
them. Trajectory metrics.reasoning_texts contains one
text per returned sample when K is greater than one. Diagnostic
metrics.timings appears only with NIM_ALPAMAYO_PROFILE_TIMINGS=1;
its keys can change with the serving stack. Both optional metrics keys are
described in the live and downloadable OpenAPI schemas.
Common response fields
New clients should send task and omit mode; for questions, use
task="vqa". The legacy mode field remains accepted for Alpamayo 1.5
clients. The table shows how each value is interpreted when task is
omitted, and the mode that every task echoes in its response:
Legacy mode mapping
The response mode only names the input family: trajectory for tasks
that take ego-motion and answer for image-question tasks. It does not
indicate that a trajectory or free-text answer was produced; use task.
When a request sends both fields, mode must equal the value in the last
column for that task; any other combination, including mode="both" with a
task, returns HTTP 422.
Legacy mode="both" uses the same declared driving-camera subset for both
tasks. The default is the 24-image sample; rear_tele is not required.
Its answer is generated in the same pass as the trajectory reasoning and
can repeat that reasoning instead of answering the question; for example, a
yes/no question can return trajectory or grounding-style text. Send a separate
task="vqa" request when you need an answer to a question.
Image Representation
HTTP images are base64 strings or data:image/...;base64,... URLs. JPEG,
PNG, WebP, and BMP are supported. Images are camera-major: all chronological
frames for the first camera, followed by all frames for the next camera.
camera_order accepts full camera names and short names such as
front_wide.
Every image in one request must have the same height and width; mixed
resolutions are rejected before model execution.
A payload error for one image names it by position, camera and frame, for
example images[13] (camera camera_rear_left_70fov, frame 2 of 4): Invalid image payload; JPEG end-of-image marker is missing. Images are counted from
0 in the request’s camera-major order.
Camera identity and camera-major ordering are caller assertions: the service
validates declared names and counts, but cannot inspect pixels to detect a
mislabeled camera or timestep-major array. Misordered images silently change
model output.
Trajectory-producing tasks accept temperature from 0 through 1.5. VQA
accepts values through 2.0. Values above 1.5 are rejected for trajectory
generation because they can make the generated trajectory representation
unparseable. top_p must be greater than 0 and at most 1.
Do not send max_tokens with trajectory or legacy mode="both"
requests. The NIM owns the generation budget required
to reach the trajectory trigger token. An explicit max_tokens value on a
trajectory request returns HTTP 422. VQA, grounding, meta-action and
auto-labeling accept max_tokens from 1 through 1024. Auto-labeling
enforces a minimum generation budget of 1024 to allow complete structured
output, even when a smaller value is requested.
nav_text is an optional navigation instruction for task="trajectory"
and legacy mode="both". When present it is rendered into the prompt and
applied through classifier-free guidance with nav_guidance_weight
(0 through 10, default 3.0; 1.0 renders the text without guidance).
The weight is ignored without nav_text; an explicit non-default weight,
or any weight together with nav_text, on a task that does not produce
trajectories returns HTTP 422. Refer to Inference Tasks for a
navigation-conditioned example and the metrics it returns.
Python HTTP Client
First complete the sample-data copy step in Set up a client outside the NIM.
The Quickstart also copies these clients from the container. The two
downloads below are files supplied by this documentation, not a
PyPI package. Keep both files beside sample_data.
Download http_client.py and
trajectory_http.py into the
directory containing the copied sample_data. The HTTP example needs
Python 3 and the curl executable on the client host; no Python packages
are required. It constructs base64 data URLs from the six camera groups:
Run it from that directory, or pass --sample-dir. --help lists its
options:
All packaged host clients use one endpoint convention. HTTP clients send to
--url when given, otherwise to ALPAMAYO_HTTP_URL (a complete inference
URL), otherwise to $NIM_URL/v1/infer, otherwise to
http://localhost:8000/v1/infer. gRPC clients use --target, then
ALPAMAYO_GRPC_TARGET, then GRPC_TARGET. ALPAMAYO_MODEL supplies the
served model ID where a client or payload needs one; set it from
GET /v1/models for a renamed deployment:
The reusable helper also sends JSON files made by the payload builder, including any of the five tasks:
This helper uses curl’s Expect: 100-continue handshake so the server
can reject a request before uploading the large image payload. It retries
only HTTP 429, honors Retry-After with bounded backoff and jitter, and
applies a total deadline. It exposes other HTTP errors and does not replay
connection failures whose execution outcome is unknown. It follows the
endpoint convention above; --timeout controls the total deadline and
--retries limits overload retries.
Merely adding an Expect header to an arbitrary Python HTTP library
is not a tested substitute for this transport: the client must implement
the handshake. For clients without it, the server consumes and discards a
bounded rejected upload so the client can finish sending and read the
error. If the upload exceeds the drain size or time limit, the connection
closes; prefer the helper above for early rejection of large bodies.
Errors
Inference endpoints use one JSON error envelope for HTTP 400, 413, 415, 422, 429, 500, and 503 responses:
HTTP status codes returned by the inference endpoints
Health endpoints use a separate status body rather than the inference error
envelope. GET /v1/health/ready returns message="ready" with HTTP 200,
message="not ready" with HTTP 503 during loading,
message="shutting down" with HTTP 503 during draining,
message="backend unavailable" with HTTP 503 after an unrecoverable backend
failure, or message="error" with HTTP 503 when the backend health check
raises an exception after the model was ready. The object field in the
last case names the exception class.
For 413, 415, 429 and 503, clients using Expect: 100-continue receive the
error without uploading the body. For clients that upload immediately,
the server discards up to 128 MiB for at most 10 seconds before closing
an unfinished upload. Draining does not admit the request to the model
or retain its body in memory. Clients must still handle transport failures
and should not assume a failed connection means inference never ran.
Media-type problems therefore surface as two different codes: HTTP 415
identifies the HTTP envelope, HTTP 400 identifies an image inside an
otherwise valid body. Clients that branch on media type must handle both.
An unknown route returns HTTP 404 and a wrong method, such as
GET /v1/infer, returns HTTP 405 whose message lists the allowed methods.
Both use the same {"error": {...}} envelope, as do HTTP 422 for a body
that is not valid JSON and HTTP 400 for a body the parser cannot process. A connection
failure such as curl status 000 is not an HTTP response: it generally
means the service is not listening yet. Check readiness and container logs
before retrying. An unrecoverable CUDA failure stops model readiness
(GET /v1/health/ready returns HTTP 503) so an orchestrator can restart
the container.
GET /v1/models reports the shared inference admission limit as max_inflight
(default 8), including running and waiting requests. Requests execute
serially; excess HTTP calls return 429 and gRPC calls return
RESOURCE_EXHAUSTED. Use finite timeouts and honor Retry-After
with bounded exponential backoff and jitter. See Configuring a NIM
for queue sizing.
Compatibility Endpoints
POST /v1/chat/completions receives images through
messages[].content[].image_url and Alpamayo trajectory fields through
nvext. Only role="user" messages are supported; other roles return
HTTP 422 instead of being interpreted as user input. Its assistant content is
a JSON string containing trajectory data.
nvext accepts egomotion, num_traj_samples, nav_text,
nav_guidance_weight, question (/v1/vqa only; chat rejects it),
camera_order, num_frames_per_camera, seed, and top_k. Common temperature
and top_p controls stay at the top level of the compatibility request.
max_tokens is accepted by /v1/vqa but must be omitted from
trajectory requests to /v1/chat/completions.
Accepted for OpenAI client compatibility: image_url.detail (ignored;
images are processed at the model input resolution), n (only 1), and
presence_penalty and frequency_penalty (only 0). Other OpenAI fields
such as tools, response_format and logprobs return 422.
GET /v1/models/{model_id} returns the served model; other IDs return 404.
POST /v1/vqa receives text and images through the same message structure.
Put the question in one user message. Several text parts in that message are
joined with a newline; question text in more than one message returns 422.
Images may be in any user message.
It returns a vqa.response object with the original question, answer, model,
and inference time. Both routes call the canonical inference implementation;
they do not own separate model-serving paths.
Both routes return top-level inference_time in seconds; chat also includes
it in the assistant content JSON. usage reports VLM prompt and completion
tokens, excluding diffusion sampling. It is independent of profiling and is
omitted from the response when backend counts are unavailable; the schema
declares it nullable, so clients should accept either a missing key or null.
Canonical trajectory and VQA
responses expose available counts as metrics.vllm_prompt_tokens and
metrics.vllm_generation_tokens.
When supplied, model must match GET /v1/models (default
nvidia/alpamayo-2-super). With the default ID, requests may also name the
earlier ID nvidia/Alpamayo2-Super; responses report the current ID.
NIM_SERVED_MODEL_NAME changes the ID for discovery, HTTP, and gRPC and
disables the earlier ID. Unknown IDs and stream=true fail validation.
The downloadable static OpenAPI gives the default ID but does not constrain
model to that ID, so an offline-generated client can also send the ID
advertised by a renamed deployment. Runtime validation remains strict.
Omit stream or set it to false; all endpoints return a complete response
after inference, with no partial output or time-to-first-token.
The following request bodies are generated from the runtime schema. Replace
image placeholders with real data URLs. The chat example includes all 24 image
slots and the 16-row ego history of the bundled sample scene
(sample_data/egomotion.json). That history belongs to the sample images:
when you send your own images, replace it with the measurements that belong to
them, following Preparing Inputs. A history that does not match the
images, such as an all-zero (stationary) history for a moving scene, can
produce a path that reverses while every comfort metric passes. The builder
commands below produce a fully populated request from the bundled scene.
Single-Image VQA Request — POST /v1/vqa
For single-image VQA and grounding, start with front_wide frames with a
16:9 aspect ratio and evaluate the predictions on your data. With side, rear,
or telephoto camera labels, or other aspect ratios, VQA answers can be wrong
and grounding boxes can miss their targets; the reference model behaves the
same. For VQA about other views, include those views in the six-camera layout.
Grounding still requires exactly one camera; evaluate that camera’s results
separately. Refer to Known Issues and Limitations.
Trajectory Chat Request — POST /v1/chat/completions
The full request is also available as chat.json.
Full chat request
The packaged builder can create runnable compatibility requests as well. On the
host it reads ALPAMAYO_MODEL for the model field; inside the container,
pass --model "$ALPAMAYO_MODEL" explicitly:
gRPC
The binary nvidia.alpamayo.v1.Alpamayo/Predict method serves trajectory
inference. The request contains encoded camera images, ego-history data,
sampling fields, and optional navigation text. The response contains serialized
trajectories, rotations, reasoning, and metrics. Use the client bundled at
/opt/nim/test_grpc_api.py as the executable protocol example; run it with
--help for every option. It reads GRPC_TARGET and ALPAMAYO_MODEL
like the other host clients. It sends temperature, top_p, top_k
and seed only when you pass the matching flag, so by default the NIM applies
its own defaults (temperature 0.6, top_p 0.98, top-k disabled, the container
seed). For a repeatable single trajectory, pass --temperature 0.
Navigation uses the string nav_text = 6 field together with
optional double nav_guidance_weight = 16; leave the weight unset for the
NIM default of 3.0. Both follow the HTTP validation rules above. The
bundled client exposes them as --nav-text and --nav-guidance-weight.
A non-empty request model must match the ID from GET /v1/models; unknown
model IDs return NOT_FOUND instead of being silently ignored. The legacy
gRPC max_tokens field is deprecated and must remain unset; a nonzero value
returns INVALID_ARGUMENT.
The method returns standard status codes: OK for success,
INVALID_ARGUMENT for invalid inputs or unsupported profile values,
NOT_FOUND for an unknown model, RESOURCE_EXHAUSTED for backpressure,
UNAVAILABLE before model readiness and during shutdown, and INTERNAL
for an invalid backend result. During shutdown, calls that are admitted but
still queued behind the running request end as soon as draining starts, and
the call executing at the drain deadline also ends; both return
UNAVAILABLE with the message NIM is shutting down; retry on a ready instance.. The standard grpc.health.v1 health service reports
NOT_SERVING once the NIM is stopping. RESOURCE_EXHAUSTED and the shutdown UNAVAILABLE carry
retry-after: 1 trailing metadata. Requests are validated before they take
an admission slot, so an invalid request returns INVALID_ARGUMENT even
when the queue is full; only valid requests receive RESOURCE_EXHAUSTED.
A num_traj_samples value that is not in the profile’s k_values returns
INVALID_ARGUMENT, also while the queue is full. Over HTTP, a full queue
returns 429 before the request body is read.
The gRPC port, including the grpc.health.v1 service, opens only after the
model is loaded. Before that, gRPC clients get a connection failure, which
gRPC reports as UNAVAILABLE, so a gRPC health probe cannot tell a
starting NIM from a stopped one. Use HTTP GET /v1/health/ready for
startup and readiness probes.
Download the exact Alpamayo 2 Super protocol
used by this release. This protocol is separate from Alpamayo 1.5.
To generate Python bindings yourself, install grpcio-tools in the client
virtual environment and run:
This writes the regenerated module into a fresh directory, preserving the
shipped client module. Without a running container, download the linked
alpamayo_grpc.proto into $PROTO_DIR before running the compiler.
The container does not need the development compiler.
Python gRPC Client
Copy the protobuf module from the running image, install the client
dependencies in a virtual environment (numpy is for the ego-motion
conversion helper in Preparing Inputs), and download
trajectory_grpc.py alongside
sample_data:
This example sends the encoded image bytes without converting them and
prints the trajectory response. It reads GRPC_TARGET (or --target)
and ALPAMAYO_MODEL (or --model); an empty model selects the served
model. The generated module must come from the same image version as the
server.
OpenAPI Schema
This schema is generated from the NIM’s request and response models and is
also packaged at /opt/nim/api_spec.yaml. The gRPC protocol is packaged
at /opt/nim/alpamayo_grpc.proto.
The HTTP OpenAPI specification is available in the API Reference tab.
Input Budgets and Defaults
VQA and grounding requests must fit the configured context limit after
image placeholders have been expanded. The budget includes the question,
image tokens, prompt formatting, and requested max_tokens for the
answer. Requests exceeding this budget return HTTP 400 before model
inference. There is no fixed character cutoff: token counts depend on
the text and image layout. Request-body size limits still apply.
Shorten the question, reduce the VQA image/frame input, or lower
max_tokens. An operator can also increase
NIM_ALPAMAYO_MAX_MODEL_LEN from its default of 6144 up to 8192 and
restart the NIM. The runtime sizes its KV cache for the selected context;
the allocation can increase unless the profile already reserves a larger
minimum. Increasing the context limit and KV-cache size consumes
more GPU memory and may cause out-of-memory (OOM) failures. If already
at the supported maximum, reduce the request instead.
A valid token budget does not guarantee a useful answer. Long repetitive prompts and high temperatures can yield empty, irrelevant, or multilingual output. HTTP 200 means inference completed. Prefer concise factual driving questions and evaluate the returned text before consuming it as a label.
nav_text and non-default nav_guidance_weight are only valid for
trajectory-producing requests; invalid task combinations return HTTP 422.
Greedy decoding (temperature=0) requires num_traj_samples=1.
GET /v1/models exposes default_seed, the effective seed used when
a request omits seed or supplies null. An explicit request seed takes
precedence, including seed 0.
The gRPC model field may be empty to select the single served model;
this is the documented protobuf default. A nonempty value must match
GET /v1/models. HTTP requests behave the same way: an omitted, null
or empty model selects the served model.
Route-Specific Fields and Input Precedence
model and stream are accepted on every HTTP route, with the rules in
the request table above. On the canonical route, omit max_tokens to use a text-task
default; max_tokens: null also selects the default. A non-null value is
rejected for trajectory requests.
POST /v1/chat/completions generates trajectories and requires ego-motion.
Use POST /v1/vqa for image questions, or the corresponding task on
POST /v1/infer. Grounding, meta-action and auto-labeling use /v1/infer.
The OpenAI SDK’s default chat URL does not turn this trajectory adapter into a
general chat service.
Use one question source on /v1/vqa: message text or nvext.question.
If both are supplied, they must agree; conflicting questions return HTTP 422.
Likewise, duplicate top-level and nvext values for seed or top_k
must agree. Identical duplicates are accepted; conflicts return HTTP 422.
Do not expect chat text parts or nvext.question to override the
trajectory task. An empty or whitespace-only nav_text is treated as
absent. nav_text is limited to 1000 characters; keep it to a short
navigation instruction.
VQA and grounding reject non-null ego-motion and trajectory sample counts above 1.
The inert defaults num_traj_samples=1 and nav_guidance_weight=3 are
accepted. Integer controls, including sample/frame counts, top_k and
max_tokens, do not coerce booleans, strings or floating-point numbers.
The gRPC message limit is 134217728 bytes for sending and receiving; configure client limits accordingly. HTTP’s default body limit has the same byte value, but counts the JSON/base64 envelope as well. Twenty-four uncompressed 1920×1080 BMP frames exceed both limits (about 149 MB of raw images, about 199 MB as base64 JSON). Use JPEG or WebP, or BMP frames of about 1280×720 or smaller; see Request size and uncompressed images. For the full input conventions, including axes, frame timing and gRPC frame labels, see Preparing Inputs.
/docs is the only interactive schema viewer; /redoc is not served.
/docs loads its assets from a public CDN, so for offline use retain the
downloaded schema and this documentation rather than relying on the viewer.
gRPC Local Paths and Defaults
Prefer compressed_images for remote clients. local_paths names files
inside the server container, not on the client machine. Local-path input is
disabled unless the operator sets NIM_ALPAMAYO_GRPC_LOCAL_PATH_ROOT to an
approved directory. Resolved paths, including symlink targets, must stay under
that root.
local_paths.scene_dir can name a mounted sample-style scene containing
images/<camera>_t<N>.jpg and egomotion.json. Without image_paths,
the NIM reads the newest num_frames_per_camera frames of each camera from
scene_dir/images (for 2 frames of a four-frame scene: t2 and t3),
so the frames end at the same time as the ego-motion history. A camera that
lacks the scene’s newest frame returns INVALID_ARGUMENT. Alternatively, set local_paths.image_paths explicitly;
relative paths are resolved beneath scene_dir when supplied. Declare the
camera layout and provide egomotion_json when there is no scene directory.
If a request sets both local_paths.scene_dir and egomotion_json,
egomotion_json is used and the scene directory’s egomotion.json is
ignored.
For compressed frames, camera and timestep labels determine ordering when
complete; array order alone is not a substitute for correct labels.
Proto3 absent scalar fields have wire defaults. The adapter treats zero/unset
num_traj_samples as 1 and zero/unset num_frames_per_camera as 4.
Optional sampling fields preserve presence, so an explicit temperature of zero
requests greedy decoding while an absent temperature uses the NIM default.
An unset seed uses the configured default; an explicitly present seed 0 is valid.