AI

ai

Methods

Execute AI Model -> Envelope<Array<{ label, score }> | string | { audio } | 8 more...>
post/accounts/{account_id}/ai/run/{model_name}

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.

Security

The preferred authorization scheme for interacting with the Cloudflare API. Create a token.

Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY

Parameters
account_id: string
model_name: string
Response fields
result: Array<{ label, score }> | string | { audio } | 8 more...
Optional

An array of classification results for the input text

Request example
200Example
AI

Models

ai.models

AIModels

Schema

ai.models.schema

Methods

Get Model Schema -> Envelope<unknown>
get/accounts/{account_id}/ai/models/schema

Get Model Schema