---
title: Create a gateway
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

[AI Gateway](https://developers.cloudflare.com/api/go/resources/ai_gateway)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Create a gateway

client.AIGateway.New(ctx, params) (\*[AIGatewayNewResponse](<https://developers.cloudflare.com/api/go/resources/ai_gateway#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/ai-gateway/gateways

Creates an AI Gateway in the account with the specified caching, rate limiting, logging, and authentication settings. The gateway ID appears in request URLs and must be unique within the account.

##### Security

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### Accepted Permissions (at least one required)

`AI Gateway Write`

##### ParametersExpand Collapse

<details>

<summary>

params AIGatewayNewParams

</summary>

AccountID param.Field\[string]

Path param

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20account_id">Link to this property</a>

ID param.Field\[string]

Body param: Unique identifier of the AI Gateway within the account.

maxLength64

minLength1

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20id">Link to this property</a>

CacheInvalidateOnUpdate param.Field\[bool]

Body param

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20cache_invalidate_on_update">Link to this property</a>

CacheTTL param.Field\[int64]

Body param

minimum0

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20cache_ttl">Link to this property</a>

CollectLogs param.Field\[bool]

Body param

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20collect_logs">Link to this property</a>

RateLimitingInterval param.Field\[int64]

Body param

minimum0

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rate_limiting_interval">Link to this property</a>

RateLimitingLimit param.Field\[int64]

Body param

minimum0

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rate_limiting_limit">Link to this property</a>

Authentication param.Field\[bool]Optional

Body param

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20authentication">Link to this property</a>

ByokOnly param.Field\[bool]Optional

Body param: Requires customer-provided provider credentials and prevents fallback to Unified Billing.

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20byok_only">Link to this property</a>

<details>

<summary>

DLP param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/ai_gateway/methods/create#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20dlp%20%3E%20(schema)">AIGatewayNewParamsDLP</a>]Optional

Body param

</summary>

<details>

<summary>

type AIGatewayNewParamsDLPObject struct{…}

</summary>

<details>

<summary>

Action AIGatewayNewParamsDLPObjectAction

</summary>

One of the following:

const AIGatewayNewParamsDLPObjectActionBlock AIGatewayNewParamsDLPObjectAction = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20dlp%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20action%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsDLPObjectActionFlag AIGatewayNewParamsDLPObjectAction = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20dlp%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20action%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20dlp%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20action">Link to this property</a>

Enabled bool

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20dlp%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20enabled">Link to this property</a>

Profiles \[]string

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20dlp%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20profiles">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20dlp%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

type AIGatewayNewParamsDLPObject struct{…}

</summary>

Enabled bool

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20dlp%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

Policies \[]AIGatewayNewParamsDLPObjectPolicy

</summary>

ID string

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20dlp%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20policies%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

Action AIGatewayNewParamsDLPObjectPoliciesAction

</summary>

One of the following:

const AIGatewayNewParamsDLPObjectPoliciesActionFlag AIGatewayNewParamsDLPObjectPoliciesAction = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20dlp%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20policies%20%3E%20(items)%20%3E%20(property)%20action%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsDLPObjectPoliciesActionBlock AIGatewayNewParamsDLPObjectPoliciesAction = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20dlp%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20policies%20%3E%20(items)%20%3E%20(property)%20action%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20dlp%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20policies%20%3E%20(items)%20%3E%20(property)%20action">Link to this property</a>

<details>

<summary>

Check \[]AIGatewayNewParamsDLPObjectPoliciesCheck

</summary>

One of the following:

const AIGatewayNewParamsDLPObjectPoliciesCheckRequest AIGatewayNewParamsDLPObjectPoliciesCheck = "REQUEST"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20dlp%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20policies%20%3E%20(items)%20%3E%20(property)%20check%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsDLPObjectPoliciesCheckResponse AIGatewayNewParamsDLPObjectPoliciesCheck = "RESPONSE"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20dlp%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20policies%20%3E%20(items)%20%3E%20(property)%20check%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20dlp%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20policies%20%3E%20(items)%20%3E%20(property)%20check">Link to this property</a>

Enabled bool

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20dlp%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20policies%20%3E%20(items)%20%3E%20(property)%20enabled">Link to this property</a>

Profiles \[]string

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20dlp%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20policies%20%3E%20(items)%20%3E%20(property)%20profiles">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20dlp%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20policies">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20dlp%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20dlp">Link to this property</a>

<details>

<summary>

Guardrails param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/ai_gateway/methods/create#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)">AIGatewayNewParamsGuardrails</a>]Optional

Body param

</summary>

<details>

<summary>

Prompt AIGatewayNewParamsGuardrailsPrompt

</summary>

<details>

<summary>

P1 AIGatewayNewParamsGuardrailsPromptP1Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsPromptP1Flag AIGatewayNewParamsGuardrailsPromptP1 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20P1%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsPromptP1Block AIGatewayNewParamsGuardrailsPromptP1 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20P1%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20P1">Link to this property</a>

<details>

<summary>

S1 AIGatewayNewParamsGuardrailsPromptS1Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsPromptS1Flag AIGatewayNewParamsGuardrailsPromptS1 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S1%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsPromptS1Block AIGatewayNewParamsGuardrailsPromptS1 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S1%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S1">Link to this property</a>

<details>

<summary>

S10 AIGatewayNewParamsGuardrailsPromptS10Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsPromptS10Flag AIGatewayNewParamsGuardrailsPromptS10 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S10%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsPromptS10Block AIGatewayNewParamsGuardrailsPromptS10 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S10%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S10">Link to this property</a>

<details>

<summary>

S11 AIGatewayNewParamsGuardrailsPromptS11Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsPromptS11Flag AIGatewayNewParamsGuardrailsPromptS11 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S11%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsPromptS11Block AIGatewayNewParamsGuardrailsPromptS11 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S11%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S11">Link to this property</a>

<details>

<summary>

S12 AIGatewayNewParamsGuardrailsPromptS12Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsPromptS12Flag AIGatewayNewParamsGuardrailsPromptS12 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S12%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsPromptS12Block AIGatewayNewParamsGuardrailsPromptS12 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S12%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S12">Link to this property</a>

<details>

<summary>

S13 AIGatewayNewParamsGuardrailsPromptS13Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsPromptS13Flag AIGatewayNewParamsGuardrailsPromptS13 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S13%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsPromptS13Block AIGatewayNewParamsGuardrailsPromptS13 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S13%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S13">Link to this property</a>

<details>

<summary>

S2 AIGatewayNewParamsGuardrailsPromptS2Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsPromptS2Flag AIGatewayNewParamsGuardrailsPromptS2 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S2%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsPromptS2Block AIGatewayNewParamsGuardrailsPromptS2 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S2%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S2">Link to this property</a>

<details>

<summary>

S3 AIGatewayNewParamsGuardrailsPromptS3Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsPromptS3Flag AIGatewayNewParamsGuardrailsPromptS3 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S3%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsPromptS3Block AIGatewayNewParamsGuardrailsPromptS3 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S3%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S3">Link to this property</a>

<details>

<summary>

S4 AIGatewayNewParamsGuardrailsPromptS4Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsPromptS4Flag AIGatewayNewParamsGuardrailsPromptS4 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S4%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsPromptS4Block AIGatewayNewParamsGuardrailsPromptS4 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S4%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S4">Link to this property</a>

<details>

<summary>

S5 AIGatewayNewParamsGuardrailsPromptS5Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsPromptS5Flag AIGatewayNewParamsGuardrailsPromptS5 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S5%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsPromptS5Block AIGatewayNewParamsGuardrailsPromptS5 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S5%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S5">Link to this property</a>

<details>

<summary>

S6 AIGatewayNewParamsGuardrailsPromptS6Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsPromptS6Flag AIGatewayNewParamsGuardrailsPromptS6 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S6%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsPromptS6Block AIGatewayNewParamsGuardrailsPromptS6 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S6%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S6">Link to this property</a>

<details>

<summary>

S7 AIGatewayNewParamsGuardrailsPromptS7Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsPromptS7Flag AIGatewayNewParamsGuardrailsPromptS7 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S7%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsPromptS7Block AIGatewayNewParamsGuardrailsPromptS7 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S7%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S7">Link to this property</a>

<details>

<summary>

S8 AIGatewayNewParamsGuardrailsPromptS8Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsPromptS8Flag AIGatewayNewParamsGuardrailsPromptS8 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S8%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsPromptS8Block AIGatewayNewParamsGuardrailsPromptS8 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S8%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S8">Link to this property</a>

<details>

<summary>

S9 AIGatewayNewParamsGuardrailsPromptS9Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsPromptS9Flag AIGatewayNewParamsGuardrailsPromptS9 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S9%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsPromptS9Block AIGatewayNewParamsGuardrailsPromptS9 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S9%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt%20%3E%20(property)%20S9">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20prompt">Link to this property</a>

<details>

<summary>

Response AIGatewayNewParamsGuardrailsResponse

</summary>

<details>

<summary>

P1 AIGatewayNewParamsGuardrailsResponseP1Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsResponseP1Flag AIGatewayNewParamsGuardrailsResponseP1 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20P1%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsResponseP1Block AIGatewayNewParamsGuardrailsResponseP1 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20P1%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20P1">Link to this property</a>

<details>

<summary>

S1 AIGatewayNewParamsGuardrailsResponseS1Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsResponseS1Flag AIGatewayNewParamsGuardrailsResponseS1 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S1%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsResponseS1Block AIGatewayNewParamsGuardrailsResponseS1 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S1%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S1">Link to this property</a>

<details>

<summary>

S10 AIGatewayNewParamsGuardrailsResponseS10Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsResponseS10Flag AIGatewayNewParamsGuardrailsResponseS10 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S10%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsResponseS10Block AIGatewayNewParamsGuardrailsResponseS10 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S10%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S10">Link to this property</a>

<details>

<summary>

S11 AIGatewayNewParamsGuardrailsResponseS11Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsResponseS11Flag AIGatewayNewParamsGuardrailsResponseS11 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S11%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsResponseS11Block AIGatewayNewParamsGuardrailsResponseS11 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S11%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S11">Link to this property</a>

<details>

<summary>

S12 AIGatewayNewParamsGuardrailsResponseS12Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsResponseS12Flag AIGatewayNewParamsGuardrailsResponseS12 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S12%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsResponseS12Block AIGatewayNewParamsGuardrailsResponseS12 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S12%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S12">Link to this property</a>

<details>

<summary>

S13 AIGatewayNewParamsGuardrailsResponseS13Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsResponseS13Flag AIGatewayNewParamsGuardrailsResponseS13 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S13%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsResponseS13Block AIGatewayNewParamsGuardrailsResponseS13 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S13%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S13">Link to this property</a>

<details>

<summary>

S2 AIGatewayNewParamsGuardrailsResponseS2Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsResponseS2Flag AIGatewayNewParamsGuardrailsResponseS2 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S2%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsResponseS2Block AIGatewayNewParamsGuardrailsResponseS2 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S2%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S2">Link to this property</a>

<details>

<summary>

S3 AIGatewayNewParamsGuardrailsResponseS3Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsResponseS3Flag AIGatewayNewParamsGuardrailsResponseS3 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S3%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsResponseS3Block AIGatewayNewParamsGuardrailsResponseS3 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S3%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S3">Link to this property</a>

<details>

<summary>

S4 AIGatewayNewParamsGuardrailsResponseS4Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsResponseS4Flag AIGatewayNewParamsGuardrailsResponseS4 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S4%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsResponseS4Block AIGatewayNewParamsGuardrailsResponseS4 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S4%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S4">Link to this property</a>

<details>

<summary>

S5 AIGatewayNewParamsGuardrailsResponseS5Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsResponseS5Flag AIGatewayNewParamsGuardrailsResponseS5 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S5%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsResponseS5Block AIGatewayNewParamsGuardrailsResponseS5 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S5%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S5">Link to this property</a>

<details>

<summary>

S6 AIGatewayNewParamsGuardrailsResponseS6Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsResponseS6Flag AIGatewayNewParamsGuardrailsResponseS6 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S6%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsResponseS6Block AIGatewayNewParamsGuardrailsResponseS6 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S6%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S6">Link to this property</a>

<details>

<summary>

S7 AIGatewayNewParamsGuardrailsResponseS7Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsResponseS7Flag AIGatewayNewParamsGuardrailsResponseS7 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S7%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsResponseS7Block AIGatewayNewParamsGuardrailsResponseS7 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S7%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S7">Link to this property</a>

<details>

<summary>

S8 AIGatewayNewParamsGuardrailsResponseS8Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsResponseS8Flag AIGatewayNewParamsGuardrailsResponseS8 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S8%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsResponseS8Block AIGatewayNewParamsGuardrailsResponseS8 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S8%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S8">Link to this property</a>

<details>

<summary>

S9 AIGatewayNewParamsGuardrailsResponseS9Optional

</summary>

One of the following:

const AIGatewayNewParamsGuardrailsResponseS9Flag AIGatewayNewParamsGuardrailsResponseS9 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S9%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsGuardrailsResponseS9Block AIGatewayNewParamsGuardrailsResponseS9 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S9%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20S9">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails%20%3E%20(schema)%20%3E%20(property)%20response">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20guardrails">Link to this property</a>

LogClassification param.Field\[bool]Optional

Body param

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20log_classification">Link to this property</a>

LogManagement param.Field\[int64]Optional

Body param

maximum10000000

minimum10000

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20log_management">Link to this property</a>

<details>

<summary>

LogManagementStrategy param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/ai_gateway/methods/create#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20log_management_strategy%20%3E%20(schema)">AIGatewayNewParamsLogManagementStrategy</a>]Optional

Body param

</summary>

const AIGatewayNewParamsLogManagementStrategyStopInserting <a href="https://developers.cloudflare.com/api/go/resources/ai_gateway/methods/create#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20log_management_strategy%20%3E%20(schema)">AIGatewayNewParamsLogManagementStrategy</a> = "STOP\_INSERTING"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20log_management_strategy%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsLogManagementStrategyDeleteOldest <a href="https://developers.cloudflare.com/api/go/resources/ai_gateway/methods/create#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20log_management_strategy%20%3E%20(schema)">AIGatewayNewParamsLogManagementStrategy</a> = "DELETE\_OLDEST"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20log_management_strategy%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20log_management_strategy">Link to this property</a>

Logpush param.Field\[bool]Optional

Body param

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20logpush">Link to this property</a>

LogpushPublicKey param.Field\[string]Optional

Body param

maxLength1024

minLength16

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20logpush_public_key">Link to this property</a>

<details>

<summary>

Otel param.Field\[\[]AIGatewayNewParamsOtel]Optional

Body param

</summary>

Headers map\[string, string]

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20otel%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20headers">Link to this property</a>

URL string

formaturi

maxLength2048

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20otel%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20url">Link to this property</a>

Authorization stringOptional

maxLength256

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20otel%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20authorization">Link to this property</a>

<details>

<summary>

ContentType AIGatewayNewParamsOtelContentTypeOptional

</summary>

One of the following:

const AIGatewayNewParamsOtelContentTypeJson AIGatewayNewParamsOtelContentType = "json"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20otel%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20content_type%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsOtelContentTypeProtobuf AIGatewayNewParamsOtelContentType = "protobuf"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20otel%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20content_type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20otel%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20content_type">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20otel">Link to this property</a>

<details>

<summary>

RateLimitingTechnique param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/ai_gateway/methods/create#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rate_limiting_technique%20%3E%20(schema)">AIGatewayNewParamsRateLimitingTechnique</a>]Optional

Body param

</summary>

const AIGatewayNewParamsRateLimitingTechniqueFixed <a href="https://developers.cloudflare.com/api/go/resources/ai_gateway/methods/create#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rate_limiting_technique%20%3E%20(schema)">AIGatewayNewParamsRateLimitingTechnique</a> = "fixed"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rate_limiting_technique%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsRateLimitingTechniqueSliding <a href="https://developers.cloudflare.com/api/go/resources/ai_gateway/methods/create#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rate_limiting_technique%20%3E%20(schema)">AIGatewayNewParamsRateLimitingTechnique</a> = "sliding"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rate_limiting_technique%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20rate_limiting_technique">Link to this property</a>

<details>

<summary>

RetryBackoff param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/ai_gateway/methods/create#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20retry_backoff%20%3E%20(schema)">AIGatewayNewParamsRetryBackoff</a>]Optional

Body param: Backoff strategy for retry delays

</summary>

const AIGatewayNewParamsRetryBackoffConstant <a href="https://developers.cloudflare.com/api/go/resources/ai_gateway/methods/create#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20retry_backoff%20%3E%20(schema)">AIGatewayNewParamsRetryBackoff</a> = "constant"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20retry_backoff%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsRetryBackoffLinear <a href="https://developers.cloudflare.com/api/go/resources/ai_gateway/methods/create#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20retry_backoff%20%3E%20(schema)">AIGatewayNewParamsRetryBackoff</a> = "linear"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20retry_backoff%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

const AIGatewayNewParamsRetryBackoffExponential <a href="https://developers.cloudflare.com/api/go/resources/ai_gateway/methods/create#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20retry_backoff%20%3E%20(schema)">AIGatewayNewParamsRetryBackoff</a> = "exponential"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20retry_backoff%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20retry_backoff">Link to this property</a>

RetryDelay param.Field\[int64]Optional

Body param: Delay between retry attempts in milliseconds (0-60000)

maximum60000

minimum0

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20retry_delay">Link to this property</a>

RetryMaxAttempts param.Field\[int64]Optional

Body param: Maximum number of retry attempts for failed requests (1-5)

maximum5

minimum1

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20retry_max_attempts">Link to this property</a>

<details>

<summary>

SpendLimits param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/ai_gateway/methods/create#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20spend_limits%20%3E%20(schema)">AIGatewayNewParamsSpendLimits</a>]Optional

Body param

</summary>

Enabled boolOptional

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20spend_limits%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

Rules \[]AIGatewayNewParamsSpendLimitsRuleOptional

</summary>

Limit float64

exclusiveMinimum

minimum0

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20spend_limits%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20limit">Link to this property</a>

LimitType AIGatewayNewParamsSpendLimitsRulesLimitType

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20spend_limits%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20limitType">Link to this property</a>

Window int64

exclusiveMinimum

minimum0

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20spend_limits%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20window">Link to this property</a>

ID stringOptional

minLength1

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20spend_limits%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

Enabled boolOptional

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20spend_limits%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

Metadata map\[string, AIGatewayNewParamsSpendLimitsRulesMetadata]Optional

</summary>

One of the following:

<details>

<summary>

type AIGatewayNewParamsSpendLimitsRulesMetadataMode struct{…}

</summary>

Mode AIGatewayNewParamsSpendLimitsRulesMetadataModeMode

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20spend_limits%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20metadata%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20mode">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20spend_limits%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20metadata%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

type AIGatewayNewParamsSpendLimitsRulesMetadataObject struct{…}

</summary>

Mode AIGatewayNewParamsSpendLimitsRulesMetadataObjectMode

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20spend_limits%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20metadata%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20mode">Link to this property</a>

Values \[]string

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20spend_limits%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20metadata%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20values">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20spend_limits%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20metadata%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20spend_limits%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20metadata">Link to this property</a>

<details>

<summary>

Model AIGatewayNewParamsSpendLimitsRulesModelOptional

</summary>

Mode AIGatewayNewParamsSpendLimitsRulesModelMode

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20spend_limits%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20model%20%3E%20(property)%20mode">Link to this property</a>

Values \[]string

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20spend_limits%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20model%20%3E%20(property)%20values">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20spend_limits%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20model">Link to this property</a>

<details>

<summary>

Provider AIGatewayNewParamsSpendLimitsRulesProviderOptional

</summary>

Mode AIGatewayNewParamsSpendLimitsRulesProviderMode

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20spend_limits%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20provider%20%3E%20(property)%20mode">Link to this property</a>

Values \[]string

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20spend_limits%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20provider%20%3E%20(property)%20values">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20spend_limits%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20provider">Link to this property</a>

<details>

<summary>

Technique AIGatewayNewParamsSpendLimitsRulesTechniqueOptional

</summary>

One of the following:

const AIGatewayNewParamsSpendLimitsRulesTechniqueFixed AIGatewayNewParamsSpendLimitsRulesTechnique = "fixed"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20spend_limits%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20technique%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsSpendLimitsRulesTechniqueSliding AIGatewayNewParamsSpendLimitsRulesTechnique = "sliding"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20spend_limits%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20technique%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20spend_limits%20%3E%20(schema)%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20technique">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20spend_limits%20%3E%20(schema)%20%3E%20(property)%20rules">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20spend_limits">Link to this property</a>

StoreID param.Field\[string]Optional

Body param

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20store_id">Link to this property</a>

<details>

<summary>

Stripe param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/ai_gateway/methods/create#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20stripe%20%3E%20(schema)">AIGatewayNewParamsStripe</a>]Optional

Body param

</summary>

Authorization string

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20stripe%20%3E%20(schema)%20%3E%20(property)%20authorization">Link to this property</a>

<details>

<summary>

UsageEvents \[]AIGatewayNewParamsStripeUsageEvent

</summary>

Payload string

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20stripe%20%3E%20(schema)%20%3E%20(property)%20usage_events%20%3E%20(items)%20%3E%20(property)%20payload">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20stripe%20%3E%20(schema)%20%3E%20(property)%20usage_events">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20stripe">Link to this property</a>

<details>

<summary>

WorkersAIBillingMode param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/ai_gateway/methods/create#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20workers_ai_billing_mode%20%3E%20(schema)">AIGatewayNewParamsWorkersAIBillingMode</a>]Optional

Body param: Controls how Workers AI inference calls routed through this gateway are billed. ‘postpaid’ bills the account directly through Workers AI; ‘unified’ deducts credits via AI Gateway using neuron-based pricing and delegates billing to AI Gateway.

</summary>

const AIGatewayNewParamsWorkersAIBillingModePostpaid <a href="https://developers.cloudflare.com/api/go/resources/ai_gateway/methods/create#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20workers_ai_billing_mode%20%3E%20(schema)">AIGatewayNewParamsWorkersAIBillingMode</a> = "postpaid"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20workers_ai_billing_mode%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewParamsWorkersAIBillingModeUnified <a href="https://developers.cloudflare.com/api/go/resources/ai_gateway/methods/create#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20workers_ai_billing_mode%20%3E%20(schema)">AIGatewayNewParamsWorkersAIBillingMode</a> = "unified"

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20workers_ai_billing_mode%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20workers_ai_billing_mode">Link to this property</a>

Zdr param.Field\[bool]Optional

Body param

<a href="#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20zdr">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(method)%20create%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

type AIGatewayNewResponse struct{…}

</summary>

ID string

Unique identifier of the AI Gateway within the account.

maxLength64

minLength1

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

CacheInvalidateOnUpdate bool

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20cache_invalidate_on_update">Link to this property</a>

CacheTTL int64

minimum0

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20cache_ttl">Link to this property</a>

CollectLogs bool

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20collect_logs">Link to this property</a>

CreatedAt Time

formatdate-time

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

ModifiedAt Time

formatdate-time

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20modified_at">Link to this property</a>

RateLimitingInterval int64

minimum0

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20rate_limiting_interval">Link to this property</a>

RateLimitingLimit int64

minimum0

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20rate_limiting_limit">Link to this property</a>

Authentication boolOptional

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20authentication">Link to this property</a>

ByokOnly boolOptional

Requires customer-provided provider credentials and prevents fallback to Unified Billing.

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20byok_only">Link to this property</a>

<details>

<summary>

DLP AIGatewayNewResponseDLPOptional

</summary>

One of the following:

<details>

<summary>

type AIGatewayNewResponseDLPObject struct{…}

</summary>

<details>

<summary>

Action AIGatewayNewResponseDLPObjectAction

</summary>

One of the following:

const AIGatewayNewResponseDLPObjectActionBlock AIGatewayNewResponseDLPObjectAction = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20dlp%20%3E%20(variant)%200%20%3E%20(property)%20action%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseDLPObjectActionFlag AIGatewayNewResponseDLPObjectAction = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20dlp%20%3E%20(variant)%200%20%3E%20(property)%20action%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20dlp%20%3E%20(variant)%200%20%3E%20(property)%20action">Link to this property</a>

Enabled bool

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20dlp%20%3E%20(variant)%200%20%3E%20(property)%20enabled">Link to this property</a>

Profiles \[]string

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20dlp%20%3E%20(variant)%200%20%3E%20(property)%20profiles">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20dlp%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

type AIGatewayNewResponseDLPObject struct{…}

</summary>

Enabled bool

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20dlp%20%3E%20(variant)%201%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

Policies \[]AIGatewayNewResponseDLPObjectPolicy

</summary>

ID string

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20dlp%20%3E%20(variant)%201%20%3E%20(property)%20policies%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

Action AIGatewayNewResponseDLPObjectPoliciesAction

</summary>

One of the following:

const AIGatewayNewResponseDLPObjectPoliciesActionFlag AIGatewayNewResponseDLPObjectPoliciesAction = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20dlp%20%3E%20(variant)%201%20%3E%20(property)%20policies%20%3E%20(items)%20%3E%20(property)%20action%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseDLPObjectPoliciesActionBlock AIGatewayNewResponseDLPObjectPoliciesAction = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20dlp%20%3E%20(variant)%201%20%3E%20(property)%20policies%20%3E%20(items)%20%3E%20(property)%20action%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20dlp%20%3E%20(variant)%201%20%3E%20(property)%20policies%20%3E%20(items)%20%3E%20(property)%20action">Link to this property</a>

<details>

<summary>

Check \[]AIGatewayNewResponseDLPObjectPoliciesCheck

</summary>

One of the following:

const AIGatewayNewResponseDLPObjectPoliciesCheckRequest AIGatewayNewResponseDLPObjectPoliciesCheck = "REQUEST"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20dlp%20%3E%20(variant)%201%20%3E%20(property)%20policies%20%3E%20(items)%20%3E%20(property)%20check%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseDLPObjectPoliciesCheckResponse AIGatewayNewResponseDLPObjectPoliciesCheck = "RESPONSE"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20dlp%20%3E%20(variant)%201%20%3E%20(property)%20policies%20%3E%20(items)%20%3E%20(property)%20check%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20dlp%20%3E%20(variant)%201%20%3E%20(property)%20policies%20%3E%20(items)%20%3E%20(property)%20check">Link to this property</a>

Enabled bool

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20dlp%20%3E%20(variant)%201%20%3E%20(property)%20policies%20%3E%20(items)%20%3E%20(property)%20enabled">Link to this property</a>

Profiles \[]string

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20dlp%20%3E%20(variant)%201%20%3E%20(property)%20policies%20%3E%20(items)%20%3E%20(property)%20profiles">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20dlp%20%3E%20(variant)%201%20%3E%20(property)%20policies">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20dlp%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20dlp">Link to this property</a>

<details>

<summary>

Guardrails AIGatewayNewResponseGuardrailsOptional

</summary>

<details>

<summary>

Prompt AIGatewayNewResponseGuardrailsPrompt

</summary>

<details>

<summary>

P1 AIGatewayNewResponseGuardrailsPromptP1Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsPromptP1Flag AIGatewayNewResponseGuardrailsPromptP1 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20P1%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsPromptP1Block AIGatewayNewResponseGuardrailsPromptP1 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20P1%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20P1">Link to this property</a>

<details>

<summary>

S1 AIGatewayNewResponseGuardrailsPromptS1Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsPromptS1Flag AIGatewayNewResponseGuardrailsPromptS1 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S1%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsPromptS1Block AIGatewayNewResponseGuardrailsPromptS1 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S1%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S1">Link to this property</a>

<details>

<summary>

S10 AIGatewayNewResponseGuardrailsPromptS10Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsPromptS10Flag AIGatewayNewResponseGuardrailsPromptS10 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S10%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsPromptS10Block AIGatewayNewResponseGuardrailsPromptS10 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S10%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S10">Link to this property</a>

<details>

<summary>

S11 AIGatewayNewResponseGuardrailsPromptS11Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsPromptS11Flag AIGatewayNewResponseGuardrailsPromptS11 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S11%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsPromptS11Block AIGatewayNewResponseGuardrailsPromptS11 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S11%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S11">Link to this property</a>

<details>

<summary>

S12 AIGatewayNewResponseGuardrailsPromptS12Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsPromptS12Flag AIGatewayNewResponseGuardrailsPromptS12 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S12%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsPromptS12Block AIGatewayNewResponseGuardrailsPromptS12 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S12%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S12">Link to this property</a>

<details>

<summary>

S13 AIGatewayNewResponseGuardrailsPromptS13Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsPromptS13Flag AIGatewayNewResponseGuardrailsPromptS13 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S13%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsPromptS13Block AIGatewayNewResponseGuardrailsPromptS13 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S13%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S13">Link to this property</a>

<details>

<summary>

S2 AIGatewayNewResponseGuardrailsPromptS2Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsPromptS2Flag AIGatewayNewResponseGuardrailsPromptS2 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S2%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsPromptS2Block AIGatewayNewResponseGuardrailsPromptS2 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S2%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S2">Link to this property</a>

<details>

<summary>

S3 AIGatewayNewResponseGuardrailsPromptS3Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsPromptS3Flag AIGatewayNewResponseGuardrailsPromptS3 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S3%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsPromptS3Block AIGatewayNewResponseGuardrailsPromptS3 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S3%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S3">Link to this property</a>

<details>

<summary>

S4 AIGatewayNewResponseGuardrailsPromptS4Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsPromptS4Flag AIGatewayNewResponseGuardrailsPromptS4 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S4%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsPromptS4Block AIGatewayNewResponseGuardrailsPromptS4 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S4%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S4">Link to this property</a>

<details>

<summary>

S5 AIGatewayNewResponseGuardrailsPromptS5Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsPromptS5Flag AIGatewayNewResponseGuardrailsPromptS5 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S5%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsPromptS5Block AIGatewayNewResponseGuardrailsPromptS5 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S5%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S5">Link to this property</a>

<details>

<summary>

S6 AIGatewayNewResponseGuardrailsPromptS6Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsPromptS6Flag AIGatewayNewResponseGuardrailsPromptS6 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S6%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsPromptS6Block AIGatewayNewResponseGuardrailsPromptS6 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S6%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S6">Link to this property</a>

<details>

<summary>

S7 AIGatewayNewResponseGuardrailsPromptS7Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsPromptS7Flag AIGatewayNewResponseGuardrailsPromptS7 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S7%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsPromptS7Block AIGatewayNewResponseGuardrailsPromptS7 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S7%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S7">Link to this property</a>

<details>

<summary>

S8 AIGatewayNewResponseGuardrailsPromptS8Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsPromptS8Flag AIGatewayNewResponseGuardrailsPromptS8 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S8%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsPromptS8Block AIGatewayNewResponseGuardrailsPromptS8 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S8%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S8">Link to this property</a>

<details>

<summary>

S9 AIGatewayNewResponseGuardrailsPromptS9Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsPromptS9Flag AIGatewayNewResponseGuardrailsPromptS9 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S9%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsPromptS9Block AIGatewayNewResponseGuardrailsPromptS9 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S9%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt%20%3E%20(property)%20S9">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20prompt">Link to this property</a>

<details>

<summary>

Response AIGatewayNewResponseGuardrailsResponse

</summary>

<details>

<summary>

P1 AIGatewayNewResponseGuardrailsResponseP1Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsResponseP1Flag AIGatewayNewResponseGuardrailsResponseP1 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20P1%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsResponseP1Block AIGatewayNewResponseGuardrailsResponseP1 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20P1%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20P1">Link to this property</a>

<details>

<summary>

S1 AIGatewayNewResponseGuardrailsResponseS1Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsResponseS1Flag AIGatewayNewResponseGuardrailsResponseS1 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S1%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsResponseS1Block AIGatewayNewResponseGuardrailsResponseS1 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S1%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S1">Link to this property</a>

<details>

<summary>

S10 AIGatewayNewResponseGuardrailsResponseS10Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsResponseS10Flag AIGatewayNewResponseGuardrailsResponseS10 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S10%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsResponseS10Block AIGatewayNewResponseGuardrailsResponseS10 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S10%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S10">Link to this property</a>

<details>

<summary>

S11 AIGatewayNewResponseGuardrailsResponseS11Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsResponseS11Flag AIGatewayNewResponseGuardrailsResponseS11 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S11%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsResponseS11Block AIGatewayNewResponseGuardrailsResponseS11 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S11%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S11">Link to this property</a>

<details>

<summary>

S12 AIGatewayNewResponseGuardrailsResponseS12Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsResponseS12Flag AIGatewayNewResponseGuardrailsResponseS12 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S12%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsResponseS12Block AIGatewayNewResponseGuardrailsResponseS12 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S12%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S12">Link to this property</a>

<details>

<summary>

S13 AIGatewayNewResponseGuardrailsResponseS13Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsResponseS13Flag AIGatewayNewResponseGuardrailsResponseS13 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S13%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsResponseS13Block AIGatewayNewResponseGuardrailsResponseS13 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S13%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S13">Link to this property</a>

<details>

<summary>

S2 AIGatewayNewResponseGuardrailsResponseS2Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsResponseS2Flag AIGatewayNewResponseGuardrailsResponseS2 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S2%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsResponseS2Block AIGatewayNewResponseGuardrailsResponseS2 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S2%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S2">Link to this property</a>

<details>

<summary>

S3 AIGatewayNewResponseGuardrailsResponseS3Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsResponseS3Flag AIGatewayNewResponseGuardrailsResponseS3 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S3%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsResponseS3Block AIGatewayNewResponseGuardrailsResponseS3 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S3%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S3">Link to this property</a>

<details>

<summary>

S4 AIGatewayNewResponseGuardrailsResponseS4Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsResponseS4Flag AIGatewayNewResponseGuardrailsResponseS4 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S4%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsResponseS4Block AIGatewayNewResponseGuardrailsResponseS4 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S4%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S4">Link to this property</a>

<details>

<summary>

S5 AIGatewayNewResponseGuardrailsResponseS5Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsResponseS5Flag AIGatewayNewResponseGuardrailsResponseS5 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S5%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsResponseS5Block AIGatewayNewResponseGuardrailsResponseS5 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S5%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S5">Link to this property</a>

<details>

<summary>

S6 AIGatewayNewResponseGuardrailsResponseS6Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsResponseS6Flag AIGatewayNewResponseGuardrailsResponseS6 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S6%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsResponseS6Block AIGatewayNewResponseGuardrailsResponseS6 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S6%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S6">Link to this property</a>

<details>

<summary>

S7 AIGatewayNewResponseGuardrailsResponseS7Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsResponseS7Flag AIGatewayNewResponseGuardrailsResponseS7 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S7%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsResponseS7Block AIGatewayNewResponseGuardrailsResponseS7 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S7%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S7">Link to this property</a>

<details>

<summary>

S8 AIGatewayNewResponseGuardrailsResponseS8Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsResponseS8Flag AIGatewayNewResponseGuardrailsResponseS8 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S8%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsResponseS8Block AIGatewayNewResponseGuardrailsResponseS8 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S8%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S8">Link to this property</a>

<details>

<summary>

S9 AIGatewayNewResponseGuardrailsResponseS9Optional

</summary>

One of the following:

const AIGatewayNewResponseGuardrailsResponseS9Flag AIGatewayNewResponseGuardrailsResponseS9 = "FLAG"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S9%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseGuardrailsResponseS9Block AIGatewayNewResponseGuardrailsResponseS9 = "BLOCK"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S9%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response%20%3E%20(property)%20S9">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails%20%3E%20(property)%20response">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20guardrails">Link to this property</a>

IsDefault boolOptional

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20is_default">Link to this property</a>

LogClassification boolOptional

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20log_classification">Link to this property</a>

LogManagement int64Optional

maximum10000000

minimum10000

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20log_management">Link to this property</a>

<details>

<summary>

LogManagementStrategy AIGatewayNewResponseLogManagementStrategyOptional

</summary>

One of the following:

const AIGatewayNewResponseLogManagementStrategyStopInserting AIGatewayNewResponseLogManagementStrategy = "STOP\_INSERTING"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20log_management_strategy%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseLogManagementStrategyDeleteOldest AIGatewayNewResponseLogManagementStrategy = "DELETE\_OLDEST"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20log_management_strategy%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20log_management_strategy">Link to this property</a>

Logpush boolOptional

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20logpush">Link to this property</a>

LogpushPublicKey stringOptional

maxLength1024

minLength16

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20logpush_public_key">Link to this property</a>

<details>

<summary>

Otel \[]AIGatewayNewResponseOtelOptional

</summary>

Headers map\[string, string]

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20otel%20%3E%20(items)%20%3E%20(property)%20headers">Link to this property</a>

URL string

formaturi

maxLength2048

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20otel%20%3E%20(items)%20%3E%20(property)%20url">Link to this property</a>

Authorization stringOptional

maxLength256

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20otel%20%3E%20(items)%20%3E%20(property)%20authorization">Link to this property</a>

<details>

<summary>

ContentType AIGatewayNewResponseOtelContentTypeOptional

</summary>

One of the following:

const AIGatewayNewResponseOtelContentTypeJson AIGatewayNewResponseOtelContentType = "json"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20otel%20%3E%20(items)%20%3E%20(property)%20content_type%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseOtelContentTypeProtobuf AIGatewayNewResponseOtelContentType = "protobuf"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20otel%20%3E%20(items)%20%3E%20(property)%20content_type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20otel%20%3E%20(items)%20%3E%20(property)%20content_type">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20otel">Link to this property</a>

<details>

<summary>

RateLimitingTechnique AIGatewayNewResponseRateLimitingTechniqueOptional

</summary>

One of the following:

const AIGatewayNewResponseRateLimitingTechniqueFixed AIGatewayNewResponseRateLimitingTechnique = "fixed"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20rate_limiting_technique%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseRateLimitingTechniqueSliding AIGatewayNewResponseRateLimitingTechnique = "sliding"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20rate_limiting_technique%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20rate_limiting_technique">Link to this property</a>

<details>

<summary>

RetryBackoff AIGatewayNewResponseRetryBackoffOptional

Backoff strategy for retry delays

</summary>

One of the following:

const AIGatewayNewResponseRetryBackoffConstant AIGatewayNewResponseRetryBackoff = "constant"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20retry_backoff%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseRetryBackoffLinear AIGatewayNewResponseRetryBackoff = "linear"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20retry_backoff%20%3E%20(member)%201">Link to this property</a>

const AIGatewayNewResponseRetryBackoffExponential AIGatewayNewResponseRetryBackoff = "exponential"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20retry_backoff%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20retry_backoff">Link to this property</a>

RetryDelay int64Optional

Delay between retry attempts in milliseconds (0-60000)

maximum60000

minimum0

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20retry_delay">Link to this property</a>

RetryMaxAttempts int64Optional

Maximum number of retry attempts for failed requests (1-5)

maximum5

minimum1

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20retry_max_attempts">Link to this property</a>

<details>

<summary>

SpendLimits AIGatewayNewResponseSpendLimitsOptional

</summary>

Enabled boolOptional

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20spend_limits%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

Rules \[]AIGatewayNewResponseSpendLimitsRuleOptional

</summary>

Limit float64

exclusiveMinimum

minimum0

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20spend_limits%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20limit">Link to this property</a>

LimitType AIGatewayNewResponseSpendLimitsRulesLimitType

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20spend_limits%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20limitType">Link to this property</a>

Window int64

exclusiveMinimum

minimum0

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20spend_limits%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20window">Link to this property</a>

ID stringOptional

minLength1

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20spend_limits%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

Enabled boolOptional

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20spend_limits%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

Metadata map\[string, AIGatewayNewResponseSpendLimitsRulesMetadata]Optional

</summary>

One of the following:

<details>

<summary>

type AIGatewayNewResponseSpendLimitsRulesMetadataMode struct{…}

</summary>

Mode AIGatewayNewResponseSpendLimitsRulesMetadataModeMode

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20spend_limits%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20metadata%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20mode">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20spend_limits%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20metadata%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

type AIGatewayNewResponseSpendLimitsRulesMetadataObject struct{…}

</summary>

Mode AIGatewayNewResponseSpendLimitsRulesMetadataObjectMode

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20spend_limits%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20metadata%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20mode">Link to this property</a>

Values \[]string

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20spend_limits%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20metadata%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20values">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20spend_limits%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20metadata%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20spend_limits%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20metadata">Link to this property</a>

<details>

<summary>

Model AIGatewayNewResponseSpendLimitsRulesModelOptional

</summary>

Mode AIGatewayNewResponseSpendLimitsRulesModelMode

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20spend_limits%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20model%20%3E%20(property)%20mode">Link to this property</a>

Values \[]string

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20spend_limits%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20model%20%3E%20(property)%20values">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20spend_limits%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20model">Link to this property</a>

<details>

<summary>

Provider AIGatewayNewResponseSpendLimitsRulesProviderOptional

</summary>

Mode AIGatewayNewResponseSpendLimitsRulesProviderMode

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20spend_limits%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20provider%20%3E%20(property)%20mode">Link to this property</a>

Values \[]string

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20spend_limits%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20provider%20%3E%20(property)%20values">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20spend_limits%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20provider">Link to this property</a>

<details>

<summary>

Technique AIGatewayNewResponseSpendLimitsRulesTechniqueOptional

</summary>

One of the following:

const AIGatewayNewResponseSpendLimitsRulesTechniqueFixed AIGatewayNewResponseSpendLimitsRulesTechnique = "fixed"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20spend_limits%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20technique%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseSpendLimitsRulesTechniqueSliding AIGatewayNewResponseSpendLimitsRulesTechnique = "sliding"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20spend_limits%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20technique%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20spend_limits%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20technique">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20spend_limits%20%3E%20(property)%20rules">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20spend_limits">Link to this property</a>

StoreID stringOptional

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20store_id">Link to this property</a>

<details>

<summary>

Stripe AIGatewayNewResponseStripeOptional

</summary>

Authorization string

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20stripe%20%3E%20(property)%20authorization">Link to this property</a>

<details>

<summary>

UsageEvents \[]AIGatewayNewResponseStripeUsageEvent

</summary>

Payload string

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20stripe%20%3E%20(property)%20usage_events%20%3E%20(items)%20%3E%20(property)%20payload">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20stripe%20%3E%20(property)%20usage_events">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20stripe">Link to this property</a>

<details>

<summary>

WorkersAIBillingMode AIGatewayNewResponseWorkersAIBillingModeOptional

Controls how Workers AI inference calls routed through this gateway are billed. ‘postpaid’ bills the account directly through Workers AI; ‘unified’ deducts credits via AI Gateway using neuron-based pricing and delegates billing to AI Gateway.

</summary>

One of the following:

const AIGatewayNewResponseWorkersAIBillingModePostpaid AIGatewayNewResponseWorkersAIBillingMode = "postpaid"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20workers_ai_billing_mode%20%3E%20(member)%200">Link to this property</a>

const AIGatewayNewResponseWorkersAIBillingModeUnified AIGatewayNewResponseWorkersAIBillingMode = "unified"

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20workers_ai_billing_mode%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20workers_ai_billing_mode">Link to this property</a>

Zdr boolOptional

<a href="#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)%20%3E%20(property)%20zdr">Link to this property</a>

</details>

[Link to this property](<#(resource)%20ai_gateway%20%3E%20(model)%20AIGatewayNewResponse%20%3E%20(schema)>)

### Create a gateway

Go

HTTPTypeScriptPythonGoTerraform

```
package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/ai_gateway"
  "github.com/cloudflare/cloudflare-go/option"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  aiGateway, err := client.AIGateway.New(context.TODO(), ai_gateway.AIGatewayNewParams{
    AccountID: cloudflare.F("3ebbcb006d4d46d7bb6a8c7f14676cb0"),
    ID: cloudflare.F("my-gateway"),
    CacheInvalidateOnUpdate: cloudflare.F(true),
    CacheTTL: cloudflare.F(int64(0)),
    CollectLogs: cloudflare.F(true),
    RateLimitingInterval: cloudflare.F(int64(0)),
    RateLimitingLimit: cloudflare.F(int64(0)),
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", aiGateway.ID)
}
```

200 example

```
{
  "result": {
    "id": "my-gateway",
    "cache_invalidate_on_update": true,
    "cache_ttl": 0,
    "collect_logs": true,
    "created_at": "2019-12-27T18:11:19.117Z",
    "modified_at": "2019-12-27T18:11:19.117Z",
    "rate_limiting_interval": 0,
    "rate_limiting_limit": 0,
    "authentication": true,
    "byok_only": true,
    "dlp": {
      "action": "BLOCK",
      "enabled": true,
      "profiles": [
        "string"
      ]
    },
    "guardrails": {
      "prompt": {
        "P1": "FLAG",
        "S1": "FLAG",
        "S10": "FLAG",
        "S11": "FLAG",
        "S12": "FLAG",
        "S13": "FLAG",
        "S2": "FLAG",
        "S3": "FLAG",
        "S4": "FLAG",
        "S5": "FLAG",
        "S6": "FLAG",
        "S7": "FLAG",
        "S8": "FLAG",
        "S9": "FLAG"
      },
      "response": {
        "P1": "FLAG",
        "S1": "FLAG",
        "S10": "FLAG",
        "S11": "FLAG",
        "S12": "FLAG",
        "S13": "FLAG",
        "S2": "FLAG",
        "S3": "FLAG",
        "S4": "FLAG",
        "S5": "FLAG",
        "S6": "FLAG",
        "S7": "FLAG",
        "S8": "FLAG",
        "S9": "FLAG"
      }
    },
    "is_default": true,
    "log_classification": true,
    "log_management": 10000,
    "log_management_strategy": "STOP_INSERTING",
    "logpush": true,
    "logpush_public_key": "xxxxxxxxxxxxxxxx",
    "otel": [
      {
        "headers": {
          "foo": "string"
        },
        "url": "https://example.com",
        "authorization": "authorization",
        "content_type": "json"
      }
    ],
    "rate_limiting_technique": "fixed",
    "retry_backoff": "constant",
    "retry_delay": 0,
    "retry_max_attempts": 1,
    "spend_limits": {
      "enabled": true,
      "rules": [
        {
          "limit": 1,
          "limitType": "cost",
          "window": 1,
          "id": "x",
          "enabled": true,
          "metadata": {
            "foo": {
              "mode": "partition"
            }
          },
          "model": {
            "mode": "filter",
            "values": [
              "string"
            ]
          },
          "provider": {
            "mode": "filter",
            "values": [
              "string"
            ]
          },
          "technique": "fixed"
        }
      ]
    },
    "store_id": "store_id",
    "stripe": {
      "authorization": "authorization",
      "usage_events": [
        {
          "payload": "payload"
        }
      ]
    },
    "workers_ai_billing_mode": "postpaid",
    "zdr": true
  },
  "success": true
}
```

##### Returns Examples

200 example

```
{
  "result": {
    "id": "my-gateway",
    "cache_invalidate_on_update": true,
    "cache_ttl": 0,
    "collect_logs": true,
    "created_at": "2019-12-27T18:11:19.117Z",
    "modified_at": "2019-12-27T18:11:19.117Z",
    "rate_limiting_interval": 0,
    "rate_limiting_limit": 0,
    "authentication": true,
    "byok_only": true,
    "dlp": {
      "action": "BLOCK",
      "enabled": true,
      "profiles": [
        "string"
      ]
    },
    "guardrails": {
      "prompt": {
        "P1": "FLAG",
        "S1": "FLAG",
        "S10": "FLAG",
        "S11": "FLAG",
        "S12": "FLAG",
        "S13": "FLAG",
        "S2": "FLAG",
        "S3": "FLAG",
        "S4": "FLAG",
        "S5": "FLAG",
        "S6": "FLAG",
        "S7": "FLAG",
        "S8": "FLAG",
        "S9": "FLAG"
      },
      "response": {
        "P1": "FLAG",
        "S1": "FLAG",
        "S10": "FLAG",
        "S11": "FLAG",
        "S12": "FLAG",
        "S13": "FLAG",
        "S2": "FLAG",
        "S3": "FLAG",
        "S4": "FLAG",
        "S5": "FLAG",
        "S6": "FLAG",
        "S7": "FLAG",
        "S8": "FLAG",
        "S9": "FLAG"
      }
    },
    "is_default": true,
    "log_classification": true,
    "log_management": 10000,
    "log_management_strategy": "STOP_INSERTING",
    "logpush": true,
    "logpush_public_key": "xxxxxxxxxxxxxxxx",
    "otel": [
      {
        "headers": {
          "foo": "string"
        },
        "url": "https://example.com",
        "authorization": "authorization",
        "content_type": "json"
      }
    ],
    "rate_limiting_technique": "fixed",
    "retry_backoff": "constant",
    "retry_delay": 0,
    "retry_max_attempts": 1,
    "spend_limits": {
      "enabled": true,
      "rules": [
        {
          "limit": 1,
          "limitType": "cost",
          "window": 1,
          "id": "x",
          "enabled": true,
          "metadata": {
            "foo": {
              "mode": "partition"
            }
          },
          "model": {
            "mode": "filter",
            "values": [
              "string"
            ]
          },
          "provider": {
            "mode": "filter",
            "values": [
              "string"
            ]
          },
          "technique": "fixed"
        }
      ]
    },
    "store_id": "store_id",
    "stripe": {
      "authorization": "authorization",
      "usage_events": [
        {
          "payload": "payload"
        }
      ]
    },
    "workers_ai_billing_mode": "postpaid",
    "zdr": true
  },
  "success": true
}
```