众扬汇 AI 开放平台 API 文档

获取用户信息(余额

OpenAPI Specification

yaml
openapi: 3.0.1
info:
  title: ''
  description: "本页接口说明详见下方接口定义;参数取值与返回以本平台实测为准。"
  version: 1.0.0
paths:
  /api/user/self:
    get:
      summary: 获取用户信息(余额
      deprecated: false
      description: "需使用「个人中心」生成的系统令牌调用,不能用令牌页的普通 API 令牌。"
      tags:
        - 平台API
      parameters:
        - name: New-API-User
          in: header
          description: "用户 ID,可在个人中心查看"
          required: true
          example: '{{用户ID}}'
          schema:
            type: string
      responses:
        '200':
          description: "该字段的取值与含义以本平台实际返回为准。"
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
      security:
        - bearer: []
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers: []
security: []

使用提示:本页接口的 Base URL 为 https://api.allyang.cn,请求头需携带 Authorization: Bearer <令牌>(令牌在控制台「令牌管理」中创建)。示例中的任务 ID、时间戳与文件地址均为示意值,实际以平台返回为准。

模型名请在「模型广场」复制后填入,不要手输;计费、限流与在售清单以平台实测为准(部分数值待补)。