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

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Chat Completions

> Chat completions.

This endpoint can be used to get realtime chat completions. It can also be used
with the Task API processors to get structured, research outputs via a chat
interface.

<!-- aisa-pricing:start -->
Usage-based billing; Default request estimate: $0.01 USD (not a fixed price). Account-specific pricing and final settlement may differ.
<!-- aisa-pricing:end -->

## Request contract

* **Method and path:** POST /apis/v1/parallel/chat/completions
* **Availability:** enabled
* **Request URL template:** [https://api.aisa.one/apis/v1/parallel/chat/completions](https://api.aisa.one/apis/v1/parallel/chat/completions)
* **Runtime facts:** 5d413ff65ac53e696e28c5a12c4dbbb99e94b7667cbafba2e2c6b9da9156a731

[Complete OpenAPI definition](https://aisa.one/docs/openapi/parallel.ai.json)

Effective request and pricing declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "post_parallel_ai_apis_v1_parallel_chat_completions",
  "method": "POST",
  "path": "/apis/v1/parallel/chat/completions",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "description": "Request for the chat completions endpoint.\n\nNote that all parameters except for `model`, `stream`, and `response_format`\nare ignored.",
          "properties": {
            "frequency_penalty": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The frequency penalty to use for chat completions. Unsupported.",
              "title": "Frequency Penalty"
            },
            "max_tokens": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The maximum number of tokens to generate. Unsupported.",
              "title": "Max Tokens"
            },
            "messages": {
              "items": {},
              "minItems": 1,
              "type": "array"
            },
            "model": {
              "enum": [
                "base",
                "core",
                "lite",
                "speed"
              ],
              "type": "string"
            },
            "n": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The number of chat completions to generate. Unsupported.",
              "title": "N"
            },
            "presence_penalty": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The presence penalty to use for chat completions. Unsupported.",
              "title": "Presence Penalty"
            },
            "previous_interaction_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Interaction ID from a previous chat completion to use as context.",
              "title": "Previous Interaction Id"
            },
            "response_format": {
              "anyOf": [
                {
                  "description": "Default response format. Used to generate text responses.",
                  "properties": {
                    "type": {
                      "const": "text",
                      "title": "Type",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "title": "ResponseFormatText",
                  "type": "object"
                },
                {
                  "description": "JSON Schema response format.\n\nUsed to generate structured JSON responses.\nLearn more about [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs).",
                  "properties": {
                    "json_schema": {
                      "description": "Structured Outputs configuration options, including a JSON Schema.",
                      "properties": {
                        "description": {
                          "title": "Description",
                          "type": "string"
                        },
                        "name": {
                          "title": "Name",
                          "type": "string"
                        },
                        "schema": {
                          "additionalProperties": false,
                          "title": "Schema",
                          "type": "object"
                        },
                        "strict": {
                          "anyOf": [
                            {
                              "type": "boolean"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Strict"
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "title": "JSONSchema",
                      "type": "object"
                    },
                    "type": {
                      "const": "json_schema",
                      "title": "Type",
                      "type": "string"
                    }
                  },
                  "required": [
                    "json_schema",
                    "type"
                  ],
                  "title": "ResponseFormatJSONSchema",
                  "type": "object"
                },
                {
                  "description": "JSON object response format.\n\nAn older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.",
                  "properties": {
                    "type": {
                      "const": "json_object",
                      "title": "Type",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "title": "ResponseFormatJSONObject",
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The response format to use for chat completions. OpenAI compatible.",
              "title": "Response Format"
            },
            "stream": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Whether to stream the chat completions.",
              "title": "Stream"
            },
            "temperature": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The temperature to use for chat completions. Unsupported.",
              "title": "Temperature"
            },
            "top_p": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The top p to use for chat completions. Unsupported.",
              "title": "Top P"
            }
          },
          "required": [
            "messages",
            "model"
          ],
          "title": "ChatCompletionRequest",
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "x-aisa-pricing": {
    "cost_contract": "request_formula",
    "customer_multiplier": 1.0,
    "customer_pricing": "provider_cost_multiplier",
    "default_request_estimate_usd": 0.01,
    "estimate_source": "profile_seed",
    "evidence_source": "request_snapshot"
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based billing; Default request estimate: \$0.01 USD (not a fixed price). Account-specific pricing and final settlement may differ.

Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.

* **Default request reference estimate (USD):** 0.01
* **Cost contract:** request\_formula
* **Published reference multiplier:** 1.0
* **Settlement evidence source:** request\_snapshot


## OpenAPI

````yaml openapi/parallel.ai.json POST /apis/v1/parallel/chat/completions
openapi: 3.1.0
info:
  description: ''
  title: Parallel.ai
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    parallel.ai:
      description: ''
      title: Parallel.ai
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 5d413ff65ac53e696e28c5a12c4dbbb99e94b7667cbafba2e2c6b9da9156a731
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/parallel/chat/completions
    - /apis/v1/parallel/extract
    - /apis/v1/parallel/findall/ingest
    - /apis/v1/parallel/findall/runs/{findall_id}
    - /apis/v1/parallel/findall/runs/{findall_id}/cancel
    - /apis/v1/parallel/findall/runs/{findall_id}/events
    - /apis/v1/parallel/findall/runs/{findall_id}/result
    - /apis/v1/parallel/findall/runs/{findall_id}/schema
    - /apis/v1/parallel/monitors/{monitor_id}
    - /apis/v1/parallel/monitors/{monitor_id}/cancel
    - /apis/v1/parallel/monitors/{monitor_id}/events
    - /apis/v1/parallel/monitors/{monitor_id}/update
    - /apis/v1/parallel/tasks/groups
    - /apis/v1/parallel/tasks/groups/{taskgroup_id}
    - /apis/v1/parallel/tasks/groups/{taskgroup_id}/events
    - /apis/v1/parallel/tasks/groups/{taskgroup_id}/runs/{run_id}
    - /apis/v1/parallel/tasks/runs/{run_id}
    - /apis/v1/parallel/tasks/runs/{run_id}/events
    - /apis/v1/parallel/tasks/runs/{run_id}/input
    - /apis/v1/parallel/tasks/runs/{run_id}/result
    - /apis/v1/parallel/v1beta/tasks/runs/{run_id}/events
  x-aisa-document:
    composer_version: '20'
    document_hash: sha256:faf7bdc612cf28356fbb13a4aafcba6664c0f5f6176fe3ef56b5c4d887f62c03
    facts_hash: 5d413ff65ac53e696e28c5a12c4dbbb99e94b7667cbafba2e2c6b9da9156a731
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: parallel.ai
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/parallel/chat/completions:
    post:
      tags:
        - default
      summary: Chat Completions
      description: >-
        Chat completions.


        This endpoint can be used to get realtime chat completions. It can also
        be used

        with the Task API processors to get structured, research outputs via a
        chat

        interface.


        <!-- aisa-pricing:start -->

        Usage-based billing; Default request estimate: $0.01 USD (not a fixed
        price). Account-specific pricing and final settlement may differ.

        <!-- aisa-pricing:end -->
      operationId: post_parallel_ai_apis_v1_parallel_chat_completions
      requestBody:
        content:
          application/json:
            schema:
              description: >-
                Request for the chat completions endpoint.


                Note that all parameters except for `model`, `stream`, and
                `response_format`

                are ignored.
              properties:
                frequency_penalty:
                  anyOf:
                    - type: number
                    - type: 'null'
                  description: >-
                    The frequency penalty to use for chat completions.
                    Unsupported.
                  title: Frequency Penalty
                max_tokens:
                  anyOf:
                    - type: integer
                    - type: 'null'
                  description: The maximum number of tokens to generate. Unsupported.
                  title: Max Tokens
                messages:
                  items: {}
                  minItems: 1
                  type: array
                model:
                  enum:
                    - base
                    - core
                    - lite
                    - speed
                  type: string
                'n':
                  anyOf:
                    - type: integer
                    - type: 'null'
                  description: The number of chat completions to generate. Unsupported.
                  title: 'N'
                presence_penalty:
                  anyOf:
                    - type: number
                    - type: 'null'
                  description: >-
                    The presence penalty to use for chat completions.
                    Unsupported.
                  title: Presence Penalty
                previous_interaction_id:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    Interaction ID from a previous chat completion to use as
                    context.
                  title: Previous Interaction Id
                response_format:
                  anyOf:
                    - description: >-
                        Default response format. Used to generate text
                        responses.
                      properties:
                        type:
                          const: text
                          title: Type
                          type: string
                      required:
                        - type
                      title: ResponseFormatText
                      type: object
                    - description: >-
                        JSON Schema response format.


                        Used to generate structured JSON responses.

                        Learn more about [Structured
                        Outputs](https://platform.openai.com/docs/guides/structured-outputs).
                      properties:
                        json_schema:
                          description: >-
                            Structured Outputs configuration options, including
                            a JSON Schema.
                          properties:
                            description:
                              title: Description
                              type: string
                            name:
                              title: Name
                              type: string
                            schema:
                              additionalProperties: false
                              title: Schema
                              type: object
                            strict:
                              anyOf:
                                - type: boolean
                                - type: 'null'
                              title: Strict
                          required:
                            - name
                          title: JSONSchema
                          type: object
                        type:
                          const: json_schema
                          title: Type
                          type: string
                      required:
                        - json_schema
                        - type
                      title: ResponseFormatJSONSchema
                      type: object
                    - description: >-
                        JSON object response format.


                        An older method of generating JSON responses.

                        Using `json_schema` is recommended for models that
                        support it. Note that the

                        model will not generate JSON without a system or user
                        message instructing it

                        to do so.
                      properties:
                        type:
                          const: json_object
                          title: Type
                          type: string
                      required:
                        - type
                      title: ResponseFormatJSONObject
                      type: object
                    - type: 'null'
                  description: >-
                    The response format to use for chat completions. OpenAI
                    compatible.
                  title: Response Format
                stream:
                  anyOf:
                    - type: boolean
                    - type: 'null'
                  description: Whether to stream the chat completions.
                  title: Stream
                temperature:
                  anyOf:
                    - type: number
                    - type: 'null'
                  description: The temperature to use for chat completions. Unsupported.
                  title: Temperature
                top_p:
                  anyOf:
                    - type: number
                    - type: 'null'
                  description: The top p to use for chat completions. Unsupported.
                  title: Top P
              required:
                - messages
                - model
              title: ChatCompletionRequest
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseB67C75A8Feba_ChatCompletion'
            text/event-stream:
              schema:
                $ref: >-
                  #/components/schemas/ResponseB67C75A8Feba_ChatCompletionResponseChunk
          description: >-
            Returns a ChatCompletion object for non-streaming requests
            (application/json), or a stream of ChatCompletionResponseChunk
            objects for streaming requests (text/event-stream) when
            `stream=true` is set in the request.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  schemas:
    ResponseB67C75A8Feba_ChatCompletion:
      additionalProperties: true
      description: Chat completion response.
      properties:
        basis:
          default: []
          description: >-
            Basis for the chat completion, including citations and reasoning
            supporting the output.
          items:
            $ref: '#/components/schemas/ResponseB67C75A8Feba_FieldBasis'
          title: Basis
          type: array
        choices:
          items:
            $ref: '#/components/schemas/ResponseB67C75A8Feba_Choice'
          title: Choices
          type: array
        created:
          title: Created
          type: integer
        id:
          description: The id of the chat completion.
          title: Id
          type: string
        interaction_id:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Identifier for this interaction. Pass as previous_interaction_id for
            follow-ups.
          title: Interaction Id
        model:
          title: Model
          type: string
        moderation:
          anyOf:
            - $ref: >-
                #/components/schemas/ResponseB67C75A8Feba_openai__types__chat__chat_completion__Moderation
            - type: 'null'
        object:
          const: chat.completion
          title: Object
          type: string
        service_tier:
          anyOf:
            - enum:
                - auto
                - default
                - flex
                - scale
                - priority
              type: string
            - type: 'null'
          title: Service Tier
        system_fingerprint:
          anyOf:
            - type: string
            - type: 'null'
          title: System Fingerprint
        usage:
          anyOf:
            - $ref: '#/components/schemas/ResponseB67C75A8Feba_CompletionUsage'
            - type: 'null'
      required:
        - id
        - choices
        - created
        - model
        - object
      title: ChatCompletion
      type: object
    ResponseB67C75A8Feba_ChatCompletionResponseChunk:
      additionalProperties: true
      description: Chat completion response chunk.
      properties:
        basis:
          default: []
          description: >-
            Basis for the chat completion chunk, including citations and
            reasoning supporting the output.
          items:
            $ref: '#/components/schemas/ResponseB67C75A8Feba_FieldBasis'
          title: Basis
          type: array
        choices:
          items:
            $ref: '#/components/schemas/ResponseB67C75A8Feba_Choice'
          title: Choices
          type: array
        created:
          title: Created
          type: integer
        id:
          description: The id of the chat completion response chunk.
          title: Id
          type: string
        interaction_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Identifier for this interaction. Pass as previous_interaction_id for
            follow-ups.
          title: Interaction Id
        model:
          title: Model
          type: string
        moderation:
          anyOf:
            - $ref: '#/components/schemas/ResponseB67C75A8Feba_Moderation'
            - type: 'null'
          default: null
        object:
          const: chat.completion.chunk
          title: Object
          type: string
        service_tier:
          anyOf:
            - enum:
                - auto
                - default
                - flex
                - scale
                - priority
              type: string
            - type: 'null'
          default: null
          title: Service Tier
        system_fingerprint:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: System Fingerprint
        type:
          const: chat.completion.chunk
          description: >-
            The type of the chat completion chunk. Always
            `chat.completion.chunk`.
          title: Type
          type: string
        usage:
          anyOf:
            - $ref: '#/components/schemas/ResponseB67C75A8Feba_CompletionUsage'
            - type: 'null'
          default: null
      required:
        - id
        - choices
        - created
        - model
        - object
        - type
      title: ChatCompletionResponseChunk
      type: object
    ResponseB67C75A8Feba_FieldBasis:
      description: Citations and reasoning supporting one field of a task output.
      properties:
        citations:
          default: []
          description: List of citations supporting the output field.
          items:
            $ref: '#/components/schemas/ResponseB67C75A8Feba_Citation'
          title: Citations
          type: array
        confidence:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Confidence level for the output field. Only certain processors
            provide confidence levels.
          examples:
            - low
            - medium
            - high
          title: Confidence
        field:
          description: Name of the output field.
          title: Field
          type: string
        reasoning:
          description: Reasoning for the output field.
          title: Reasoning
          type: string
      required:
        - field
        - reasoning
      title: FieldBasis
      type: object
    ResponseB67C75A8Feba_Choice:
      additionalProperties: true
      properties:
        delta:
          $ref: '#/components/schemas/ResponseB67C75A8Feba_ChoiceDelta'
        finish_reason:
          anyOf:
            - enum:
                - stop
                - length
                - tool_calls
                - content_filter
                - function_call
              type: string
            - type: 'null'
          default: null
          title: Finish Reason
        index:
          title: Index
          type: integer
        logprobs:
          anyOf:
            - $ref: '#/components/schemas/ResponseB67C75A8Feba_ChoiceLogprobs'
            - type: 'null'
          default: null
      required:
        - delta
        - index
      title: Choice
      type: object
    ResponseB67C75A8Feba_openai__types__chat__chat_completion__Moderation:
      additionalProperties: true
      description: >-
        Moderation results for the request input and generated output, if
        moderated

        completions were requested.
      properties:
        input:
          anyOf:
            - $ref: >-
                #/components/schemas/ResponseB67C75A8Feba_ModerationInputModerationResults
            - $ref: >-
                #/components/schemas/ResponseB67C75A8Feba_openai__types__chat__chat_completion__ModerationInputError
          title: Input
        output:
          anyOf:
            - $ref: >-
                #/components/schemas/ResponseB67C75A8Feba_ModerationOutputModerationResults
            - $ref: >-
                #/components/schemas/ResponseB67C75A8Feba_openai__types__chat__chat_completion__ModerationOutputError
          title: Output
      required:
        - input
        - output
      title: Moderation
      type: object
    ResponseB67C75A8Feba_CompletionUsage:
      additionalProperties: true
      description: Usage statistics for the completion request.
      properties:
        completion_tokens:
          title: Completion Tokens
          type: integer
        completion_tokens_details:
          anyOf:
            - $ref: >-
                #/components/schemas/ResponseB67C75A8Feba_CompletionTokensDetails
            - type: 'null'
          default: null
        prompt_tokens:
          title: Prompt Tokens
          type: integer
        prompt_tokens_details:
          anyOf:
            - $ref: '#/components/schemas/ResponseB67C75A8Feba_PromptTokensDetails'
            - type: 'null'
          default: null
        total_tokens:
          title: Total Tokens
          type: integer
      required:
        - completion_tokens
        - prompt_tokens
        - total_tokens
      title: CompletionUsage
      type: object
    ResponseB67C75A8Feba_Moderation:
      additionalProperties: true
      description: >-
        Moderation results for the response input and output, if moderated
        completions were requested.
      properties:
        input:
          anyOf:
            - $ref: >-
                #/components/schemas/ResponseB67C75A8Feba_ModerationInputModerationResult
            - $ref: '#/components/schemas/ResponseB67C75A8Feba_ModerationInputError'
          title: Input
        output:
          anyOf:
            - $ref: >-
                #/components/schemas/ResponseB67C75A8Feba_ModerationOutputModerationResult
            - $ref: '#/components/schemas/ResponseB67C75A8Feba_ModerationOutputError'
          title: Output
      required:
        - input
        - output
      title: Moderation
      type: object
    ResponseB67C75A8Feba_Citation:
      description: A citation for a task output.
      properties:
        excerpts:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          default: null
          description: >-
            Excerpts from the citation supporting the output. Only certain
            processors provide excerpts.
          title: Excerpts
        title:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: Title of the citation.
          title: Title
        url:
          description: URL of the citation.
          title: Url
          type: string
      required:
        - url
      title: Citation
      type: object
    ResponseB67C75A8Feba_ChoiceDelta:
      additionalProperties: true
      description: A chat completion delta generated by streamed model responses.
      properties:
        content:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Content
        function_call:
          anyOf:
            - $ref: >-
                #/components/schemas/ResponseB67C75A8Feba_ChoiceDeltaFunctionCall
            - type: 'null'
          default: null
        refusal:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Refusal
        role:
          anyOf:
            - enum:
                - developer
                - system
                - user
                - assistant
                - tool
              type: string
            - type: 'null'
          default: null
          title: Role
        tool_calls:
          anyOf:
            - items:
                $ref: '#/components/schemas/ResponseB67C75A8Feba_ChoiceDeltaToolCall'
              type: array
            - type: 'null'
          default: null
          title: Tool Calls
      title: ChoiceDelta
      type: object
    ResponseB67C75A8Feba_ChoiceLogprobs:
      additionalProperties: true
      description: Log probability information for the choice.
      properties:
        content:
          anyOf:
            - items:
                $ref: >-
                  #/components/schemas/ResponseB67C75A8Feba_ChatCompletionTokenLogprob
              type: array
            - type: 'null'
          default: null
          title: Content
        refusal:
          anyOf:
            - items:
                $ref: >-
                  #/components/schemas/ResponseB67C75A8Feba_ChatCompletionTokenLogprob
              type: array
            - type: 'null'
          default: null
          title: Refusal
      title: ChoiceLogprobs
      type: object
    ResponseB67C75A8Feba_ModerationInputModerationResults:
      additionalProperties: true
      description: Successful moderation results for the request input or generated output.
      properties:
        model:
          title: Model
          type: string
        results:
          items:
            $ref: >-
              #/components/schemas/ResponseB67C75A8Feba_ModerationInputModerationResultsResult
          title: Results
          type: array
        type:
          const: moderation_results
          title: Type
          type: string
      required:
        - model
        - results
        - type
      title: ModerationInputModerationResults
      type: object
    ResponseB67C75A8Feba_openai__types__chat__chat_completion__ModerationInputError:
      additionalProperties: true
      description: An error produced while attempting moderation.
      properties:
        code:
          title: Code
          type: string
        message:
          title: Message
          type: string
        type:
          const: error
          title: Type
          type: string
      required:
        - code
        - message
        - type
      title: ModerationInputError
      type: object
    ResponseB67C75A8Feba_ModerationOutputModerationResults:
      additionalProperties: true
      description: Successful moderation results for the request input or generated output.
      properties:
        model:
          title: Model
          type: string
        results:
          items:
            $ref: >-
              #/components/schemas/ResponseB67C75A8Feba_ModerationOutputModerationResultsResult
          title: Results
          type: array
        type:
          const: moderation_results
          title: Type
          type: string
      required:
        - model
        - results
        - type
      title: ModerationOutputModerationResults
      type: object
    ResponseB67C75A8Feba_openai__types__chat__chat_completion__ModerationOutputError:
      additionalProperties: true
      description: An error produced while attempting moderation.
      properties:
        code:
          title: Code
          type: string
        message:
          title: Message
          type: string
        type:
          const: error
          title: Type
          type: string
      required:
        - code
        - message
        - type
      title: ModerationOutputError
      type: object
    ResponseB67C75A8Feba_CompletionTokensDetails:
      additionalProperties: true
      description: Breakdown of tokens used in a completion.
      properties:
        accepted_prediction_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          title: Accepted Prediction Tokens
        audio_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          title: Audio Tokens
        reasoning_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          title: Reasoning Tokens
        rejected_prediction_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          title: Rejected Prediction Tokens
      title: CompletionTokensDetails
      type: object
    ResponseB67C75A8Feba_PromptTokensDetails:
      additionalProperties: true
      description: Breakdown of tokens used in the prompt.
      properties:
        audio_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          title: Audio Tokens
        cached_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          title: Cached Tokens
      title: PromptTokensDetails
      type: object
    ResponseB67C75A8Feba_ModerationInputModerationResult:
      additionalProperties: true
      description: A moderation result produced for the response input or output.
      properties:
        categories:
          additionalProperties:
            type: boolean
          title: Categories
          type: object
        category_applied_input_types:
          additionalProperties:
            items:
              enum:
                - text
                - image
              type: string
            type: array
          title: Category Applied Input Types
          type: object
        category_scores:
          additionalProperties:
            type: number
          title: Category Scores
          type: object
        flagged:
          title: Flagged
          type: boolean
        model:
          title: Model
          type: string
        type:
          const: moderation_result
          title: Type
          type: string
      required:
        - categories
        - category_applied_input_types
        - category_scores
        - flagged
        - model
        - type
      title: ModerationInputModerationResult
      type: object
    ResponseB67C75A8Feba_ModerationInputError:
      additionalProperties: true
      description: >-
        An error produced while attempting moderation for the response input or
        output.
      properties:
        code:
          title: Code
          type: string
        message:
          title: Message
          type: string
        type:
          const: error
          title: Type
          type: string
      required:
        - code
        - message
        - type
      title: ModerationInputError
      type: object
    ResponseB67C75A8Feba_ModerationOutputModerationResult:
      additionalProperties: true
      description: A moderation result produced for the response input or output.
      properties:
        categories:
          additionalProperties:
            type: boolean
          title: Categories
          type: object
        category_applied_input_types:
          additionalProperties:
            items:
              enum:
                - text
                - image
              type: string
            type: array
          title: Category Applied Input Types
          type: object
        category_scores:
          additionalProperties:
            type: number
          title: Category Scores
          type: object
        flagged:
          title: Flagged
          type: boolean
        model:
          title: Model
          type: string
        type:
          const: moderation_result
          title: Type
          type: string
      required:
        - categories
        - category_applied_input_types
        - category_scores
        - flagged
        - model
        - type
      title: ModerationOutputModerationResult
      type: object
    ResponseB67C75A8Feba_ModerationOutputError:
      additionalProperties: true
      description: >-
        An error produced while attempting moderation for the response input or
        output.
      properties:
        code:
          title: Code
          type: string
        message:
          title: Message
          type: string
        type:
          const: error
          title: Type
          type: string
      required:
        - code
        - message
        - type
      title: ModerationOutputError
      type: object
    ResponseB67C75A8Feba_ChoiceDeltaFunctionCall:
      additionalProperties: true
      description: >-
        Deprecated and replaced by `tool_calls`.


        The name and arguments of a function that should be called, as generated
        by the model.
      properties:
        arguments:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Arguments
        name:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Name
      title: ChoiceDeltaFunctionCall
      type: object
    ResponseB67C75A8Feba_ChoiceDeltaToolCall:
      additionalProperties: true
      properties:
        function:
          anyOf:
            - $ref: >-
                #/components/schemas/ResponseB67C75A8Feba_ChoiceDeltaToolCallFunction
            - type: 'null'
          default: null
        id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Id
        index:
          title: Index
          type: integer
        type:
          anyOf:
            - const: function
              type: string
            - type: 'null'
          default: null
          title: Type
      required:
        - index
      title: ChoiceDeltaToolCall
      type: object
    ResponseB67C75A8Feba_ChatCompletionTokenLogprob:
      additionalProperties: true
      properties:
        bytes:
          anyOf:
            - items:
                type: integer
              type: array
            - type: 'null'
          default: null
          title: Bytes
        logprob:
          title: Logprob
          type: number
        token:
          title: Token
          type: string
        top_logprobs:
          items:
            $ref: '#/components/schemas/ResponseB67C75A8Feba_TopLogprob'
          title: Top Logprobs
          type: array
      required:
        - token
        - logprob
        - top_logprobs
      title: ChatCompletionTokenLogprob
      type: object
    ResponseB67C75A8Feba_ModerationInputModerationResultsResult:
      additionalProperties: true
      description: A moderation result produced for the response input or output.
      properties:
        categories:
          additionalProperties:
            type: boolean
          title: Categories
          type: object
        category_applied_input_types:
          additionalProperties:
            items:
              enum:
                - text
                - image
              type: string
            type: array
          title: Category Applied Input Types
          type: object
        category_scores:
          additionalProperties:
            type: number
          title: Category Scores
          type: object
        flagged:
          title: Flagged
          type: boolean
        model:
          title: Model
          type: string
        type:
          const: moderation_result
          title: Type
          type: string
      required:
        - categories
        - category_applied_input_types
        - category_scores
        - flagged
        - model
        - type
      title: ModerationInputModerationResultsResult
      type: object
    ResponseB67C75A8Feba_ModerationOutputModerationResultsResult:
      additionalProperties: true
      description: A moderation result produced for the response input or output.
      properties:
        categories:
          additionalProperties:
            type: boolean
          title: Categories
          type: object
        category_applied_input_types:
          additionalProperties:
            items:
              enum:
                - text
                - image
              type: string
            type: array
          title: Category Applied Input Types
          type: object
        category_scores:
          additionalProperties:
            type: number
          title: Category Scores
          type: object
        flagged:
          title: Flagged
          type: boolean
        model:
          title: Model
          type: string
        type:
          const: moderation_result
          title: Type
          type: string
      required:
        - categories
        - category_applied_input_types
        - category_scores
        - flagged
        - model
        - type
      title: ModerationOutputModerationResultsResult
      type: object
    ResponseB67C75A8Feba_ChoiceDeltaToolCallFunction:
      additionalProperties: true
      properties:
        arguments:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Arguments
        name:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Name
      title: ChoiceDeltaToolCallFunction
      type: object
    ResponseB67C75A8Feba_TopLogprob:
      additionalProperties: true
      properties:
        bytes:
          anyOf:
            - items:
                type: integer
              type: array
            - type: 'null'
          default: null
          title: Bytes
        logprob:
          title: Logprob
          type: number
        token:
          title: Token
          type: string
      required:
        - token
        - logprob
      title: TopLogprob
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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