发布您用 the Gemini API CLI 制作的内容
在自己的电脑上用 Google 的 gemini-api CLI 制作图片,然后上传到 Post Array,并在同一终端安排发布时间。
Post Array 不会制作图片或视频。您在自己的账号上用 the Gemini API CLI 制作内容,Post Array 只会接收完成的文件并替您发布。
开始之前
第 1 步 按照 Google 自己的指南安装 Google 的 gemini-api CLI 并登录。Google 将它标为实验性工具,如果某个参数有变化,请查看它的指南。
第 2 步 登录 Post Array CLI。这会打开浏览器。
postarray auth login
逐步操作
第 1 步 制作图片并保存到文件。继续之前先查看图片。尚未发布任何内容。
gemini-api image "A calm flat lay of a coffee cup and a notebook, soft morning light" --out ./launch.png第 2 步 将文件上传到 Post Array,并保留它返回的媒体 ID。新文件会先进行安全检查,这需要一点时间。
postarray media upload ./launch.png --project-id <project-id> --idempotency-key launch-image-1 --json第 3 步 在文件中写好帖子,包括媒体 ID、您的账号、发布时间和时区。由于图片由 AI 制作,AI 标记已启用。
{ "version": 1, "projectId": "<project-id>", "body": "Our new notebook is here. Made for slow mornings.", "mediaIds": ["<media-id>"], "targets": [{ "connectionId": "<connection-id>" }], "schedule": { "instant": "2026-11-02T09:00:00.000Z", "ianaTimeZone": "Europe/London" }, "disclosure": { "aiAssisted": true, "commercialContent": false, "brandedContent": false } }第 4 步 检查后再安排发布时间。发布节奏提醒不会阻止您,但请先阅读。
postarray posts validate launch.json postarray posts schedule launch.json --idempotency-key launch-post-1第 5 步 查看结果。内容上线后,每个账号都会显示 View post 链接。
postarray posts list --status published
注明内容由 AI 制作
有些平台要求标注 AI 制作的图片和视频。发布时,在 Post Array 中启用 AI 标记,要求标记的平台就会显示该标记。
Questions
Post Array 会为 the Gemini API CLI 收费吗?
不会。Post Array 不会替您调用 the Gemini API CLI,也不会为此收费。您在那里制作的内容由您和 the Gemini API CLI 处理。
Post Array 能替我制作图片吗?
不能,这是有意如此。Post Array 发布您自己的媒体内容。它可以修剪、裁剪和调整您上传内容的尺寸,但不会制作新的图片或视频。
发现此页面有问题
Contact channels will be published here before general availability. No legal or support inbox is operating during this preview.