Image2PPTAPI
开发者 / API

把转换能力接进你的程序

用 API 批量提交图片或 PDF,在后台还原成可编辑的 PPTX。API 转换与网页端共用同一份积分,按成功产出的页数计费。

API Keys

密钥明文只在创建时显示一次。泄露后请立即吊销并重建。

正在加载...

提交任务

POST/api/v1/jobs
curl -X POST https://image2ppt.com/api/v1/jobs \
  -H "Authorization: Bearer i2p_live_xxx" \
  -F "files=@slide.png" \
  -F "locale=zh-CN" \
  -F "aspectRatio=16:9"

查询与下载

GET/api/v1/jobs/{jobId}
curl https://image2ppt.com/api/v1/jobs/$JOB_ID \
  -H "Authorization: Bearer i2p_live_xxx"

官方 SDK

Python 与 Node.js/TypeScript 两个官方客户端,封装了提交、轮询、下载与 429 退避。仅在服务端使用,别把密钥放进浏览器。

  1. Python:pip install image2ppt
  2. Node.js:npm install image2ppt
from image2ppt import Image2PPTClient

client = Image2PPTClient(api_key="i2p_live_xxx")
job = client.convert(
    ["slide1.png", "report.pdf"],
    dest_path="out.pptx",
    locale="zh-CN",
    aspect_ratio="16:9",
)
print(job.job_id, job.credits_used)
阅读完整 API 文档 → API docs in English → GitHub 上的 SDK 源码与示例 →