Skip to main content
The Raziel gateway exposes two protocol surfaces: a drop-in replacement for the Anthropic Messages API and an OpenAI-compatible chat completions endpoint. Both use your rz_live_… key for authentication and support streaming.

Anthropic-compatible endpoint

Send requests to https://raziel.fun/gateway/v1/messages in the same format you would send them to https://api.anthropic.com/v1/messages. The gateway forwards the request body unchanged to a live provider and returns the response in the same Anthropic shape.
When using the razi claude command, requests go through a local proxy at localhost:3099. The raziel.fun domain never appears in Claude Code’s network traffic.

Request

Parameters

string
required
The model to use. See available models below.
array
required
Array of message objects with role (user or assistant) and content.
integer
required
Maximum number of tokens to generate in the response.
boolean
Set to true to receive a server-sent events stream. The gateway passes streaming through transparently.
string
System prompt passed directly to the model.
number
Sampling temperature between 0 and 1.
array
Tool definitions for function calling. Passed through to the provider unchanged.

Example: streaming request


OpenAI-compatible endpoint

The gateway also speaks the OpenAI chat completions format at https://raziel.fun/gateway/openai/v1. Use it with any client that accepts a custom base URL — the OpenAI SDK, Hermes, Continue, LibreChat, and others.

Endpoints

Request

Parameters

string
required
The model identifier. See available models below.
array
required
Array of message objects with role and content.
integer
Maximum number of tokens to generate.
number
Sampling temperature between 0 and 2.
boolean
Set to true to receive a server-sent events stream.
array
OpenAI-format tool definitions for function calling.
string | object
Tool selection strategy: "auto", "none", "required", or a specific tool object.
string | array
Up to 4 sequences where the API will stop generating.
number
Nucleus sampling parameter.
The following fields are accepted but silently ignored: logprobs, n, response_format, presence_penalty, frequency_penalty, seed. Requests that include them will succeed, but these parameters have no effect.

Example


Available models

Use GET /gateway/openai/v1/models to retrieve the current model list programmatically.

Authentication

Both endpoints use the same Authorization: Bearer scheme.
Alternatively, for the Anthropic-compatible endpoint you can pass your key as x-api-key:
Issue and manage keys from Customer → API Keys in the dashboard. Keys are shown in full only once at creation — store them immediately.