본문으로 건너뛰기

오픈 모델

RightNow AIOpen models 업데이트

이 페이지의 내용

오픈 모델 API는 OpenAI 호환 Chat Completions API와 Anthropic 호환 Messages API로 호스팅된 오픈 웨이트 모델을 제공합니다. 워크스페이스 API 키 하나로 모든 모델에 닿으며, 사용량은 크레딧으로 지불합니다.

프로토콜 둘, 키 하나
Text
워크스페이스 키 하나가 두 프로토콜로 오픈 모델에 닿는 모습을 보여 주는 그림.

두 프로토콜, 곧 /v1/chat/completions 경로의 chat completions와 /v1/messages 경로의 Messages는 같은 워크스페이스 키를 받습니다. 둘 다 호스트 하나에서 오픈 모델에 닿습니다. 사용량은 막대로 그려진 크레딧 잔액 하나에서 지불됩니다.

RightNow decision model에는 별도의 문서가 있습니다.

호스팅된 모델 호출하기

사용할 경로의 기본 URL을 설정하고, 워크스페이스 API 키를 쓰고, 모델 ID를 전달하세요.

예시는 glm-5-3 모델을 호출합니다. Open models에 있는 사용 가능한 ID라면 어느 것이든 대신 쓸 수 있습니다. 현재 기능, 제한, 가격은 GET /v1/models 호출로 읽으세요.

TypeScript
import OpenAI from "openai";

// Server side only: never expose this key in browser code.
const client = new OpenAI({
  baseURL: "https://api.rightnowai.co/v1",
  apiKey: process.env.RIGHTNOW_API_KEY,
});
const response = await client.chat.completions.create({
  model: "glm-5-3",
  messages: [{ role: "user", content: "Write a TypeScript retry helper." }],
  max_tokens: 16384,
  reasoning_effort: "low",
});
console.log(response.choices[0]?.message?.content);

GET /v1/models 호출은 호스팅된 채팅 모델의 공식 목록입니다. 일시 중지된 모델도 알려 줍니다.

요청과 응답의 일부 이름은 플랫폼의 이전 이름에서 온 runinfra 접두사로 시작합니다. 그대로 유지됩니다.

어떤 경로인가

경로API 경로클라이언트 기본 URL읽을 문서
Chat completionsPOST /v1/chat/completionshttps://api.rightnowai.co/v1Chat completions and Responses
ResponsesPOST /v1/responseshttps://api.rightnowai.co/v1Chat completions and Responses
MessagesPOST /v1/messageshttps://api.rightnowai.coMessages

이 순서로 읽기

  1. Call an open model

    Get a workspace key, discover an available model and send a server-side chat request.

  2. Models

    Discover the model ids a workspace key can reach, and the limits the gateway enforces on them.

  3. Chat completions and Responses

    Chat and Responses request fields, tool loops, streamed events, usage, validation and output budgets.

  4. Streaming

    Stream chat completion deltas over Server-Sent Events, and ask for the usage frame.

  5. Errors

    The error envelope, every status and code, and whether retrying can help.

  6. Retries

    Retry a call, streaming or not, without starting duplicate inference work or a second charge.

  7. Limits

    What each purchase unlocks, what each 429 means, and how to back off.

  8. Sessions

    Keep a session's requests together so its prefix cache stays warm across turns and fan-out workers.

가격, 액세스, 도움말