Google Gemini · Schema

CreateEnvironmentRequest

Request for `CreateEnvironment`.

AI AgentsArtificial IntelligenceCode GenerationEmbeddingsGenerative AIImage GenerationLLMMachine LearningMulti-ModalReal-TimeFoundation ModelsAgentsAudio UnderstandingBatch ProcessingDeep ResearchDocument UnderstandingFunction CallingStructured OutputText-to-SpeechVideo GenerationVideo Understanding

Properties

Name Type Description
customConfig object Optional. Arbitrary customer-defined JSON configuration passed through to the self-hosted environment poller. Only supported when `mode` is `SELF_HOSTED`.
networkAllowlist object Allow only specific domains.
sources array Sources to be mounted into the environment.
fromEnvironment string Optional. The source environment to copy/fork from. Format: `environments/{environment_id}` or `{environment_id}`. When specified, `sources` and `env` must be empty.
networkMode string Network egress mode.
mode string The compute lifecycle mode for this environment.
systemInstruction string Optional. System instruction applied to interactions running in this environment. Only supported for `SELF_HOSTED` environments, where it is recommended.
View JSON Schema on GitHub

JSON Schema

google-gemini-create-environment-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-gemini/json-schema/google-gemini-create-environment-request-schema.json",
  "title": "CreateEnvironmentRequest",
  "description": "Request for `CreateEnvironment`.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-gemini-environments-api-openapi.yml#/components/schemas/CreateEnvironmentRequest",
  "type": "object",
  "properties": {
    "customConfig": {
      "additionalProperties": {
        "description": "Properties of the object."
      },
      "type": "object",
      "description": "Optional. Arbitrary customer-defined JSON configuration passed through to the self-hosted environment poller. Only supported when `mode` is `SELF_HOSTED`."
    },
    "networkAllowlist": {
      "$ref": "#/$defs/EnvironmentNetworkEgressAllowlist",
      "description": "Allow only specific domains."
    },
    "sources": {
      "description": "Sources to be mounted into the environment.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Source"
      }
    },
    "fromEnvironment": {
      "type": "string",
      "description": "Optional. The source environment to copy/fork from. Format: `environments/{environment_id}` or `{environment_id}`. When specified, `sources` and `env` must be empty."
    },
    "networkMode": {
      "description": "Network egress mode.",
      "enum": [
        "NETWORK_MODE_UNSPECIFIED",
        "DISABLED"
      ],
      "type": "string"
    },
    "mode": {
      "description": "The compute lifecycle mode for this environment.",
      "enum": [
        "ENVIRONMENT_MODE_UNSPECIFIED",
        "ON_DEMAND",
        "SELF_HOSTED"
      ],
      "type": "string"
    },
    "systemInstruction": {
      "description": "Optional. System instruction applied to interactions running in this environment. Only supported for `SELF_HOSTED` environments, where it is recommended.",
      "type": "string"
    }
  },
  "$defs": {
    "EgressRule": {
      "properties": {
        "mode": {
          "description": "Network egress mode. Set via the `\"allowlist\": \"disabled\"` short form; must be the only rule in the allowlist and cannot be combined with `domain`, `transform` or `credential`.",
          "type": "string",
          "enum": [
            "NETWORK_MODE_UNSPECIFIED",
            "DISABLED"
          ]
        },
        "transform": {
          "description": "Headers to inject into requests matching this rule. Key: header name (e.g., \"Authorization\"). Value: header value (e.g., \"Bearer your-token\").",
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "credential": {
          "type": "string",
          "description": "Optional. Reference to a server-managed Credential resource by ID."
        },
        "domain": {
          "type": "string",
          "description": "Domain to allow outbound requests to. Supports wildcards (e.g. '*.googleapis.com'). Use '*' to allow all domains."
        }
      },
      "type": "object",
      "description": "A single domain allowlist rule with optional header injection."
    },
    "EnvironmentNetworkEgressAllowlist": {
      "properties": {
        "allowlist": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EgressRule"
          },
          "description": "List of allowed domains and their configurations. Set to `\"disabled\"` to block all network egress."
        }
      },
      "description": "Network egress configuration for the environment.",
      "type": "object"
    },
    "Source": {
      "description": "A source to be mounted into the environment.",
      "type": "object",
      "properties": {
        "target": {
          "type": "string",
          "description": "Where the source should appear in the environment."
        },
        "type": {
          "enum": [
            "TYPE_UNSPECIFIED",
            "GCS",
            "INLINE",
            "REPOSITORY"
          ],
          "type": "string"
        },
        "content": {
          "type": "string",
          "description": "The inline content if `type` is `INLINE`."
        },
        "source": {
          "description": "The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, this is the GitHub path.",
          "type": "string"
        },
        "encoding": {
          "description": "Optional encoding for inline content (e.g. `base64`).",
          "type": "string"
        }
      }
    }
  }
}

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.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-gemini-create-environment-request"
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.