{
  "openapi": "3.0.3",
  "info": {
    "title": "拍照解题",
    "description": "拍照解题接口是一款利用最新AI技术，专门为教育类应用、学习工具等开发的实用型接口。它允许用户将题目的照片或题目文字性描述提交给接口，然后给出解题思路、答案。此接口能集成到各类应用程序中，为用户提供便捷的学习辅助服务，助力打造智能化学习平台。",
    "termsOfService": "https://www.showapi.com/helpcenter/view#/4019/2",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://route.showapi.com"
    }
  ],
  "paths": {
    "/3247-1": {
      "x-pointCode": 1,
      "x-mode": "mapping",
      "x-read-timeout": 120,
      "x-connect-timeout": 50,
      "post": {
        "summary": "智能做题",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "answer": {
                              "type": "string",
                              "description": "题目解答结果"
                            },
                            "remark": {
                              "type": "string",
                              "description": "失败的描述"
                            },
                            "ret_code": {
                              "type": "number",
                              "description": "计费标识，0为成功，-1为失败"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "3247_1_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "description": "题目文本内容，请将数学符号转成LaTeX格式传入"
                  },
                  "image_base64": {
                    "type": "string",
                    "description": "题目图片的base64字符串，请带前缀data:image/{图片格式};base64,"
                  },
                  "image_url": {
                    "type": "string",
                    "description": "题目图片的url路径，以上三个参数互斥，同时输入时已文本为准"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "AppKeyAuth": {
        "type": "apiKey",
        "in": "query",
        "name": "appKey",
        "description": "从 ShowAPI 控制台获取的 appKey，管理地址：https://www.showapi.com/console#/myApp"
      }
    },
    "schemas": {
      "ShowapiResEnvelope": {
        "type": "object",
        "description": "ShowAPI 统一返回包裹（业务数据位于 showapi_res_body）",
        "properties": {
          "showapi_res_code": {
            "type": "integer",
            "description": "API 返回的状态码"
          },
          "showapi_res_error": {
            "type": "string",
            "description": "API 返回的错误信息"
          },
          "showapi_res_id": {
            "type": "string",
            "description": "API 请求的唯一标识"
          },
          "showapi_fee_num": {
            "type": "integer",
            "description": "API 调用计费次数"
          }
        }
      }
    }
  },
  "security": [
    {
      "AppKeyAuth": []
    }
  ],
  "externalDocs": {
    "url": "https://www.showapi.com/apiGateway/view/3247?tab=book"
  },
  "x-apiCode": "3247",
  "x-is-own": true,
  "x-is-op": true
}