> ## 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.

# Generate avatar motion

> Generate motion for a Podcast avatar using the shared Web pipeline.

MCP tool: `podcast_generate_avatar_motion`. OAuth scope: `podcast.generate`.


## OpenAPI

````yaml api-reference/openapi.json POST /open/podcast/v1/avatar/motion
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/avatar/motion:
    post:
      tags:
        - Podcast
      summary: generate avatar motion
      description: Generate motion for a Podcast avatar using the shared Web pipeline.
      operationId: podcast_generate_avatar_motion
      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.PodcastAvatarGenerateReq'
        description: 请求体
        required: true
        x-originalParamName: req
      responses:
        '200':
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/echo.JSON'
                  - properties:
                      data:
                        type: object
                    type: object
          description: OK
      security:
        - ApiKey: []
components:
  schemas:
    dto.PodcastAvatarGenerateReq:
      properties:
        avatar_type:
          description: 数字人类型 空:默认/pet:宠物/cartoon:卡通
          type: string
        model:
          description: 使用的模型；未传时使用 podcast_default_model，显式 0 仍表示 Runway
          type: integer
        pack_detail:
          description: 同屏图列表（2.0专用，支持多组），结构与查询返回一致
          items:
            $ref: '#/components/schemas/dto.PackDetail'
          type: array
        pack_item:
          items:
            properties:
              pack_id:
                description: 对应哪个pack
                type: integer
              photo_item:
                items:
                  properties:
                    motion_unique_id:
                      description: 非必须 podcast 特写motion需要
                      type: string
                    output_url:
                      description: 图片地址
                      type: string
                    photo_unique_id:
                      description: photo任务的唯一标识符
                      type: string
                  type: object
                type: array
            type: object
          type: array
        photo_to_avatar:
          description: 用户上传两张图直接生成
          items:
            $ref: '#/components/schemas/dto.PodcastPhoto2AvatarReqItem'
          type: array
        podcast_avatar_id:
          type: integer
        resolution:
          description: 分辨率，可选值 720/1080；未传时使用模型默认分辨率
          enum:
            - 720
            - 1080
          type: integer
      type: object
    echo.JSON:
      properties:
        cause:
          type: string
        code:
          type: integer
        data: {}
        details: {}
        msg:
          type: string
        rid:
          type: string
      type: object
    dto.PackDetail:
      properties:
        pack1_detail:
          allOf:
            - $ref: '#/components/schemas/dto.PacksDetailItem'
          description: 左侧特写
        pack2_detail:
          allOf:
            - $ref: '#/components/schemas/dto.PacksDetailItem'
          description: 右侧特写
        pack_detail:
          allOf:
            - $ref: '#/components/schemas/dto.PacksDetailItem'
          description: 同屏图
      type: object
    dto.PodcastPhoto2AvatarReqItem:
      properties:
        aspect_ratio:
          description: 宽高比 0:9比16/1:16比9
          type: integer
        gender:
          description: 性别
          type: string
        name:
          description: 数字人名称
          type: string
        photo_url:
          description: 图片地址
          type: string
        timbre_unique_id:
          description: 音色id
          type: string
      type: object
    dto.PacksDetailItem:
      properties:
        id:
          description: 记录的唯一标识符
          type: integer
        photo_tasks:
          description: photo任务列表
          items:
            $ref: '#/components/schemas/dto.PacksPhotoTaskItem'
          type: array
      type: object
    dto.PacksPhotoTaskItem:
      properties:
        output_url:
          description: 图片地址
          type: string
        photo_unique_id:
          description: photo任务的唯一标识符
          type: string
      type: object
  securitySchemes:
    ApiKey:
      in: header
      name: X-Api-Key
      type: apiKey

````