---
title: "Create Response"
method: POST
path: "/v1/responses"
tags: ["inference"]
---

# Create Response

`POST /v1/responses`

## Headers

- `X-Trajectory-Id` string, nullable
- `Idempotency-Key` string, nullable
- `X-Model-Endpoint-Id` string, nullable
- `x-model-endpoint-access-token` string, nullable
- `X-API-Key` string, nullable

## Request body

- CreateResponseRequest
  - `model` string, required
  - `input` union, required
    - string
    - object[]
  - `stream` boolean

## Response `200`

Successful Response

- CreateResponseResult
  - `id` string, required
  - `object` string, required
  - `created_at` integer, required
  - `status` string, required
  - `model` string, required
  - `output` object[], required
  - `usage` object, nullable

## Changes

- **2026-09-28** `1efa21f7aeb8` — 1 info
  - added the new optional `header` request parameter `Idempotency-Key`
- **2026-09-22** `aea928d034f7` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/trajectory/apis/trajectory-api/changes/v1/responses/post.md)

---

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