A familiar API.
A fresh start.

Connect any client or agent with an OpenAI-compatible SDK

Models and pricing

Prices are per million tokens and charged against your prepaid balance at the price shown when the request runs. Security models marked Soon require early access and cannot be called with a regular API key.

ModelSlugInputOutputContextAvailability
Qwen3.8 27B Antislopantislop$0.15$2.00131,072
GLM-5.3 Rawglm-5.3-raw$2.50$7.001,000,000

Authentication

Create a key in API key settings after signing in. Keys start with skrm-, are shown once, and use the same prepaid balance as the web chat. Send them as a bearer token.

Authorization: Bearer skrm-...

Chat completions

POST /v1/chat/completions — request and response bodies follow the OpenAI schema, including stream: true chunks terminated by data: [DONE]

Cold starts: GPU workers boot on demand (1–3 min) — subsequent requests answer in seconds. For long requests, use stream: true and a client timeout ≥ 300s

The examples use glm-5.3-raw

cURL
curl https://www.rawmodels.ai/v1/chat/completions \
  -H "Authorization: Bearer skrm-..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.3-raw",
    "messages": [{"role": "user", "content": "Hello"}],
    "stream": true
  }'
Python
from openai import OpenAI

client = OpenAI(api_key="skrm-...", base_url="https://www.rawmodels.ai/v1")
response = client.chat.completions.create(
    model="glm-5.3-raw",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Decisions API

Get typed answers and probabilities for questions about text, images, or video. Use choice, yes/no, or score questions to classify and evaluate inputs.

Explore the Decisions API

Claude Code and Codex

Use Raw Models from Claude Code and Codex like any other model. Besides /v1/chat/completions, the API accepts the Anthropic Messages API at /v1/messages and the OpenAI Responses API at /v1/responses, so any client built for those works with a Raw Models key.

One command for Claude Code and Codex

Bash
curl -fsSL https://www.rawmodels.ai/install | sh

Then just run claude or codex — every model tier maps to glm-5.3-raw, and /model lists the Raw Models models that run tool calls. Your previous settings are kept and come back with curl -fsSL https://www.rawmodels.ai/install | sh -s -- uninstall.

macOS and Linux · Idle models start on first request

Full Claude Code setup with per-tier model mapping: Claude Code on Raw Models.

One more model in OpenCode, pi, Zed or Cline

Early access is required. These agents keep several providers at once: glm-5.3-raw appears next to the models you already use, and those keep working on your own accounts. Set export RAWMODELS_API_KEY=skrm-... in your shell.

Merge into ~/.config/opencode/opencode.json, then pick rawmodels/glm-5.3-raw with /models.

JSON
{
  "provider": {
    "rawmodels": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Raw Models",
      "options": {
        "baseURL": "https://www.rawmodels.ai/v1",
        "apiKey": "{env:RAWMODELS_API_KEY}"
      },
      "models": {
        "glm-5.3-raw": {
          "name": "GLM-5.3 Raw",
          "tool_call": true,
          "limit": {
            "context": 1000000,
            "output": 999990
          }
        }
      }
    }
  }
}

Parameters

model

Model slug from the table above.

messages

Array of {role, content}. Roles: system, user, assistant, tool. Content may be a string or an array of text parts.

stream

Server-sent events when true. Defaults to false.

max_tokens

Optional. Left out, the model writes until it stops or the context is full. Reasoning tokens count against it.

tools / tool_choice

OpenAI function calling on models that support it. Calls come back as message.tool_calls (or tool_calls deltas when streaming) with finish_reason "tool_calls"; send each result as a {role: "tool", tool_call_id, content} message.

parallel_tool_calls / stop

Forwarded to the model as in the OpenAI API.

temperature

0 – 2. Left out, the upstream provider's default applies.

top_p / top_k / min_p

Nucleus, top-k and min-p sampling. Only sent upstream when you set them.

repetition_penalty

0.5 – 2. Only sent upstream when you set it.

frequency_penalty / presence_penalty

-2 – 2. Only sent upstream when you set them.

seed / response_format / reasoning

Forwarded to the provider unchanged. Reasoning models return their thinking as message.reasoning (or reasoning deltas when streaming).

Models endpoint

GET /v1/models lists the slugs your key can call

curl https://www.rawmodels.ai/v1/models -H "Authorization: Bearer skrm-..."

Errors

401invalid_api_key

Missing, malformed, or revoked key.

403early_access_required

This model is coming soon. Join the early access waitlist at /waitlist.

402insufficient_quota

Prepaid balance cannot cover the request. Top up on the billing page.

429rate_limit_exceeded

20 requests/minute, 60 after the first top-up.

400max_tokens_exceeded

max_tokens is above the selected model's output limit.

400tools_not_supported

The request carries tools or tool messages and the selected model does not run tool calling.

504model_cold_start_timeout

The worker did not produce a first token within 280s. Retry, or use stream: true.

400invalid_request_error

Unknown model, oversized request, or parameters outside the allowed range.

More guides

Questions?

hello@rawmodels.ai