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

# Create response

> Create a model response using the OpenAI Responses API format, supporting streaming, function calling, custom tools, client-side `tool_search`, structured outputs, and reasoning.

Requests are **stateless**: Together does not persist responses or conversation state, so pass the full conversation history in `input` on every turn.

For dedicated model inference, send requests to `https://api-inference.together.ai/v1/responses` with your endpoint string as `model`.




## OpenAPI

````yaml openapi.yaml POST /v1/responses
openapi: 3.1.0
info:
  title: Together APIs
  description: The Together REST API. See https://docs.together.ai for more details.
  version: 2.0.0
  termsOfService: https://www.together.ai/terms-of-service
  contact:
    name: Together Support
    url: https://www.together.ai/contact
  license:
    name: MIT
    url: https://github.com/togethercomputer/openapi/blob/main/LICENSE
servers:
  - url: https://api.together.ai
    description: Default environment for APIs
security:
  - bearerAuth: []
paths:
  /v1/responses:
    post:
      tags:
        - Responses
      summary: Create response
      description: >
        Create a model response using the OpenAI Responses API format,
        supporting streaming, function calling, custom tools, client-side
        `tool_search`, structured outputs, and reasoning.


        Requests are **stateless**: Together does not persist responses or
        conversation state, so pass the full conversation history in `input` on
        every turn.


        For dedicated model inference, send requests to
        `https://api-inference.together.ai/v1/responses` with your endpoint
        string as `model`.
      operationId: responses
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResponsesCreateRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponsesObject'
            text/event-stream:
              schema:
                $ref: '#/components/schemas/ResponsesStreamEvent'
        '400':
          description: BadRequest
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorData'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorData'
        '404':
          description: NotFound
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorData'
        '429':
          description: RateLimit
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorData'
        '503':
          description: Overloaded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorData'
        '504':
          description: Timeout
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorData'
      deprecated: false
      x-codeSamples:
        - lang: Shell
          label: cURL
          source: |
            curl -X POST "https://api.together.ai/v1/responses" \
                 -H "Authorization: Bearer $TOGETHER_API_KEY" \
                 -H "Content-Type: application/json" \
                 -d '{
                   "model": "zai-org/GLM-5.3",
                   "input": "Explain what a mixture-of-experts model is in two sentences."
                 }'
        - lang: Python
          label: OpenAI SDK (Python)
          source: |
            import os
            import openai

            client = openai.OpenAI(
                api_key=os.environ["TOGETHER_API_KEY"],
                base_url="https://api.together.ai/v1",
            )

            response = client.responses.create(
                model="zai-org/GLM-5.3",
                input="Explain what a mixture-of-experts model is in two sentences.",
            )

            print(response.output_text)
        - lang: TypeScript
          label: OpenAI SDK (TypeScript)
          source: |
            import OpenAI from "openai";

            const client = new OpenAI({
              apiKey: process.env.TOGETHER_API_KEY,
              baseURL: "https://api.together.ai/v1",
            });

            const response = await client.responses.create({
              model: "zai-org/GLM-5.3",
              input: "Explain what a mixture-of-experts model is in two sentences.",
            });

            console.log(response.output_text);
        - lang: JavaScript
          label: OpenAI SDK (JavaScript)
          source: |
            import OpenAI from "openai";

            const client = new OpenAI({
              apiKey: process.env.TOGETHER_API_KEY,
              baseURL: "https://api.together.ai/v1",
            });

            const response = await client.responses.create({
              model: "zai-org/GLM-5.3",
              input: "Explain what a mixture-of-experts model is in two sentences.",
            });

            console.log(response.output_text);
