{"openapi":"3.0.0","info":{"description":"Cloudflare Workers AI API — inference run/catalog + ai audit + ai security settings.","version":[]},"servers":[{"description":"Cloudflare Workers AI API — inference run/catalog + ai audit + ai security settings.","url":"https://api.apirails.com/cloudflare-workers-ai"}],"paths":{"/client/v4/accounts/{account_id}/ai/authors/search":{"get":{"tags":["Workers AI"],"parameters":[{"name":"account_id","in":"path","description":"account_id","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://developers.cloudflare.com/api/resources/ai/","api_endpoint":"https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/authors/search"},"summary":"Author Search","description":"Searches Workers AI models by author or organization name.","security":[{"bearerAuth":[]}]}},"/client/v4/accounts/{account_id}/ai/finetunes":{"get":{"tags":["Finetunes"],"parameters":[{"name":"account_id","in":"path","description":"account_id","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://developers.cloudflare.com/api/resources/ai/","api_endpoint":"https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/finetunes"},"summary":"List Finetunes","description":"Lists all fine-tuning jobs created by the account, including status and metrics.","security":[{"bearerAuth":[]}]},"post":{"tags":["Finetunes"],"parameters":[{"name":"account_id","in":"path","description":"account_id","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://developers.cloudflare.com/api/resources/ai/","api_endpoint":"https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/finetunes"},"summary":"Create a new Finetune","description":"Creates a new fine-tuning job for a Workers AI model using custom training data.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"description":{"type":"string","description":"description"},"model":{"type":"string","description":"model","required":true},"name":{"type":"string","description":"name","required":true},"public":{"type":"boolean","description":"public","enum":[true,false]}}},"example":{"description":"","model":"","name":"","public":""}}}}}},"/client/v4/accounts/{account_id}/ai/finetunes/public":{"get":{"tags":["Finetunes"],"parameters":[{"name":"account_id","in":"path","description":"account_id","required":true,"schema":{"type":"string","example":""}},{"name":"limit","in":"query","description":"Pagination Limit.","required":false,"schema":{"type":"number","example":""}},{"name":"offset","in":"query","description":"Pagination Offset.","required":false,"schema":{"type":"number","example":""}},{"name":"orderBy","in":"query","description":"Order By Column Name.","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://developers.cloudflare.com/api/resources/ai/","api_endpoint":"https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/finetunes/public"},"summary":"List Public Finetunes","description":"Lists publicly available fine-tuned models that can be used with Workers AI.","security":[{"bearerAuth":[]}]}},"/client/v4/accounts/{account_id}/ai/finetunes/{finetune_id}":{"delete":{"tags":["Finetunes"],"parameters":[{"name":"account_id","in":"path","description":"account_id","required":true,"schema":{"type":"string","example":""}},{"name":"finetune_id","in":"path","description":"finetune_id","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://developers.cloudflare.com/api/resources/ai/","api_endpoint":"https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/finetunes/{finetune_id}"},"summary":"Delete a Finetune","description":"Delete a finetune. Any in-flight requests referencing the lora will fail after the files are deleted.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/client/v4/accounts/{account_id}/ai/finetunes/{finetune_id}/finetune-assets":{"post":{"tags":["Finetunes"],"parameters":[{"name":"account_id","in":"path","description":"account_id","required":true,"schema":{"type":"string","example":""}},{"name":"finetune_id","in":"path","description":"finetune_id","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://developers.cloudflare.com/api/resources/ai/","api_endpoint":"https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/finetunes/{finetune_id}/finetune-assets"},"summary":"Upload a Finetune Asset","description":"Uploads training data assets for a Workers AI fine-tuning job.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":false,"content":{"multipart/form-data":{"schema":{"type":"object","required":[],"properties":{"file":{"type":"string","format":"binary","description":"File to upload.","required":true},"file_name":{"type":"string","description":"Name of the file (adapter_config.json or adapter_model.safetensors).","required":true}}},"example":{"file":"(binary)","file_name":""}}}}}},"/client/v4/accounts/{account_id}/ai/finetunes/{finetune_id}/finetune-assets/{file_name}":{"get":{"tags":["Finetune Assets"],"parameters":[{"name":"account_id","in":"path","description":"account_id","required":true,"schema":{"type":"string","example":""}},{"name":"file_name","in":"path","description":"file_name","required":true,"schema":{"type":"string","example":""}},{"name":"finetune_id","in":"path","description":"finetune_id","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://developers.cloudflare.com/api/resources/ai/","api_endpoint":"https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/finetunes/{finetune_id}/finetune-assets/{file_name}"},"summary":"Download a Finetune Asset","description":"Returns a pre-signed R2 URL for downloading a finetune asset file.","security":[{"bearerAuth":[]}]}},"/client/v4/accounts/{account_id}/ai/models/schema":{"get":{"tags":["Workers AI"],"parameters":[{"name":"account_id","in":"path","description":"account_id","required":true,"schema":{"type":"string","example":""}},{"name":"model","in":"query","description":"Model Name","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://developers.cloudflare.com/api/resources/ai/","api_endpoint":"https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/models/schema"},"summary":"Get Model Schema","description":"Retrieves the input and output JSON schema definition for a Workers AI model.","security":[{"bearerAuth":[]}]}},"/client/v4/accounts/{account_id}/ai/models/search":{"get":{"tags":["Workers AI"],"parameters":[{"name":"account_id","in":"path","description":"account_id","required":true,"schema":{"type":"string","example":""}},{"name":"author","in":"query","description":"Filter by Author.","required":false,"schema":{"type":"string","example":""}},{"name":"format","in":"query","description":"If set, return models in the requested marketplace format instead of the default response.","required":false,"schema":{"type":"string","example":"","items":{"type":"string","enum":["openrouter"]}}},{"name":"hide_experimental","in":"query","description":"Filter to hide experimental models.","required":false,"schema":{"type":"boolean","example":"","items":{"type":"string","enum":[true,false]}}},{"name":"include_deprecated","in":"query","description":"If true, include models for up to three months after their deprecation date. Defaults to false.","required":false,"schema":{"type":"boolean","example":"","items":{"type":"string","enum":[true,false]}}},{"name":"page","in":"query","description":"page","required":false,"schema":{"type":"number","example":""}},{"name":"per_page","in":"query","description":"per_page","required":false,"schema":{"type":"number","example":""}},{"name":"search","in":"query","description":"Search.","required":false,"schema":{"type":"string","example":""}},{"name":"source","in":"query","description":"Filter by Source Id.","required":false,"schema":{"type":"number","example":""}},{"name":"task","in":"query","description":"Filter by Task Name.","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://developers.cloudflare.com/api/resources/ai/","api_endpoint":"https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/models/search"},"summary":"Model Search","description":"Searches Workers AI models by name or description.","security":[{"bearerAuth":[]}]}},"/client/v4/accounts/{account_id}/ai/run":{"post":{"tags":["Workers AI"],"parameters":[{"name":"account_id","in":"path","description":"account_id","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://developers.cloudflare.com/api/resources/ai/","api_endpoint":"https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/run"},"summary":"Execute AI Model (Generic)","description":"Execute an AI model by specifying the model name in the request body.\n\nThis endpoint provides a generic interface for running AI models where the model name is part of the request payload rather than the URL path. It supports all AI Gateway features including caching, custom headers, and request options.\n\nModel-specific inputs available in [Cloudflare Docs](https://developers.cloudflare.com/workers-ai/models/).","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"input":{"type":"object","description":"Model-specific input data. Format varies by model type.","required":true,"properties":{}},"model":{"type":"string","description":"The AI model to execute (e.g., openai/gpt-5.5, anthropic/claude-opus-4.7)","required":true},"options":{"type":"object","description":"options","properties":{"extraHeaders":{"type":"object","description":"Additional headers to pass to the AI provider"},"gateway":{"type":"object","description":"gateway"}}}}},"example":{"input":{},"model":"","options":{}}}}}}},"/client/v4/accounts/{account_id}/ai/run/{model_name}":{"post":{"tags":["Workers AI"],"parameters":[{"name":"account_id","in":"path","description":"account_id","required":true,"schema":{"type":"string","example":""}},{"name":"model_name","in":"path","description":"model_name","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://developers.cloudflare.com/api/resources/ai/","api_endpoint":"https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/run/{model_name}"},"summary":"Execute AI model","description":"This endpoint provides users with the capability to run specific AI models on-demand.\n\nBy submitting the required input data, users can receive real-time predictions or results generated by the chosen AI\nmodel. The endpoint supports various AI model types, ensuring flexibility and adaptability for diverse use cases.\n\nModel specific inputs available in [Cloudflare Docs](https://developers.cloudflare.com/workers-ai/models/).","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"text":{"type":"string","description":"The text that you want to classify"},"audio":{"type":"array","description":"An array of integers that represent the audio data constrained to 8-bit unsigned integer values","items":{"type":"number"}},"frequency_penalty":{"type":"number","description":"Decreases the likelihood of the model repeating the same lines verbatim."},"functions":{"type":"array","description":"functions","items":{"type":"object","properties":{"code":{"type":"string","description":"code","required":true},"name":{"type":"string","description":"name","required":true}}}},"guidance":{"type":"number","description":"Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt"},"height":{"type":"number","description":"The height of the generated image in pixels"},"ignore_eos":{"type":"boolean","description":"Whether to ignore the EOS token and continue generating tokens after the EOS token is generated.","enum":[true,false]},"image":{"type":"array","description":"For use with img2img tasks. An array of integers that represent the image data constrained to 8-bit unsigned integer values","items":{"type":"number"}},"image_b64":{"type":"string","description":"For use with img2img tasks. A base64-encoded string of the input image"},"input_text":{"type":"string","description":"The text that you want the model to summarize"},"lang":{"type":"string","description":"The speech language (e.g., 'en' for English, 'fr' for French). Defaults to 'en' if not specified"},"lora":{"type":"string","description":"Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model."},"mask":{"type":"array","description":"An array representing An array of integers that represent mask image data for inpainting constrained to 8-bit unsigned integer values","items":{"type":"number"}},"max_length":{"type":"number","description":"The maximum length of the generated summary in tokens"},"max_tokens":{"type":"number","description":"The maximum number of tokens to generate in the response."},"messages":{"type":"array","description":"An array of message objects representing the conversation history.","items":{"type":"object","properties":{"content":{"type":"object","description":"content","required":true},"role":{"type":"string","description":"The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool').","required":true}}}},"negative_prompt":{"type":"string","description":"Text describing elements to avoid in the generated image"},"num_steps":{"type":"number","description":"The number of diffusion steps; higher values can improve quality but take longer"},"presence_penalty":{"type":"number","description":"Increases the likelihood of the model introducing new topics."},"prompt":{"type":"string","description":"A text description of the image you want to generate"},"raw":{"type":"boolean","description":"If true, a chat template is not applied and you must adhere to the specific model's expected formatting.","enum":[true,false]},"repetition_penalty":{"type":"number","description":"Penalty for repeated tokens; higher values discourage repetition."},"response_format":{"type":"object","description":"response_format","properties":{"type":{"type":"string","description":"type","enum":["json_object","json_schema"]},"json_schema":{"type":"string","description":"json_schema"}}},"seed":{"type":"number","description":"Random seed for reproducibility of the image generation"},"source_lang":{"type":"string","description":"The language of the recorded audio"},"stream":{"type":"boolean","description":"If true, the response will be streamed back incrementally using SSE, Server Sent Events.","enum":[true,false]},"strength":{"type":"number","description":"A value between 0 and 1 indicating how strongly to apply the transformation during img2img tasks; lower values make the output closer to the input image"},"target_lang":{"type":"string","description":"The language to translate the transcription into. Currently only English is supported."},"temperature":{"type":"number","description":"Controls the randomness of the output; higher values produce more random results."},"tools":{"type":"array","description":"A list of tools available for the assistant to use.","items":{"type":"object","properties":{"type":{"type":"string","description":"Specifies the type of tool (e.g., 'function')."},"description":{"type":"string","description":"A brief description of what the tool does."},"function":{"type":"object","description":"Details of the function tool."},"name":{"type":"string","description":"The name of the tool. More descriptive the better."},"parameters":{"type":"object","description":"Schema defining the parameters accepted by the tool."}}}},"top_k":{"type":"number","description":"Limits the AI to choose from the top 'k' most probable words. Lower values make responses more focused; higher values introduce more variety and potential surprises."},"top_p":{"type":"number","description":"Adjusts the creativity of the AI's responses by controlling how many possible words it considers. Lower values make outputs more predictable; higher values allow for more varied and creative responses."},"width":{"type":"number","description":"The width of the generated image in pixels"}}},"example":{"text":"","audio":[],"frequency_penalty":"","functions":[],"guidance":"","height":"","ignore_eos":"","image":[],"image_b64":"","input_text":"","lang":"","lora":"","mask":[],"max_length":"","max_tokens":"","messages":[],"negative_prompt":"","num_steps":"","presence_penalty":"","prompt":"","raw":"","repetition_penalty":"","response_format":{},"seed":"","source_lang":"","stream":"","strength":"","target_lang":"","temperature":"","tools":[],"top_k":"","top_p":"","width":""}}}}}},"/client/v4/accounts/{account_id}/ai/tasks/search":{"get":{"tags":["Workers AI"],"parameters":[{"name":"account_id","in":"path","description":"account_id","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://developers.cloudflare.com/api/resources/ai/","api_endpoint":"https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/tasks/search"},"summary":"Task Search","description":"Searches Workers AI models by task type (e.g., text-generation, embeddings).","security":[{"bearerAuth":[]}]}},"/client/v4/accounts/{account_id}/ai/tomarkdown":{"post":{"tags":["Workers AI"],"parameters":[{"name":"account_id","in":"path","description":"account_id","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://developers.cloudflare.com/api/resources/ai/","api_endpoint":"https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/tomarkdown"},"summary":"Convert Files into Markdown","description":"Converts uploaded files into Markdown format using Workers AI.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":false,"content":{"multipart/form-data":{"schema":{"type":"object","required":[],"properties":{"files":{"type":"string","format":"binary","description":"files file(s) — one or more files","required":true}}},"example":{"files":"(binary)"}}}}}},"/client/v4/accounts/{account_id}/ai/tomarkdown/supported":{"get":{"tags":["Workers AI"],"parameters":[{"name":"account_id","in":"path","description":"account_id","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://developers.cloudflare.com/api/resources/ai/","api_endpoint":"https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/tomarkdown/supported"},"summary":"Get all converted formats supported","description":"Lists all file formats supported for conversion to Markdown.","security":[{"bearerAuth":[]}]}},"/client/v4/zones/{zone_id}/ai-audit/robots":{"get":{"tags":["AI Audit"],"parameters":[{"name":"zone_id","in":"path","description":"Identifier of the zone.","required":true,"schema":{"type":"string","example":""}},{"name":"subdomain","in":"query","description":"Optional subdomain to fetch robots.txt for. If omitted, fetches robots.txt for the zone apex domain.","required":false,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://developers.cloudflare.com/api/resources/ai_audit/","api_endpoint":"https://api.cloudflare.com/client/v4/zones/{zone_id}/ai-audit/robots"},"summary":"Get robots.txt rules","description":"Fetches and parses the robots.txt file for a zone or a specific subdomain within the zone. Returns parsed user-agent rules, content signals, and sitemaps.","security":[{"bearerAuth":[]}]}},"/client/v4/zones/{zone_id}/ai-audit/robots/bulk":{"post":{"tags":["AI Audit"],"parameters":[{"name":"zone_id","in":"path","description":"Identifier of the zone.","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://developers.cloudflare.com/api/resources/ai_audit/","api_endpoint":"https://api.cloudflare.com/client/v4/zones/{zone_id}/ai-audit/robots/bulk"},"summary":"Bulk get robots.txt rules","description":"Fetches and parses robots.txt files for multiple domains within a zone in a single request. Each domain must belong to the specified zone. Results are keyed by hostname.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{}},"example":{}}}}}},"/client/v4/zones/{zone_id}/ai-security/custom-topics":{"get":{"tags":["AI Security For Apps"],"parameters":[{"name":"zone_id","in":"path","description":"Defines the zone.","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://developers.cloudflare.com/api/resources/ai_security/","api_endpoint":"https://api.cloudflare.com/client/v4/zones/{zone_id}/ai-security/custom-topics"},"summary":"Get the AI Security for Apps custom topics of a zone.","description":"Get the custom topic categories defined for the zone. While AI Security for Apps is enabled, it scores every incoming prompt against these topics and writes the scores to the `cf.llm.prompt.custom_topic_categories` field, keyed by topic label. Topics can be configured while the detection is disabled, but no prompt is scored until you enable it.","security":[{"bearerAuth":[]}]},"put":{"tags":["AI Security For Apps"],"parameters":[{"name":"zone_id","in":"path","description":"Defines the zone.","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://developers.cloudflare.com/api/resources/ai_security/","api_endpoint":"https://api.cloudflare.com/client/v4/zones/{zone_id}/ai-security/custom-topics"},"summary":"Update the AI Security for Apps custom topics of a zone.","description":"Update the custom topic list of the zone, overwriting it entirely with the topics in the request, so include\nevery topic you want to keep. Changes can take up to a minute to propagate.\n\nEach entry has a `label`, used to reference the topic in rule expressions and analytics, and a `topic`\ndescription, which the classifier scores prompts against while AI Security for Apps is enabled. The following\nrules apply:\n\n- A zone can hold at most 20 topics.\n- `label` must be 2–20 characters, using only lowercase letters (a–z), digits (0–9), and hyphens.\n- `topic` must be 2–50 printable ASCII characters.\n- Labels must be unique within the zone, and so must topic descriptions.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"topics":{"type":"array","description":"Custom topic categories for AI Security for Apps content detection.","items":{"type":"object","properties":{"label":{"type":"string","description":"Unique label identifier. Must contain only lowercase letters (a–z), digits (0–9), and hyphens.","required":true},"topic":{"type":"string","description":"Description of the topic category. Must contain only printable ASCII characters.","required":true}}}}}},"example":{"topics":[]}}}}}},"/client/v4/zones/{zone_id}/ai-security/settings":{"get":{"tags":["AI Security For Apps"],"parameters":[{"name":"zone_id","in":"path","description":"Defines the zone.","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://developers.cloudflare.com/api/resources/ai_security/","api_endpoint":"https://api.cloudflare.com/client/v4/zones/{zone_id}/ai-security/settings"},"summary":"Get the AI Security for Apps status for a zone.","description":"Get the current AI Security for Apps status for the zone. While enabled, Cloudflare scans prompts sent to endpoints labeled `cf-llm` for personally identifiable information, unsafe topics, and prompt injection attempts.","security":[{"bearerAuth":[]}]},"put":{"tags":["AI Security For Apps"],"parameters":[{"name":"zone_id","in":"path","description":"Defines the zone.","required":true,"schema":{"type":"string","example":""}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://developers.cloudflare.com/api/resources/ai_security/","api_endpoint":"https://api.cloudflare.com/client/v4/zones/{zone_id}/ai-security/settings"},"summary":"Update the AI Security for Apps status for a zone.","description":"Update the AI Security for Apps status for the zone, enabling or disabling the detection. The detection results are exposed as `cf.llm.prompt.*` fields for use in custom rules and rate limiting rules; changes can take up to a minute to propagate.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"enabled":{"type":"boolean","description":"Whether AI Security for Apps is enabled on the zone.","enum":[true,false]}}},"example":{"enabled":""}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}},"security":[{"bearerAuth":[]}]}