Create an environment
Adds an environment to the project. The new environment has no revision and runs no
instances. Its first update needs only image; the other settings default to the model’s.
name is 1 to 32 lowercase letters, digits, or hyphens, and starts with a letter. It must
be unique among the project’s live environments, and production always exists. The body
is decoded strictly: an unknown field is 400, and so is an If-Match header.
Requires the account_admin or developer role and Serve access. A non-production
environment needs a model built on runtime 3.x or later.
Authorizations
A Reactor API key (rk_...), sent as Authorization: Bearer rk_.... Keep it on a server.
Path Parameters
The project's ID, a UUID. It is not the model's ID.
Body
1 to 32 lowercase letters, digits, or hyphens, starting with a letter.
^[a-z][a-z0-9-]{0,31}$Response
The environment was created. Location names its path.
The environment's ID. It is neither the project's nor the model's ID.
The current image. For production, the deployed release's image. Null for another environment before its first revision.
The pinned weights. Null when none are pinned.
What each instance gets.
Extra arguments passed to the model container.
Read-only.
The current revision. Null before the first revision.
When true, any authenticated caller can open sessions on production. It grants no read. Read-only for customers.
When the environment was deleted. A deleted environment takes no writes.
Variables keyed by name. Names use letters, digits, _, -, and ., with no leading
digit. Reserved names such as MODEL_NAME and any REACTOR_ name are refused.