Skip to content
Get started

Limits

Use with an AI tool

Every hard limit on what you send Curva, with the setting that changes it (most are fixed) and what you get back when you pass it. The numbers are the constants in the server’s code as of release 0.3.0. For where Curva is weak rather than where it stops, see Known limits.

Errors share one shape, {"error": {"type": ..., "message": ...}}. A request that is well formed but over a limit gets 422 invalid_request, a body that can’t be read gets 400, and a body or quota over its size gets 413 too_large. Over a live stream (watch, listen) the same message arrives as an error event. MiB means 1,048,576 bytes; where the server’s own message says “MB” it means the same.

Limit Value Setting What you see
Request body, any route except POST /v1/files 16 MiB; inline base64 pictures and audio count curva serve --max-body-mb, 1 to 1024 413: the request body is over the 16 MB limit; send large files by url or through POST /v1/files, or raise the server's --max-body-mb
A gzip or other compressed body, once unpacked The same limit as the body --max-body-mb 413, the same message
A body over the limit that is still being sent Read and dropped up to 64 MiB past the limit, for at most 10 s, so the client reads the 413 Fixed 413, the same message; past either bound the server answers at once and the client may see a reset, which both SDKs report as 413 too_large
Model calls one request may make 64 Fixed 422: this request needs more than 64 model calls; use fewer council models, explain fields or debias
deadline_ms 50 to 120,000 Per request 422: deadline_ms must be 50..=120000
project 1 to 64 characters Per request 422: project must be 1..=64 characters
Model id 1 to 200 bytes, no control characters Per request 422: a model id must be 1..=200 bytes with no control characters
Models in a plan Chain 1 to 5; council and race 2 to 5 Per request 422: this model plan needs 2..=5 models, got 6
Limit Value Setting What you see
State (the text or JSON being judged) 150,000 bytes of JSON, about 32k tokens Fixed 422: state is ... bytes of JSON; the limit is 150000 (about 32k tokens). Send only the fields the questions need
Questions per request 64 Fixed 422: at most 64 questions per request
All questions together 100,000 bytes of JSON Fixed 422: the questions total ... bytes of JSON; the limit is 100000
Options of a choice 2 to 256, counting the escape option Fixed 422: needs 2..=256 options including the escape option, got ...
Options of a multi, levels of a score multi 1 to 20; score 2 to 20 Fixed 422: the same sentence with ..=20
A choice with more than 20 options in mode: "logprobs" Not allowed: logprobs reads at most 20 Use auto or verbal 422: a question is text, number, integer or box, or has more than 20 labels, which logprobs can't read; use mode auto or verbal
Examples per question 10 Fixed 422: at most 10 examples per question
Rules per question 32 Fixed 422: at most 32 rules per question
max_length of a text answer 1 to 2,000 characters; 200 when not set Per question 422
max_boxes of a box answer 1 to 20 Per question 422: max_boxes must be 1..=20, got ...
Stages of depends_on 8 Fixed 422: question ... needs 9 stages of dependencies; the limit is 8
explain A state object with 1 to 12 top-level fields Fixed 422: explain needs the state to be a JSON object with 1..=12 top-level fields
sources.k (passages from the library) 1 to 50; 8 when not set Per request 422: sources.k is 1..=50

A check policy and its context travel in the state, so the 150,000-byte state limit applies to them too.

Limit Value Setting What you see
Pictures and other assets per request 8 in all (images plus assets) Fixed 422: at most 8 images per request, or at most 8 images and assets per request
Size of one picture 16 MiB Fixed 422: the image is ... bytes; the limit is 16777216 (16 MiB)
Pixels of one picture 40 million (width times height), checked from the header before decoding Fixed 422: the image is 50000×40000 pixels; the limit is 40 million
Formats PNG, JPEG, WebP, GIF Fixed 422 naming the formats
Picture URL https:// only, a public address, at most 2,048 characters, at most 5 redirects Fixed 422: the URL is over 2048 characters, or only https:// URLs are fetched
Limit Value Setting What you see
Size of one recording 10 MiB Fixed 422: the audio is ... bytes; the limit is 10 MiB
Length of one recording 120 s Fixed 422: the audio is 130 s long; the limit is 120 s
Sample rate of pcm16 8,000 to 48,000 Hz, and it must be given Per asset 422
Asset key 1 to 64 characters from A-Z, a-z, 0-9, _ and - Per asset 422: asset keys must be 1..=64 characters from A-Z, a-z, 0-9, _ and -
Limit Value Setting What you see
Length 120 s (2 minutes) Fixed 422: the video is 130 s long; the limit is 120 s
Size, sent inline or by URL 16 MiB Fixed 422: the video is ... bytes; the limit is 16 MiB
Size, by a file id from POST /v1/files 256 MiB Fixed 422: ... is ... bytes; the limit is 256 MiB
Pixels of a frame 40 million, in every video stream of the file Fixed 422: the video is ...×... pixels; the limit is 40 million, or the video's picture size can't be read or is over the limit of 40 million pixels when a stream is too big to even read
Frames shown to the model At most 16, picked at scene changes plus one every 2 s Fixed Not an error
Time to read the videos of one request 90 s Fixed An error: reading the videos of this request took over 90 s
Formats mp4, webm, mov Fixed 422

