Skip to content

An open-source, faster Devin alternative

TypeScript

add sdk pages

Brian Reardon43e042fe7fde
diff --git a/docs/reference/python-sdk/image.mdx b/docs/reference/python-sdk/image.mdx
index 24748cf7..fe32f755 100644
--- a/docs/reference/python-sdk/image.mdx
+++ b/docs/reference/python-sdk/image.mdx
@@ -103,6 +103,30 @@ image = (
**Returns:** `Image`
+### `image.builder_memory(mb)`
+
+Sets the RAM (in MB) used during the build phase. Raise this when a build OOMs
+(heavy `apt`/`pip`). Does **not** pin the output image — the build is re-snapshotted
+at the runtime floor. Defaults to a generous build-phase size.
+
+<ParamField body="mb" type="int" required>
+ Build-phase memory in MB
+</ParamField>
+
+**Returns:** `Image`
+
+### `image.runtime_memory(mb)`
+
+Sets the memory floor (in MB) of the resulting image. Forks can't run below this
+but can scale up. Defaults to 1024. Raise only for images whose services
+auto-start heavy at boot.
+
+<ParamField body="mb" type="int" required>
+ Memory floor in MB
+</ParamField>
+
+**Returns:** `Image`
+
---
## Utility Methods
diff --git a/docs/reference/typescript-sdk/image.mdx b/docs/reference/typescript-sdk/image.mdx
index a062d229..c8f689ee 100644
--- a/docs/reference/typescript-sdk/image.mdx
+++ b/docs/reference/typescript-sdk/image.mdx
@@ -115,6 +115,30 @@ const image = Image.base()
**Returns:** `Image`
+### `image.builderMemory(mb)`
+
+Sets the RAM (MB) used during the build phase. Raise this when a build OOMs
+(heavy `apt`/`pip`). Does **not** pin the output image — the build is
+re-snapshotted at the runtime floor. Defaults to a generous build-phase size.
+
+<ParamField body="mb" type="number" required>
+ Build-phase memory in MB
+</ParamField>
+
+**Returns:** `Image`
+
+### `image.runtimeMemory(mb)`
+
+Sets the memory floor (MB) of the resulting image. Forks can't run below this
+but can scale up. Defaults to 1024. Raise only for images whose services
+auto-start heavy at boot.
+
+<ParamField body="mb" type="number" required>
+ Memory floor in MB
+</ParamField>
+
+**Returns:** `Image`
+
---
## Utility Methods