Gateway

Create a chat completion

OpenAI-compatible. Streaming ("stream": true) returns SSE. Routed, metered, and white-labelled. Name any model from GET /v1/models. Requires inference.

Calling from a browser. Requests carrying an Origin header are refused with a 403 unless they also send x-roar-dangerous-browser-access: true. Your API key belongs on your server: put it in a web page and every visitor can read it, and there is no way to un-leak it afterwards. Send the header only when that is genuinely what you want — an internal tool, or an app where each person supplies their own key. Server-side calls send no Origin and are unaffected.

post/v1/chat/completions

Request

  • Base URL: https://api.roar-ai.com
  • URL: https://api.roar-ai.com/v1/chat/completions
  • Auth: HTTP bearer

Request body

modelstring required

A model id from /v1/models

streamboolean
temperaturenumber
toolsobject[]

Response

A chat completion (or SSE stream)

Changes

No recorded changes to this operation across all 1 revision of this API.