Reasoning

Ask a reasoning model

Ask an embodied-reasoning model about one or more images and get an answer in text, with points when it names places in the image.

View as Markdown
POST/v1/reason

Authorization

Request body

JSON, with Content-Type: application/json.

  • modelstringrequired

    The reasoning model to run, e.g. nvidia/cosmos-reason-2. The live models for this endpoint are listed below.

  • promptstringrequired

    The question or instruction, e.g. "Point to the handle of the mug." 1–4,000 characters.

  • imagestring

    One image, base64 JPEG or PNG, under 4 MB of base64. Send image or images.

  • imagesstring[]

    1–8 images, each under 4 MB of base64.

  • framesstring[]

    Video models only (e.g. nyu/cambrian-s): a clip instead of images, 1–32 frames oldest first, all the same size, under 4 MB of base64 together. Other models answer 400.

Response

  • idstring

    Unique id of this call, e.g. rsn_48213. It matches the call in your Activity dashboard.

  • modelstring

    The model that answered.

  • backendstring

    "http": the real model ran on a GPU. "simulated": stand-in output of the same shape, as test keys get.

  • sandboxboolean

    true when the call was made with a test key: the output is simulated, nothing ran on a GPU and nothing was charged. Absent otherwise.

  • textstring

    The model's answer.

  • pointsobject[]

    Points the answer refers to, if any: { label, x, y } in pixels of the first image.

  • usageobject

    What the call cost.

    Show 2 child attributes
    • cost_usdnumber

      Charged to your credits, in US dollars.

    • latency_msinteger

      Time the model took, in milliseconds.

Errors

The errors every endpoint shares: invalid input, keys, credits and cold starts. See Errors.

Models

17 live models for /reason. Each page has a ready-made request.

8 more are coming soon. See the models page.