AI
ai
Methods
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.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Workers AI Write Workers AI Read
An array of classification results for the input text
Finetunes
ai.finetunes
Methods
Lists all fine-tuning jobs created by the account, including status and metrics.
Creates a new fine-tuning job for a Workers AI model using custom training data.
Models
ai.models
Methods
Searches Workers AI models by name or description.
Tasks
ai.tasks
Methods
Searches Workers AI models by task type (e.g., text-generation, embeddings).
To Markdown
ai.to_markdown
Methods
Converts uploaded files into Markdown format using Workers AI.
Lists all file formats supported for conversion to Markdown.