Carbon Infra

调用 Carbon Infra API

Carbon Infra 使用与 OpenAI 兼容的 Responses API 格式,通过修改配置,您可以使用 OpenAI SDK 来访问 Carbon Infra API,或使用与 OpenAI Responses API 兼容的软件。

我们的 carbon-1 原生多模态感知模型,具备深度上下文感知与泛化推理能力,在多项基准测试中取得前沿水平。

接入信息

  • Base URL:https://infra.rimsage.com/v1
  • API Key:sk-carbon-for-everyone
  • Model:carbon-1

快速开始

curl
curl https://infra.rimsage.com/v1/responses \
  -H 'content-type: application/json' \
  -d '{"model":"carbon-1", "input":"ping"}'

流式输出

设置 stream: true 返回 SSE 事件流。

curl
curl -N https://infra.rimsage.com/v1/responses \
  -H 'content-type: application/json' \
  -d '{"model":"carbon-1", "input":"hello", "stream":true}'

多轮对话

把上一次返回的 response.id 作为 previous_response_id 传回。

curl
curl https://infra.rimsage.com/v1/responses \
  -H 'content-type: application/json' \
  -d '{"model":"carbon-1", "input":"hello"}'

curl https://infra.rimsage.com/v1/responses \
  -H 'content-type: application/json' \
  -d '{"model":"carbon-1", "input":"continue", "previous_response_id":"<response.id>"}'

当前限制

  • 目前仅实现 POST /v1/responses。
  • 模型请求在边缘情况下可能会无限期等待或丢失。