文档
快速开始
使用网关地址和 Scenepond API Key,将应用接入已启用的模型。
复制快速开始,或通过 LLM 索引读取各模型的接口文档。
此示例使用 deepseek-flash。发送请求前,请确认 API 密钥具有访问权限,且账户余额充足。
1. 认证与 API Key
在用户控制台创建密钥,保存到服务器的 SCENEPOND_API_KEY 环境变量中。网站登录会话不能作为 API Key 使用。
export SCENEPOND_API_KEY="YOUR_SCENEPOND_API_KEY"2. 设置 API 地址
https://open.scenepond.ai/v1使用 Authorization: Bearer 携带 API Key。请使用 HTTPS,不要把密钥写进浏览器代码或 URL。
Realtime(WebSocket)接口不能使用此 Base URL,请连接 wss://scenepond-api-production.up.railway.app/v1/realtime。
3. 发起请求
1curl "https://open.scenepond.ai/v1/chat/completions" \
2 -H "Authorization: Bearer $SCENEPOND_API_KEY" \
3 -H "Content-Type: application/json" \
4 --data-binary @- <<'JSON'
5{
6 "model": "deepseek-flash",
7 "messages": [
8 {
9 "role": "user",
10 "content": "Hello!"
11 }
12 ],
13 "stream": false
14}
15JSON在已安装 cURL 的终端中执行此示例,执行前先设置 SCENEPOND_API_KEY。
此示例使用 chat completions。图片和视频使用 Scenepond 任务接口,必填参数请查看模型页面。
异步任务
媒体任务只提交一次并保存 task_id。轮询状态,成功后下载结果。部分任务可能在返回 ID 时已完成。
左右滑动查看全部列 ↔
| 端点 | 用途 |
|---|---|
POST /v1/tasks | 提交符合该模型参数规范的生成请求,返回 task_id。 |
GET /v1/tasks/{task_id} | 读取任务状态、进度和 error,通过结果接口下载媒体。 |
GET /v1/tasks/{task_id}/artifacts | 任务 succeeded 后,读取结果列表及 content_url。 |
图片和视频共用 Scenepond 任务接口。模型页面列出必填参数和限制,LLM 请求使用已发布的协议。
使用同一账户 API Key 查询结果。等待 succeeded 后下载,failed 时查看 error。付费 POST 超时后不要直接重提。
生成产物保存 14 天。请在 expires_at 前下载;过期后无法恢复。
模型接口文档媒体保存与到期
- 生成的图片和视频只保存 14 天,请在到期前下载并保存到本地。
- 已存储的结果包含 expires_at,表示该文件到期时间的 Unix 时间戳(秒)。请逐个文件使用此字段,不要按任务创建时间推算。
- 部分历史结果可能没有 expires_at,这不代表永久保存,请尽快下载。
- 到期后,使用 API Key 鉴权且不带 access 查询参数的内容请求返回 HTTP 410,错误码为 artifact_expired。私有访问链接在内容不可用时可能返回 404。过期文件无法继续下载或恢复。
- 请勿公开 content_url。保存链接不等于保存文件,请在 expires_at 到期前将文件内容下载到自己的存储。
计费规则
各模型的计费单位不同。请查看模型详情中的适用单价与请求设置。
- 输入 token / 输出 token
- 分别查看每百万 token 的输入、输出和缓存价格。
- 图片
- 图片按张数或模型公布的单位计费;分辨率和质量可能影响单价。
- 视频 / 音频/音乐
- 时长等请求设置决定媒体模型适用的公开价格。
- 余额与充值
- 已启用的模型 API 共用账户余额。在钱包中充值,并在调用 API 前查看可用余额。
价格取决于模型配置。用量记录显示已记录的扣费;异步任务完成后可能调整费用。
错误码
左右滑动查看全部列 ↔
| 状态 | 下一步 |
|---|---|
400 | 检查模型 ID、必填字段、数据类型和参数允许值。 |
401 | 检查 API Key 是否正确且已启用。 |
403 | 检查密钥限制和模型权限。 |
410 | artifact_expired:媒体已过期或不可用。请使用之前下载的副本;重试无法恢复过期文件。 |
429 | 遵循返回的重试间隔,并降低请求频率。 |
5xx | 检查错误响应,避免盲目重试付费生成请求。 |
模型接口
选择模型,查看其 API 协议和请求示例。
左右滑动查看全部列 ↔
| 模型 | 模型类别 | 模型开发者 | API 协议 | API 文档 |
|---|---|---|---|---|
Wan 3.0 · 文生视频alibaba/wan-3.0/text-to-video | 视频 | Alibaba | scenepond-task | API查看详情 → |
Wan 3.0 · 图生视频alibaba/wan-3.0/image-to-video | 视频 | Alibaba | scenepond-task | API查看详情 → |
Wan 3.0 · 参考生视频alibaba/wan-3.0/reference-to-video | 视频 | Alibaba | scenepond-task | API查看详情 → |
FLUX 3 Draft · 文生视频blackforestlabs/flux-3/text-to-video/draft | 视频 | Black Forest Labs | scenepond-task | API查看详情 → |
FLUX 3 Draft · 图生视频blackforestlabs/flux-3/image-to-video/draft | 视频 | Black Forest Labs | scenepond-task | API查看详情 → |
Seedance 2.0 · 文生视频bytedance/seedance-2.0/text-to-video | 视频 | ByteDance | scenepond-task | API查看详情 → |
Seedance 2.0 · 图生视频bytedance/seedance-2.0/image-to-video | 视频 | ByteDance | scenepond-task | API查看详情 → |
Seedance 2.0 · 参考生视频bytedance/seedance-2.0/reference-to-video | 视频 | ByteDance | scenepond-task | API查看详情 → |
Seedance 2.0 · CS · 文生视频scenepond-cs/seedance-2.0/text-to-video | 视频 | ByteDance | scenepond-task | API查看详情 → |
Seedance 2.0 · CS · 图生视频scenepond-cs/seedance-2.0/image-to-video | 视频 | ByteDance | scenepond-task | API查看详情 → |
Seedance 2.0 · CS · 参考生视频scenepond-cs/seedance-2.0/reference-to-video | 视频 | ByteDance | scenepond-task | API查看详情 → |
Seedance 2.0 Fast · CS · 文生视频scenepond-cs/seedance-2.0-fast/text-to-video | 视频 | ByteDance | scenepond-task | API查看详情 → |
Seedance 2.0 Fast · CS · 图生视频scenepond-cs/seedance-2.0-fast/image-to-video | 视频 | ByteDance | scenepond-task | API查看详情 → |
Seedance 2.0 Fast · CS · 参考生视频scenepond-cs/seedance-2.0-fast/reference-to-video | 视频 | ByteDance | scenepond-task | API查看详情 → |
Seedance 2.0 Mini · 文生视频bytedance/seedance-2.0-mini/text-to-video | 视频 | ByteDance | scenepond-task | API查看详情 → |
Seedance 2.0 Mini · 图生视频bytedance/seedance-2.0-mini/image-to-video | 视频 | ByteDance | scenepond-task | API查看详情 → |
Seedance 2.0 Mini · 参考生视频bytedance/seedance-2.0-mini/reference-to-video | 视频 | ByteDance | scenepond-task | API查看详情 → |
Seedance 2.0 Mini · CS · 文生视频scenepond-cs/seedance-2.0-mini/text-to-video | 视频 | ByteDance | scenepond-task | API查看详情 → |
Seedance 2.0 Mini · CS · 图生视频scenepond-cs/seedance-2.0-mini/image-to-video | 视频 | ByteDance | scenepond-task | API查看详情 → |
Seedance 2.0 Mini · CS · 参考生视频scenepond-cs/seedance-2.0-mini/reference-to-video | 视频 | ByteDance | scenepond-task | API查看详情 → |
Seedance 2.5 · 文生视频bytedance/seedance-2.5/text-to-video | 视频 | ByteDance | scenepond-task | API查看详情 → |
Seedance 2.5 · 图生视频bytedance/seedance-2.5/image-to-video | 视频 | ByteDance | scenepond-task | API查看详情 → |
Seedance 2.5 · 参考生视频bytedance/seedance-2.5/reference-to-video | 视频 | ByteDance | scenepond-task | API查看详情 → |
Seedance 2.5 · 视频编辑bytedance/seedance-2.5/video-edit | 视频 | ByteDance | scenepond-task | API查看详情 → |
Seedance 2.5 · CS · 文生视频scenepond-cs/seedance-2.5/text-to-video | 视频 | ByteDance | scenepond-task | API查看详情 → |
Seedance 2.5 · CS · 图生视频scenepond-cs/seedance-2.5/image-to-video | 视频 | ByteDance | scenepond-task | API查看详情 → |
Seedance 2.5 · CS · 参考生视频scenepond-cs/seedance-2.5/reference-to-video | 视频 | ByteDance | scenepond-task | API查看详情 → |
Seedance 2.5 Flash · JS · 文生视频scenepond-js/seedance-2.5-flash/text-to-video | 视频 | ByteDance | scenepond-task | API查看详情 → |
Seedance 2.5 Flash · JS · 图生视频scenepond-js/seedance-2.5-flash/image-to-video | 视频 | ByteDance | scenepond-task | API查看详情 → |
Seedance 2.5 Flash · JS · 参考生视频scenepond-js/seedance-2.5-flash/reference-to-video | 视频 | ByteDance | scenepond-task | API查看详情 → |
Gemini Omni · 文生视频google/gemini-omni-flash/v1.2/text-to-video | 视频 | scenepond-task | API查看详情 → | |
Gemini Omni · 图生视频google/gemini-omni-flash/v1.2/image-to-video | 视频 | scenepond-task | API查看详情 → | |
Gemini Omni · 参考生视频google/gemini-omni-flash/v1.2/reference-to-video | 视频 | scenepond-task | API查看详情 → | |
Gemini Omni 1.1 Flash · 文生视频google/gemini-omni-flash/v1.1/text-to-video | 视频 | scenepond-task | API查看详情 → | |
Gemini Omni 1.1 Flash · 图生视频google/gemini-omni-flash/v1.1/image-to-video | 视频 | scenepond-task | API查看详情 → | |
Kling V4.0 · 文生视频kwaivgi/kling-v4.0/text-to-video | 视频 | Kling | scenepond-task | API查看详情 → |
LTX-2.5 Fast · 文生视频lightricks/ltx-2.5/text-to-video/fast | 视频 | Lightricks | scenepond-task | API查看详情 → |
LTX-2.5 Fast · 图生视频lightricks/ltx-2.5/image-to-video/fast | 视频 | Lightricks | scenepond-task | API查看详情 → |
LTX-2.5 Pro · 文生视频lightricks/ltx-2.5/text-to-video/pro | 视频 | Lightricks | scenepond-task | API查看详情 → |
LTX-2.5 Pro · 图生视频lightricks/ltx-2.5/image-to-video/pro | 视频 | Lightricks | scenepond-task | API查看详情 → |
MiniMax H3 · 文生视频minimax/h3/text-to-video | 视频 | MiniMax | scenepond-task | API查看详情 → |
MiniMax H3 · 图生视频minimax/h3/image-to-video | 视频 | MiniMax | scenepond-task | API查看详情 → |
MiniMax H3 Max · 文生视频minimax/h3-max/text-to-video | 视频 | MiniMax | scenepond-task | API查看详情 → |
MiniMax H3 Max · 图生视频minimax/h3-max/image-to-video | 视频 | MiniMax | scenepond-task | API查看详情 → |
MiniMax H3 Max Turbo · 文生视频minimax/h3-max-turbo/text-to-video | 视频 | MiniMax | scenepond-task | API查看详情 → |
MiniMax H3 Max Turbo · 图生视频minimax/h3-max-turbo/image-to-video | 视频 | MiniMax | scenepond-task | API查看详情 → |
Seedream V5.5 · 文生图bytedance/seedream/v5.5/text-to-image | 图片 | ByteDance | scenepond-task | API查看详情 → |
Seedream V5.5 · 图生图bytedance/seedream/v5.5/edit | 图片 | ByteDance | scenepond-task | API查看详情 → |
Muse Image · 文生图meta/muse-image/text-to-image | 图片 | Meta | scenepond-task | API查看详情 → |
GPT Image 2.5 Flare · 文生图openai/gpt-image-2.5/flare/text-to-image | 图片 | OpenAI | scenepond-task | API查看详情 → |
GPT Image 2.5 Flare · 图生图openai/gpt-image-2.5/flare/edit | 图片 | OpenAI | scenepond-task | API查看详情 → |
GPT Image 2.5 Sunburst · 文生图openai/gpt-image-2.5/sunburst/text-to-image | 图片 | OpenAI | scenepond-task | API查看详情 → |
GPT Image 2.5 Sunburst · 图生图openai/gpt-image-2.5/sunburst/edit | 图片 | OpenAI | scenepond-task | API查看详情 → |
Recraft V4.1 Flash · 文生图recraft/v4.1/flash/text-to-image | 图片 | Recraft | scenepond-task | API查看详情 → |
Grok Imagine Image 2.0 · 文生图xai/grok-imagine-image/v2.0/text-to-image | 图片 | xAI | scenepond-task | API查看详情 → |
Grok Imagine Image 2.0 · 图生图xai/grok-imagine-image/v2.0/edit | 图片 | xAI | scenepond-task | API查看详情 → |
DeepSeek Flashdeepseek-flash | 对话 | DeepSeek | openai / anthropic / openai-response | API查看详情 → |
DeepSeek V4 Prodeepseek-v4-pro | 对话 | DeepSeek | openai / anthropic / openai-response | API查看详情 → |
GPT-6 Astragpt-6-astra | 对话 | OpenAI | openai / openai-response | API查看详情 → |
GPT-6 Lunagpt-6-luna | 对话 | OpenAI | openai / openai-response | API查看详情 → |
GPT-6 Solgpt-6-sol | 对话 | OpenAI | openai / openai-response | API查看详情 → |
GPT-6.1 Solgpt-6.1-sol | 对话 | OpenAI | openai / openai-response | API查看详情 → |