> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apistable.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 检查 Voice 可用性

> 检查本账户的音色资源。

> 能力按服务端配置逐项启用。未启用操作返回 503 且不创建任务；音乐积分扣除当前未启用。

## 资源与可用性

将路径voice\_id替换为本账户的本站Voice或Persona ID。此接口同步检查，不创建任务。available:false表示供应商明确报告不可用，不用于掩盖网络错误。资源不存在或不属于本账户返回404，供应商账户不匹配返回409，资源过期返回410，供应商异常结构返回502，供应商故障返回503。

## 输出

```json theme={null}
{
  "code": 200,
  "msg": "success",
  "data": {
    "voice_id": "APIstable voice ID",
    "available": true,
    "reason": null
  }
}
```


## OpenAPI

````yaml openapi.json GET /api/v1/voices/{voice_id}
openapi: 3.1.0
info:
  title: APIstable API
  version: 1.0.0-preview
  description: >-
    Public /api/v1 protocol. Valid API keys have the same account-scoped access.
    Read the selected model documentation for its ID, supported inputs, result
    format and availability before submitting. No client submission idempotency
    or max_credits. Availability, pricing, file retention and callback formats
    follow the selected model contract. Unconfigured operations return 503.
servers:
  - url: https://apistable.ai
    description: APIstable API
security: []
paths:
  /api/v1/voices/{voice_id}:
    get:
      summary: Check Voice availability
      operationId: voiceAvailability
      parameters:
        - name: voice_id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - msg
                  - data
                properties:
                  code:
                    const: 200
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      voice_id:
                        type: string
                      available:
                        type: boolean
                      reason:
                        type:
                          - string
                          - 'null'
        '400':
          description: '40002: Invalid input.'
        '401':
          description: '40101: Invalid API key.'
        '404':
          description: '40401: Resource not found in this account.'
        '409':
          description: '40901: Resource provider-account mismatch.'
        '410':
          description: '41001: Resource expired.'
        '502':
          description: '50201: Malformed provider response.'
        '503':
          description: Operation or provider unavailable
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Every valid key can submit and query its own account. Revoked keys are
        rejected.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.