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

# Render credit check

> Check render credit requirements against the shared Web balance.

MCP tool: `podcast_render_credit_check`. OAuth scope: `podcast.read`.

<Note>Omit `Idempotency-Key` when polling or requesting a fresh estimate. Replaying a previous response can return stale state.</Note>


## OpenAPI

````yaml api-reference/openapi.json POST /open/podcast/v1/render/credit_check
openapi: 3.0.3
info:
  description: >-
    Atomic Podcast capabilities. Credits, tasks and assets are shared with the
    Web account and Space.
  title: Podcastor API
  version: 1.0.0
servers:
  - url: https://api-services.podcastor.ai
    description: Podcastor API
security: []
paths:
  /open/podcast/v1/render/credit_check:
    post:
      tags:
        - Podcast
      summary: render credit check
      description: Check render credit requirements against the shared Web balance.
      operationId: podcast_render_credit_check
      parameters:
        - description: Replay a completed identical request without repeating side effects.
          in: header
          name: Idempotency-Key
          schema:
            maxLength: 128
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/dto.RenderCreditCheckReq'
        description: 请求体
        required: true
        x-originalParamName: req
      responses:
        '200':
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/echo.JSON'
                  - properties:
                      data:
                        $ref: '#/components/schemas/vo.PrjInfoCreditCheckResp'
                    type: object
          description: OK
      security:
        - ApiKey: []
components:
  schemas:
    dto.RenderCreditCheckReq:
      properties:
        project_id:
          type: string
      type: object
    echo.JSON:
      properties:
        cause:
          type: string
        code:
          type: integer
        data: {}
        details: {}
        msg:
          type: string
        rid:
          type: string
      type: object
    vo.PrjInfoCreditCheckResp:
      properties:
        avatar_lite_need_credits:
          description: avatarLite分镜需要支付等
          type: number
        avatar_lite_video_duration:
          description: avatarLite分镜总时长
          type: number
        avatar_x_need_credits:
          description: avatarLite分镜需要支付等
          type: number
        avatar_x_video_duration:
          description: avatarLite分镜总时长
          type: number
        left_credits:
          type: number
        need_credits:
          type: number
        need_upgrade:
          description: 是否需要提示用户升级
          type: boolean
        no_need_pay:
          description: 用户是否无需支付，比如 unlimited 用户无需支付非avatarx任务的消耗
          type: boolean
        primary_account:
          allOf:
            - $ref: '#/components/schemas/vo.UserPrimaryAccountInfoResp'
          description: 主账号信息
        subscribe_plan:
          type: integer
        text_length:
          description: 文案长度
          type: integer
        video_duration:
          description: 视频预估时长
          type: number
      type: object
    vo.UserPrimaryAccountInfoResp:
      properties:
        credit:
          type: number
        username:
          type: string
      type: object
  securitySchemes:
    ApiKey:
      in: header
      name: X-Api-Key
      type: apiKey

````