Skip to content

Limits and pricing

Rate limits, run limits, retention, credits and the AI wallet.

Updated

Rate limits and concurrency

Limit Default Over the limit
Run starts 60 per minute per token (1) 429 rate_limited, Retry-After: 60
Turns 30 per minute per run (2) 429 rate_limited, Retry-After: 60
Reads 600 per minute per token 429 rate_limited
Open streams per run 10 The stream is refused.
Concurrent runs per org Plan feature concurrent-agent-runs (default 5) The run waits in queued.
Queue wait 10 minutes The run fails with concurrency_limited.

(1) A token with the high rate tier gets 3000 starts per minute. CloudRaker sets the tier when it creates the token. Contact us if your backend needs it.

(2) Turns do not count against the start limit of the token. A token can send up to 600 turn requests per minute in total (3000 with the high tier).

Conversation limits

Limit Value Over the limit
Text of one message 4,000 characters too_large. Email, Slack and Teams cut the text with a notice.
Files per conversation 5 MB per file over HTTP, 768 KB over WebSocket, 25 MB in total too_large
Open sockets and streams 10 per conversation Close 4008, or 429 too_many_streams
Turns in flight 1 per conversation turn_in_flight
Web chat starts 10 per minute per IP address, per org 429 rate_limited
Web chat item posts 60 per minute per IP address, per org 429 rate_limited
Conversation starts 10 per minute per person and door 429 at_capacity
Handoffs 3 per message of the person The handoff tool is not offered.

A front door adds its own limits: daily_credits, daily_conversations, and per person turns_per_minute and conversations_per_day. Read Front doors.

Request limits

Item Limit
input 1 MB. Over it: 413 payload_too_large.
files 20 entries. 25 MB per url, 5 MB per content_base64.
metadata 20 keys, string values, 1 KB in total.
Idempotency-Key 1 to 255 characters, kept 24 hours per org.
Secret override value 8 bytes minimum.

Run limits

Set them in limits: of agent.yml, under the plan ceiling.

Key Default Over the limit
timeout (one turn) 10m, from 10s to 60m run.failed with timeout
limits.max_steps (whole run) 50 run.failed with step_limit
limits.max_code_calls 40 The code tool returns an error.
limits.code_cpu_ms (per call) 30000 The code call fails.
limits.max_egress_bytes 50MB The egress call fails.
idle_ttl (turns) 24h, from 1m to 30d run.expired

Fixed limits:

Item Limit
Code source 20 KB per script or execute_code call.
Code result 7 KB. A larger result is withheld with a hint.
Code memory 128 MB per isolate.
One egress response 16 MB.
file.read 25 MB per read.
OpenAPI file 5 MB. Over 200 operations per agent, the agent gets search_api.
Push Packs above 50 MB fail. Pushes above about 10,000 objects can time out.

Retention

Runs, events, results and written files keep for 30 days by default. Set retention in agent.yml from 1m to 90d. A value of minutes gives zero data retention. The value is pinned when the run starts. After retention, the run keeps a stub with no text for 90 days: GET /_run/{id} answers the usage, cost and duration with purged: true, and the content routes answer 410 run_purged. After the 90 days, GET /_run/{id} answers 404 run_not_found. Override secret values keep for zero days.

A conversation and its runs follow the session.retention of the front door (1m to 90d, default 30d), from the end of the conversation. After it, a stub with the counts and the cost stays for 90 days. Read Conversations.

Pricing

You pay for two things: platform time and AI usage. Each one has its own balance.

Balance Pays for Price
Credits Run minutes, phone numbers, call minutes, knowledge and Paperwork tool calls. 1 credit = $0.001. The same credits pay for the Paperwork API.
AI wallet Model calls on CloudRaker inference. 1 AI credit = $0.01. The raw provider cost, with no markup.

Run minutes

A run minute is one minute of Durable Object time. It costs 10 credits (about $0.01). Each started minute counts as a full minute. A run of 61 seconds costs 2 minutes, which is 20 credits.

The number of runs, code calls and egress bytes are free. Free plans set a daily cap on the number of runs.

