# 生成二维码

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/qrcode:
    get:
      summary: 生成二维码
      deprecated: false
      description: ''
      tags:
        - 🍱 实用功能
      parameters:
        - name: text
          in: query
          description: URL/文本内容
          required: false
          example: '123'
          schema:
            type: string
        - name: size
          in: query
          description: 尺寸，默认 256
          required: false
          schema:
            type: string
        - name: level
          in: query
          description: 容错 L、M、Q、H 默认 M
          required: false
          schema:
            type: string
        - name: encoding
          in: query
          description: 编码方式，支持 text/json/markdown
          required: false
          example: ''
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      base64:
                        type: string
                      data_uri:
                        type: string
                      mime_type:
                        type: string
                      text:
                        type: string
                    required:
                      - base64
                      - data_uri
                      - mime_type
                      - text
                required:
                  - code
                  - message
                  - data
          headers: {}
          x-apifox-name: JSON 类型返回
      security: []
      x-apifox-folder: 🍱 实用功能
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/5757303/apis/api-341613938-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://60s.viki.moe
    description: 正式环境
security: []

```
