# Generated by ShowAPI OpenAPI generator
# source: market/3220
# generated-at: 2026-06-26T04:41:40.433Z
openapi: 3.0.3
info:
  title: 看图写散文
  description: 将您上传的图片转化为一篇富有情感和想象力的优质散文。无论是自然风光、城市街景，还是日常生活的瞬间，"看图写散文"都能捕捉其独特的氛围和情感，创作出个性化的文学作品。
  termsOfService: https://www.showapi.com/helpcenter/view#/4019/2
  version: 1.0.0
servers:
  - url: https://route.showapi.com
paths:
  /3220-1:
    x-pointCode: 1
    x-mode: mapping
    x-read-timeout: 59
    x-connect-timeout: 59
    post:
      summary: 看图写散文
      description: 用户只需上传图片并提供简短的背景描述，应用即可智能分析图片内容和情感基调，生成与之相匹配的优质散文。
      responses:
        "200":
          description: 成功响应
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/ShowapiResEnvelope"
                  - type: object
                    properties:
                      showapi_res_body:
                        type: object
                        properties:
                          content:
                            type: string
                          ret_code:
                            type: number
                          title:
                            type: string
                        description: 业务返回体
      operationId: 3220_1_POST
      parameters: []
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                img_url:
                  type: string
                  description: 图片的URL，和img_data参数二选一入参，如果都传，以img_data为准。建议图片大小不要超过4M，尺寸限制在5000x5000内。目前只支持jpg和png格式的图片
                img_data:
                  type: string
                  minLength: 0
                  maxLength: 1000000000000
                  description: 图片的base64字符串，和img_data参数二选一入参，如果都传，以img_data为准。建议图片大小不要超过3M，尺寸限制在5000x5000内。目前只支持jpg和png格式的图片
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/3220?tab=book
x-apiCode: "3220"
x-is-own: true
x-is-op: true
