StillMade AIDeveloper docs
Browse documentation · SDK 0.1.0

Limits

Every size, time and rate limit, read from the SDK constants the runtime enforces.

Every number below is read from the SDK constant named under its heading, the same value the runtime and StillMade enforce. Exceeding one fails with the error code in the error reference.

JavaScript Blocks (src/run.js)

JAVASCRIPT_LIMITS

LimitValue
Source size256 KiB
Input and output JSON4 MiB
CPU time per run500 ms
Memory16 MiB
Sandbox memory reserve32 MiB

Module Blocks

MODULE_LIMITS

LimitValue
Files in module/64
One file64 MiB
All files128 MiB
File path length160
Run time without progress (host calls do not count)2 min
Longest run in real time30 min
Extra time after each progress report1 min
One message to or from the host16 MiB
Log lines kept per run500

Standard views

VIEW_LIMITS

LimitValue
Markup64 KiB
Styles32 KiB
Script64 KiB
One message to the host4 MiB
StillMade.run calls per minute30
Image previews per minute60
One image preview15 s
Preview image side (pixels)512

Frame views

FRAME_VIEW_LIMITS

LimitValue
Markup256 KiB
Each stylesheet256 KiB
Script bundle (view.js)4 MiB
Asset files32
All asset files8 MiB
One task before it is stopped250 ms
A blocking native operation before the view is closed1 s

Shared view state

SHARED_VIEW_LIMITS

LimitValue
All shared fields384 KiB
One updateShared request800,000 bytes
Unsent edits2 MiB

Hosted operations

CAPABILITY_LIMITS

LimitValue
Prompt characters32,000
Project context sent with a prompt24,000 bytes
System instruction characters8,000
Text output characters32,768
Tokens a reply may use4,096
Fixtures in a capability Block3
Literal phrases one fixture checks8
One literal phrase256
Capability package256 KiB
Host metadata8 KiB

Image generation

IMAGE_CAPABILITY_LIMITS

LimitValue
Prompt characters32,000
Legacy fixed-size image12,000,000 bytes
Legacy fixed width1,024
Legacy fixed height1,024
Longest side (pixels)8,192
Pixels40,000,000
Image file64 MiB

Video generation

VIDEO_CAPABILITY_LIMITS

LimitValue
Prompt characters32,000
Video file256 MiB
Seconds60
Width (pixels)3,840
Height (pixels)3,840
Pixels per frame8,294,400

Speech

SPEECH_CAPABILITY_LIMITS

LimitValue
Characters per call3,800
Seconds1,400
Audio file64 MiB
Canonical WAV sample rate24,000
Canonical WAV channels1

Music, sound effects and transcription

AUDIO_CAPABILITY_LIMITS

LimitValue
Audio file128 MiB
Seconds1,800
Music seconds (min, max, default)min 5; max 240; default 30
Sound effect seconds (min, max, default)min 0.5; max 22; default 4

Conversation history (text.generate)

TEXT_HISTORY_LIMITS

LimitValue
Turns20
Characters per turn8,000
Characters in all turns24,000

Web reading

WEB_CAPABILITY_LIMITS

LimitValue
URL length2,048
Instruction characters4,000
Research topic characters500
Sources returned12
Answer characters32,768

Media analysis

MEDIA_ANALYZE_LIMITS

LimitValue
Images per call4
Question characters2,000
Seconds of one closer-inspected video range12

Image description

IMAGE_DESCRIBE_LIMITS

LimitValue
Images per call4

Generation from code (media.generate)

MEDIA_GENERATE_LIMITS

LimitValue
Items per batch50
Prompt characters4,000

Generation settings

GENERATION_LIMITS

LimitValue
Reference images8
Negative prompt characters2,000
Largest seed2,147,483,647

Outside APIs (net.fetch)

NETWORK_LIMITS

LimitValue
Declared origins8
Request body4 MiB
Response body after decompression8 MiB
One request30 s
Redirects followed3
Request headers32
All request headers16 KiB
URL length8,192
Requests per minute (person and Block)120
Requests per minute to one origin (everyone)3,000
Saved key length4,096

Cloud storage

CLOUD_STORAGE_LIMITS

LimitValue
Key length200
One JSON value1 MiB
One file64 MiB
Everything one Block keeps in a project256 MiB
Keys per Block per project2,000
Items per list page500
Media type length100

Triggers

BLOCK_TRIGGER_LIMITS

LimitValue
Triggers per Block4
Label characters120
Shortest schedule interval (seconds)60
Longest schedule interval (seconds)31,536,000

Media transforms

MEDIA_TRANSFORM_LIMITS

LimitValue
Ranges kept by one cut500
Videos joined at once50
Media length (seconds)21,600
Decoded samples201,326,592
Decode sample rates8,000, 16,000, 22,050, 24,000, 32,000, 44,100, 48,000
Thumbnail width (pixels)4,096

Files, documents and tables

DATA_VALUE_LIMITS

LimitValue
File name length255
Document characters1,000,000
Document title characters300
Table columns500
Table rows100,000
Table cells500,000
Column name length160
Characters in one cell100,000
Link length8,192

File bundles

FILE_BUNDLE_LIMITS

LimitValue
Files256
Text in all files3,000,000 bytes
Path length180

JSON schemas (text.generate)

JSON_SCHEMA_LIMITS

LimitValue
Schema size8 KiB
Nesting depth8
Properties per object64
Values per enum64
Characters in a schema string4,000