These are checked while a file is read, so they show on the file’s entry in info() and on the job, not as an HTTP error.

Limit Value Setting What you see on the item
PDF size 512 MiB Fixed the PDF is over the 512 MB a PDF may have
PDF pages 50,000 Fixed the PDF has more than 50000 pages
PDF objects 5,000,000 Fixed the PDF has more than 5000000 objects
Decompression while opening a PDF 128 MiB in all Fixed the PDF expands to more than 128 MB when opened
Objects parsed while opening a PDF 128 MiB in all (120 bytes per value, plus name and string bytes) Fixed the PDF expands to more than 128 MB when opened
Text decoded from one page 16 MiB Fixed That page fails
Text file size 64 MiB Fixed the text file is over the 64 MB a text file may have
Time to read one file 10 minutes Fixed reading this file took over 10 minutes, so it was stopped at page ...
Password-locked PDF Not read; an empty password is read Fixed A sentence that names the password
Limit Value Setting What you see
Length 24 hours Fixed 422 naming the file: ... the video is 25.0 hours long; the limit is 24.0 hours
Size 8 GiB Fixed 422 naming the file: ... the video is 9.0 GiB; the limit is 8 GiB
Pixels of a frame 40 million Fixed 422
Limit Value Setting What you see
One upload to POST /v1/files No body limit; only the project’s quota --library-mb
File bytes a project may keep 10,240 MiB (10 GiB) curva serve --library-mb 413: this project's files would pass its 10240 MB library limit
Form data before the file part of an upload 4 MiB Fixed 422: the multipart body could not be read: more than 4 MiB came before the file part
File ids in one add 1 to 1,000 Fixed 422: files holds 1..=1000 file ids from POST /v1/files
Collection name 1 to 64 letters, digits, _, - or . Fixed 422
Search query 1 to 2,000 characters Fixed 422: query is 1..=2000 characters
Hits per search, k 1 to 100; 1 to 24 with verify, since each picture is shown to a model Fixed 422: k is 1..=100, or with verify, k is 1..=24: each picture is looked at by a model
Requests per minute for an API key Set per key curva keys create --rpm 429 with Retry-After: this API key is over its requests-per-minute limit
Model calls per UTC day, to OpenRouter None unless set CURVA_DAILY_LIMIT 429: this server's daily model-call budget (CURVA_DAILY_LIMIT) is spent; it resets at 00:00 UTC
Calls to one provider per minute 20 for OpenRouter, 600 for Bedrock, 60 for another hosted provider, none for one on this machine CURVA_RPM for OpenRouter, CURVA_PROVIDER_<NAME>_RPM for the others Requests wait for their turn
Wait for one provider reply 60 s CURVA_PROVIDER_<NAME>_TIMEOUT, 1 to 600 s 502
Action deliveries in flight at once 256 on the server; one project gets at most half CURVA_DELIVERIES_IN_FLIGHT The delivery is not sent and is logged as failed: too many deliveries in flight; replay it
Limit Value Setting What you see
Sample rate 8,000 to 48,000 Hz; 16,000 by default, 8,000 for mu-law sample_rate in the start sample_rate must be between 8000 and 48000 (8000 for phone audio, 16000 by default)
Channels 1 or 2 channels in the start channels must be 1 or 2
One message on the socket 4 MiB Fixed The socket closes
One camera frame on a video call 2 MiB Fixed frame ...: it is about ... bytes; the limit is 2 MiB
Start message Within 10 s of connecting Fixed no start message within 10 s
Silence before the call is closed 30 s with no audio or video Fixed no audio or video for 30 s, so the call was closed
Audio waiting to be heard 1 MiB a call (about 32 s at 16 kHz); 256 MiB across the server, at most a quarter of it for one API key Fixed too much audio is waiting to be heard: send it in real time
Camera frames held across calls 256 MiB, at most a quarter of it for one API key Fixed The frame is dropped and counted
Calls open at once per API key 64; a call dropped without stop keeps its place for the 30 s it can be resumed. No cap on a server without API keys CURVA_LIVE_CALLS_PER_KEY An error event, type too_large as for watch: this API key already has 64 live calls open; end one first
Calls open at once on the server 1,024, counting calls without a key CURVA_LIVE_CALLS An error event, type too_large: this server already has 1024 live calls open; try again soon or add a server
Size of the start message 64 KiB Fixed the `start` message is ... bytes; the limit is 64 KiB
Text message that is not a frame 32 KiB Fixed a text message other than a `frame` is ... bytes; the limit is 32 KiB
Answers per API key Each answer counts against the key’s requests per minute, and so does each call’s start --rpm on the key A turn heard while the key is over its rate is not sent to the model
Limit Value Setting What you see
Frame size 2 MiB Fixed frame ... is ... bytes; the limit is 2 MiB
Pixels of a live frame 9 million Fixed the image is ...×... pixels; the limit for live frames is 9 million
Frames per second 0.1 to 30; 10 by default fps 422: fps must be 0.1..=30
max_quiet_s 1 to 3,600; 10 by default max_quiet_s 422
Streams 1,024 per server, 64 per API key Fixed 413: this API key already watches 64 streams; stop one first
Camera URLs the server reads 64 per server, 8 per API key; at most 2,048 characters Fixed 413: this API key already watches 8 camera URLs; stop one first
Private camera addresses Refused unless allowed CURVA_WATCH_ALLOW A forbidden error that names CURVA_WATCH_ALLOW
Frames held waiting 512 MiB per server, 128 MiB per API key Fixed The frame is dropped and counted in the receipt
Start message 64 KiB Fixed 422: the `start` message is ... bytes; the limit is 64 KiB
Any later text message 32 KiB Fixed a text message is ... bytes; the limit is 32 KiB
State sent with a stream 16 KiB of JSON Fixed 422: state is ... bytes of JSON; the limit is 16 KiB: send only the readings a rule needs
Stream name 1 to 64 characters from A-Z, a-z, 0-9 and ._:- Fixed 422
Triggers 16 a stream; confirm up to 30 frames; names 1 to 64 characters Fixed at most 16 triggers per call
Questions The same limits as a decision 422
Limit Value Setting What you see
Ask file size 32 KiB Fixed This file is 40 KB, and an ask file can be at most 32 KB, so split it into smaller files.
Rules in one file 64 Fixed This file has 70 rules, and Curva reads at most 64 from one file, so split it into two files.
alert: k of n frames n at most 30, k at most n Per rule The line number and keep the first number at most the second, and the second at most 30
Rule key 48 characters Fixed The line number and the reason
POST /v1/ask-file with plain words 2,000 characters Fixed 422: plain words are at most 2000 characters, so say what to look for more briefly, or write the ask file yourself
POST /v1/ask-file with a file 32 KiB Fixed 422: text is ... KB, and an ask file can be at most 32 KB, so split it into smaller files
Limit Value Setting What you see
Agent-framework tools (curva.integrations, tools(), guarded()) No limits of their own: each call is a decision, check or screen with the limits above Errors come back as {"error": ...} text for the agent, or “review” from a check
MCP tool calls (curva mcp) Forwarded to the server, so the server’s limits apply; check and guard wait 10 s for a model by default, and the bridge waits 130 s for the server deadline_ms on the tool call, 50 to 120,000 A tool error the agent can read; review from check and guard
Router candidates (curva.models) 2 to 16 Per request or CURVA_ROUTER 422: curva.models needs 2..=16 models to route between
Router route_ms 50 to 120,000; 3,000 by default Per request 422
Router conversation 1 to 512 bytes Per request 422
Limit Value Setting What you see
A .curvapack file 256 MiB Fixed the pack file is larger than 256 MB
Text a pack reads The first 512 tokens Fixed The rest is ignored
One camera frame on a device 16 million pixels Fixed A bad-frame error code
Camera questions in one pack 1,024 Fixed The pack is refused

These are not refusals, but a feature waits until it has this much.

Feature Starts at Where
Calibration of a question 30 labels in the project on one model’s answers; each model gets its own calibrator Calibrate with feedback, Models and versions
Learned answers 200 labels in the project Learned answers
Calibrator fitting The newest 5,000 labels on that model’s answers
Feedback by call Labels up to 1,000 decisions of that call
Reports Audit pages of 1 to 1,000 entries; drift over 1 to 53 weeks; summaries over 1 to 1,825 days (asking for more gives the most)