预览提示 · 本站为上线前预览:模型清单与费率以正式上线公告为准

2026-10-16 · 新模型快讯

Kling 3.0 API Now Available on ModAPIS

快手发布 Kling 3.0 当天,ModAPIS 完成接入与费率核对,即刻可用——day-one 是我们的上架纪律:新模型发布当天,一个 Key 直接调。

要点

  • 规格:i2v(图生视频)与 t2v(文生视频)双模式,物理一致性与大幅度运动显著提升;标准档 5 秒,无音频 / 带音频两档。
  • 费率:credits 计价——标准 5 秒 45 credits(≈$0.45),带音频 90 credits(≈$0.90)。公开锚点 1 credit = $0.01,失败任务不计费。
  • 接入:统一 REST 任务接口,模型 ID kling-3.0,任务完成 webhook 主动推送(全档免费)。

三行代码跑起来

统一 REST
# Kling 3.0 · 统一 REST:提交任务
curl https://api.modapis.com/v1/videos \
  -H "Authorization: Bearer $MODAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling-3.0",
    "prompt": "一只柯基在雨后的东京街头奔跑,霓虹反光,电影感运镜",
    "duration": 5,
    "resolution": "1080p"
  }'

# 轮询:GET https://api.modapis.com/v1/videos/{id} → status:"completed" 后取顶层 url
import os, requests, time

API = "https://api.modapis.com/v1"
H = {"Authorization": f"Bearer {os.environ['MODAPIS_API_KEY']}"}

def call(method, url, **kw):              # 统一出口:非 200 直接给可读错误
    r = requests.request(method, url, headers=H, timeout=60, **kw)
    if r.status_code != 200:
        raise SystemExit(f"HTTP {r.status_code}: {r.text}")  # 401 = Key 无效/被吊销
    return r.json()

task = call("POST", f"{API}/videos", json={
    "model": "kling-3.0",
    "prompt": "一只柯基在雨后的东京街头奔跑,霓虹反光,电影感运镜",
})

while task["status"] != "completed":        # queued → in_progress → completed
    if task["status"] == "failed":
        raise SystemExit(task.get("error"))  # 失败终态:message + code
    time.sleep(3)
    task = call("GET", f"{API}/videos/{task['id']}")

print(task["url"])                          # 成品地址在顶层 url 字段
const API = "https://api.modapis.com/v1";
const H = { Authorization: `Bearer ${process.env.MODAPIS_API_KEY}` };

const call = async (url, opts = {}) => {
  const r = await fetch(url, { headers: H, ...opts });
  if (!r.ok) throw new Error(`HTTP ${r.status}: ${await r.text()}`);
  return r.json();
};

let task = await call(`https://api.modapis.com/v1/videos`, {
  method: "POST",
  body: JSON.stringify({ model: "kling-3.0", prompt: "一只柯基在雨后的东京街头奔跑,霓虹反光,电影感运镜" }),
});

while (task.status !== "completed") {        // queued → in_progress → completed
  if (task.status === "failed") throw new Error(JSON.stringify(task.error));
  await new Promise(r => setTimeout(r, 3000));
  task = await call(`https://api.modapis.com/v1/videos/${task.id}`);
}
console.log(task.url);                       // 成品地址在顶层 url 字段
模型 kling-3.0 → /models/kling-3.0-api

先试再接:Sandbox 与 Free 档

不确定画质是否符合预期?Sandbox 免注册,用 mock 通道零成本联调参数与回调; 注册(OAuth)Free 档送 50 credits 一次性——约等于 1 条 Kling 3.0 标准 5 秒, 足够用真通道验证一次产出。订阅产出翻译见定价页(如 Studio $49 ≈ 124 条 Kling 5s)。

模型页有完整费率分档、curl / Python / JS 示例与 FAQ:Kling 3.0 API。 后续新模型与费率调整都会在更新日志公告。

一个 Key,五分钟后跑通全部模型

Sandbox 免注册先试,Free 档 50 credits 起步,无需绑卡。

已复制