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

# gpt-5.4-mini

> Creates a model response for the given input. Some OpenAI models only support the Responses format.



## OpenAPI

````yaml api-reference/model-api/openai/openapi/gpt-5-4-mini/openapi.yaml POST /v1/responses
openapi: 3.1.0
info:
  title: GPT-5.4 Mini
  description: OpenAI GPT-5.4 Mini via Anyfast OpenAI-compatible API (Responses endpoint)
  version: 1.0.0
servers:
  - url: https://www.anyfast.ai
security:
  - bearerAuth: []
paths:
  /v1/responses:
    post:
      summary: Create Response
      description: >-
        Creates a model response for the given input. Some OpenAI models only
        support the Responses format.
      operationId: createResponseGPT54Mini
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - input
              properties:
                model:
                  type: string
                  enum:
                    - gpt-5.4-mini
                  description: Model ID
                  example: gpt-5.4-mini
                input:
                  type: array
                  minItems: 1
                  description: Text or images for the model to generate a response.
                  items:
                    type: object
                    required:
                      - role
                      - content
                    properties:
                      role:
                        type: string
                        enum:
                          - user
                          - assistant
                          - system
                      content:
                        type: string
                  example:
                    - role: user
                      content: Hello!
                stream:
                  type: boolean
                  default: false
                  description: If true, stream partial response deltas using SSE.
                top_p:
                  type: number
                  minimum: 0
                  maximum: 1
                  description: Nucleus sampling threshold.
                max_output_tokens:
                  type: integer
                  minimum: 1
                  description: The maximum number of output tokens to generate.
                text:
                  type: object
                  description: Configuration options for model text response.
                  properties:
                    format:
                      type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - text
                            - json_object
                          description: The defined response format type.
                    verbosity:
                      type: string
                      enum:
                        - low
                        - medium
                        - high
                      description: >-
                        Limits the verbosity of the model response. Default is
                        medium.
                reasoning:
                  type: object
                  description: Configuration for model reasoning / thinking.
                  properties:
                    effort:
                      type: string
                      enum:
                        - none
                        - low
                        - medium
                        - high
                        - xhigh
                      description: Reasoning effort level. Default is none.
                    summary:
                      type: string
                      enum:
                        - auto
                        - concise
                        - detailed
                      description: Summary of reasoning performed by the model.
                tools:
                  type: array
                  items:
                    type: object
                  description: A list of tools the model may call.
                tool_choice:
                  type: string
                  description: Controls which (if any) tool is called by the model.
                store:
                  type: boolean
                  default: true
                  description: >-
                    Whether to store the generated model response for later
                    retrieval via API.
                user:
                  type: string
                  description: A unique identifier representing your end-user.
      responses:
        '200':
          description: Response generated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseObject'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ResponseObject:
      type: object
      required:
        - id
        - object
        - created_at
        - model
        - status
        - output
        - usage
      properties:
        id:
          type: string
          example: resp_0ed94fe7ec73cf560169afd97bba648194b8661d445cfa4244
        object:
          type: string
          example: response
        created_at:
          type: integer
          description: Unix timestamp when the response was created.
          example: 1773132155
        completed_at:
          type: integer
          description: Unix timestamp when the response was completed.
          example: 1773132156
        model:
          type: string
          example: gpt-5.4-mini
        status:
          type: string
          enum:
            - completed
            - failed
            - in_progress
            - incomplete
          example: completed
        output:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                example: msg_0ed94fe7ec73cf56
              type:
                type: string
                example: message
              role:
                type: string
                example: assistant
              status:
                type: string
                example: completed
              content:
                type: array
                items:
                  type: object
                  properties:
                    type:
                      type: string
                      example: output_text
                    text:
                      type: string
                      example: Hi! How can I help you today?
                    annotations:
                      type: array
                      items:
                        type: object
        reasoning:
          type: object
          properties:
            effort:
              type: string
              example: high
            summary:
              type: string
              example: detailed
        text:
          type: object
          properties:
            format:
              type: object
              properties:
                type:
                  type: string
                  example: text
            verbosity:
              type: string
              example: medium
        usage:
          type: object
          properties:
            input_tokens:
              type: integer
              example: 8
            input_tokens_details:
              type: object
              properties:
                cached_tokens:
                  type: integer
                  example: 0
            output_tokens:
              type: integer
              example: 15
            output_tokens_details:
              type: object
              properties:
                reasoning_tokens:
                  type: integer
                  example: 0
            total_tokens:
              type: integer
              example: 23
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````