Skip to main content

public

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

Overview

Namepublic
TypeResource
Idcloudflare.ai.public

Fields

The following fields are returned by SELECT queries:

Returns all public finetunes

NameDatatypeDescription
idstring (uuid)
namestring
created_atstring (date-time)
descriptionstring
modelstring
modified_atstring (date-time)
publicboolean

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idlimit, offset, orderByLists publicly available fine-tuned models that can be used with Workers AI.

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.
limitnumberPagination Limit
offsetnumberPagination Offset
orderBystringOrder By Column Name

SELECT examples

Lists publicly available fine-tuned models that can be used with Workers AI.

SELECT
id,
name,
created_at,
description,
model,
modified_at,
public
FROM cloudflare.ai.public
WHERE account_id = '{{ account_id }}' -- required
AND limit = '{{ limit }}'
AND offset = '{{ offset }}'
AND orderBy = '{{ orderBy }}'
;