Remove the image, keep the text
DELETE/api/v1/memory/image
In the SDKs: forget_image
Drops the image and leaves the caption — unless the memory was only a image, in which case the memory goes too. The response says which happened. preview: true asks without changing anything.
Authentication
Every call carries your API key in an X-API-Key header. Keys are created in the console.
X-WOS-ModeloptionalPicks the memory model that answers. Omit it and the account default is used.
Request body
JSON, required. Out-of-range values are refused with a 400 rather than quietly clamped.
user_idstring requiredThe store to operate on. Stores are explicit: create one first or use the built-in "default".
memory_idstring requiredpreviewbooleanReport what would happen and change nothing.
Returns
The 200 body. Fields nested one level are shown as parent.child.
user_idstringmemory_idstringmemory_keptbooleanfalse when the memory was only an image and went with it.
previewboolean
Example
curl -X DELETE https://api.wontopos.com/api/v1/memory/image \
-H "X-API-Key: $WOS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'Status codes
| Status | Meaning |
|---|---|
| 200 | Success. |
| 401 | Missing or invalid API key. |
| 404 | Store (user_id) does not exist. Create it first: POST /api/v1/memory/collection. |
| 429 | Rate limited (per-account, per-tier RPM). Retry after the indicated delay. |
| 501 | The selected model’s engine does not implement this endpoint (Tablet 2 and newer do). The message names the model. |
Rate limits per tier and the full status list are in Errors & limits.
In the SDKs
The Python, TypeScript, and Rust SDKs wrap this endpoint so you do not build the request by
hand — pip install wontopos, npm i wontopos, or cargo add wontopos, then the method list is on the SDK reference. A coding agent can take the whole API in one file
at llms.txt, or over MCP with npx -y wontopos-mcp.