AI wallet

CloudRaker inference debits the AI wallet at the raw model cost that the provider reports. CloudRaker adds no markup. A BYOK run or a run on your own gateway never uses the AI wallet. Read Models and BYOK.

Add funds to the AI wallet in the console Billing screen. You choose any amount in whole dollars, from $10. A 5% payment processing fee is added: $25 costs $26.25 and gives 2,500 AI credits. AI credits do not expire. An org on the Free plan picks a paid plan on the same screen first. The card is added there too.

Paperwork tools

The Paperwork tools bill your org credits at the Paperwork API rates, as the same /v1 call does. Run usage does not show these credits. Read Files.

Tool What bills
file.parse, file.extract, file.redact The parse of the file, and the extraction or the redaction.
file.form_fields Nothing for a PDF with form fields. A PDF with no fields bills form detection, 10 credits per page, one time for each file. Fields with no label can also bill a parse of the PDF, for the labels.
file.fill The filled pages. A form with no fields also bills form detection one time, if no file.form_fields call detected it first. A draft from source files also parses the source files.
file.classify, file.split The parse of the file, and the classification or the split.
file.redline_read 5 credits per call (one session).
file.redline 10 credits per call (one session and one export).
file.convert_pdf, file.merge, file.render_page The document tools of the Paperwork API.
file.sign_send The envelope. Your plan limits the open envelopes and the sends per day.
file.sign_status, file.sign_void Nothing.
file.markdown_to_pdf Nothing.

Phone numbers

Item Price
Number 2000 credits per number per month. No proration and no refund.
Call minute 10 credits per started call minute. This is the platform fee.
Call cost The raw Twilio and OpenAI realtime cost, from the AI wallet, with no markup.
Run minutes The run of the call bills run minutes as usual.

A call costs 20 credits per call minute: 10 for run minutes and 10 for the call minute. The AI wallet pays the call cost on top.

Phone limit Value
Live calls per org 5
Outbound calls per org 20 per UTC day
Inbound calls per number 60 per hour

Read Phone numbers.

Conversations

A conversation costs what its runs cost: run minutes, AI usage and tool calls. Front doors, bindings, embed keys and web chat are free. Guard and router calls are not billed in the beta. The conversation counts them as guard units.

Knowledge

Item Price
Indexing 1 credit per chunk indexed. An unchanged file is free.
knowledge_search 2 credits per call. A failed search is free.
knowledge_read Free.
Storage Free.

The index takes .md and .markdown files of 256 KB at most. It stops at 2000 files and 20,000 chunks. Read Knowledge.

Admission and settlement

Admission checks your balances before a run or a turn starts. A refusal creates no run or turn.

Check Refusal
Credits, or the daily run cap 402 credits_exhausted
AI wallet, CloudRaker inference only 402 insufficient_ai_credits

A run in flight always finishes. It can take the AI wallet below zero. Add funds to start new runs on CloudRaker inference again.

Settlement happens once per run, when the run ends. It debits the run minutes from your credits and the model cost from the AI wallet. Failed, cancelled and expired runs settle too.

Usage

Each run reports its usage on run.completed, run.failed and GET /_run/{id}:

{
  "input_tokens": 1820,
  "cached_input_tokens": 0,
  "output_tokens": 240,
  "reasoning_tokens": 0,
  "model_steps": 3,
  "code_calls": 1,
  "code_cpu_ms": 12,
  "egress_requests": 2,
  "egress_bytes": 18234,
  "duration_ms": 4120,
  "dynamic_worker_ids": 1,
  "inference": "cloudraker",
  "credits": 10,
  "model_cost_usd": 0.0041,
  "model_cost_complete": true
}

credits is the platform credits of the run. model_cost_usd is the raw model cost in USD on CloudRaker inference. It is null until the cost is known. code_cpu_ms leaves out the time that execute_code waits on tool and API calls.

The console Usage screen shows the same numbers per agent and per day, with a CSV export. The Billing screen shows both balances and the debits of the newest runs.

Type to search…

↑↓ navigate↵ selectEsc close