核心信息
OpenRouter 正在为任意模型提供托管 Linux 容器来执行代码,本条介绍了容器复用、网络隔离与计费细节。
要点
- 容器是“粘性”的:在下次请求附带最后一次 shell 结果即可复用,或通过
container_reference指定container_id,文件仍会保留。 - 出站网络默认关闭,可在每次运行时通过
network_policy开启,例如配置特定 URL 的允许列表。 - 沙箱按活跃秒计费,每活跃秒 $0.0001,推理费用单独结算。
OpenRouter 正在为任意模型提供托管 Linux 容器来执行代码,本条介绍了容器复用、网络隔离与计费细节。
container_reference 指定 container_id,文件仍会保留。network_policy 开启,例如配置特定 URL 的允许列表。5/ Sticky containers, closed network, clear price. To reuse a container, include the last shell result in the next request, or set environment to container_reference with a container_id. The files are still there. Outbound network is off by default. Turn it on per run with network_policy, for example an allowlist of https://t.co/Dn4H0qonw6 and https://t.co/dgz6Hy3twq. Sandbox time costs $0.0001 per active second. Inference is billed separately.