> ## Documentation Index
> Fetch the complete documentation index at: https://rpa.bazhuayu.com/helpcenter/llms.txt
> Use this file to discover all available pages before exploring further.

# 获取临时素材media_id

<strong>参数说明：</strong>参数必须说明access\_token是调用接口凭证file是媒体文件类型，分别有图片（image）、语音（voice）、视频（video），普通文件（file）

<strong>access\_token:</strong>通过【初始化-获取access\_token】指令获取参数

<strong>返回参数说明：</strong>参数说明type媒体文件类型，分别有图片（image）、语音（voice）、视频（video），普通文件(file)media\_id媒体文件上传后获取的唯一标识，3天内有效created\_at媒体文件上传时间戳

## <strong>上传的媒体文件限制</strong>

所有文件size必须大于5个字节图片（image）：10MB，支持JPG,PNG格式语音（voice） ：2MB，播放长度不超过60s，<strong>仅支持</strong>AMR格式视频（video） ：10MB，支持MP4格式普通文件（file）：20MB

<img src="https://mintcdn.com/bazhuayu-rpa-docs/3T28-M3CPw0yKoKf/helpcenter/commands/custom-commands/IPzFl8Q0/images/ThnO5K3W-01.png?fit=max&auto=format&n=3T28-M3CPw0yKoKf&q=85&s=8fa17428ab8d08db8c5751bd3f46e929" alt="image" width="660" height="504" data-path="helpcenter/commands/custom-commands/IPzFl8Q0/images/ThnO5K3W-01.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/3T28-M3CPw0yKoKf/helpcenter/commands/custom-commands/IPzFl8Q0/images/ThnO5K3W-02.png?fit=max&auto=format&n=3T28-M3CPw0yKoKf&q=85&s=d21a74d3f2d205255bf8ccd5c2f2998b" alt="image" width="918" height="229" data-path="helpcenter/commands/custom-commands/IPzFl8Q0/images/ThnO5K3W-02.png" />

<Info>
  使用指令过程中遇到问题？前往 [八爪鱼RPA 开发者社区问答板块](https://rpa.bazhuayu.com/community/questions) 提问，获取官方与社区帮助。
</Info>
