---
title: "Create a response"
method: POST
path: "/v1/responses"
tags: ["Responses"]
---

# Create a response

`POST /v1/responses`

Creates a response using the OpenAI Responses API format. Set stream: true for server-sent events.

## Headers

- `X-Free-Tier` 'true'

## Request body

- ResponsesRequest
  - `model` string, required — Model id.
  - `input` union — Plain text input or a structured Responses API input array.
    - string
    - union[]
      - union
        - string
        - ResponsesInputItem
          - `role` 'system' | 'user' | 'assistant' | 'tool'
          - `content` union — Structured Responses input content.
            - string
            - ResponsesInputContentPart[]
              - …
  - `instructions` string — Optional system-style instruction.
  - `stream` boolean
  - `temperature` number
  - `max_output_tokens` integer
  - `tools` object[] — Tool definitions passed through to the upstream Responses implementation.
  - `tool_choice` union — Controls whether the model may call tools.
    - string
    - object
  - `flagged_categories` string[] — Optional moderation categories to block for this request. Supported: harassment, hate, illicit, sexual. Self-harm and sexual/minors are always blocked.

## Response `200`

Responses API response

- ResponsesResponse
  - `id` string, required
  - `object` 'response', required
  - `created_at` integer
  - `status` string, required
  - `model` string, required
  - `output` ResponsesOutputItem[]
    - `id` string
    - `type` 'message'
    - `status` string
    - `role` 'assistant'
    - `content` ResponsesOutputContentPart[]
      - `type` 'output_text'
      - `text` string
      - `annotations` object[]
  - `usage` ResponsesUsage
    - `input_tokens` integer
    - `output_tokens` integer
    - `total_tokens` integer
  - `remaining_credits` integer, nullable
  - `estimated_credits_used` integer
  - `estimated_cost_usd` number

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `402` — Insufficient credits
- `429` — Rate limited
- `502` — Upstream unavailable

---

[API](https://skmtc.net/abliteration/apis/abliteration-ai-api.md) · [All operations](https://skmtc.net/abliteration/apis/abliteration-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/abliteration/abliteration-ai-api/revisions/3a359f370787/schema)
