> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abliteration.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a stateless OpenAI Responses-compatible response



## OpenAPI

````yaml https://api.abliteration.ai/openapi.json post /v1/responses
openapi: 3.1.0
info:
  title: Abliteration Platform API
  summary: Greenfield Abliteration backend and API gateway.
  version: 0.1.0
servers: []
security: []
paths:
  /v1/responses:
    post:
      tags:
        - Responses
      summary: Create a stateless OpenAI Responses-compatible response
      operationId: createResponse
      parameters:
        - name: Authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Bearer API key.
            title: Authorization
          description: Bearer API key.
        - name: x-api-key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              API key alternative for Anthropic-compatible clients.
              Authorization takes precedence when both headers are present.
            title: X-Api-Key
          description: >-
            API key alternative for Anthropic-compatible clients. Authorization
            takes precedence when both headers are present.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResponseCreateRequest'
              description: OpenAI Responses-compatible request.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseObject'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '402':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Payment Required
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Conflict
        '413':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Request Entity Too Large
        '415':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unsupported Media Type
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Too Many Requests
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
        '502':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Gateway
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Service Unavailable
components:
  schemas:
    ResponseCreateRequest:
      properties:
        model:
          type: string
          minLength: 1
          title: Model
          description: Public model ID.
        input:
          anyOf:
            - type: string
            - items:
                additionalProperties: true
                type: object
              type: array
          title: Input
        instructions:
          anyOf:
            - type: string
            - type: 'null'
          title: Instructions
        stream:
          type: boolean
          title: Stream
          default: false
        store:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Store
        background:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Background
        previous_response_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Previous Response Id
        max_output_tokens:
          anyOf:
            - type: integer
              maximum: 999990
              minimum: 1
            - type: 'null'
          title: Max Output Tokens
        max_tool_calls:
          anyOf:
            - type: integer
              maximum: 128
              minimum: 1
            - type: 'null'
          title: Max Tool Calls
        temperature:
          anyOf:
            - type: number
              maximum: 2
              minimum: 0
            - type: 'null'
          title: Temperature
        top_p:
          anyOf:
            - type: number
              maximum: 1
              minimum: 0
            - type: 'null'
          title: Top P
        presence_penalty:
          anyOf:
            - type: number
              maximum: 2
              minimum: -2
            - type: 'null'
          title: Presence Penalty
        frequency_penalty:
          anyOf:
            - type: number
              maximum: 2
              minimum: -2
            - type: 'null'
          title: Frequency Penalty
        tools:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Tools
        tool_choice:
          anyOf:
            - type: string
              enum:
                - none
                - auto
                - required
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Tool Choice
        parallel_tool_calls:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Parallel Tool Calls
        reasoning:
          anyOf:
            - $ref: '#/components/schemas/ResponsesReasoning'
            - type: 'null'
        include_reasoning:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Include Reasoning
        text:
          anyOf:
            - $ref: '#/components/schemas/ResponsesTextConfig'
            - type: 'null'
        include:
          anyOf:
            - items:
                type: string
                enum:
                  - message.input_image.image_url
                  - message.output_text.logprobs
                  - reasoning.encrypted_content
              type: array
            - type: 'null'
          title: Include
        truncation:
          anyOf:
            - type: string
              enum:
                - auto
                - disabled
            - type: 'null'
          title: Truncation
        metadata:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          title: Metadata
        client_metadata:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Client Metadata
        prompt_cache_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Prompt Cache Key
        service_tier:
          anyOf:
            - type: string
              enum:
                - auto
                - default
                - flex
                - scale
                - priority
            - type: 'null'
          title: Service Tier
        user:
          anyOf:
            - type: string
              maxLength: 512
            - type: 'null'
          title: User
        safety_identifier:
          anyOf:
            - type: string
              maxLength: 64
            - type: 'null'
          title: Safety Identifier
        flagged_categories:
          items:
            enum:
              - harassment
              - harassment/threatening
              - hate
              - hate/threatening
              - illicit
              - illicit/violent
              - self-harm
              - self-harm/intent
              - self-harm/instructions
              - sexual
              - sexual/minors
              - violence
              - violence/graphic
          type: array
          title: Flagged Categories
      additionalProperties: false
      type: object
      required:
        - model
        - input
      title: ResponseCreateRequest
      description: Versioned public V1 subset of OpenAI Responses create.
    ResponseObject:
      properties:
        id:
          type: string
          pattern: ^resp_
          title: Id
        object:
          type: string
          const: response
          title: Object
          default: response
        status:
          type: string
          enum:
            - completed
            - failed
            - in_progress
            - incomplete
            - queued
          title: Status
        model:
          type: string
          title: Model
        output:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Output
        usage:
          anyOf:
            - $ref: '#/components/schemas/ResponseUsage'
            - type: 'null'
      additionalProperties: true
      type: object
      required:
        - id
        - status
        - model
        - output
      title: ResponseObject
      description: Native response object with required billing/public identity fields.
    ErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - error
      title: ErrorResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ResponsesReasoning:
      properties:
        effort:
          anyOf:
            - type: string
              enum:
                - none
                - minimal
                - low
                - medium
                - high
                - xhigh
                - max
                - ultracode
            - type: 'null'
          title: Effort
        summary:
          anyOf:
            - type: string
              enum:
                - auto
                - concise
                - detailed
            - type: 'null'
          title: Summary
        enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Enabled
        max_tokens:
          anyOf:
            - type: integer
              maximum: 999990
              minimum: 1
            - type: 'null'
          title: Max Tokens
        exclude:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Exclude
      additionalProperties: false
      type: object
      title: ResponsesReasoning
      description: >-
        Native `reasoning.effort` plus the reviewed compatibility aliases.


        The accepted profile decision requires Responses to take enablement,
        budget,

        and visibility aliases, not effort alone, so an OpenRouter- or
        Codex-shaped

        client resolves the same intent here that it already resolves on Chat

        Completions and Messages. `max_tokens` is the budget alias; the total
        output

        cap remains `max_output_tokens`.
    ResponsesTextConfig:
      properties:
        format:
          anyOf:
            - oneOf:
                - $ref: '#/components/schemas/ResponsesTextFormatText'
                - $ref: '#/components/schemas/ResponsesTextFormatJsonObject'
                - $ref: '#/components/schemas/ResponsesTextFormatJsonSchema'
              discriminator:
                propertyName: type
                mapping:
                  json_object:
                    $ref: '#/components/schemas/ResponsesTextFormatJsonObject'
                  json_schema:
                    $ref: '#/components/schemas/ResponsesTextFormatJsonSchema'
                  text:
                    $ref: '#/components/schemas/ResponsesTextFormatText'
            - type: 'null'
          title: Format
        verbosity:
          anyOf:
            - type: string
              enum:
                - low
                - medium
                - high
            - type: 'null'
          title: Verbosity
      additionalProperties: false
      type: object
      title: ResponsesTextConfig
    ResponseUsage:
      properties:
        input_tokens:
          type: integer
          minimum: 0
          title: Input Tokens
        input_tokens_details:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Input Tokens Details
        output_tokens:
          type: integer
          minimum: 0
          title: Output Tokens
        output_tokens_details:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Output Tokens Details
        total_tokens:
          type: integer
          minimum: 0
          title: Total Tokens
      additionalProperties: true
      type: object
      required:
        - input_tokens
        - output_tokens
        - total_tokens
      title: ResponseUsage
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
          description: Stable machine-readable error code.
        message:
          type: string
          title: Message
          description: Bounded human-readable error message.
        type:
          $ref: '#/components/schemas/ErrorType'
          description: Broad stable error category.
        param:
          anyOf:
            - type: string
            - type: 'null'
          title: Param
          description: Request field related to the error.
        request_id:
          type: string
          title: Request Id
          description: Server-owned canonical request ID.
        doc_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Doc Url
          description: Documentation URL for the error.
      type: object
      required:
        - code
        - message
        - type
        - request_id
      title: ErrorDetail
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    ResponsesTextFormatText:
      properties:
        type:
          type: string
          const: text
          title: Type
      additionalProperties: false
      type: object
      required:
        - type
      title: ResponsesTextFormatText
    ResponsesTextFormatJsonObject:
      properties:
        type:
          type: string
          const: json_object
          title: Type
      additionalProperties: false
      type: object
      required:
        - type
      title: ResponsesTextFormatJsonObject
    ResponsesTextFormatJsonSchema:
      properties:
        type:
          type: string
          const: json_schema
          title: Type
        name:
          type: string
          maxLength: 128
          minLength: 1
          title: Name
        description:
          anyOf:
            - type: string
              maxLength: 2048
            - type: 'null'
          title: Description
        schema:
          additionalProperties: true
          type: object
          title: Schema
        strict:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Strict
      additionalProperties: false
      type: object
      required:
        - type
        - name
        - schema
      title: ResponsesTextFormatJsonSchema
    ErrorType:
      type: string
      enum:
        - auth_error
        - permission_error
        - validation_error
        - rate_limit_error
        - billing_error
        - moderation_error
        - media_error
        - not_found_error
        - conflict_error
        - provider_error
        - internal_error
      title: ErrorType

````