components:
  schemas:
    ResponsesCreateRequest:
      type: object
      required:
        - model
        - input
      properties:
        model:
          type: string
          description: >-
            Model ID to run inference against (for example `zai-org/GLM-5.3`,
            `zai-org/GLM-5.3-Flash`, `zai-org/GLM-5.2`, or
            `deepseek-ai/DeepSeek-V4.1-Flash-1017`), or a dedicated endpoint
            name when calling `https://api-inference.together.ai/v1/responses`.
          example: zai-org/GLM-5.3
        input:
          description: >-
            A prompt string or an array of input items representing the full
            conversation history. Because requests are stateless, include prior
            user messages, model `output` items, and any tool outputs on each
            follow-up request.
          oneOf:
            - type: string
            - type: array
              items:
                $ref: '#/components/schemas/ResponsesInputItem'
          example: Explain what a mixture-of-experts model is in two sentences.
        instructions:
          type: string
          nullable: true
          description: System-level instructions inserted before the conversation `input`.
          example: Answer concisely.
        max_output_tokens:
          type: integer
          minimum: 1
          nullable: true
          description: >-
            Upper bound on the number of generated tokens, including reasoning
            tokens.
          example: 1024
        temperature:
          type: number
          format: float
          minimum: 0
          maximum: 2
          nullable: true
          description: >-
            Sampling temperature between 0 and 2. Higher values increase
            randomness.
          example: 1
        top_p:
          type: number
          format: float
          minimum: 0
          maximum: 1
          nullable: true
          description: Nucleus sampling threshold between 0 and 1.
          example: 1
        stream:
          type: boolean
          default: false
          description: >-
            When `true`, streams Server-Sent Events (`text/event-stream`) as
            output items are generated instead of returning a single JSON
            response.
        tools:
          type: array
          description: >-
            Client-executed tools the model may call. Hosted server-side tools
            (such as `file_search`, `code_interpreter`, `image_generation`,
            `computer_use_preview`, and remote `mcp` URLs) are not supported.
          items:
            $ref: '#/components/schemas/ResponsesTool'
        tool_choice:
          $ref: '#/components/schemas/ResponsesToolChoice'
        parallel_tool_calls:
          type: boolean
          default: true
          description: >-
            Whether the model may emit multiple tool calls in a single response
            turn.
        text:
          $ref: '#/components/schemas/ResponsesTextConfig'
        reasoning:
          $ref: '#/components/schemas/ResponsesReasoningConfig'
        include:
          type: array
          description: >-
            Additional fields to include in the response output. Passing
            `reasoning.encrypted_content` returns a base64-encoded copy of the
            reasoning text on `reasoning` items for stateless multi-turn replay
            (not encrypted).
          items:
            type: string
            enum:
              - reasoning.encrypted_content
        prompt_cache_key:
          type: string
          nullable: true
          description: >-
            Stable routing key (such as a conversation or session ID) used to
            route related requests together and improve automatic prefix cache
            hit rates.
        frequency_penalty:
          type: number
          format: float
          minimum: -2
          maximum: 2
          nullable: true
          description: >-
            Penalty applied to tokens based on their existing frequency in the
            generated text.
        presence_penalty:
          type: number
          format: float
          minimum: -2
          maximum: 2
          nullable: true
          description: >-
            Penalty applied to tokens that have already appeared in the
            generated text.
        top_logprobs:
          type: integer
          minimum: 0
          maximum: 20
          nullable: true
          description: >-
            Number of most likely tokens to return log probabilities for at each
            position.
        truncation:
          type: string
          enum:
            - disabled
            - auto
          default: disabled
          description: >-
            Context truncation strategy when input approaches the model context
            window.
        metadata:
          type: object
          nullable: true
          maxProperties: 16
          description: Up to 16 string key-value pairs echoed back on the response object.
          additionalProperties:
            type: string
        store:
          type: boolean
          default: false
          description: >-
            Accepted for OpenAI SDK compatibility. Together serves Responses
            statelessly and does not persist responses even when `store` is
            `true`.
    ResponsesObject:
      type: object
      required:
        - id
        - object
        - created_at
        - status
        - model
        - output
      properties:
        id:
          type: string
          description: Unique identifier for the response.
          example: resp_01a24252-8fc2-7322-9779-7a1a0d217dcb
        object:
          type: string
          const: response
          description: Object type, always `response`.
        created_at:
          type: integer
          description: Unix timestamp (in seconds) when the response was created.
        completed_at:
          type: integer
          nullable: true
          description: Unix timestamp (in seconds) when the response completed.
        status:
          type: string
          enum:
            - completed
            - incomplete
            - failed
            - in_progress
            - queued
            - cancelled
          description: Terminal or in-progress status of the response.
        error:
          type: object
          nullable: true
          description: Error object populated when `status` is `failed`.
          properties:
            code:
              type: string
            message:
              type: string
        incomplete_details:
          type: object
          nullable: true
          description: >-
            Details explaining why a response ended with `status` set to
            `incomplete` (for example `max_output_tokens`).
          properties:
            reason:
              type: string
        model:
          type: string
          description: Model ID that generated the response.
        output:
          type: array
          description: >-
            Ordered list of output items generated by the model (reasoning,
            messages, and tool calls).
          items:
            $ref: '#/components/schemas/ResponsesOutputItem'
        instructions:
          type: string
          nullable: true
          description: System instructions echoed from the request, if provided.
        max_output_tokens:
          type: integer
          nullable: true
          description: Maximum output token limit echoed from the request.
        parallel_tool_calls:
          type: boolean
          description: Whether parallel tool calls were enabled.
        reasoning:
          $ref: '#/components/schemas/ResponsesReasoningConfig'
        temperature:
          type: number
          format: float
          nullable: true
        top_p:
          type: number
          format: float
          nullable: true
        text:
          $ref: '#/components/schemas/ResponsesTextConfig'
        tool_choice:
          $ref: '#/components/schemas/ResponsesToolChoice'
        tools:
          type: array
          items:
            $ref: '#/components/schemas/ResponsesTool'
        truncation:
          type: string
          nullable: true
        store:
          type: boolean
          description: Always stateless on Together; responses are not stored server-side.
        background:
          type: boolean
          description: Always `false` on Together; background execution is not supported.
        usage:
          $ref: '#/components/schemas/ResponsesUsage'
        metadata:
          type: object
          nullable: true
          additionalProperties:
            type: string
        prompt_cache_key:
          type: string
          nullable: true
        service_tier:
          type: string
          nullable: true
        frequency_penalty:
          type: number
          format: float
          nullable: true
        presence_penalty:
          type: number
          format: float
          nullable: true
        top_logprobs:
          type: integer
          nullable: true
    ResponsesStreamEvent:
      type: object
      description: >
        Server-Sent Event emitted when `stream` is `true`. Streams start with
        `response.created` and `response.in_progress`, emit item and delta
        events (`response.output_item.added`, `response.content_part.added`,
        `response.output_text.delta`, `response.reasoning_text.delta`,
        `response.function_call_arguments.delta`, `response.output_text.done`,
        `response.reasoning_text.done`, `response.function_call_arguments.done`,
        `response.content_part.done`, `response.output_item.done`), and end with
        a terminal event (`response.completed`, `response.incomplete`,
        `response.failed`, or `error`).
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - response.created
            - response.in_progress
            - response.completed
            - response.incomplete
            - response.failed
            - response.output_item.added
            - response.output_item.done
            - response.content_part.added
            - response.content_part.done
            - response.output_text.delta
            - response.output_text.done
            - response.reasoning_text.delta
            - response.reasoning_text.done
            - response.function_call_arguments.delta
            - response.function_call_arguments.done
            - error
          description: Streaming event type.
        sequence_number:
          type: integer
          description: Monotonically increasing sequence number for events in the stream.
        response:
          $ref: '#/components/schemas/ResponsesObject'
        output_index:
          type: integer
          description: Index of the output item in `response.output`.
        content_index:
          type: integer
          description: Index of the content part within the output item.
        item_id:
          type: string
          description: Identifier of the output item this event applies to.
        item:
          $ref: '#/components/schemas/ResponsesOutputItem'
        part:
          type: object
          description: >-
            Content part object for `content_part.added` and `content_part.done`
            events.
          additionalProperties: true
        delta:
          type: string
          description: Incremental text, reasoning text, or function-call argument chunk.
        text:
          type: string
          description: Final text for `output_text.done` or `reasoning_text.done` events.
        arguments:
          type: string
          description: >-
            Final JSON-encoded arguments string for
            `function_call_arguments.done` events.
    ErrorData:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              nullable: false
            type:
              type: string
              nullable: false
            param:
              type: string
              nullable: true
              default: null
            code:
              type: string
              nullable: true
              default: null
          required:
            - type
            - message
    ResponsesInputItem:
      description: An item in the conversation history passed to `input`.
      oneOf:
        - $ref: '#/components/schemas/ResponsesInputMessage'
        - $ref: '#/components/schemas/ResponsesReasoningItem'
        - $ref: '#/components/schemas/ResponsesFunctionCall'
        - $ref: '#/components/schemas/ResponsesFunctionCallOutput'
        - $ref: '#/components/schemas/ResponsesCustomToolCall'
        - $ref: '#/components/schemas/ResponsesCustomToolCallOutput'
        - $ref: '#/components/schemas/ResponsesToolSearchCall'
        - $ref: '#/components/schemas/ResponsesToolSearchOutput'
    ResponsesTool:
      description: A tool definition available to the model.
      oneOf:
        - $ref: '#/components/schemas/ResponsesFunctionTool'
        - $ref: '#/components/schemas/ResponsesCustomTool'
        - $ref: '#/components/schemas/ResponsesToolSearchTool'
        - $ref: '#/components/schemas/ResponsesNamespaceTool'
    ResponsesToolChoice:
      description: >-
        Controls whether and which tool the model calls (`auto`, `required`,
        `none`, or a specific named function).
      oneOf:
        - type: string
          enum:
            - auto
            - required
            - none
        - type: object
          required:
            - type
            - name
          properties:
            type:
              type: string
              enum:
                - function
            name:
              type: string
              description: Name of the function tool the model must call.
    ResponsesTextConfig:
      type: object
      description: Controls the format and verbosity of generated text output.
      properties:
        format:
          oneOf:
            - type: object
              required:
                - type
              properties:
                type:
                  type: string
                  enum:
                    - text
            - type: object
              required:
                - type
              properties:
                type:
                  type: string
                  enum:
                    - json_object
            - type: object
              required:
                - type
                - name
                - schema
              properties:
                type:
                  type: string
                  enum:
                    - json_schema
                name:
                  type: string
                  description: Name identifying the JSON schema.
                description:
                  type: string
                  description: Optional description of the expected output schema.
                schema:
                  type: object
                  description: JSON Schema constraining the model output.
                  additionalProperties: true
                strict:
                  type: boolean
                  description: Whether to enforce strict schema conformance.
        verbosity:
          type: string
          enum:
            - low
            - medium
            - high
          description: Optional output verbosity hint.
    ResponsesReasoningConfig:
      type: object
      description: >-
        Reasoning configuration for reasoning-capable models. Exact effort
        behavior depends on the selected model's chat template.
      properties:
        effort:
          type: string
          nullable: true
          enum:
            - none
            - minimal
            - low
            - medium
            - high
            - xhigh
            - max
          description: Controls how much reasoning effort the model applies.
        summary:
          type: string
          nullable: true
          enum:
            - auto
            - concise
            - detailed
          description: >-
            Accepted for OpenAI SDK compatibility. Together returns full
            reasoning text in `reasoning.content` and leaves `reasoning.summary`
            empty.
    ResponsesOutputItem:
      description: An output item generated by the model.
      oneOf:
        - $ref: '#/components/schemas/ResponsesOutputMessage'
        - $ref: '#/components/schemas/ResponsesReasoningItem'
        - $ref: '#/components/schemas/ResponsesFunctionCall'
        - $ref: '#/components/schemas/ResponsesCustomToolCall'
        - $ref: '#/components/schemas/ResponsesToolSearchCall'
    ResponsesUsage:
      type: object
      nullable: true
      required:
        - input_tokens
        - output_tokens
        - total_tokens
      properties:
        input_tokens:
          type: integer
          description: Total input tokens processed, including cached tokens.
        input_tokens_details:
          type: object
          properties:
            cached_tokens:
              type: integer
              description: Input tokens served from Together's automatic prefix cache.
            cache_write_tokens:
              type: integer
              description: Input tokens written to the prefix cache.
        output_tokens:
          type: integer
          description: Total generated tokens, including reasoning tokens.
        output_tokens_details:
          type: object
          properties:
            reasoning_tokens:
              type: integer
              description: Reasoning tokens included in `output_tokens`.
        total_tokens:
          type: integer
          description: Sum of `input_tokens` and `output_tokens`.
    ResponsesInputMessage:
      type: object
      required:
        - role
        - content
      properties:
        type:
          type: string
          enum:
            - message
          description: Optional item type discriminator (`message`).
        role:
          type: string
          enum:
            - user
            - assistant
            - system
            - developer
          description: Message role.
        content:
          description: Message text or an array of structured content parts.
          oneOf:
            - type: string
            - type: array
              items:
                $ref: '#/components/schemas/ResponsesInputContentPart'
    ResponsesReasoningItem:
      type: object
      required:
        - type
        - id
      properties:
        type:
          type: string
          enum:
            - reasoning
        id:
          type: string
        status:
          type: string
          enum:
            - in_progress
            - completed
            - incomplete
        summary:
          type: array
          description: Reasoning summary parts (always empty on Together).
          items:
            type: object
            additionalProperties: true
        content:
          type: array
          description: Full reasoning text parts emitted by reasoning-capable models.
          items:
            type: object
            required:
              - type
              - text
            properties:
              type:
                type: string
                enum:
                  - reasoning_text
              text:
                type: string
        encrypted_content:
          type: string
          nullable: true
          description: >-
            Base64-encoded copy of the reasoning text returned when `include`
            contains `reasoning.encrypted_content`. Can be replayed on
            subsequent turns in stateless conversations.
    ResponsesFunctionCall:
      type: object
      required:
        - type
        - call_id
        - name
        - arguments
      properties:
        type:
          type: string
          enum:
            - function_call
        id:
          type: string
        call_id:
          type: string
          description: >-
            Call identifier to match with the corresponding
            `function_call_output` item.
        name:
          type: string
          description: Name of the function to invoke.
        namespace:
          type: string
          nullable: true
          description: Namespace of the tool when declared inside a `namespace` tool group.
        arguments:
          type: string
          description: JSON-encoded string of function arguments.
        status:
          type: string
          enum:
            - in_progress
            - completed
            - incomplete
    ResponsesFunctionCallOutput:
      type: object
      required:
        - type
        - call_id
        - output
      properties:
        type:
          type: string
          enum:
            - function_call_output
        call_id:
          type: string
          description: Identifier matching the prior `function_call.call_id`.
        output:
          description: >-
            Result of executing the function, as a string or array of text/image
            content parts.
          oneOf:
            - type: string
            - type: array
              items:
                $ref: '#/components/schemas/ResponsesInputContentPart'
    ResponsesCustomToolCall:
      type: object
      required:
        - type
        - call_id
        - name
        - input
      properties:
        type:
          type: string
          enum:
            - custom_tool_call
        id:
          type: string
        call_id:
          type: string
          description: >-
            Call identifier to match with the corresponding
            `custom_tool_call_output` item.
        name:
          type: string
          description: Name of the custom tool to invoke.
        input:
          type: string
          description: Raw freeform input string generated for the custom tool.
        status:
          type: string
          enum:
            - in_progress
            - completed
            - incomplete
    ResponsesCustomToolCallOutput:
      type: object
      required:
        - type
        - call_id
        - output
      properties:
        type:
          type: string
          enum:
            - custom_tool_call_output
        call_id:
          type: string
          description: Identifier matching the prior `custom_tool_call.call_id`.
        output:
          type: string
          description: Result of executing the custom tool.
    ResponsesToolSearchCall:
      type: object
      required:
        - type
        - call_id
      properties:
        type:
          type: string
          enum:
            - tool_search_call
        id:
          type: string
        call_id:
          type: string
          description: >-
            Call identifier to match with the corresponding `tool_search_output`
            item.
        execution:
          type: string
          enum:
            - client
        arguments:
          type: object
          description: Search query arguments generated by the model.
          additionalProperties: true
        status:
          type: string
          enum:
            - in_progress
            - completed
            - incomplete
    ResponsesToolSearchOutput:
      type: object
      required:
        - type
        - call_id
        - tools
      properties:
        type:
          type: string
          enum:
            - tool_search_output
        call_id:
          type: string
          description: Identifier matching the prior `tool_search_call.call_id`.
        execution:
          type: string
          enum:
            - client
        status:
          type: string
          enum:
            - completed
            - incomplete
        tools:
          type: array
          description: >-
            Matching tool definitions discovered by the client to load for the
            next turn.
          items:
            oneOf:
              - $ref: '#/components/schemas/ResponsesFunctionTool'
              - $ref: '#/components/schemas/ResponsesNamespaceTool'
    ResponsesFunctionTool:
      type: object
      required:
        - type
        - name
      properties:
        type:
          type: string
          enum:
            - function
        name:
          type: string
          description: Function name the model will call.
        description:
          type: string
          description: Description of what the function does and when to call it.
        parameters:
          type: object
          description: JSON Schema object describing the function arguments.
          additionalProperties: true
        strict:
          type: boolean
          nullable: true
          description: >-
            Whether to enforce strict JSON Schema adherence on generated
            arguments.
    ResponsesCustomTool:
      type: object
      required:
        - type
        - name
      properties:
        type:
          type: string
          enum:
            - custom
        name:
          type: string
          description: Custom freeform tool name (for example `apply_patch`).
        description:
          type: string
          description: Description of the custom tool.
        format:
          description: >-
            Optional output format constraint for the freeform tool input
            (`text` or a `grammar` definition).
          oneOf:
            - type: object
              required:
                - type
              properties:
                type:
                  type: string
                  enum:
                    - text
            - type: object
              required:
                - type
                - syntax
                - definition
              properties:
                type:
                  type: string
                  enum:
                    - grammar
                syntax:
                  type: string
                  enum:
                    - lark
                    - regex
                definition:
                  type: string
    ResponsesToolSearchTool:
      type: object
      description: >-
        Declares a client-executed deferred tool discovery tool. When the model
        emits a `tool_search_call`, the client resolves matching schemas locally
        and returns them in a `tool_search_output` item on the next turn.
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - tool_search
        execution:
          type: string
          enum:
            - client
          default: client
          description: Must be `client`; server-hosted tool search is not supported.
        description:
          type: string
          description: Optional description of the client search tool.
        parameters:
          type: object
          description: Optional JSON Schema for the search query arguments.
          additionalProperties: true
    ResponsesNamespaceTool:
      type: object
      description: >-
        Groups related function tools under a shared namespace (such as an MCP
        server name). Function calls preserve the `namespace` field on the
        emitted `function_call` item.
      required:
        - type
        - name
        - tools
      properties:
        type:
          type: string
          enum:
            - namespace
        name:
          type: string
          description: Namespace identifier.
        description:
          type: string
          description: Optional description of the tool namespace.
        tools:
          type: array
          items:
            $ref: '#/components/schemas/ResponsesFunctionTool'
    ResponsesOutputMessage:
      type: object
      required:
        - type
        - id
        - role
        - content
      properties:
        type:
          type: string
          enum:
            - message
        id:
          type: string
        role:
          type: string
          enum:
            - assistant
        status:
          type: string
          enum:
            - in_progress
            - completed
            - incomplete
        content:
          type: array
          items:
            $ref: '#/components/schemas/ResponsesOutputText'
    ResponsesInputContentPart:
      description: A text or image part inside a message or tool output.
      oneOf:
        - type: object
          required:
            - type
            - text
          properties:
            type:
              type: string
              enum:
                - input_text
                - output_text
            text:
              type: string
              description: Text content of the message part.
        - type: object
          required:
            - type
            - image_url
          properties:
            type:
              type: string
              enum:
                - input_image
            image_url:
              type: string
              description: >-
                HTTPS URL or base64 data URI of the image (supported on
                multimodal models such as `zai-org/GLM-5.3-Flash` and
                `deepseek-ai/DeepSeek-V4.1-Flash-1017`).
            detail:
              type: string
              enum:
                - auto
                - low
                - high
              description: Optional image detail hint.
    ResponsesOutputText:
      type: object
      required:
        - type
        - text
      properties:
        type:
          type: string
          enum:
            - output_text
        text:
          type: string
          description: Generated text content.
        annotations:
          type: array
          items:
            type: object
            additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      x-bearer-format: bearer
      x-default: default

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.