Runtime · Schema
ImageCreate
An image to build, from exactly one of `image` and `dockerfile`.
CloudComputeSandboxArtificial IntelligenceDevelopment
Properties
| Name | Type | Description |
|---|---|---|
| name | string | Its name, 1 to 64 of `a-z`, `0-9`, `.`, `_` and `-`: each build of a name is its next version. |
| labels | object | Labels to find it by. |
| tags | array | Tags its name takes for it once it is ready; `latest` when it has a name and none is given. |
| image | string | An OCI image to use as it is: `python:3.12-slim`, `ghcr.io/org/app:1`. A private one is named by its digest, `repo@sha256:<64 hex digits>`, with `pullSecret`. |
| pullSecret | string | The secret holding the registry login that pulls a private `image`: a hidden secret with header `Authorization`, format `Basic {value}`, its value the base64 of `username:token`, as its hosts the regi |
| dockerfile | string | A Dockerfile: multi-stage builds, `ARG`, `COPY --from`, heredocs. `COPY` reads `files`. |
| recipe | object | |
| files | array | The Dockerfile's build context, inline: at most 1 MiB in all. Not with `context`. |
| context | object | |
| dockerignore | string | The context's `.dockerignore`: what it names is never copied. |
| target | string | The stage to build instead of the last. |
| buildArgs | object | The Dockerfile's `ARG` values. |
| env | object | Environment every machine from it starts with, over the Dockerfile's `ENV`. |
| start | object | |
| build | object | |
| deleteAfterSeconds | integer | Seconds until Runtime deletes this version, as its delete does: final, and it can't be undone; one an App boots is deleted once none does. 0 or omitted: kept until deleted. |
| deleteProtection | boolean | Whether this version's delete is refused (409 `delete_protected`) until an update turns this off; false when omitted. Not with `deleteAfterSeconds`. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/withruntime-com/json-schema/withruntime-com-image-create-schema.json",
"title": "ImageCreate",
"description": "An image to build, from exactly one of `image` and `dockerfile`.",
"x-generated": "2026-11-28",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/withruntime-com-openapi.json#/components/schemas/ImageCreate",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Its name, 1 to 64 of `a-z`, `0-9`, `.`, `_` and `-`: each build of a name is its next version."
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Labels to find it by."
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"description": "Tags its name takes for it once it is ready; `latest` when it has a name and none is given.",
"maxItems": 16
},
"image": {
"type": "string",
"description": "An OCI image to use as it is: `python:3.12-slim`, `ghcr.io/org/app:1`. A private one is named by its digest, `repo@sha256:<64 hex digits>`, with `pullSecret`."
},
"pullSecret": {
"type": "string",
"description": "The secret holding the registry login that pulls a private `image`: a hidden secret with header `Authorization`, format `Basic {value}`, its value the base64 of `username:token`, as its hosts the registry's token service (`auth.docker.io` for Docker Hub, the registry's own name for `ghcr.io`, `quay.io` and others), and as its scope `{\"none\": true}`, so no machine's requests carry it. Runtime's egress proxy signs in with it for this import's build machine alone, which never holds the login or a token. The caller needs the `secrets:use` permission."
},
"dockerfile": {
"type": "string",
"description": "A Dockerfile: multi-stage builds, `ARG`, `COPY --from`, heredocs. `COPY` reads `files`."
},
"recipe": {
"$ref": "#/$defs/ImageRecipe"
},
"files": {
"type": "array",
"items": {
"$ref": "#/$defs/ImageFile"
},
"description": "The Dockerfile's build context, inline: at most 1 MiB in all. Not with `context`.",
"maxItems": 256
},
"context": {
"$ref": "#/$defs/ImageContext"
},
"dockerignore": {
"type": "string",
"description": "The context's `.dockerignore`: what it names is never copied."
},
"target": {
"type": "string",
"description": "The stage to build instead of the last."
},
"buildArgs": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "The Dockerfile's `ARG` values."
},
"env": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Environment every machine from it starts with, over the Dockerfile's `ENV`."
},
"start": {
"$ref": "#/$defs/MachineStart"
},
"build": {
"$ref": "#/$defs/ImageBuild"
},
"deleteAfterSeconds": {
"type": "integer",
"description": "Seconds until Runtime deletes this version, as its delete does: final, and it can't be undone; one an App boots is deleted once none does. 0 or omitted: kept until deleted.",
"minimum": 0,
"maximum": 315360000
},
"deleteProtection": {
"type": "boolean",
"description": "Whether this version's delete is refused (409 `delete_protected`) until an update turns this off; false when omitted. Not with `deleteAfterSeconds`."
}
},
"$defs": {
"ImageArchive": {
"type": "object",
"description": "A build context's archive: a tar (gzip allowed), cut into chunks of at most 1 MiB, each uploaded first (`images.context.put`).",
"properties": {
"sha256": {
"type": "string",
"description": "The whole archive's SHA-256, in hex."
},
"size": {
"type": "integer",
"description": "Its size in bytes.",
"minimum": 1
},
"chunks": {
"type": "array",
"items": {
"type": "string"
},
"description": "Its chunks' SHA-256s, in order.",
"maxItems": 200
}
},
"required": [
"sha256",
"size",
"chunks"
]
},
"ImageBuild": {
"type": "object",
"description": "What an image's build runs on: a machine of its own, deleted once the build ends.",
"properties": {
"vcpu": {
"type": "integer",
"description": "Its vCPUs; a build machine's default when omitted.",
"minimum": 1,
"maximum": 8
},
"memoryGB": {
"type": "number",
"description": "Its memory in GB; a build machine's default when omitted.",
"minimum": 1,
"maximum": 16
},
"diskGB": {
"type": "number",
"description": "Its disk in GB: the base image, the earlier stages and the context. A build machine's default when omitted, at least its image's size.",
"minimum": 4,
"maximum": 32
},
"timeoutSeconds": {
"type": "integer",
"description": "Seconds the build may run before it fails.",
"minimum": 60,
"maximum": 3600,
"default": 1800
}
}
},
"ImageContext": {
"type": "object",
"description": "A build context uploaded as chunks: the SDKs and CLI make it from a folder and its `.dockerignore`.",
"properties": {
"archive": {
"$ref": "#/$defs/ImageArchive"
},
"files": {
"type": "array",
"items": {
"$ref": "#/$defs/ImageContextFile"
},
"description": "Every regular file in it."
}
},
"required": [
"archive",
"files"
]
},
"ImageContextFile": {
"type": "object",
"description": "A regular file of a build context's archive.",
"properties": {
"path": {
"type": "string",
"description": "Its path in the context."
},
"sha256": {
"type": "string",
"description": "Its SHA-256, in hex."
},
"size": {
"type": "integer",
"description": "Its size in bytes."
},
"mode": {
"type": "integer",
"description": "Its permission bits."
}
},
"required": [
"path",
"sha256",
"size"
]
},
"ImageFile": {
"type": "object",
"description": "A file of an image build's context, sent inline.",
"properties": {
"path": {
"type": "string",
"description": "Its path in the build context, which `COPY` and `ADD` read."
},
"content": {
"type": "string",
"description": "Its content: UTF-8 text, or base64 when `encoding` says so."
},
"encoding": {
"type": "string",
"enum": [
"utf8",
"base64"
],
"description": "`utf8` (the default) or `base64`."
},
"mode": {
"type": "integer",
"description": "Its permission bits, 0 to 511 (0777 in octal).",
"minimum": 0,
"maximum": 511
}
},
"required": [
"path",
"content"
]
},
"ImageRecipe": {
"type": "object",
"description": "An image described by its packages, files and commands, rendered into a Dockerfile: `FROM` its base, its `env`, one `RUN` each for its apt, pip and npm packages, its files, then its commands in `workdir`.",
"properties": {
"base": {
"type": "string",
"description": "The image it starts from: `runtime` (the default, Runtime's own) or an OCI image, such as `python:3.12-slim`."
},
"apt": {
"type": "array",
"items": {
"type": "string"
},
"description": "Debian packages, each `name` or `name=version`.",
"maxItems": 500
},
"pip": {
"type": "array",
"items": {
"type": "string"
},
"description": "Python packages, each as pip takes one: `pandas`, `numpy==2.1`, `uvicorn[standard]>=0.30`.",
"maxItems": 500
},
"npm": {
"type": "array",
"items": {
"type": "string"
},
"description": "npm packages, installed globally: `typescript`, `@scope/tool@1`.",
"maxItems": 500
},
"commands": {
"type": "array",
"items": {
"type": "string"
},
"description": "Shell commands, each run by `/bin/sh` in `workdir` after the packages and files.",
"maxItems": 500
},
"env": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Environment set before the packages; `$NAME` names its base's."
},
"files": {
"type": "array",
"items": {
"$ref": "#/$defs/ImageFile"
},
"description": "Files written into the image, each `path` absolute: at most 1 MiB in all.",
"maxItems": 256
},
"workdir": {
"type": "string",
"description": "Where its commands run and its machines start: `/workspace` by default."
}
}
},
"MachineStart": {
"type": "object",
"description": "A command a machine starts at every fresh boot.",
"properties": {
"cmd": {
"oneOf": [
{
"type": "string",
"minLength": 1,
"description": "Run by bash -lc."
},
{
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"description": "The program and its arguments, run without a shell."
}
],
"description": "The command: text, run by `bash -lc`, or the program and its arguments as a list, run without a shell."
},
"cwd": {
"type": "string",
"description": "The directory it runs in; the user's home when omitted."
},
"env": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Environment variables to add."
},
"readyPort": {
"type": "integer",
"description": "A port it listens on once ready: a create answers once something listens there.",
"minimum": 1,
"maximum": 65535
},
"readyCommand": {
"type": "string",
"description": "A shell command that exits 0 once it is ready, run by `/bin/sh -c` in `cwd` until it does: a create answers once it has."
},
"readyTimeoutSeconds": {
"type": "integer",
"description": "How long a create waits for `readyPort` or `readyCommand`, 1 to 300 seconds: 60 when omitted.",
"minimum": 1,
"maximum": 300
}
},
"required": [
"cmd"
]
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/withruntime-com-image-create"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.