# Omni（人工智能作业解算器）

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/omni/question:
    post:
      summary: Omni（人工智能作业解算器）
      deprecated: false
      description: |-
        此端点需要帐户批准才能访问。请[联系我们](https://smodin.io/contact)获取访问权限。

        使用 AI 回答任何作业问题，比 GPT-4 更准确。

        ### 文字成本

        **字数成本：** 3000
        **字数成本说明：**无论请求大小，此端点均使用固定的 3,000 字数成本。可根据要求提供专业定价。
      tags: []
      parameters:
        - name: content-type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                language:
                  type: string
                question:
                  type: string
              x-apifox-orders:
                - language
                - question
              required:
                - language
                - question
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  language:
                    type: string
                  generatedAnswer:
                    type: object
                    properties:
                      answer:
                        type: string
                      shortDescription:
                        type: string
                      longDescription:
                        type: string
                      chanceCorrect:
                        type: integer
                      chanceCorrectAdvancedModel:
                        type: integer
                    required:
                      - answer
                      - shortDescription
                      - longDescription
                      - chanceCorrect
                      - chanceCorrectAdvancedModel
                    x-apifox-orders:
                      - answer
                      - shortDescription
                      - longDescription
                      - chanceCorrect
                      - chanceCorrectAdvancedModel
                  QAs:
                    type: array
                    items:
                      type: object
                      properties:
                        question:
                          type: string
                        link:
                          type: string
                        answer:
                          type: string
                        isAcceptedAnswer:
                          type: boolean
                        alternativeAnswers:
                          type: array
                          items:
                            type: string
                        source:
                          type: string
                        position:
                          type: integer
                        upvotes:
                          type: integer
                      x-apifox-orders:
                        - question
                        - link
                        - answer
                        - isAcceptedAnswer
                        - alternativeAnswers
                        - source
                        - position
                        - upvotes
                  webResults:
                    type: array
                    items:
                      type: object
                      properties:
                        title:
                          type: string
                        domain:
                          type: string
                        link:
                          type: string
                        snippet:
                          type: string
                        position:
                          type: integer
                        source:
                          type: string
                      x-apifox-orders:
                        - title
                        - domain
                        - link
                        - snippet
                        - position
                        - source
                  imageResults:
                    type: array
                    items:
                      type: object
                      properties:
                        position:
                          type: integer
                        title:
                          type: string
                        domain:
                          type: string
                        imageSrc:
                          type: string
                        link:
                          type: string
                      x-apifox-orders:
                        - position
                        - title
                        - domain
                        - imageSrc
                        - link
                  classification:
                    type: object
                    properties:
                      message:
                        type: string
                      answerable:
                        type: boolean
                      topic:
                        type: string
                    required:
                      - message
                      - answerable
                      - topic
                    x-apifox-orders:
                      - message
                      - answerable
                      - topic
                  categorization:
                    type: object
                    properties:
                      generalSubject:
                        type: string
                      courseName:
                        type: string
                      topic:
                        type: string
                      mcq:
                        type: boolean
                      foundationalConcept:
                        type: string
                      theoretical:
                        type: boolean
                      mathRequired:
                        type: boolean
                      reasoningRequired:
                        type: boolean
                      difficulty:
                        type: string
                    required:
                      - generalSubject
                      - courseName
                      - topic
                      - mcq
                      - foundationalConcept
                      - theoretical
                      - mathRequired
                      - reasoningRequired
                      - difficulty
                    x-apifox-orders:
                      - generalSubject
                      - courseName
                      - topic
                      - mcq
                      - foundationalConcept
                      - theoretical
                      - mathRequired
                      - reasoningRequired
                      - difficulty
                required:
                  - language
                  - generatedAnswer
                  - QAs
                  - webResults
                  - imageResults
                  - classification
                  - categorization
                x-apifox-orders:
                  - language
                  - generatedAnswer
                  - QAs
                  - webResults
                  - imageResults
                  - classification
                  - categorization
              example:
                language: string
                generatedAnswer:
                  answer: string
                  shortDescription: string
                  longDescription: string
                  chanceCorrect: 0
                  chanceCorrectAdvancedModel: 0
                QAs:
                  - question: string
                    link: string
                    answer: string
                    isAcceptedAnswer: true
                    alternativeAnswers:
                      - string
                    source: string
                    position: 0
                    upvotes: 0
                webResults:
                  - title: string
                    domain: string
                    link: string
                    snippet: string
                    position: 0
                    source: string
                imageResults:
                  - position: 0
                    title: string
                    domain: string
                    imageSrc: string
                    link: string
                classification:
                  message: string
                  answerable: true
                  topic: string
                categorization:
                  generalSubject: string
                  courseName: string
                  topic: string
                  mcq: true
                  foundationalConcept: string
                  theoretical: true
                  mathRequired: true
                  reasoningRequired: true
                  difficulty: string
          headers: {}
          x-apifox-name: 成功
        '400':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  error:
                    type: string
                  statusCode:
                    type: integer
                required:
                  - message
                  - error
                  - statusCode
                x-apifox-orders:
                  - message
                  - error
                  - statusCode
          headers: {}
          x-apifox-name: 请求有误
      security: []
      x-apifox-folder: ''
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/4355615/apis/api-166426524-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: http://dev-cn.your-api-server.com
    description: 开发环境
  - url: http://test-cn.your-api-server.com
    description: 测试环境
  - url: https://api.smodin.io
    description: 正式环境
security: []

```
