Skip to main content

schema

Creates, updates, deletes, gets or lists a schema resource.

Overview

Nameschema
TypeResource
Idcloudflare.ai.schema

Fields

The following fields are returned by SELECT queries:

Model Schema

NameDatatypeDescription
inputobject
outputobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idmodelRetrieves the input and output JSON schema definition for a Workers AI model.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.
modelstringModel Name

SELECT examples

Retrieves the input and output JSON schema definition for a Workers AI model.

SELECT
input,
output
FROM cloudflare.ai.schema
WHERE account_id = '{{ account_id }}' -- required
AND model = '{{ model }}'
;