Skip to navigation

Run Alpamayo inference

View as Markdown

Canonical Alpamayo 2 Super inference endpoint. Select the task with task: trajectory (default), vqa, grounding, meta_action, or auto_labeling. Images are base64 data URLs in camera-major order (oldest frame first within each camera); declare camera_order and num_frames_per_camera whenever the images are not the six-camera, four-frame default. trajectory, meta_action and auto_labeling require the 16-row egomotion history. The response carries a warnings list for non-fatal input caveats.

Request

This endpoint expects an object.
imageslist of stringsRequired

Compressed camera images as base64 strings or data:image/…;base64 URIs. JPEG, PNG, WebP, and BMP are supported. Images are ordered by camera_order and timestep. When camera_order is omitted, the default Alpamayo 2 Super profile for the selected mode is used: six cameras for trajectory, answer, or both. Combined mode reuses the trajectory images for VQA. Camera identity and camera-major ordering are caller assertions: the service validates names and counts but cannot identify scene content or detect timestep-major input. Misordered images change output.

modelstring or nullOptional

Optional served model ID from /v1/models. Omitted, null, or empty selects the served model; other names are rejected.

streamfalse or nullOptional

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

taskenum or nullOptional
Canonical inference task. Omit together with mode to run trajectory generation. The legacy mode field remains supported for compatibility.
Allowed values:
modeenum or nullOptional

Legacy inference mode. Prefer task. mode=‘answer’ maps to task=‘vqa’; mode=‘both’ retains combined trajectory and VQA behavior.

Allowed values:
camera_orderlist of enums or nullOptional

Optional camera names matching the image camera-major order. Names may use Alpamayo full camera names or OSS short names such as cross_left and front_wide. Trajectory and legacy combined mode accept any non-empty subset of the six driving cameras. VQA accepts any supported camera subset; meta-action and auto-labeling require the complete driving profile. The service validates this declaration but cannot infer which physical camera produced an image. Default order when omitted: cross_left, front_wide, cross_right, rear_left, rear_right, front_tele (camera-major, oldest frame first within each camera); declare camera_order whenever the images are not in that layout.

num_frames_per_cameraintegerOptional>=1Defaults to 4
Number of temporal frames supplied for each camera.
egomotionobject or nullOptional

Egomotion payload required for trajectory modes. ego_history_xyz must have shape [16, 3]. ego_history_rot must contain exactly 16 quaternion rows [w, x, y, z] or 16 3x3 rotation matrices. The 16-row history is required even for reduced image layouts.

num_traj_samplesintegerOptional1-32Defaults to 1
Number of trajectory samples to generate.
nav_textstring or nullOptional<=1000 characters

Optional natural-language navigation instruction for trajectory generation. It is rendered into the model prompt and applied through classifier-free guidance with nav_guidance_weight. It is advisory model input, not a vehicle-control or safety command. Empty or whitespace-only text is treated as absent.

nav_guidance_weightdouble or nullOptional0-10Defaults to 3

Classifier-free guidance weight applied to nav_text during trajectory generation. Ignored when nav_text is absent. 1.0 renders the navigation text into the prompt without guidance; the default 3.0 matches the released checkpoint and runs an additional unguided prefill per trajectory sample. Valid only for trajectory-producing requests (task=‘trajectory’ or legacy mode=‘both’). Null selects the default.

questionstring or nullOptional

Question for VQA or grounding. Required for task=‘vqa’ (and legacy mode=‘answer’ or ‘both’); optional for task=‘grounding’, which uses the released default question when this field is omitted. Not accepted by trajectory, meta_action, or auto_labeling.

future_sourceenum or nullOptional

Required for auto_labeling: use a caller-provided future trajectory or internally predict a K=1 future.

Allowed values:
future_trajectoryobject or nullOptional

Future trajectory required when future_source=‘provided’.

temperaturedouble or nullOptional0-2Defaults to 0.6

VLM sampling temperature. Trajectory-producing tasks are limited to 1.5 so reasoning remains parseable by the trajectory decoder. Null selects the default.

top_pdouble or nullOptional<=1Defaults to 0.98

VLM nucleus sampling top-p. Must be greater than zero. Null selects the default.

top_kinteger or nullOptional1-2147483647

Optional VLM top-k sampling limit. Use temperature=0 for true greedy decoding; top_k=1 with nonzero temperature still uses sampling and can differ when logits are tied.

max_tokensinteger or nullOptional1-1024

Maximum VLM generation tokens for text-only tasks. Omit this field for trajectory-producing requests; the NIM owns the trajectory generation budget. For auto_labeling the NIM enforces a minimum generation budget of 1024 tokens.

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.

Response

Successful Response
taskenum or "both"
modeenum or nullOptional
Allowed values:
pred_trajectorieslist of any or nullOptional
pred_rotationslist of any or nullOptional
answerstring or nullOptional
answer_reasonstring or nullOptional

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; absent on ordinary answers.

finish_reasonenum or nullOptional

Why VLM text generation ended for vqa, meta_action, auto_labeling, and grounding: ‘stop’ when the model ended its response, ‘length’ when it reached max_tokens and the text may be truncated. Absent for trajectory responses and when the backend does not report it.

Allowed values:
reasoning_textstring or nullOptional
num_samplesinteger or nullOptional
num_pointsinteger or nullOptional
time_stepdouble or nullOptional

Seconds between consecutive trajectory points; present with pred_trajectories. Matches time_step in /v1/chat/completions content and gRPC raw_json.

durationdouble or nullOptional
inference_timedouble or nullOptional
metricsobject or nullOptional
Task metrics. Optional keys depend on task, profile, and diagnostics.
raw_textstring or nullOptional
meta_actionobject or nullOptional

Normalized meta-action axes; an axis that could not be parsed is null.

meta_action_reasonstring or nullOptional
auto_labelingobject or nullOptional
auto_labeling_reasonstring or nullOptional
grounding_boxeslist of objects or nullOptional
bbox_space"grid_0_1000" or nullOptional

Coordinate space of grounding_boxes[].bbox. Always ‘grid_0_1000’ on grounding responses: [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. Null for other tasks.

grounding_reasonstring or nullOptional

Set when parsed labels do not name any object in the question, when boxes were dropped (outside the 0-1000 grid, or without a label), when the response was cut off at max_tokens, or when no box parsed; boxes are unverified when present.

future_sourceenum or nullOptional
Allowed values:
future_trajectoryobject or nullOptional

Future ego trajectory used to condition auto-labeling.

trajectory_cotstring or nullOptional
warningslist of strings or nullOptional

Non-fatal input caveats: the request was served but the result may be unreliable, for example an ego history implying an implausible speed (units) or a trajectory camera subset without a forward camera. Absent when there are none.

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