Auth_Session.app — LowRefusal

ログイン

アカウントがありませんか? 登録

By continuing, you confirm you are 18 or older and agree to the 利用規約 および Acceptable Use Policy。

開発者リソース

LowRefusal 開発者向け API ドキュメント

Connect your OpenAI SDK, Anthropic SDK or compatible client to this instance https://lowrefusal.com. Use an API key from the dashboard. The table lists each protocol’s complete endpoint and authentication method.

ツールを接続Find installation instructions, provider settings, checks and troubleshooting for each client.

1. ネイティブプロトコルのエンドポイント

メソッドとパス認証Protocol contract
POST https://lowrefusal.com/v1/chat/completions Authorization: Bearer …OpenAI Chat Completions · Messages, tool calls and SSE streaming
POST https://lowrefusal.com/v1/responses Authorization: Bearer …OpenAI Responses · Stateless forwarding with store: false
POST https://lowrefusal.com/v1/messages x-api-key · anthropic-version: 2023-06-01Anthropic Messages · Native content blocks and tool-use events
GET https://lowrefusal.com/v1/models 公開Public model IDs, rates and capacity
GET https://lowrefusal.com/v1/models/{id} 公開Look up a single full model ID or routing alias
GET https://lowrefusal.com/v1/me Authorization: Bearer …Balance, tier and concurrency for the key’s account

OpenAI SDK https://lowrefusal.com/v1  Anthropic SDK https://lowrefusal.com

