---
title: "Execute Decision Model Completion"
method: POST
path: "/v1/decision/completions"
tags: ["Decision Models"]
---

# Execute Decision Model Completion

`POST /v1/decision/completions`

## Request

- Base URL: `https://api.swarms.world`
- URL: `https://api.swarms.world/v1/decision/completions`
- Auth: none declared. Required headers: `x-api-key`

Ask a decision model typed questions about a state and get calibrated probabilities back instead of generated text.

## Headers

- `x-api-key` string, required

## Request body

- DecisionModelCompletion
  - `state` union, required: The content every question is asked about: text, a JSON object or a list.
    - string
    - object
    - unknown[]
      - unknown
  - `questions` object, required: Questions keyed by a name you choose. The answers come back under the same names.
  - `model_name` string: Decision model that answers the questions; also accepted as model. GET /v1/decision/models lists the available models and their prices.

## Response `200`

Successful Response

- DecisionModelCompletionOutput
  - `job_id` string, required: Unique identifier for this completion.
  - `status` string, required: Status of the request, success when completed.
  - `model_name` string, required: The decision model requested.
  - `model` string, required: The model version that answered, which may differ from an alias such as jev-latest.
  - `answers` object, required: Answers keyed by question name. A choice answer has choice, probabilities and confidence; a score answer has score, legend, probabilities and confidence; a noul answer has noul, the probability from 0 to 1.
  - `usage` DecisionModelUsage, required
    - `input_tokens` integer, required: Input tokens reported by the provider.
    - `output_tokens` integer, required: Output tokens reported by the provider.
    - `total_tokens` integer, required: Input plus output tokens.
    - `input_cost` number, required: Cost of the input tokens in USD.
    - `output_cost` number, required: Cost of the output tokens in USD.
    - `total_cost` number, required: Amount charged for this request in USD.
  - `timestamp` string, required: ISO 8601 time the completion finished.

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-09** `a82277bd3821`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/swarms/apis/swarms-api/changes/v1/decision/completions/post.md)

---

[API](https://skmtc.dev/swarms/apis/swarms-api.md) - [All operations](https://skmtc.dev/swarms/apis/swarms-api/llms.txt) - [OpenAPI document](https://skmtc.dev/swarms/apis/swarms-api/revisions/fca99f497199?raw)
