Skip to navigation

Visual question answering through an OpenAI-style request

View as Markdown

Compatibility adapter for task=‘vqa’. Put the question and the images in one user message; camera_order and num_frames_per_camera go in nvext. 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
questionstring
answerstring
object"vqa.response"OptionalDefaults to vqa.response
answer_reasonstring or nullOptional
finish_reasonenum or nullOptional

‘stop’ when the model ended its answer, ‘length’ when it reached max_tokens and the answer may be truncated.

Allowed values:
usageobject or nullOptional

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

inference_timedouble or nullOptional

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