Browser clients can preflight /v1/* and authenticate a cross-origin call with the caller’s Bearer token or x-api-key. Dashboard sessions use same-origin connections.

認証と初回接続

Create a project key in the dashboard and place it in the application server’s environment. Call /v1/me in that same shell to check the account and its available credit.

ログインして API キーを入力
既存のキーを使用

A filled key stays in this tab’s memory. Revoke created keys in the dashboard.

export BF16_API_KEY='YOUR_INSTANCE_KEY'
curl -fsS 'https://lowrefusal.com/v1/me' \
  -H "Authorization: Bearer $BF16_API_KEY"
balance_usd · available_usd
Current and available balances in US dollars, with pending reservations excluded from available credit.
tier · requests_per_minute
Account tier and its per-minute request allowance.
current_concurrency · concurrency_limit
Number of active requests and the applicable concurrency limit.
API キーを管理 ↗

リクエストを送信

curl 'https://lowrefusal.com/v1/chat/completions' \
  -H "Authorization: Bearer $BF16_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"messages":[{"content":"Hello!","role":"user"}],"model":"deepseek/deepseek-v4.1-flash-uncensored"}'

Customize the system prompt and payload →

リクエストとレスポンスの項目

プロトコルRequestレスポンスを読む
Chatmodel, messages[]. Each message has role and content. Include max_tokens, tools or stream when supported.choices[].message.content
SSE choices[].delta · [DONE]
Responsesmodel, input. Input accepts text or message items. Use instructions, max_output_tokens and stream.output[].content[]
SSE response.output_text.delta · response.completed
Messagesmodel, messages[], max_tokens. Place system instructions in the top-level system field. Use user and assistant messages.content[] · stop_reason
SSE content_block_delta · message_stop

A Chat upstream may return reasoning_content or a JSON Schema result. When Messages includes thinking content, preserve the returned thinking block and signature in later turns. Use the protocol’s terminal event to detect stream completion. Check usage and status after an early disconnect.

Responses is stateless. Include required history in input. previous_response_id, conversation and background=true return 400. Chat generates one result per request and accepts max_completion_tokens as its output cap.

Use native tool definitions and results. Chat uses tools and tool_calls, while Messages uses tool_use and tool_result. Image input, thinking blocks and structured output depend on the selected model and upstream. Keep conversation history and tool results in your client for subsequent turns.

モデル一覧と自動ルーティング

curl -fsS 'https://lowrefusal.com/v1/models'

Read each id in data. A concrete model’s bf16 object describes context_window, max_output_tokens, max_messages, max_tools and pricing_usd_per_1m (input, cached input and output). Budget for the prompt, conversation history, tool definitions and reserved output together.

Models with capability metadata also expose family, max_images, supports_vision, supports_tools, supports_reasoning and supports_json_schema. Check these fields before enabling images, tools or structured output.

Each request accepts up to 100,000 messages and 1,024 tool definitions. Available input is also bounded by the model context, reserved output and the instance HTTP request size limit.

bf16/auto
Let the instance choose its default configured route.
bf16/auto:fast
Use the fast route for short, latency-sensitive tasks.
bf16/auto:coding
Use the instance’s coding route.
bf16/auto:reasoning
Use the instance’s reasoning route.

Clients using the [1m] marker can append it to the concrete ID of a model with at least one million tokens of context. A routing alias resolves to a concrete model that fits the request’s price cap.

View model IDs and prices ↗

2. 予算とテレメトリの任意ヘッダー

X-BF16-Max-Price-Per-M-Output
Set the maximum acceptable USD price per million output tokens, for example 1.20. The gateway checks the selected model before forwarding.
X-BF16-Include-Cost: true
A non-streaming success includes a numeric USD usage.cost and X-BF16-Cost-USD. For streams, read the final usage or cost event or the HTTP trailer after the stream ends.
Idempotency-Key
Give each logical non-streaming call a unique key. Retry with the same account, endpoint, payload, telemetry settings and key. Replayed responses carry Idempotency-Replayed: true. Recent successes can replay from memory. After eviction or restart the gateway can return 409 for 24 hours to prevent a duplicate charge.
REQUEST_ID=$(uuidgen)
curl -sS -i 'https://lowrefusal.com/v1/chat/completions' \
  -H "Authorization: Bearer $BF16_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'X-BF16-Max-Price-Per-M-Output: 1' \
  -H 'X-BF16-Include-Cost: true' \
  -H "Idempotency-Key: $REQUEST_ID" \
  --data '{
  "max_tokens": 32,
  "messages": [
    {
      "content": "Reply with OK.",
      "role": "user"
    }
  ],
  "model": "deepseek/deepseek-v4.1-flash-uncensored"
}'

Keep the same REQUEST_ID when retrying the curl command. Generate a new value for a new logical request.

レート制限

All keys owned by an account share its limits. Settled top-ups determine the tier, subject to instance capacity.

ティア累計チャージ同時リクエスト数リクエスト/分最大入力
FreeNo top-up3180モデルのコンテキスト内
Tier 1$10+10600モデルのコンテキスト内
Tier 2$100+301800モデルのコンテキスト内
Tier 3$500+503000モデルのコンテキスト内
Tier 4$2,000+1006000モデルのコンテキスト内

Instance concurrency limit · 12
ウォレット ↗ · Contact the operator ↗

制限・エラー・再試行

For rate-limited inference calls inspect x-ratelimit-limit-requests, x-ratelimit-remaining-requests and x-ratelimit-reset-requests. The reset is a Unix timestamp in seconds. On 429 or temporary overload, wait the number of seconds in Retry-After when present.

HTTP原因と対処
400Validate the JSON, protocol fields and output budget. context_length_exceeded means input and reserved output exceed the window. too_many_messages means the message list is too long. too_many_tools exceeds the tool limit. price_cap_exceeded exceeds the request’s price cap.
401Missing, invalid or revoked key. Verify the header with /v1/me.
402Available credit cannot cover the reservation. Reduce the output cap or top up.
403If the key restricts sources, check the calling server’s IP against its allowed CIDR ranges.
404Check the route and copy the complete current model ID from /v1/models.
409Check the idempotency key, original request and usage log before starting a new logical operation.
413The request body is too large. Reduce messages or attachments.
429Account concurrency or the per-minute allowance is exhausted. Reduce parallel work and wait.
502 / 503Check the status page, this protocol’s upstream and instance capacity. Use bounded exponential backoff for temporary unavailability.

Read error.type, error.message and the optional error.code. Messages adds a top-level type of error. For accepted requests use X-Request-ID to locate the record in the dashboard. X-BF16-Model identifies the selected model.

{
  "error": {
    "type": "not_found_error",
    "code": "model_not_found",
    "message": "未知模型",
    "param": null
  }
}
Service status ↗

3. 入出力の保持

The gateway forwards requests to the configured upstream and sets store=false on Responses. SQLite keeps billing and operational metadata such as model, status, timestamps, token counts and charges. The gateway database does not store inference prompts or generated replies.

Idempotent replay briefly keeps recent non-streaming successful responses in process memory. The upstream provider, reverse proxy and client each have separate logging settings.