{
  "openapi": "3.0.3",
  "info": {
    "title": "主题藏头诗",
    "description": "藏头诗生成API，用户只需输入特定的藏头字和主题，如“金榜题名”、“生意兴隆”、“万事大吉”等，系统便能自动生成一首押韵且富有诗意的藏头诗。该API旨在为用户提供便捷的文学创作体验，适用于各种庆祝、祝福等场合，让传统文化与现代技术完美融合。",
    "termsOfService": "https://www.showapi.com/helpcenter/view#/4019/2",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://route.showapi.com"
    }
  ],
  "paths": {
    "/3208-1": {
      "x-pointCode": 1,
      "x-mode": "mapping",
      "x-read-timeout": 30,
      "x-connect-timeout": 5,
      "post": {
        "summary": "创作藏头诗",
        "description": "通过这个API接口，用户可以轻松地将自己的想法和情感转化为诗句的形式，无论是用于个人欣赏、分享给朋友，还是作为内容创作的一部分，都能增添一份独特的文化韵味。",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "text": {
                              "type": "string",
                              "description": "生成的藏头诗"
                            },
                            "ret_code": {
                              "type": "number",
                              "description": "0表示生成成功"
                            },
                            "remark": {
                              "type": "string",
                              "description": "错误信息"
                            },
                            "subject": {
                              "type": "string",
                              "description": "您提交的藏头诗主题"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "3208_1_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "num": {
                    "type": "string",
                    "description": "5：五言绝句\n7：七言绝句"
                  },
                  "key": {
                    "type": "string",
                    "description": "藏头诗中要包括的句子，最多八个字"
                  },
                  "subject": {
                    "type": "string",
                    "description": "要表现的主题意境"
                  }
                },
                "required": [
                  "num",
                  "key",
                  "subject"
                ]
              }
            }
          }
        }
      }
    }
  },
  "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/3208?tab=book"
  },
  "x-apiCode": "3208",
  "x-is-own": true,
  "x-is-op": true
}