Receive real-time predictions or results generated by the chosen AI model.

External Documentation

To learn more, visit the Cloudflare documentation.

Parameters

ParameterDescription
AI Model TypeChoose the type of the model that you want to execute to fill the corresponding parameters.Ensure that the model type correctly corresponds to the specified model name.
Account IDYour Cloudflare Account ID.
Frequency PenaltyDecreases the likelihood of the model repeating the same lines verbatim.
GuidanceControls how closely the generated image should adhere to the prompt - higher values make the image more aligned with the prompt.
HeightThe height of the generated image in pixels.
ImageAn array of integers that represent the image data constrained to 8-bit unsigned integer values.
ImageComma separated list of 8-bit unsigned integers that represent the image.
ImageSeparated list of integers that represent the image data constrained to 8-bit unsigned integer values.
ImageComma separated list of 8-bit unsigned integers that represent the image.
Image Base64A base64-encoded string of the input image (for use with image to image tasks).
Input TextThe text that you want the model to summarize.
LanguageThe language of speech (e.g. en for English fr for French etc.).
MaskA Comma seperated list of integers that represents mask image in 8-bit unsigned integer value.
Max LengthThe maximum length of the generated summary in tokens.
Max TokensThe maximum number of tokens to generate in the response.
Model NameThe name of the model to execute.For more information about the models see cloudflare workers-ai models.
Negative PromptText describing elements to avoid in the generated image.
Number of StepsThe number of diffusion steps, higher values can improve quality but take longer.
Presence PenaltyIncreases the likelihood of the model introducing new topics.
PromptA text description of the image you want to generate.
PromptText you wish to convert into speech.
PromptThe input text prompt for the model to generate a response.
Source LanguageThe language to translate from, for example ‘en’ for English, ‘fr’ for French.
Target LanguageThe language to translate to, for example ‘en’ for English, ‘fr’ for French.
TextThe text to translate.
Text ClassificationThe text that you want to classify as positive or negative.
Text To EmbedA comma seperated list of text’s to be converted into embeddings by the AI model.
WidthThe width of the generated image in pixels.

Example Output

{
	"result": {
		"translated_text": "Test de traduction"
	},
	"success": true,
	"errors": [],
	"messages": []
}

Workflow Library Example

Execute Ai Model with Cloudflare and Send Results Via Email

Preview this Workflow on desktop