Skip to main content

run

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

Overview

Namerun
TypeResource
Idcloudflare.ai.run

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
runinsertaccount_id, model_nameThis endpoint provides users with the capability to run specific AI models on-demand. By submitting the required input data, users can receive real-time predictions or results generated by the chosen AI model. The endpoint supports various AI model types, ensuring flexibility and adaptability for diverse use cases. Model specific inputs available in Cloudflare Docs.

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.
model_namestring

INSERT examples

This endpoint provides users with the capability to run specific AI models on-demand. By submitting the required input data, users can receive real-time predictions or results generated by the chosen AI model. The endpoint supports various AI model types, ensuring flexibility and adaptability for diverse use cases. Model specific inputs available in Cloudflare Docs.

INSERT INTO cloudflare.ai.run (
text,
guidance,
height,
image,
image_b64,
mask,
negative_prompt,
num_steps,
prompt,
seed,
strength,
width,
lang,
audio,
source_lang,
target_lang,
frequency_penalty,
lora,
max_tokens,
presence_penalty,
raw,
repetition_penalty,
response_format,
stream,
temperature,
top_k,
top_p,
functions,
messages,
tools,
input_text,
max_length,
ignore_eos,
account_id,
model_name
)
SELECT
'{{ text }}',
{{ guidance }},
{{ height }},
'{{ image }}',
'{{ image_b64 }}',
'{{ mask }}',
'{{ negative_prompt }}',
{{ num_steps }},
'{{ prompt }}',
{{ seed }},
{{ strength }},
{{ width }},
'{{ lang }}',
'{{ audio }}',
'{{ source_lang }}',
'{{ target_lang }}',
{{ frequency_penalty }},
'{{ lora }}',
{{ max_tokens }},
{{ presence_penalty }},
{{ raw }},
{{ repetition_penalty }},
'{{ response_format }}',
{{ stream }},
{{ temperature }},
{{ top_k }},
{{ top_p }},
'{{ functions }}',
'{{ messages }}',
'{{ tools }}',
'{{ input_text }}',
{{ max_length }},
{{ ignore_eos }},
'{{ account_id }}',
'{{ model_name }}'
RETURNING
result
;