From c4b59e04dfc81f979fdf709b6074a130e582b7f5 Mon Sep 17 00:00:00 2001 From: Jeffrey Aven Date: Tue, 21 Jul 2026 10:18:12 +1000 Subject: [PATCH] cloudflare update --- .../src/cloudflare/v00.00.00000/provider.yaml | 20 +- .../v00.00.00000/services/addressing.yaml | 93 +- .../cloudflare/v00.00.00000/services/ai.yaml | 29804 ++-------------- .../v00.00.00000/services/ai_gateway.yaml | 2 +- .../{aisearch.yaml => ai_search.yaml} | 154 +- .../v00.00.00000/services/alerting.yaml | 10 +- .../v00.00.00000/services/billing.yaml | 3 +- .../services/browser_rendering.yaml | 912 +- .../v00.00.00000/services/cache.yaml | 51 +- .../v00.00.00000/services/cloudforce_one.yaml | 515 +- .../services/content_scanning.yaml | 59 +- .../cloudflare/v00.00.00000/services/d1.yaml | 20 +- .../v00.00.00000/services/diagnostics.yaml | 3 +- .../cloudflare/v00.00.00000/services/dns.yaml | 26 +- .../v00.00.00000/services/dns_firewall.yaml | 11 +- .../v00.00.00000/services/email_security.yaml | 75 +- .../v00.00.00000/services/images.yaml | 41 +- .../v00.00.00000/services/intel.yaml | 23 +- .../cloudflare/v00.00.00000/services/kv.yaml | 19 +- .../v00.00.00000/services/logpush.yaml | 103 +- .../v00.00.00000/services/logs.yaml | 42 +- .../services/network_interconnects.yaml | 11 + .../v00.00.00000/services/page_rules.yaml | 20 +- .../v00.00.00000/services/pipelines.yaml | 117 +- .../v00.00.00000/services/queues.yaml | 118 +- .../cloudflare/v00.00.00000/services/r2.yaml | 166 +- .../services/r2_data_catalog.yaml | 17 +- .../v00.00.00000/services/radar.yaml | 107 +- .../v00.00.00000/services/registrar.yaml | 3 +- .../services/resource_tagging.yaml | 20 +- .../v00.00.00000/services/rulesets.yaml | 84 +- .../services/security_center.yaml | 86 +- .../v00.00.00000/services/security_txt.yaml | 14 +- .../v00.00.00000/services/speed.yaml | 11 +- .../cloudflare/v00.00.00000/services/ssl.yaml | 12 +- .../services/token_validation.yaml | 49 +- .../v00.00.00000/services/vectorize.yaml | 24 +- .../v00.00.00000/services/workers.yaml | 274 +- .../v00.00.00000/services/workflows.yaml | 65 +- .../v00.00.00000/services/zero_trust.yaml | 485 +- .../v00.00.00000/services/zones.yaml | 17 +- 41 files changed, 5595 insertions(+), 28091 deletions(-) rename providers/src/cloudflare/v00.00.00000/services/{aisearch.yaml => ai_search.yaml} (97%) diff --git a/providers/src/cloudflare/v00.00.00000/provider.yaml b/providers/src/cloudflare/v00.00.00000/provider.yaml index 632322e1..058929cd 100644 --- a/providers/src/cloudflare/v00.00.00000/provider.yaml +++ b/providers/src/cloudflare/v00.00.00000/provider.yaml @@ -182,13 +182,13 @@ providerServices: Limits](https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/platform/limits/#api-rate-limits). Totally new to Cloudflare? [Start here](https://developers.cloudflare.com/fundamentals/get-started/). - aisearch: - id: aisearch:v00.00.00000 - name: aisearch + ai_gateway: + id: ai_gateway:v00.00.00000 + name: ai_gateway preferred: true service: - $ref: cloudflare/v00.00.00000/services/aisearch.yaml - title: aisearch API + $ref: cloudflare/v00.00.00000/services/ai_gateway.yaml + title: ai_gateway API version: v00.00.00000 description: >- Welcome to Cloudflare's API documentation site. We are experimenting with @@ -218,13 +218,13 @@ providerServices: Limits](https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/platform/limits/#api-rate-limits). Totally new to Cloudflare? [Start here](https://developers.cloudflare.com/fundamentals/get-started/). - ai_gateway: - id: ai_gateway:v00.00.00000 - name: ai_gateway + ai_search: + id: ai_search:v00.00.00000 + name: ai_search preferred: true service: - $ref: cloudflare/v00.00.00000/services/ai_gateway.yaml - title: ai_gateway API + $ref: cloudflare/v00.00.00000/services/ai_search.yaml + title: ai_search API version: v00.00.00000 description: >- Welcome to Cloudflare's API documentation site. We are experimenting with diff --git a/providers/src/cloudflare/v00.00.00000/services/addressing.yaml b/providers/src/cloudflare/v00.00.00000/services/addressing.yaml index dde40efd..c4030357 100644 --- a/providers/src/cloudflare/v00.00.00000/services/addressing.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/addressing.yaml @@ -4545,29 +4545,13 @@ components: response: mediaType: application/json openAPIDocKey: '200' - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/address_maps/methods/get' - - $ref: '#/components/x-stackQL-resources/address_maps/methods/list' - insert: - - $ref: '#/components/x-stackQL-resources/address_maps/methods/create' - update: - - $ref: '#/components/x-stackQL-resources/address_maps/methods/edit' - delete: - - $ref: '#/components/x-stackQL-resources/address_maps/methods/delete' - replace: [] - accounts: - id: cloudflare.addressing.accounts - name: accounts - title: Accounts - methods: - delete: + remove_account: operation: $ref: '#/paths/~1accounts~1{account_id}~1addressing~1address_maps~1{address_map_id}~1accounts~1{account_id}/delete' response: mediaType: application/json openAPIDocKey: '200' - update: + add_account: config: requestBodyTranslate: algorithm: naive @@ -4576,26 +4560,13 @@ components: response: mediaType: application/json openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: [] - update: [] - delete: - - $ref: '#/components/x-stackQL-resources/accounts/methods/delete' - replace: - - $ref: '#/components/x-stackQL-resources/accounts/methods/update' - ips: - id: cloudflare.addressing.ips - name: ips - title: Ips - methods: - delete: + remove_ip: operation: $ref: '#/paths/~1accounts~1{account_id}~1addressing~1address_maps~1{address_map_id}~1ips~1{ip_address}/delete' response: mediaType: application/json openAPIDocKey: '200' - update: + add_ip: config: requestBodyTranslate: algorithm: naive @@ -4604,26 +4575,13 @@ components: response: mediaType: application/json openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: [] - update: [] - delete: - - $ref: '#/components/x-stackQL-resources/ips/methods/delete' - replace: - - $ref: '#/components/x-stackQL-resources/ips/methods/update' - zones: - id: cloudflare.addressing.zones - name: zones - title: Zones - methods: - delete: + remove_zone: operation: $ref: '#/paths/~1accounts~1{account_id}~1addressing~1address_maps~1{address_map_id}~1zones~1{zone_id}/delete' response: mediaType: application/json openAPIDocKey: '200' - update: + add_zone: config: requestBodyTranslate: algorithm: naive @@ -4633,13 +4591,16 @@ components: mediaType: application/json openAPIDocKey: '200' sqlVerbs: - select: [] - insert: [] - update: [] + select: + - $ref: '#/components/x-stackQL-resources/address_maps/methods/get' + - $ref: '#/components/x-stackQL-resources/address_maps/methods/list' + insert: + - $ref: '#/components/x-stackQL-resources/address_maps/methods/create' + update: + - $ref: '#/components/x-stackQL-resources/address_maps/methods/edit' delete: - - $ref: '#/components/x-stackQL-resources/zones/methods/delete' - replace: - - $ref: '#/components/x-stackQL-resources/zones/methods/update' + - $ref: '#/components/x-stackQL-resources/address_maps/methods/delete' + replace: [] leases: id: cloudflare.addressing.leases name: leases @@ -4740,6 +4701,12 @@ components: response: mediaType: application/json openAPIDocKey: '200' + validate_prefix: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1addressing~1prefixes~1{prefix_id}~1validate/post' + response: + mediaType: application/json + openAPIDocKey: '202' sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/prefixes/methods/get' @@ -4925,24 +4892,6 @@ components: delete: - $ref: '#/components/x-stackQL-resources/delegations/methods/delete' replace: [] - validate: - id: cloudflare.addressing.validate - name: validate - title: Validate - methods: - ip_address_management_prefixes_validate_prefix: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1addressing~1prefixes~1{prefix_id}~1validate/post' - response: - mediaType: application/json - openAPIDocKey: '202' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/validate/methods/ip_address_management_prefixes_validate_prefix' - update: [] - delete: [] - replace: [] regions: id: cloudflare.addressing.regions name: regions diff --git a/providers/src/cloudflare/v00.00.00000/services/ai.yaml b/providers/src/cloudflare/v00.00.00000/services/ai.yaml index 0267d2fe..dc545047 100644 --- a/providers/src/cloudflare/v00.00.00000/services/ai.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/ai.yaml @@ -28,27 +28,10 @@ paths: content: application/json: schema: - properties: - errors: - items: - type: object - type: array - messages: - items: - type: string - type: array - result: - items: - type: object - type: array - success: - type: boolean - required: - - success - - result - - errors - - messages type: object + properties: + author: + type: string description: Returns a list of authors '400': content: @@ -705,6 +688,30 @@ paths: result: items: type: object + properties: + id: + type: string + description: Model identifier (UUID). + source: + type: number + name: + type: string + description: Model name, e.g. @cf/meta/llama-3.2-1b-instruct - use as model_name in the ai task-family resources. + description: + type: string + task: + type: object + description: 'Task grouping: id, name (e.g. Text Generation), description.' + created_at: + type: string + tags: + type: array + items: + type: string + properties: + type: array + items: + type: object type: array success: type: boolean @@ -754,10 +761,10 @@ paths: resource_chain: - models method: list - /accounts/{account_id}/ai/run/@cf/ai4bharat/indictrans2-en-indic-1B: + /accounts/{account_id}/ai/run/@cf/facebook/nonomni-detr-resnet-50: post: - description: Runs inference on the @cf/ai4bharat/indictrans2-en-indic-1B model. - operationId: workers-ai-post-run-cf-ai4bharat-indictrans2-en-indic-1B + description: Runs inference on the @cf/facebook/nonomni-detr-resnet-50 model. + operationId: workers-ai-post-run-cf-facebook-nonomni-detr-resnet-50 parameters: - name: account_id in: path @@ -776,57 +783,10 @@ paths: type: string requestBody: content: - application/json: + application/octet-stream: schema: - properties: - target_language: - default: hin_Deva - description: Target langauge to translate to - enum: - - asm_Beng - - awa_Deva - - ben_Beng - - bho_Deva - - brx_Deva - - doi_Deva - - eng_Latn - - gom_Deva - - gon_Deva - - guj_Gujr - - hin_Deva - - hne_Deva - - kan_Knda - - kas_Arab - - kas_Deva - - kha_Latn - - lus_Latn - - mag_Deva - - mai_Deva - - mal_Mlym - - mar_Deva - - mni_Beng - - mni_Mtei - - npi_Deva - - ory_Orya - - pan_Guru - - san_Deva - - sat_Olck - - snd_Arab - - snd_Deva - - tam_Taml - - tel_Telu - - urd_Arab - - unr_Deva - type: string - text: - description: Input text to translate. Can be a single string or a list of strings. - type: string - items: - type: string - required: - - text - - target_language - type: object + format: binary + type: string responses: '200': content: @@ -865,9 +825,9 @@ paths: - api_token: [] - api_email: [] api_key: [] - summary: Execute @cf/ai4bharat/indictrans2-en-indic-1B model. + summary: Execute @cf/facebook/nonomni-detr-resnet-50 model. tags: - - Workers AI Translation + - Workers AI Object Detection x-api-token-group: - Workers AI Write - Workers AI Read @@ -879,10 +839,10 @@ paths: enterprise: true free: true pro: true - /accounts/{account_id}/ai/run/@cf/ai4bharat/nonomni-indictrans2-en-indic-1b: + /accounts/{account_id}/ai/run/@cf/microsoft/nonomni-resnet-50: post: - description: Runs inference on the @cf/ai4bharat/nonomni-indictrans2-en-indic-1b model. - operationId: workers-ai-post-run-cf-ai4bharat-nonomni-indictrans2-en-indic-1b + description: Runs inference on the @cf/microsoft/nonomni-resnet-50 model. + operationId: workers-ai-post-run-cf-microsoft-nonomni-resnet-50 parameters: - name: account_id in: path @@ -901,57 +861,10 @@ paths: type: string requestBody: content: - application/json: + application/octet-stream: schema: - properties: - target_language: - default: hin_Deva - description: Target langauge to translate to - enum: - - asm_Beng - - awa_Deva - - ben_Beng - - bho_Deva - - brx_Deva - - doi_Deva - - eng_Latn - - gom_Deva - - gon_Deva - - guj_Gujr - - hin_Deva - - hne_Deva - - kan_Knda - - kas_Arab - - kas_Deva - - kha_Latn - - lus_Latn - - mag_Deva - - mai_Deva - - mal_Mlym - - mar_Deva - - mni_Beng - - mni_Mtei - - npi_Deva - - ory_Orya - - pan_Guru - - san_Deva - - sat_Olck - - snd_Arab - - snd_Deva - - tam_Taml - - tel_Telu - - urd_Arab - - unr_Deva - type: string - text: - description: Input text to translate. Can be a single string or a list of strings. - type: string - items: - type: string - required: - - text - - target_language - type: object + format: binary + type: string responses: '200': content: @@ -990,9 +903,9 @@ paths: - api_token: [] - api_email: [] api_key: [] - summary: Execute @cf/ai4bharat/nonomni-indictrans2-en-indic-1b model. + summary: Execute @cf/microsoft/nonomni-resnet-50 model. tags: - - Workers AI Translation + - Workers AI Image Classification x-api-token-group: - Workers AI Write - Workers AI Read @@ -1004,10 +917,10 @@ paths: enterprise: true free: true pro: true - /accounts/{account_id}/ai/run/@cf/aisingapore/gemma-sea-lion-v4-27b-it: + /accounts/{account_id}/ai/run/@cf/microsoft/resnet-50: post: - description: Runs inference on the @cf/aisingapore/gemma-sea-lion-v4-27b-it model. - operationId: workers-ai-post-run-cf-aisingapore-gemma-sea-lion-v4-27b-it + description: Runs inference on the @cf/microsoft/resnet-50 model. + operationId: workers-ai-post-run-cf-microsoft-resnet-50 parameters: - name: account_id in: path @@ -1026,377 +939,35 @@ paths: type: string requestBody: content: - application/json: + application/octet-stream: schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 2000 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - requests: - items: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: + format: binary + type: string + responses: + '200': + content: + application/json: + schema: + type: object + description: Object with user data. + '400': + content: + application/json: + schema: + properties: + errors: + items: + properties: + code: + type: string + message: + type: string + required: + - code + - message + type: object + type: array + result: type: object success: type: boolean @@ -1410,9 +981,9 @@ paths: - api_token: [] - api_email: [] api_key: [] - summary: Execute @cf/aisingapore/gemma-sea-lion-v4-27b-it model. + summary: Execute @cf/microsoft/resnet-50 model. tags: - - Workers AI Text Generation + - Workers AI Image Classification x-api-token-group: - Workers AI Write - Workers AI Read @@ -1424,10 +995,10 @@ paths: enterprise: true free: true pro: true - /accounts/{account_id}/ai/run/@cf/baai/bge-base-en-v1.5: + /accounts/{account_id}/ai/run/@cf/openai/whisper: post: - description: Runs inference on the @cf/baai/bge-base-en-v1.5 model. - operationId: workers-ai-post-run-cf-baai-bge-base-en-v1-5 + description: Runs inference on the @cf/openai/whisper model. + operationId: workers-ai-post-run-cf-openai-whisper parameters: - name: account_id in: path @@ -1446,46 +1017,10 @@ paths: type: string requestBody: content: - application/json: + application/octet-stream: schema: - type: object - properties: - pooling: - default: mean - description: The pooling method used in the embedding process. `cls` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is `mean` in order for this to not be a breaking change, but we highly suggest using the new `cls` pooling for better accuracy. - enum: - - mean - - cls - type: string - text: - type: string - description: The text to embed - items: - description: The text to embed - minLength: 1 - type: string - requests: - description: Batch of the embeddings requests to run using async-queue - items: - properties: - pooling: - default: mean - description: The pooling method used in the embedding process. `cls` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is `mean` in order for this to not be a breaking change, but we highly suggest using the new `cls` pooling for better accuracy. - enum: - - mean - - cls - type: string - text: - type: string - description: The text to embed - items: - description: The text to embed - minLength: 1 - type: string - required: - - text - type: object - type: array + format: binary + type: string responses: '200': content: @@ -1524,9 +1059,9 @@ paths: - api_token: [] - api_email: [] api_key: [] - summary: Execute @cf/baai/bge-base-en-v1.5 model. + summary: Execute @cf/openai/whisper model. tags: - - Workers AI Text Embeddings + - Workers AI Automatic Speech Recognition x-api-token-group: - Workers AI Write - Workers AI Read @@ -1538,10 +1073,10 @@ paths: enterprise: true free: true pro: true - /accounts/{account_id}/ai/run/@cf/baai/bge-large-en-v1.5: + /accounts/{account_id}/ai/run/@cf/openai/whisper-tiny-en: post: - description: Runs inference on the @cf/baai/bge-large-en-v1.5 model. - operationId: workers-ai-post-run-cf-baai-bge-large-en-v1-5 + description: Runs inference on the @cf/openai/whisper-tiny-en model. + operationId: workers-ai-post-run-cf-openai-whisper-tiny-en parameters: - name: account_id in: path @@ -1560,46 +1095,10 @@ paths: type: string requestBody: content: - application/json: + application/octet-stream: schema: - type: object - properties: - pooling: - default: mean - description: The pooling method used in the embedding process. `cls` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is `mean` in order for this to not be a breaking change, but we highly suggest using the new `cls` pooling for better accuracy. - enum: - - mean - - cls - type: string - text: - type: string - description: The text to embed - items: - description: The text to embed - minLength: 1 - type: string - requests: - description: Batch of the embeddings requests to run using async-queue - items: - properties: - pooling: - default: mean - description: The pooling method used in the embedding process. `cls` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is `mean` in order for this to not be a breaking change, but we highly suggest using the new `cls` pooling for better accuracy. - enum: - - mean - - cls - type: string - text: - type: string - description: The text to embed - items: - description: The text to embed - minLength: 1 - type: string - required: - - text - type: object - type: array + format: binary + type: string responses: '200': content: @@ -1638,9 +1137,9 @@ paths: - api_token: [] - api_email: [] api_key: [] - summary: Execute @cf/baai/bge-large-en-v1.5 model. + summary: Execute @cf/openai/whisper-tiny-en model. tags: - - Workers AI Text Embeddings + - Workers AI Automatic Speech Recognition x-api-token-group: - Workers AI Write - Workers AI Read @@ -1652,10 +1151,10 @@ paths: enterprise: true free: true pro: true - /accounts/{account_id}/ai/run/@cf/baai/bge-m3: + /accounts/{account_id}/ai/run/{model_name}: post: - description: Runs inference on the @cf/baai/bge-m3 model. - operationId: workers-ai-post-run-cf-baai-bge-m3 + description: 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](https://developers.cloudflare.com/workers-ai/models/). + operationId: workers-ai-post-run-model parameters: - name: account_id in: path @@ -1663,86 +1162,261 @@ paths: description: The Cloudflare account ID. schema: type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags + - in: path + name: model_name schema: type: string + required: true requestBody: content: application/json: schema: type: object - title: Input Query and Contexts + title: Text Classification properties: - contexts: - description: List of provided contexts. Note that the index in this array is important, as the response will refer to it. + text: + description: The text that you want to classify + minLength: 1 + type: string + guidance: + default: 7.5 + description: Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt + type: number + height: + description: The height of the generated image in pixels + maximum: 2048 + minimum: 256 + type: integer + image: + description: For use with img2img tasks. An array of integers that represent the image data constrained to 8-bit unsigned integer values items: - properties: - text: - description: One of the provided context content - minLength: 1 - type: string - type: object + description: A value between 0 and 255 + type: number type: array - query: - description: A query you wish to perform against the provided contexts. If no query is provided the model with respond with embeddings for contexts + image_b64: + description: For use with img2img tasks. A base64-encoded string of the input image + type: string + mask: + description: An array representing An array of integers that represent mask image data for inpainting constrained to 8-bit unsigned integer values + items: + description: A value between 0 and 255 + type: number + type: array + negative_prompt: + description: Text describing elements to avoid in the generated image + type: string + num_steps: + default: 20 + description: The number of diffusion steps; higher values can improve quality but take longer + maximum: 20 + type: integer + prompt: + description: A text description of the image you want to generate minLength: 1 type: string - truncate_inputs: - default: false - description: When provided with too long context should the model error out or truncate the context to fit? - type: boolean - text: + seed: + description: Random seed for reproducibility of the image generation + type: integer + strength: + default: 1 + 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 + type: number + width: + description: The width of the generated image in pixels + maximum: 2048 + minimum: 256 + type: integer + lang: + default: en + description: The speech language (e.g., 'en' for English, 'fr' for French). Defaults to 'en' if not specified type: string - description: The text to embed - items: - description: The text to embed - minLength: 1 - type: string - requests: - description: Batch of the embeddings requests to run using async-queue + audio: + description: An array of integers that represent the audio data constrained to 8-bit unsigned integer values items: - type: object - title: Input Query and Contexts - properties: - contexts: - description: List of provided contexts. Note that the index in this array is important, as the response will refer to it. - items: - properties: - text: - description: One of the provided context content - minLength: 1 - type: string - type: object - type: array - query: - description: A query you wish to perform against the provided contexts. If no query is provided the model with respond with embeddings for contexts - minLength: 1 - type: string - truncate_inputs: - default: false - description: When provided with too long context should the model error out or truncate the context to fit? - type: boolean - text: - type: string - description: The text to embed - items: - description: The text to embed - minLength: 1 - type: string - type: array + description: A value between 0 and 255 + type: number + type: array + source_lang: + description: The language of the recorded audio + type: string + target_lang: + description: The language to translate the transcription into. Currently only English is supported. + type: string + frequency_penalty: + description: Decreases the likelihood of the model repeating the same lines verbatim. + maximum: 2 + minimum: -2 + type: number + lora: + description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. + type: string + max_tokens: + default: 256 + description: The maximum number of tokens to generate in the response. + type: integer + presence_penalty: + description: Increases the likelihood of the model introducing new topics. + maximum: 2 + minimum: -2 + type: number + raw: + default: false + description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + type: boolean + repetition_penalty: + description: Penalty for repeated tokens; higher values discourage repetition. + maximum: 2 + minimum: 0 + type: number + response_format: + properties: + json_schema: {} + type: + enum: + - json_object + - json_schema + type: string + title: JSON Mode + type: object + stream: + default: false + description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. + type: boolean + temperature: + default: 0.6 + description: Controls the randomness of the output; higher values produce more random results. + maximum: 5 + minimum: 0 + type: number + top_k: + 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. + maximum: 50 + minimum: 1 + type: integer + top_p: + 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. + maximum: 1 + minimum: 0.001 + type: number + functions: + items: + properties: + code: + type: string + name: + type: string + required: + - name + - code + type: object + type: array + messages: + description: An array of message objects representing the conversation history. + items: + properties: + content: + type: string + description: The content of the message as a string. + items: + properties: + text: + description: Text content + type: string + type: + description: Type of the content (text) + type: string + type: object + role: + description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). + type: string + required: + - role + - content + type: object + type: array + tools: + description: A list of tools available for the assistant to use. + items: + type: object + properties: + description: + description: A brief description of what the tool does. + type: string + name: + description: The name of the tool. More descriptive the better. + type: string + parameters: + description: Schema defining the parameters accepted by the tool. + properties: + properties: + description: Definitions of each parameter. + type: object + required: + description: List of required parameter names. + items: + type: string + type: array + type: + description: The type of the parameters object (usually 'object'). + type: string + required: + - type + - properties + type: object + function: + description: Details of the function tool. + properties: + description: + description: A brief description of what the function does. + type: string + name: + description: The name of the function. + type: string + parameters: + description: Schema defining the parameters accepted by the function. + properties: + properties: + description: Definitions of each parameter. + type: object + required: + description: List of required parameter names. + items: + type: string + type: array + type: + description: The type of the parameters object (usually 'object'). + type: string + required: + - type + - properties + type: object + required: + - name + - description + - parameters + type: object + type: + description: Specifies the type of tool (e.g., 'function'). + type: string + type: array + input_text: + description: The text that you want the model to summarize + minLength: 1 + type: string + max_length: + default: 1024 + description: The maximum length of the generated summary in tokens + type: integer + ignore_eos: + description: Whether to ignore the EOS token and continue generating tokens after the EOS token is generated. + type: boolean responses: '200': content: application/json: schema: - type: object - description: Object with user data. + $ref: '#/components/schemas/stackqlAiRunResponseEnvelope' + description: Model response '400': content: application/json: @@ -1751,12 +1425,9 @@ paths: errors: items: properties: - code: - type: string message: type: string required: - - code - message type: object type: array @@ -1765,18 +1436,18 @@ paths: success: type: boolean required: - - errors - - success - result + - success + - errors type: object - description: Bad request + description: Bad Request security: - api_token: [] - api_email: [] api_key: [] - summary: Execute @cf/baai/bge-m3 model. + summary: Execute AI model tags: - - Workers AI Text Embeddings + - Workers AI x-api-token-group: - Workers AI Write - Workers AI Read @@ -1788,10 +1459,14 @@ paths: enterprise: true free: true pro: true - /accounts/{account_id}/ai/run/@cf/baai/bge-reranker-base: - post: - description: Runs inference on the @cf/baai/bge-reranker-base model. - operationId: workers-ai-post-run-cf-baai-bge-reranker-base + x-stackql-sdk: + service: ai + resource_chain: [] + method: run + /accounts/{account_id}/ai/tasks/search: + get: + description: Searches Workers AI models by task type (e.g., text-generation, embeddings). + operationId: workers-ai-search-task parameters: - name: account_id in: path @@ -1799,197 +1474,66 @@ paths: description: The Cloudflare account ID. schema: type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - properties: - contexts: - description: List of provided contexts. Note that the index in this array is important, as the response will refer to it. - items: - properties: - text: - description: One of the provided context content - minLength: 1 - type: string - type: object - type: array - query: - description: A query you wish to perform against the provided contexts. - minLength: 1 - type: string - top_k: - description: Number of returned results starting with the best score. - minimum: 1 - type: integer - required: - - query - - contexts - type: object responses: '200': - content: - application/json: - schema: - type: object - description: Object with user data. - '400': content: application/json: schema: properties: errors: items: + type: object + type: array + messages: + items: + type: string + type: array + result: + items: + type: object properties: - code: + id: type: string - message: + description: Task identifier (UUID). + name: + type: string + description: Task name, e.g. Text Generation. + description: type: string - required: - - code - - message - type: object type: array - result: - type: object success: type: boolean + x-auditable: true required: - - errors - success - result + - errors + - messages type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/baai/bge-reranker-base model. - tags: - - Workers AI Text Classification - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/baai/bge-small-en-v1.5: - post: - description: Runs inference on the @cf/baai/bge-small-en-v1.5 model. - operationId: workers-ai-post-run-cf-baai-bge-small-en-v1-5 - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - properties: - pooling: - default: mean - description: The pooling method used in the embedding process. `cls` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is `mean` in order for this to not be a breaking change, but we highly suggest using the new `cls` pooling for better accuracy. - enum: - - mean - - cls - type: string - text: - type: string - description: The text to embed - items: - description: The text to embed - minLength: 1 - type: string - requests: - description: Batch of the embeddings requests to run using async-queue - items: - properties: - pooling: - default: mean - description: The pooling method used in the embedding process. `cls` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is `mean` in order for this to not be a breaking change, but we highly suggest using the new `cls` pooling for better accuracy. - enum: - - mean - - cls - type: string - text: - type: string - description: The text to embed - items: - description: The text to embed - minLength: 1 - type: string - required: - - text - type: object - type: array - responses: - '200': - content: - application/json: - schema: - type: object - description: Object with user data. - '400': + description: Returns a list of tasks + '404': content: application/json: schema: properties: errors: items: - properties: - code: - type: string - message: - type: string - required: - - code - - message type: object type: array - result: - type: object success: type: boolean required: - - errors - success - - result + - errors type: object - description: Bad request + description: Object not found security: - api_token: [] - api_email: [] api_key: [] - summary: Execute @cf/baai/bge-small-en-v1.5 model. + summary: Task Search tags: - - Workers AI Text Embeddings + - Workers AI x-api-token-group: - Workers AI Write - Workers AI Read @@ -2001,10 +1545,15 @@ paths: enterprise: true free: true pro: true - /accounts/{account_id}/ai/run/@cf/baai/nonomni-bge-base-en-v1.5: + x-stackql-sdk: + service: ai + resource_chain: + - tasks + method: list + /accounts/{account_id}/ai/tomarkdown: post: - description: Runs inference on the @cf/baai/nonomni-bge-base-en-v1.5 model. - operationId: workers-ai-post-run-cf-baai-nonomni-bge-base-en-v1-5 + description: Converts uploaded files into Markdown format using Workers AI. + operationId: workers-ai-post-to-markdown parameters: - name: account_id in: path @@ -2012,64 +1561,58 @@ paths: description: The Cloudflare account ID. schema: type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string requestBody: content: - application/json: + multipart/form-data: schema: - type: object properties: - pooling: - default: mean - description: The pooling method used in the embedding process. `cls` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is `mean` in order for this to not be a breaking change, but we highly suggest using the new `cls` pooling for better accuracy. - enum: - - mean - - cls - type: string - text: - type: string - description: The text to embed + files: items: - description: The text to embed - minLength: 1 + format: binary type: string - requests: - description: Batch of the embeddings requests to run using async-queue - items: - properties: - pooling: - default: mean - description: The pooling method used in the embedding process. `cls` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is `mean` in order for this to not be a breaking change, but we highly suggest using the new `cls` pooling for better accuracy. - enum: - - mean - - cls - type: string - text: - type: string - description: The text to embed - items: - description: The text to embed - minLength: 1 - type: string - required: - - text - type: object type: array + required: + - files + type: object responses: '200': content: application/json: schema: + properties: + result: + items: + properties: + data: + type: string + x-auditable: true + format: + type: string + x-auditable: true + mimeType: + type: string + x-auditable: true + name: + type: string + x-auditable: true + tokens: + type: string + x-auditable: true + required: + - name + - mimeType + - format + - tokens + - data + type: object + type: array + success: + type: boolean + required: + - success + - result type: object - description: Object with user data. + description: Model Schema '400': content: application/json: @@ -2078,12 +1621,9 @@ paths: errors: items: properties: - code: - type: string message: type: string required: - - code - message type: object type: array @@ -2092,18 +1632,18 @@ paths: success: type: boolean required: - - errors - - success - result + - success + - errors type: object - description: Bad request + description: Bad Request security: - api_token: [] - api_email: [] api_key: [] - summary: Execute @cf/baai/nonomni-bge-base-en-v1.5 model. + summary: Convert Files into Markdown tags: - - Workers AI Text Embeddings + - Workers AI x-api-token-group: - Workers AI Write - Workers AI Read @@ -2115,10 +1655,10 @@ paths: enterprise: true free: true pro: true - /accounts/{account_id}/ai/run/@cf/baai/nonomni-bge-large-en-v1.5: - post: - description: Runs inference on the @cf/baai/nonomni-bge-large-en-v1.5 model. - operationId: workers-ai-post-run-cf-baai-nonomni-bge-large-en-v1-5 + /accounts/{account_id}/ai/tomarkdown/supported: + get: + description: Lists all file formats supported for conversion to Markdown. + operationId: workers-ai-get-to-markdown-supported parameters: - name: account_id in: path @@ -2126,64 +1666,33 @@ paths: description: The Cloudflare account ID. schema: type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - properties: - pooling: - default: mean - description: The pooling method used in the embedding process. `cls` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is `mean` in order for this to not be a breaking change, but we highly suggest using the new `cls` pooling for better accuracy. - enum: - - mean - - cls - type: string - text: - type: string - description: The text to embed - items: - description: The text to embed - minLength: 1 - type: string - requests: - description: Batch of the embeddings requests to run using async-queue - items: - properties: - pooling: - default: mean - description: The pooling method used in the embedding process. `cls` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is `mean` in order for this to not be a breaking change, but we highly suggest using the new `cls` pooling for better accuracy. - enum: - - mean - - cls - type: string - text: - type: string - description: The text to embed - items: - description: The text to embed - minLength: 1 - type: string - required: - - text - type: object - type: array responses: '200': content: application/json: schema: + properties: + result: + items: + properties: + extension: + type: string + x-auditable: true + mimeType: + type: string + x-auditable: true + required: + - extension + - mimeType + type: object + type: array + success: + type: boolean + required: + - success + - result type: object - description: Object with user data. + description: Successful response '400': content: application/json: @@ -2192,12 +1701,9 @@ paths: errors: items: properties: - code: - type: string message: type: string required: - - code - message type: object type: array @@ -2206,18 +1712,18 @@ paths: success: type: boolean required: - - errors - - success - result + - success + - errors type: object - description: Bad request + description: Bad Request security: - api_token: [] - api_email: [] api_key: [] - summary: Execute @cf/baai/nonomni-bge-large-en-v1.5 model. + summary: Get all converted formats supported tags: - - Workers AI Text Embeddings + - Workers AI x-api-token-group: - Workers AI Write - Workers AI Read @@ -2229,98 +1735,195 @@ paths: enterprise: true free: true pro: true - /accounts/{account_id}/ai/run/@cf/baai/nonomni-bge-m3: + x-stackql-sdk: + service: ai + resource_chain: + - to_markdown + method: supported + /accounts/{account_id}/autorag/rags/{id}/ai-search: post: - description: Runs inference on the @cf/baai/nonomni-bge-m3 model. - operationId: workers-ai-post-run-cf-baai-nonomni-bge-m3 + operationId: autorag-config-ai-search parameters: - - name: account_id + - name: id in: path required: true - description: The Cloudflare account ID. + description: Resource ID. schema: type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags + - name: account_id + in: path + required: true + description: The Cloudflare account ID. schema: type: string requestBody: content: application/json: schema: - type: object - title: Input Query and Contexts properties: - contexts: - description: List of provided contexts. Note that the index in this array is important, as the response will refer to it. - items: - properties: - text: - description: One of the provided context content - minLength: 1 - type: string - type: object - type: array + filters: + type: object + properties: + key: + type: string + type: + enum: + - eq + - ne + - gt + - gte + - lt + - lte + type: string + value: + type: string + filters: + items: + properties: + key: + type: string + type: + enum: + - eq + - ne + - gt + - gte + - lt + - lte + type: string + value: + type: string + required: + - key + - type + - value + type: object + type: array + required: + - type + max_num_results: + default: 10 + maximum: 50 + minimum: 1 + type: integer + model: + type: string + enum: + - '@cf/meta/llama-3.3-70b-instruct-fp8-fast' + - '@cf/meta/llama-3.1-8b-instruct-fast' + - '@cf/meta/llama-3.1-8b-instruct-fp8' + - '@cf/meta/llama-4-scout-17b-16e-instruct' + - '@cf/qwen/qwen3-30b-a3b-fp8' + - '@cf/deepseek-ai/deepseek-r1-distill-qwen-32b' + - '@cf/moonshotai/kimi-k2-instruct' + - anthropic/claude-3-7-sonnet + - anthropic/claude-sonnet-4 + - anthropic/claude-opus-4 + - anthropic/claude-3-5-haiku + - cerebras/qwen-3-235b-a22b-instruct + - cerebras/qwen-3-235b-a22b-thinking + - cerebras/llama-3.3-70b + - cerebras/llama-4-maverick-17b-128e-instruct + - cerebras/llama-4-scout-17b-16e-instruct + - cerebras/gpt-oss-120b + - google-ai-studio/gemini-2.5-flash + - google-ai-studio/gemini-2.5-pro + - grok/grok-4 + - groq/llama-3.3-70b-versatile + - groq/llama-3.1-8b-instant + - openai/gpt-5 + - openai/gpt-5-mini + - openai/gpt-5-nano query: - description: A query you wish to perform against the provided contexts. If no query is provided the model with respond with embeddings for contexts - minLength: 1 type: string - truncate_inputs: + ranking_options: + default: {} + properties: + ranker: + type: string + score_threshold: + default: 0.4 + maximum: 1 + minimum: 0 + type: number + type: object + reranking: + properties: + enabled: + default: false + type: boolean + model: + type: string + enum: + - '@cf/baai/bge-reranker-base' + type: object + rewrite_query: default: false - description: When provided with too long context should the model error out or truncate the context to fit? type: boolean - text: + stream: + default: false + type: boolean + system_prompt: type: string - description: The text to embed - items: - description: The text to embed - minLength: 1 - type: string - requests: - description: Batch of the embeddings requests to run using async-queue - items: - type: object - title: Input Query and Contexts + required: + - query + type: object + responses: + '200': + content: + application/json: + schema: + properties: + result: properties: - contexts: - description: List of provided contexts. Note that the index in this array is important, as the response will refer to it. + data: items: properties: - text: - description: One of the provided context content - minLength: 1 + attributes: + type: object + content: + items: + properties: + text: + type: string + type: + type: string + type: object + type: array + file_id: + type: string + filename: type: string + score: + type: number + required: + - score type: object type: array - query: - description: A query you wish to perform against the provided contexts. If no query is provided the model with respond with embeddings for contexts - minLength: 1 - type: string - truncate_inputs: + has_more: default: false - description: When provided with too long context should the model error out or truncate the context to fit? type: boolean - text: + next_page: + nullable: true type: string - description: The text to embed - items: - description: The text to embed - minLength: 1 - type: string - type: array - responses: - '200': - content: - application/json: - schema: + object: + type: string + response: + type: string + search_query: + type: string + required: + - search_query + - response + type: object + success: + type: boolean + required: + - success + - result type: object - description: Object with user data. - '400': + description: Returns the log details + '404': content: application/json: schema: @@ -2329,7 +1932,7 @@ paths: items: properties: code: - type: string + type: number message: type: string required: @@ -2337,39 +1940,42 @@ paths: - message type: object type: array - result: - type: object success: + enum: + - false type: boolean required: - - errors - success - - result + - errors type: object - description: Bad request + description: Not Found security: - api_token: [] - api_email: [] api_key: [] - summary: Execute @cf/baai/nonomni-bge-m3 model. + summary: AI Search tags: - - Workers AI Text Embeddings + - AutoRAG RAG Search x-api-token-group: - - Workers AI Write - - Workers AI Read + - Auto Rag Write x-cfPermissionsRequired: enum: - - com.cloudflare.api.account.ai + - com.cloudflare.api.account.rag x-cfPlanAvailability: business: true enterprise: true free: true pro: true - /accounts/{account_id}/ai/run/@cf/baai/nonomni-bge-small-en-v1.5: - post: - description: Runs inference on the @cf/baai/nonomni-bge-small-en-v1.5 model. - operationId: workers-ai-post-run-cf-baai-nonomni-bge-small-en-v1-5 + /accounts/{account_id}/autorag/rags/{id}/files: + get: + operationId: autorag-config-files parameters: + - name: id + in: path + required: true + description: Resource ID. + schema: + type: string - name: account_id in: path required: true @@ -2377,64 +1983,76 @@ paths: schema: type: string - in: query - name: queueRequest + name: page + schema: + default: 1 + minimum: 1 + type: integer + - in: query + name: per_page + schema: + default: 20 + maximum: 50 + minimum: 0 + type: integer + - in: query + name: search schema: type: string - x-auditable: true - in: query - name: tags + name: status schema: + enum: + - completed + - queued + - running + - error type: string - requestBody: - content: - application/json: - schema: - type: object - properties: - pooling: - default: mean - description: The pooling method used in the embedding process. `cls` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is `mean` in order for this to not be a breaking change, but we highly suggest using the new `cls` pooling for better accuracy. - enum: - - mean - - cls - type: string - text: - type: string - description: The text to embed - items: - description: The text to embed - minLength: 1 - type: string - requests: - description: Batch of the embeddings requests to run using async-queue - items: - properties: - pooling: - default: mean - description: The pooling method used in the embedding process. `cls` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is `mean` in order for this to not be a breaking change, but we highly suggest using the new `cls` pooling for better accuracy. - enum: - - mean - - cls - type: string - text: - type: string - description: The text to embed - items: - description: The text to embed - minLength: 1 - type: string - required: - - text - type: object - type: array responses: '200': content: application/json: schema: + properties: + result: + items: + properties: + error: + type: string + key: + type: string + required: + - key + - error + type: object + type: array + result_info: + properties: + count: + type: integer + page: + type: integer + per_page: + default: 20 + maximum: 50 + minimum: 5 + type: integer + total_count: + type: integer + required: + - count + - page + - total_count + type: object + success: + type: boolean + required: + - success + - result + - result_info type: object - description: Object with user data. - '400': + description: Returns the AI Search files + '404': content: application/json: schema: @@ -2443,7 +2061,7 @@ paths: items: properties: code: - type: string + type: number message: type: string required: @@ -2451,80 +2069,16 @@ paths: - message type: object type: array - result: - type: object success: + enum: + - false type: boolean required: - - errors - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/baai/nonomni-bge-small-en-v1.5 model. - tags: - - Workers AI Text Embeddings - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/black-forest-labs/flux-1-schnell: - post: - description: Runs inference on the @cf/black-forest-labs/flux-1-schnell model. - operationId: workers-ai-post-run-cf-black-forest-labs-flux-1-schnell - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - properties: - prompt: - description: A text description of the image you want to generate. - maxLength: 2048 - minLength: 1 - type: string - steps: - default: 4 - description: The number of diffusion steps; higher values can improve quality but take longer. - maximum: 8 - type: integer - required: - - prompt - type: object - responses: - '200': - content: - application/json: - schema: + - errors type: object - description: Object with user data. - '400': + description: autorag_not_found + '503': content: application/json: schema: @@ -2533,7 +2087,7 @@ paths: items: properties: code: - type: string + type: number message: type: string required: @@ -2541,39 +2095,43 @@ paths: - message type: object type: array - result: - type: object success: + enum: + - false type: boolean required: - - errors - success - - result + - errors type: object - description: Bad request + description: unable_to_connect_to_autorag security: - api_token: [] - api_email: [] api_key: [] - summary: Execute @cf/black-forest-labs/flux-1-schnell model. + summary: Files tags: - - Workers AI Text To Image + - AutoRAG RAG x-api-token-group: - - Workers AI Write - - Workers AI Read + - Auto Rag Write + - Auto Rag Read x-cfPermissionsRequired: enum: - - com.cloudflare.api.account.ai + - com.cloudflare.api.account.rag x-cfPlanAvailability: business: true enterprise: true free: true pro: true - /accounts/{account_id}/ai/run/@cf/black-forest-labs/flux-2-dev: - post: - description: Runs inference on the @cf/black-forest-labs/flux-2-dev model. - operationId: workers-ai-post-run-cf-black-forest-labs-flux-2-dev + /accounts/{account_id}/autorag/rags/{id}/jobs: + get: + operationId: autorag-config-list-jobs parameters: + - name: id + in: path + required: true + description: Resource ID. + schema: + type: string - name: account_id in: path required: true @@ -2581,37 +2139,72 @@ paths: schema: type: string - in: query - name: queueRequest + name: page schema: - type: string - x-auditable: true + default: 1 + minimum: 1 + type: integer - in: query - name: tags + name: per_page schema: - type: string - requestBody: - content: - application/json: - schema: - properties: - multipart: - properties: - body: - type: object - contentType: - type: string - type: object - required: - - multipart - type: object + default: 20 + maximum: 50 + minimum: 0 + type: integer responses: '200': content: application/json: schema: + properties: + result: + items: + properties: + end_reason: + type: string + ended_at: + type: string + id: + type: string + last_seen_at: + type: string + source: + enum: + - user + - schedule + type: string + started_at: + type: string + required: + - id + - source + type: object + type: array + result_info: + properties: + count: + type: integer + page: + type: integer + per_page: + type: integer + total_count: + type: integer + required: + - count + - page + - per_page + - total_count + type: object + success: + type: boolean + required: + - success + - result + - result_info type: object - description: Object with user data. - '400': + description: Returns a list of AutoRAG Jobs + '404': content: application/json: schema: @@ -2620,7 +2213,7 @@ paths: items: properties: code: - type: string + type: number message: type: string required: @@ -2628,77 +2221,116 @@ paths: - message type: object type: array - result: - type: object success: + enum: + - false type: boolean required: + - success - errors + type: object + description: autorag_not_found + '503': + content: + application/json: + schema: + properties: + errors: + items: + properties: + code: + type: number + message: + type: string + required: + - code + - message + type: object + type: array + success: + enum: + - false + type: boolean + required: - success - - result + - errors type: object - description: Bad request + description: unable_to_connect_to_autorag security: - api_token: [] - api_email: [] api_key: [] - summary: Execute @cf/black-forest-labs/flux-2-dev model. + summary: List Jobs tags: - - Workers AI Text To Image + - AutoRAG Jobs x-api-token-group: - - Workers AI Write - - Workers AI Read + - Auto Rag Write + - Auto Rag Read x-cfPermissionsRequired: enum: - - com.cloudflare.api.account.ai + - com.cloudflare.api.account.rag x-cfPlanAvailability: business: true enterprise: true free: true pro: true - /accounts/{account_id}/ai/run/@cf/black-forest-labs/flux-2-klein-4b: - post: - description: Runs inference on the @cf/black-forest-labs/flux-2-klein-4b model. - operationId: workers-ai-post-run-cf-black-forest-labs-flux-2-klein-4b - parameters: - - name: account_id + /accounts/{account_id}/autorag/rags/{id}/jobs/{job_id}: + get: + operationId: autorag-config-get-job + parameters: + - name: id in: path required: true - description: The Cloudflare account ID. + description: Resource ID. schema: type: string - - in: query - name: queueRequest + - name: job_id + in: path + required: true + description: The job ID. schema: type: string - x-auditable: true - - in: query - name: tags + - name: account_id + in: path + required: true + description: The Cloudflare account ID. schema: type: string - requestBody: - content: - application/json: - schema: - properties: - multipart: - properties: - body: - type: object - contentType: - type: string - type: object - required: - - multipart - type: object responses: '200': content: application/json: schema: + properties: + result: + properties: + end_reason: + type: string + ended_at: + type: string + id: + type: string + last_seen_at: + type: string + source: + enum: + - user + - schedule + type: string + started_at: + type: string + required: + - id + - source + type: object + success: + type: boolean + required: + - success + - result type: object - description: Object with user data. - '400': + description: Returns a AutoRAG Job Details + '404': content: application/json: schema: @@ -2707,7 +2339,7 @@ paths: items: properties: code: - type: string + type: number message: type: string required: @@ -2715,39 +2347,75 @@ paths: - message type: object type: array - result: - type: object success: + enum: + - false type: boolean required: + - success - errors + type: object + description: job_not_found + '503': + content: + application/json: + schema: + properties: + errors: + items: + properties: + code: + type: number + message: + type: string + required: + - code + - message + type: object + type: array + success: + enum: + - false + type: boolean + required: - success - - result + - errors type: object - description: Bad request + description: unable_to_connect_to_autorag security: - api_token: [] - api_email: [] api_key: [] - summary: Execute @cf/black-forest-labs/flux-2-klein-4b model. + summary: Get a Job Details tags: - - Workers AI Text To Image + - AutoRAG Jobs x-api-token-group: - - Workers AI Write - - Workers AI Read + - Auto Rag Write + - Auto Rag Read x-cfPermissionsRequired: enum: - - com.cloudflare.api.account.ai + - com.cloudflare.api.account.rag x-cfPlanAvailability: business: true enterprise: true free: true pro: true - /accounts/{account_id}/ai/run/@cf/black-forest-labs/flux-2-klein-9b: - post: - description: Runs inference on the @cf/black-forest-labs/flux-2-klein-9b model. - operationId: workers-ai-post-run-cf-black-forest-labs-flux-2-klein-9b + /accounts/{account_id}/autorag/rags/{id}/jobs/{job_id}/logs: + get: + operationId: autorag-config-list-job-logs parameters: + - name: id + in: path + required: true + description: Resource ID. + schema: + type: string + - name: job_id + in: path + required: true + description: The job ID. + schema: + type: string - name: account_id in: path required: true @@ -2755,37 +2423,68 @@ paths: schema: type: string - in: query - name: queueRequest + name: page schema: - type: string - x-auditable: true + default: 1 + minimum: 1 + type: integer - in: query - name: tags + name: per_page schema: - type: string - requestBody: - content: - application/json: - schema: - properties: - multipart: - properties: - body: - type: object - contentType: - type: string - type: object - required: - - multipart - type: object + default: 20 + maximum: 500 + minimum: 0 + type: integer responses: '200': content: application/json: schema: + properties: + result: + items: + properties: + created_at: + type: number + readOnly: true + id: + type: integer + message: + type: string + message_type: + type: integer + required: + - id + - message + - message_type + - created_at + type: object + type: array + result_info: + properties: + count: + type: integer + page: + type: integer + per_page: + type: integer + total_count: + type: integer + required: + - count + - page + - per_page + - total_count + type: object + success: + type: boolean + required: + - success + - result + - result_info type: object - description: Object with user data. - '400': + description: Returns a list of AutoRAG Job Logs + '404': content: application/json: schema: @@ -2794,7 +2493,7 @@ paths: items: properties: code: - type: string + type: number message: type: string required: @@ -2802,52 +2501,73 @@ paths: - message type: object type: array - result: - type: object success: + enum: + - false type: boolean required: + - success - errors + type: object + description: autorag_not_found + '503': + content: + application/json: + schema: + properties: + errors: + items: + properties: + code: + type: number + message: + type: string + required: + - code + - message + type: object + type: array + success: + enum: + - false + type: boolean + required: - success - - result + - errors type: object - description: Bad request + description: unable_to_connect_to_autorag security: - api_token: [] - api_email: [] api_key: [] - summary: Execute @cf/black-forest-labs/flux-2-klein-9b model. + summary: List Job Logs tags: - - Workers AI Text To Image + - AutoRAG Jobs x-api-token-group: - - Workers AI Write - - Workers AI Read + - Auto Rag Write + - Auto Rag Read x-cfPermissionsRequired: enum: - - com.cloudflare.api.account.ai + - com.cloudflare.api.account.rag x-cfPlanAvailability: business: true enterprise: true free: true pro: true - /accounts/{account_id}/ai/run/@cf/bytedance/stable-diffusion-xl-lightning: + /accounts/{account_id}/autorag/rags/{id}/search: post: - description: Runs inference on the @cf/bytedance/stable-diffusion-xl-lightning model. - operationId: workers-ai-post-run-cf-bytedance-stable-diffusion-xl-lightning + operationId: autorag-config-search parameters: - - name: account_id + - name: id in: path required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest + description: Resource ID. schema: type: string - x-auditable: true - - in: query - name: tags + - name: account_id + in: path + required: true + description: The Cloudflare account ID. schema: type: string requestBody: @@ -2855,69 +2575,133 @@ paths: application/json: schema: properties: - guidance: - default: 7.5 - description: Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt - type: number - height: - description: The height of the generated image in pixels - maximum: 2048 - minimum: 256 - type: integer - image: - description: For use with img2img tasks. An array of integers that represent the image data constrained to 8-bit unsigned integer values - items: - description: A value between 0 and 255 - type: number - type: array - image_b64: - description: For use with img2img tasks. A base64-encoded string of the input image - type: string - mask: - description: An array representing An array of integers that represent mask image data for inpainting constrained to 8-bit unsigned integer values - items: - description: A value between 0 and 255 - type: number - type: array - negative_prompt: - description: Text describing elements to avoid in the generated image - type: string - num_steps: - default: 20 - description: The number of diffusion steps; higher values can improve quality but take longer - maximum: 20 + filters: + type: object + properties: + key: + type: string + type: + enum: + - eq + - ne + - gt + - gte + - lt + - lte + type: string + value: + type: string + filters: + items: + properties: + key: + type: string + type: + enum: + - eq + - ne + - gt + - gte + - lt + - lte + type: string + value: + type: string + required: + - key + - type + - value + type: object + type: array + required: + - type + max_num_results: + default: 10 + maximum: 50 + minimum: 1 type: integer - prompt: - description: A text description of the image you want to generate - minLength: 1 + query: type: string - seed: - description: Random seed for reproducibility of the image generation - type: integer - strength: - default: 1 - 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 - type: number - width: - description: The width of the generated image in pixels - maximum: 2048 - minimum: 256 - type: integer + ranking_options: + default: {} + properties: + ranker: + type: string + score_threshold: + default: 0.4 + maximum: 1 + minimum: 0 + type: number + type: object + reranking: + properties: + enabled: + default: false + type: boolean + model: + type: string + enum: + - '@cf/baai/bge-reranker-base' + type: object + rewrite_query: + default: false + type: boolean required: - - prompt + - query type: object responses: '200': content: application/json: schema: + properties: + result: + properties: + data: + items: + properties: + attributes: + type: object + content: + items: + properties: + text: + type: string + type: + type: string + type: object + type: array + file_id: + type: string + filename: + type: string + score: + type: number + required: + - score + type: object + type: array + has_more: + default: false + type: boolean + next_page: + nullable: true + type: string + object: + type: string + search_query: + type: string + required: + - search_query + type: object + success: + type: boolean + required: + - success + - result type: object - image/png: - schema: - format: binary - type: string - description: Object with user data. - '400': + description: Returns the log details + '404': content: application/json: schema: @@ -2926,7 +2710,7 @@ paths: items: properties: code: - type: string + type: number message: type: string required: @@ -2934,117 +2718,68 @@ paths: - message type: object type: array - result: - type: object success: + enum: + - false type: boolean required: - - errors - success - - result + - errors type: object - description: Bad request + description: Not Found security: - api_token: [] - api_email: [] api_key: [] - summary: Execute @cf/bytedance/stable-diffusion-xl-lightning model. + summary: Search tags: - - Workers AI Text To Image + - AutoRAG RAG Search x-api-token-group: - - Workers AI Write - - Workers AI Read + - Auto Rag Write x-cfPermissionsRequired: enum: - - com.cloudflare.api.account.ai + - com.cloudflare.api.account.rag x-cfPlanAvailability: business: true enterprise: true free: true pro: true - /accounts/{account_id}/ai/run/@cf/deepgram/aura-1: - post: - description: Runs inference on the @cf/deepgram/aura-1 model. - operationId: workers-ai-post-run-cf-deepgram-aura-1 + /accounts/{account_id}/autorag/rags/{id}/sync: + patch: + operationId: autorag-config-sync parameters: - - name: account_id + - name: id in: path required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest + description: Resource ID. schema: type: string - x-auditable: true - - in: query - name: tags + - name: account_id + in: path + required: true + description: The Cloudflare account ID. schema: type: string - requestBody: - content: - application/json: - schema: - properties: - bit_rate: - description: The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type. - type: number - container: - description: Container specifies the file format wrapper for the output audio. The available options depend on the encoding type.. - enum: - - none - - wav - - ogg - type: string - encoding: - description: Encoding of the output audio. - enum: - - linear16 - - flac - - mulaw - - alaw - - mp3 - - opus - - aac - type: string - sample_rate: - description: Sample Rate specifies the sample rate for the output audio. Based on the encoding, different sample rates are supported. For some encodings, the sample rate is not configurable - type: number - speaker: - default: angus - description: Speaker used to produce the audio. - enum: - - angus - - asteria - - arcas - - orion - - orpheus - - athena - - luna - - zeus - - perseus - - helios - - hera - - stella - type: string - text: - description: The text content to be converted to speech - type: string - required: - - text - type: object responses: '200': content: application/json: schema: + properties: + result: + properties: + job_id: + type: string + required: + - job_id + type: object + success: + type: boolean + required: + - success + - result type: object - audio/mpeg: - schema: - format: binary - type: string - description: Object with user data. + description: Returns the autorag sync status '400': content: application/json: @@ -3054,7 +2789,7 @@ paths: items: properties: code: - type: string + type: number message: type: string required: @@ -3062,146 +2797,16 @@ paths: - message type: object type: array - result: - type: object success: + enum: + - false type: boolean required: - - errors - success - - result + - errors type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/deepgram/aura-1 model. - tags: - - Workers AI Text To Speech - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/deepgram/aura-2-en: - post: - description: Runs inference on the @cf/deepgram/aura-2-en model. - operationId: workers-ai-post-run-cf-deepgram-aura-2-en - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - properties: - bit_rate: - description: The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type. - type: number - container: - description: Container specifies the file format wrapper for the output audio. The available options depend on the encoding type.. - enum: - - none - - wav - - ogg - type: string - encoding: - description: Encoding of the output audio. - enum: - - linear16 - - flac - - mulaw - - alaw - - mp3 - - opus - - aac - type: string - sample_rate: - description: Sample Rate specifies the sample rate for the output audio. Based on the encoding, different sample rates are supported. For some encodings, the sample rate is not configurable - type: number - speaker: - default: luna - description: Speaker used to produce the audio. - enum: - - amalthea - - andromeda - - apollo - - arcas - - aries - - asteria - - athena - - atlas - - aurora - - callista - - cora - - cordelia - - delia - - draco - - electra - - harmonia - - helena - - hera - - hermes - - hyperion - - iris - - janus - - juno - - jupiter - - luna - - mars - - minerva - - neptune - - odysseus - - ophelia - - orion - - orpheus - - pandora - - phoebe - - pluto - - saturn - - thalia - - theia - - vesta - - zeus - type: string - text: - description: The text content to be converted to speech - type: string - required: - - text - type: object - responses: - '200': - content: - application/json: - schema: - type: object - audio/mpeg: - schema: - format: binary - type: string - description: Object with user data. - '400': + description: autorag_is_paused + '404': content: application/json: schema: @@ -3210,7 +2815,7 @@ paths: items: properties: code: - type: string + type: number message: type: string required: @@ -3218,116 +2823,16 @@ paths: - message type: object type: array - result: - type: object success: + enum: + - false type: boolean required: - - errors - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/deepgram/aura-2-en model. - tags: - - Workers AI Text To Speech - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/deepgram/aura-2-es: - post: - description: Runs inference on the @cf/deepgram/aura-2-es model. - operationId: workers-ai-post-run-cf-deepgram-aura-2-es - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - properties: - bit_rate: - description: The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type. - type: number - container: - description: Container specifies the file format wrapper for the output audio. The available options depend on the encoding type.. - enum: - - none - - wav - - ogg - type: string - encoding: - description: Encoding of the output audio. - enum: - - linear16 - - flac - - mulaw - - alaw - - mp3 - - opus - - aac - type: string - sample_rate: - description: Sample Rate specifies the sample rate for the output audio. Based on the encoding, different sample rates are supported. For some encodings, the sample rate is not configurable - type: number - speaker: - default: aquila - description: Speaker used to produce the audio. - enum: - - sirio - - nestor - - carina - - celeste - - alvaro - - diana - - aquila - - selena - - estrella - - javier - type: string - text: - description: The text content to be converted to speech - type: string - required: - - text - type: object - responses: - '200': - content: - application/json: - schema: + - errors type: object - audio/mpeg: - schema: - format: binary - type: string - description: Object with user data. - '400': + description: autorag_not_found + '429': content: application/json: schema: @@ -3336,7 +2841,7 @@ paths: items: properties: code: - type: string + type: number message: type: string required: @@ -3344,103 +2849,16 @@ paths: - message type: object type: array - result: - type: object success: + enum: + - false type: boolean required: - - errors - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/deepgram/aura-2-es model. - tags: - - Workers AI Text To Speech - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/deepgram/flux: - post: - description: Runs inference on the @cf/deepgram/flux model. - operationId: workers-ai-post-run-cf-deepgram-flux - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - properties: - eager_eot_threshold: - description: End-of-turn confidence required to fire an eager end-of-turn event. When set, enables EagerEndOfTurn and TurnResumed events. Valid Values 0.3 - 0.9. - type: string - encoding: - description: Encoding of the audio stream. Currently only supports raw signed little-endian 16-bit PCM. - enum: - - linear16 - type: string - eot_threshold: - default: '0.7' - description: End-of-turn confidence required to finish a turn. Valid Values 0.5 - 0.9. - type: string - eot_timeout_ms: - default: '5000' - description: A turn will be finished when this much time has passed after speech, regardless of EOT confidence. - type: string - keyterm: - description: Keyterm prompting can improve recognition of specialized terminology. Pass multiple keyterm query parameters to boost multiple keyterms. - type: string - mip_opt_out: - default: 'false' - description: Opts out requests from the Deepgram Model Improvement Program. Refer to Deepgram Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip - enum: - - 'true' - - 'false' - type: string - sample_rate: - description: Sample rate of the audio stream in Hz. - type: string - tag: - description: Label your requests for the purpose of identification during usage reporting - type: string - required: - - sample_rate - - encoding - type: object - responses: - '200': - content: - application/json: - schema: + - errors type: object - description: Object with user data. - '400': + description: sync_in_cooldown + '503': content: application/json: schema: @@ -3449,7 +2867,7 @@ paths: items: properties: code: - type: string + type: number message: type: string required: @@ -3457,23607 +2875,2406 @@ paths: - message type: object type: array - result: - type: object success: + enum: + - false type: boolean required: - - errors - success - - result + - errors type: object - description: Bad request + description: unable_to_connect_to_autorag security: - api_token: [] - api_email: [] api_key: [] - summary: Execute @cf/deepgram/flux model. + summary: Sync tags: - - Workers AI Automatic Speech Recognition + - AutoRAG RAG x-api-token-group: - - Workers AI Write - - Workers AI Read + - Auto Rag Write x-cfPermissionsRequired: enum: - - com.cloudflare.api.account.ai + - com.cloudflare.api.account.rag x-cfPlanAvailability: business: true enterprise: true free: true pro: true - /accounts/{account_id}/ai/run/@cf/deepgram/nova-3: - post: - description: Runs inference on the @cf/deepgram/nova-3 model. - operationId: workers-ai-post-run-cf-deepgram-nova-3 - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: +components: + schemas: + stackqlWorkersAiPostRunCfFacebookNonomniDetrResnet50Body: + type: object + required: + - value + properties: + value: + format: binary + type: string + stackqlWorkersAiPostRunCfMicrosoftNonomniResnet50Body: + type: object + required: + - value + properties: + value: + format: binary + type: string + stackqlWorkersAiPostRunCfMicrosoftResnet50Body: + type: object + required: + - value + properties: + value: + format: binary + type: string + stackqlWorkersAiPostRunCfOpenaiWhisperBody: + type: object + required: + - value + properties: + value: + format: binary + type: string + stackqlWorkersAiPostRunCfOpenaiWhisperTinyEnBody: + type: object + required: + - value + properties: + value: + format: binary + type: string + stackqlAiRunResponseEnvelope: + type: object + description: Union response envelope for Workers AI run operations (synthesised by stackql). + properties: + result: + type: object + properties: + model: + type: string + description: Echo of the model name, where reported. + response: + type: string + description: The generated text response from the model. + usage: + type: object + description: Token usage counts (prompt_tokens, completion_tokens, total_tokens). + tool_calls: + type: array + items: + type: object + description: Tool call requests emitted by the model, if tools were provided. + shape: + type: array + items: + type: integer + description: Dimensions of the returned embedding matrix. + data: + type: array + items: + type: array + items: + type: number + description: Embedding vectors, one per input text. + pooling: + type: string + description: Pooling method used (cls or mean), where applicable. + text: + type: string + description: The transcribed text. + word_count: + type: number + description: Number of words in the transcription, where reported. + words: + type: array + items: + type: object + description: Per-word timing detail, where reported. + vtt: + type: string + description: WebVTT formatted transcription, where reported. + transcription_info: + type: object + description: Model/language detail, where reported. + translated_text: + type: string + description: The translated text. + summary: + type: string + description: The summarized text. + success: + type: boolean + errors: + type: array + items: + type: object + messages: + type: array + items: + type: string + contents: + type: string + description: Raw response payload (binary or non-object results), used by contents-mode families. + stackqlAiTextGenerationRunInput: + type: object + description: Union of request properties across the text_generation member models (synthesised by stackql). + properties: + frequency_penalty: + description: Decreases the likelihood of the model repeating the same lines verbatim. + maximum: 2 + minimum: -2 + type: number + lora: + description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. type: string - x-auditable: true - - in: query - name: tags - schema: + max_tokens: + default: 2000 + description: The maximum number of tokens to generate in the response. + type: integer + presence_penalty: + description: Increases the likelihood of the model introducing new topics. + maximum: 2 + minimum: -2 + type: number + prompt: + description: The input text prompt for the model to generate a response. + minLength: 1 type: string - requestBody: - content: - application/json: - schema: - properties: - audio: - properties: - body: - type: object - contentType: - type: string - required: - - body - - contentType - type: object - channels: - description: The number of channels in the submitted audio - type: number - custom_intent: - description: Custom intents you want the model to detect within your input audio if present - type: string - custom_intent_mode: - description: Sets how the model will interpret intents submitted to the custom_intent param. When strict, the model will only return intents submitted using the custom_intent param. When extended, the model will return its own detected intents in addition those submitted using the custom_intents param - enum: - - extended - - strict - type: string - custom_topic: - description: Custom topics you want the model to detect within your input audio or text if present Submit up to 100 - type: string - custom_topic_mode: - description: Sets how the model will interpret strings submitted to the custom_topic param. When strict, the model will only return topics submitted using the custom_topic param. When extended, the model will return its own detected topics in addition to those submitted using the custom_topic param. - enum: - - extended - - strict - type: string - detect_entities: - description: Identifies and extracts key entities from content in submitted audio - type: boolean - detect_language: - description: Identifies the dominant language spoken in submitted audio - type: boolean - diarize: - description: Recognize speaker changes. Each word in the transcript will be assigned a speaker number starting at 0 - type: boolean - dictation: - description: Identify and extract key entities from content in submitted audio - type: boolean - encoding: - description: Specify the expected encoding of your submitted audio - enum: - - linear16 - - flac - - mulaw - - amr-nb - - amr-wb - - opus - - speex - - g729 - type: string - endpointing: - description: Indicates how long model will wait to detect whether a speaker has finished speaking or pauses for a significant period of time. When set to a value, the streaming endpoint immediately finalizes the transcription for the processed time range and returns the transcript with a speech_final parameter set to true. Can also be set to false to disable endpointing - type: string - extra: - description: Arbitrary key-value pairs that are attached to the API response for usage in downstream processing - type: string - filler_words: - description: Filler Words can help transcribe interruptions in your audio, like 'uh' and 'um' - type: boolean - interim_results: - description: 'Specifies whether the streaming endpoint should provide ongoing transcription updates as more audio is received. When set to true, the endpoint sends continuous updates, meaning transcription results may evolve over time. Note: Supported only for webosockets.' - type: boolean - keyterm: - description: Key term prompting can boost or suppress specialized terminology and brands. - type: string - keywords: - description: Keywords can boost or suppress specialized terminology and brands. - type: string - language: - description: The BCP-47 language tag that hints at the primary spoken language. Depending on the Model and API endpoint you choose only certain languages are available. - type: string - measurements: - description: Spoken measurements will be converted to their corresponding abbreviations. - type: boolean - mip_opt_out: - description: Opts out requests from the Deepgram Model Improvement Program. Refer to our Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip. - type: boolean - mode: - description: Mode of operation for the model representing broad area of topic that will be talked about in the supplied audio - enum: - - general - - medical - - finance - type: string - multichannel: - description: Transcribe each audio channel independently. - type: boolean - numerals: - description: Numerals converts numbers from written format to numerical format. - type: boolean - paragraphs: - description: Splits audio into paragraphs to improve transcript readability. - type: boolean - profanity_filter: - description: Profanity Filter looks for recognized profanity and converts it to the nearest recognized non-profane word or removes it from the transcript completely. - type: boolean - punctuate: - description: Add punctuation and capitalization to the transcript. - type: boolean - redact: - description: Redaction removes sensitive information from your transcripts. - type: string - replace: - description: Search for terms or phrases in submitted audio and replaces them. - type: string - search: - description: Search for terms or phrases in submitted audio. - type: string - sentiment: - description: Recognizes the sentiment throughout a transcript or text. - type: boolean - smart_format: - description: Apply formatting to transcript output. When set to true, additional formatting will be applied to transcripts to improve readability. - type: boolean - topics: - description: Detect topics throughout a transcript or text. - type: boolean - utt_split: - description: Seconds to wait before detecting a pause between words in submitted audio. - type: number - utterance_end_ms: - description: 'Indicates how long model will wait to send an UtteranceEnd message after a word has been transcribed. Use with interim_results. Note: Supported only for webosockets.' - type: boolean - utterances: - description: Segments speech into meaningful semantic units. - type: boolean - vad_events: - description: 'Indicates that speech has started. You''ll begin receiving Speech Started messages upon speech starting. Note: Supported only for webosockets.' - type: boolean - required: - - audio - type: object - responses: - '200': - content: - application/json: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: + raw: + default: false + description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + type: boolean + repetition_penalty: + description: Penalty for repeated tokens; higher values discourage repetition. + maximum: 2 + minimum: 0 + type: number + response_format: + properties: + json_schema: {} + type: + enum: + - json_object + - json_schema + type: string + title: JSON Mode + type: object + seed: + description: Random seed for reproducibility of the generation. + maximum: 9999999999 + minimum: 1 + type: integer + stream: + default: false + description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. + type: boolean + temperature: + default: 0.6 + description: Controls the randomness of the output; higher values produce more random results. + maximum: 5 + minimum: 0 + type: number + top_k: + 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. + maximum: 50 + minimum: 1 + type: integer + top_p: + 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. + maximum: 1 + minimum: 0.001 + type: number + functions: + items: + properties: + code: + type: string + name: + type: string + required: + - name + - code + type: object + type: array + messages: + description: An array of message objects representing the conversation history. + items: + properties: + content: + type: string + description: The content of the message as a string. + items: + properties: + text: + description: Text content + type: string + type: + description: Type of the content (text) + type: string + type: object + role: + description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). + type: string + required: + - role + - content + type: object + type: array + tools: + description: A list of tools available for the assistant to use. + items: + type: object + properties: + description: + description: A brief description of what the tool does. + type: string + name: + description: The name of the tool. More descriptive the better. + type: string + parameters: + description: Schema defining the parameters accepted by the tool. properties: - errors: + properties: + description: Definitions of each parameter. + type: object + required: + description: List of required parameter names. items: + type: string + type: array + type: + description: The type of the parameters object (usually 'object'). + type: string + required: + - type + - properties + type: object + function: + description: Details of the function tool. + properties: + description: + description: A brief description of what the function does. + type: string + name: + description: The name of the function. + type: string + parameters: + description: Schema defining the parameters accepted by the function. + properties: properties: - code: + description: Definitions of each parameter. + type: object + required: + description: List of required parameter names. + items: type: string - message: + type: array + type: + description: The type of the parameters object (usually 'object'). + type: string + required: + - type + - properties + type: object + required: + - name + - description + - parameters + type: object + type: + description: Specifies the type of tool (e.g., 'function'). + type: string + type: array + requests: + items: + type: object + title: Prompt + properties: + frequency_penalty: + description: Decreases the likelihood of the model repeating the same lines verbatim. + maximum: 2 + minimum: -2 + type: number + lora: + description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. + type: string + max_tokens: + default: 256 + description: The maximum number of tokens to generate in the response. + type: integer + presence_penalty: + description: Increases the likelihood of the model introducing new topics. + maximum: 2 + minimum: -2 + type: number + prompt: + description: The input text prompt for the model to generate a response. + minLength: 1 + type: string + raw: + default: false + description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + type: boolean + repetition_penalty: + description: Penalty for repeated tokens; higher values discourage repetition. + maximum: 2 + minimum: 0 + type: number + response_format: + properties: + json_schema: {} + type: + enum: + - json_object + - json_schema + type: string + title: JSON Mode + type: object + seed: + description: Random seed for reproducibility of the generation. + maximum: 9999999999 + minimum: 1 + type: integer + stream: + default: false + description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. + type: boolean + temperature: + default: 0.6 + description: Controls the randomness of the output; higher values produce more random results. + maximum: 5 + minimum: 0 + type: number + top_k: + 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. + maximum: 50 + minimum: 1 + type: integer + top_p: + 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. + maximum: 1 + minimum: 0.001 + type: number + functions: + items: + properties: + code: + type: string + name: + type: string + required: + - name + - code + type: object + type: array + messages: + description: An array of message objects representing the conversation history. + items: + properties: + content: + type: string + description: The content of the message as a string. + items: + properties: + text: + description: Text content + type: string + type: + description: Type of the content (text) + type: string + type: object + role: + description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). + type: string + required: + - role + - content + type: object + type: array + tools: + description: A list of tools available for the assistant to use. + items: + type: object + properties: + description: + description: A brief description of what the tool does. + type: string + name: + description: The name of the tool. More descriptive the better. + type: string + parameters: + description: Schema defining the parameters accepted by the tool. + properties: + properties: + description: Definitions of each parameter. + type: object + required: + description: List of required parameter names. + items: + type: string + type: array + type: + description: The type of the parameters object (usually 'object'). type: string required: - - code - - message + - type + - properties type: object - type: array - result: - type: object - success: - type: boolean + function: + description: Details of the function tool. + properties: + description: + description: A brief description of what the function does. + type: string + name: + description: The name of the function. + type: string + parameters: + description: Schema defining the parameters accepted by the function. + properties: + properties: + description: Definitions of each parameter. + type: object + required: + description: List of required parameter names. + items: + type: string + type: array + type: + description: The type of the parameters object (usually 'object'). + type: string + required: + - type + - properties + type: object + required: + - name + - description + - parameters + type: object + type: + description: Specifies the type of tool (e.g., 'function'). + type: string + type: array + type: array + guided_json: + description: JSON schema that should be fufilled for the response. + type: object + image: + type: array + description: An array of integers that represent the image data constrained to 8-bit unsigned integer values. Deprecated, use image as a part of messages now. + items: + description: A value between 0 and 255 + type: number + format: binary + audio: + description: Parameters for audio output. Required when modalities includes 'audio'. + properties: + format: + enum: + - wav + - aac + - mp3 + - flac + - opus + - pcm16 + type: string + voice: + type: string + properties: + id: + type: string + required: + - id + required: + - voice + - format + type: object + chat_template_kwargs: + properties: + clear_thinking: + default: false + description: If false, preserves reasoning context between turns. + type: boolean + enable_thinking: + default: true + description: Whether to enable reasoning, enabled by default. + type: boolean + type: object + function_call: + type: string + enum: + - none + - auto + properties: + name: + type: string + required: + - name + logit_bias: + nullable: true + type: object + logprobs: + nullable: true + type: boolean + max_completion_tokens: + nullable: true + type: integer + metadata: + nullable: true + type: object + modalities: + items: + enum: + - text + - audio + type: string + nullable: true + type: array + model: + description: ID of the model to use (e.g. '@cf/zai-org/glm-4.7-flash, etc'). + type: string + 'n': + maximum: 128 + minimum: 1 + nullable: true + type: integer + parallel_tool_calls: + default: true + description: Whether to enable parallel function calling during tool use. + type: boolean + prediction: + properties: + content: + type: string + items: + properties: + text: + type: string + type: + enum: + - text + type: string required: - - errors - - success - - result + - type + - text type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/deepgram/nova-3 model. - tags: - - Workers AI Automatic Speech Recognition - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/deepseek-ai/deepseek-math-7b-instruct: - post: - description: Runs inference on the @cf/deepseek-ai/deepseek-math-7b-instruct model. - operationId: workers-ai-post-run-cf-deepseek-ai-deepseek-math-7b-instruct - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: + type: + enum: + - content + type: string + required: + - type + - content + type: object + reasoning_effort: + enum: + - low + - medium + - high + nullable: true type: string - x-auditable: true - - in: query - name: tags - schema: + service_tier: + enum: + - auto + - default + - flex + - scale + - priority + nullable: true + type: string + stop: + type: string + items: + type: string + store: + nullable: true + type: boolean + stream_options: + properties: + include_obfuscation: + type: boolean + include_usage: + type: boolean + type: object + tool_choice: + description: Controls which (if any) tool is called by the model. 'none' = no tools, 'auto' = model decides, 'required' = must call a tool. type: string - requestBody: - content: - application/json: - schema: + enum: + - none + - auto + - required + properties: + function: + properties: + name: + type: string + required: + - name type: object - title: Prompt + type: + enum: + - function + type: string + custom: properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. + name: type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. + required: + - name + type: object + allowed_tools: + properties: + mode: + enum: + - auto + - required + type: string + tools: + items: + type: object + type: array + required: + - mode + - tools + type: object + required: + - type + top_logprobs: + maximum: 20 + minimum: 0 + nullable: true + type: integer + user: + description: A unique identifier representing your end-user, for abuse monitoring. + type: string + web_search_options: + description: Options for the web search tool (when using built-in web search). + properties: + search_context_size: + default: medium + enum: + - low + - medium + - high + type: string + user_location: + properties: + approximate: + properties: + city: + type: string + country: + type: string + region: + type: string + timezone: + type: string + type: object + type: + enum: + - approximate + type: string + required: + - type + - approximate + type: object + type: object + input: + description: Responses API Input messages. Refer to OpenAI Responses API docs to learn more about supported content types + type: string + items: {} + reasoning: + properties: + effort: + description: Constrains effort on reasoning for reasoning models. Currently supported values are low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. + enum: + - low + - medium + - high + type: string + summary: + description: A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. One of auto, concise, or detailed. + enum: + - auto + - concise + - detailed + type: string + type: object + stackqlAiTextEmbeddingsRunInput: + type: object + description: Union of request properties across the text_embeddings member models (synthesised by stackql). + properties: + pooling: + default: mean + description: The pooling method used in the embedding process. `cls` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is `mean` in order for this to not be a breaking change, but we highly suggest using the new `cls` pooling for better accuracy. + enum: + - mean + - cls + type: string + text: + type: string + description: The text to embed + items: + description: The text to embed + minLength: 1 + type: string + requests: + description: Batch of the embeddings requests to run using async-queue + items: + properties: + pooling: + default: mean + description: The pooling method used in the embedding process. `cls` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is `mean` in order for this to not be a breaking change, but we highly suggest using the new `cls` pooling for better accuracy. + enum: + - mean + - cls + type: string + text: + type: string + description: The text to embed + items: + description: The text to embed minLength: 1 type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: + required: + - text + type: object + type: array + contexts: + description: List of provided contexts. Note that the index in this array is important, as the response will refer to it. + items: + properties: + text: + description: One of the provided context content + minLength: 1 + type: string + type: object + type: array + query: + description: A query you wish to perform against the provided contexts. If no query is provided the model with respond with embeddings for contexts + minLength: 1 + type: string + truncate_inputs: + default: false + description: When provided with too long context should the model error out or truncate the context to fit? + type: boolean + documents: + type: string + description: A single document string + items: + minLength: 1 + type: string + instruction: + default: Given a web search query, retrieve relevant passages that answer the query + description: Optional instruction for the task + type: string + queries: + type: string + description: A single query string + items: + minLength: 1 + type: string + stackqlAiSpeechToTextRunInput: + type: object + description: Union of request properties across the speech_to_text member models (synthesised by stackql). + properties: + eager_eot_threshold: + description: End-of-turn confidence required to fire an eager end-of-turn event. When set, enables EagerEndOfTurn and TurnResumed events. Valid Values 0.3 - 0.9. + type: string + encoding: + description: Encoding of the audio stream. Currently only supports raw signed little-endian 16-bit PCM. + enum: + - linear16 + type: string + eot_threshold: + default: '0.7' + description: End-of-turn confidence required to finish a turn. Valid Values 0.5 - 0.9. + type: string + eot_timeout_ms: + default: '5000' + description: A turn will be finished when this much time has passed after speech, regardless of EOT confidence. + type: string + keyterm: + description: Keyterm prompting can improve recognition of specialized terminology. Pass multiple keyterm query parameters to boost multiple keyterms. + type: string + mip_opt_out: + default: 'false' + description: Opts out requests from the Deepgram Model Improvement Program. Refer to Deepgram Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip + enum: + - 'true' + - 'false' + type: string + sample_rate: + description: Sample rate of the audio stream in Hz. + type: string + tag: + description: Label your requests for the purpose of identification during usage reporting + type: string + audio: + properties: + body: + type: object + contentType: + type: string + required: + - body + - contentType + type: object + channels: + description: The number of channels in the submitted audio + type: number + custom_intent: + description: Custom intents you want the model to detect within your input audio if present + type: string + custom_intent_mode: + description: Sets how the model will interpret intents submitted to the custom_intent param. When strict, the model will only return intents submitted using the custom_intent param. When extended, the model will return its own detected intents in addition those submitted using the custom_intents param + enum: + - extended + - strict + type: string + custom_topic: + description: Custom topics you want the model to detect within your input audio or text if present Submit up to 100 + type: string + custom_topic_mode: + description: Sets how the model will interpret strings submitted to the custom_topic param. When strict, the model will only return topics submitted using the custom_topic param. When extended, the model will return its own detected topics in addition to those submitted using the custom_topic param. + enum: + - extended + - strict + type: string + detect_entities: + description: Identifies and extracts key entities from content in submitted audio + type: boolean + detect_language: + description: Identifies the dominant language spoken in submitted audio + type: boolean + diarize: + description: Recognize speaker changes. Each word in the transcript will be assigned a speaker number starting at 0 + type: boolean + dictation: + description: Identify and extract key entities from content in submitted audio + type: boolean + endpointing: + description: Indicates how long model will wait to detect whether a speaker has finished speaking or pauses for a significant period of time. When set to a value, the streaming endpoint immediately finalizes the transcription for the processed time range and returns the transcript with a speech_final parameter set to true. Can also be set to false to disable endpointing + type: string + extra: + description: Arbitrary key-value pairs that are attached to the API response for usage in downstream processing + type: string + filler_words: + description: Filler Words can help transcribe interruptions in your audio, like 'uh' and 'um' + type: boolean + interim_results: + description: 'Specifies whether the streaming endpoint should provide ongoing transcription updates as more audio is received. When set to true, the endpoint sends continuous updates, meaning transcription results may evolve over time. Note: Supported only for webosockets.' + type: boolean + keywords: + description: Keywords can boost or suppress specialized terminology and brands. + type: string + language: + description: The BCP-47 language tag that hints at the primary spoken language. Depending on the Model and API endpoint you choose only certain languages are available. + type: string + measurements: + description: Spoken measurements will be converted to their corresponding abbreviations. + type: boolean + mode: + description: Mode of operation for the model representing broad area of topic that will be talked about in the supplied audio + enum: + - general + - medical + - finance + type: string + multichannel: + description: Transcribe each audio channel independently. + type: boolean + numerals: + description: Numerals converts numbers from written format to numerical format. + type: boolean + paragraphs: + description: Splits audio into paragraphs to improve transcript readability. + type: boolean + profanity_filter: + description: Profanity Filter looks for recognized profanity and converts it to the nearest recognized non-profane word or removes it from the transcript completely. + type: boolean + punctuate: + description: Add punctuation and capitalization to the transcript. + type: boolean + redact: + description: Redaction removes sensitive information from your transcripts. + type: string + replace: + description: Search for terms or phrases in submitted audio and replaces them. + type: string + search: + description: Search for terms or phrases in submitted audio. + type: string + sentiment: + description: Recognizes the sentiment throughout a transcript or text. + type: boolean + smart_format: + description: Apply formatting to transcript output. When set to true, additional formatting will be applied to transcripts to improve readability. + type: boolean + topics: + description: Detect topics throughout a transcript or text. + type: boolean + utt_split: + description: Seconds to wait before detecting a pause between words in submitted audio. + type: number + utterance_end_ms: + description: 'Indicates how long model will wait to send an UtteranceEnd message after a word has been transcribed. Use with interim_results. Note: Supported only for webosockets.' + type: boolean + utterances: + description: Segments speech into meaningful semantic units. + type: boolean + vad_events: + description: 'Indicates that speech has started. You''ll begin receiving Speech Started messages upon speech starting. Note: Supported only for webosockets.' + type: boolean + beam_size: + default: 5 + description: The number of beams to use in beam search decoding. Higher values may improve accuracy at the cost of speed. + type: integer + compression_ratio_threshold: + default: 2.4 + description: Threshold for filtering out segments with high compression ratio, which often indicate repetitive or hallucinated text. + type: number + condition_on_previous_text: + default: true + description: Whether to condition on previous text during transcription. Setting to false may help prevent hallucination loops. + type: boolean + hallucination_silence_threshold: + description: Optional threshold (in seconds) to skip silent periods that may cause hallucinations. + type: number + initial_prompt: + description: A text prompt to help provide context to the model on the contents of the audio. + type: string + log_prob_threshold: + default: -1 + description: Threshold for filtering out segments with low average log probability, indicating low confidence. + type: number + no_speech_threshold: + default: 0.6 + description: Threshold for detecting no-speech segments. Segments with no-speech probability above this value are skipped. + type: number + prefix: + description: The prefix appended to the beginning of the output of the transcription and can guide the transcription result. + type: string + task: + default: transcribe + description: Supported tasks are 'translate' or 'transcribe'. + type: string + vad_filter: + default: false + description: Preprocess the audio with a voice activity detection model. + type: boolean + stackqlAiTranslationRunInput: + type: object + description: Union of request properties across the translation member models (synthesised by stackql). + properties: + target_language: + default: hin_Deva + description: Target langauge to translate to + enum: + - asm_Beng + - awa_Deva + - ben_Beng + - bho_Deva + - brx_Deva + - doi_Deva + - eng_Latn + - gom_Deva + - gon_Deva + - guj_Gujr + - hin_Deva + - hne_Deva + - kan_Knda + - kas_Arab + - kas_Deva + - kha_Latn + - lus_Latn + - mag_Deva + - mai_Deva + - mal_Mlym + - mar_Deva + - mni_Beng + - mni_Mtei + - npi_Deva + - ory_Orya + - pan_Guru + - san_Deva + - sat_Olck + - snd_Arab + - snd_Deva + - tam_Taml + - tel_Telu + - urd_Arab + - unr_Deva + type: string + text: + description: Input text to translate. Can be a single string or a list of strings. + type: string + items: + type: string + source_lang: + default: en + description: The language code of the source text (e.g., 'en' for English). Defaults to 'en' if not specified + type: string + target_lang: + description: The language code to translate the text into (e.g., 'es' for Spanish) + type: string + requests: + description: Batch of the embeddings requests to run using async-queue + items: + properties: + source_lang: + default: en + description: The language code of the source text (e.g., 'en' for English). Defaults to 'en' if not specified + type: string + target_lang: + description: The language code to translate the text into (e.g., 'es' for Spanish) + type: string + text: + description: The text to be translated + minLength: 1 + type: string + required: + - text + - target_lang + type: object + type: array + stackqlAiSummarizationRunInput: + type: object + description: Union of request properties across the summarization member models (synthesised by stackql). + properties: + input_text: + description: The text that you want the model to summarize + minLength: 1 + type: string + max_length: + default: 1024 + description: The maximum length of the generated summary in tokens + type: integer + stackqlAiTextToImageRunInput: + type: object + description: Union of request properties across the text_to_image member models (synthesised by stackql). + properties: + prompt: + description: A text description of the image you want to generate. + maxLength: 2048 + minLength: 1 + type: string + steps: + default: 4 + description: The number of diffusion steps; higher values can improve quality but take longer. + maximum: 8 + type: integer + multipart: + properties: + body: + type: object + contentType: + type: string + type: object + guidance: + default: 7.5 + description: Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt + type: number + height: + description: The height of the generated image in pixels + maximum: 2048 + minimum: 256 + type: integer + image: + description: For use with img2img tasks. An array of integers that represent the image data constrained to 8-bit unsigned integer values + items: + description: A value between 0 and 255 + type: number + type: array + image_b64: + description: For use with img2img tasks. A base64-encoded string of the input image + type: string + mask: + description: An array representing An array of integers that represent mask image data for inpainting constrained to 8-bit unsigned integer values + items: + description: A value between 0 and 255 + type: number + type: array + negative_prompt: + description: Text describing elements to avoid in the generated image + type: string + num_steps: + default: 20 + description: The number of diffusion steps; higher values can improve quality but take longer + maximum: 20 + type: integer + seed: + description: Random seed for reproducibility of the image generation + type: integer + strength: + default: 1 + 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 + type: number + width: + description: The width of the generated image in pixels + maximum: 2048 + minimum: 256 + type: integer + stackqlAiTextToSpeechRunInput: + type: object + description: Union of request properties across the text_to_speech member models (synthesised by stackql). + properties: + bit_rate: + description: The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type. + type: number + container: + description: Container specifies the file format wrapper for the output audio. The available options depend on the encoding type.. + enum: + - none + - wav + - ogg + type: string + encoding: + description: Encoding of the output audio. + enum: + - linear16 + - flac + - mulaw + - alaw + - mp3 + - opus + - aac + type: string + sample_rate: + description: Sample Rate specifies the sample rate for the output audio. Based on the encoding, different sample rates are supported. For some encodings, the sample rate is not configurable + type: number + speaker: + default: angus + description: Speaker used to produce the audio. + enum: + - angus + - asteria + - arcas + - orion + - orpheus + - athena + - luna + - zeus + - perseus + - helios + - hera + - stella + type: string + text: + description: The text content to be converted to speech + type: string + lang: + default: en + description: The speech language (e.g., 'en' for English, 'fr' for French). Defaults to 'en' if not specified + type: string + prompt: + description: A text description of the audio you want to generate + minLength: 1 + type: string + stackqlAiTextClassificationRunInput: + type: object + description: Union of request properties across the text_classification member models (synthesised by stackql). + properties: + text: + description: The text that you want to classify + minLength: 1 + type: string + stackqlAiRerankingRunInput: + type: object + description: Union of request properties across the reranking member models (synthesised by stackql). + properties: + contexts: + description: List of provided contexts. Note that the index in this array is important, as the response will refer to it. + items: + properties: + text: + description: One of the provided context content + minLength: 1 + type: string + type: object + type: array + query: + description: A query you wish to perform against the provided contexts. + minLength: 1 + type: string + top_k: + description: Number of returned results starting with the best score. + minimum: 1 + type: integer + stackqlAiRunInput: + type: object + description: Union of request properties across all Workers AI run models (synthesised by stackql). + properties: + frequency_penalty: + description: Decreases the likelihood of the model repeating the same lines verbatim. + maximum: 2 + minimum: -2 + type: number + lora: + description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. + type: string + max_tokens: + default: 2000 + description: The maximum number of tokens to generate in the response. + type: integer + presence_penalty: + description: Increases the likelihood of the model introducing new topics. + maximum: 2 + minimum: -2 + type: number + prompt: + description: The input text prompt for the model to generate a response. + minLength: 1 + type: string + raw: + default: false + description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + type: boolean + repetition_penalty: + description: Penalty for repeated tokens; higher values discourage repetition. + maximum: 2 + minimum: 0 + type: number + response_format: + properties: + json_schema: {} + type: + enum: + - json_object + - json_schema + type: string + title: JSON Mode + type: object + seed: + description: Random seed for reproducibility of the generation. + maximum: 9999999999 + minimum: 1 + type: integer + stream: + default: false + description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. + type: boolean + temperature: + default: 0.6 + description: Controls the randomness of the output; higher values produce more random results. + maximum: 5 + minimum: 0 + type: number + top_k: + 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. + maximum: 50 + minimum: 1 + type: integer + top_p: + 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. + maximum: 1 + minimum: 0.001 + type: number + functions: + items: + properties: + code: + type: string + name: + type: string + required: + - name + - code + type: object + type: array + messages: + description: An array of message objects representing the conversation history. + items: + properties: + content: + type: string + description: The content of the message as a string. + items: properties: - json_schema: {} + text: + description: Text content + type: string type: - enum: - - json_object - - json_schema + description: Type of the content (text) type: string - title: JSON Mode type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code + role: + description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). + type: string + required: + - role + - content + type: object + type: array + tools: + description: A list of tools available for the assistant to use. + items: + type: object + properties: + description: + description: A brief description of what the tool does. + type: string + name: + description: The name of the tool. More descriptive the better. + type: string + parameters: + description: Schema defining the parameters accepted by the tool. + properties: + properties: + description: Definitions of each parameter. type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: + required: + description: List of required parameter names. + items: + type: string + type: array + type: + description: The type of the parameters object (usually 'object'). + type: string + required: + - type + - properties + type: object + function: + description: Details of the function tool. + properties: + description: + description: A brief description of what the function does. + type: string + name: + description: The name of the function. + type: string + parameters: + description: Schema defining the parameters accepted by the function. properties: - content: - type: string - description: The content of the message as a string. + properties: + description: Definitions of each parameter. + type: object + required: + description: List of required parameter names. items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). + type: string + type: array + type: + description: The type of the parameters object (usually 'object'). type: string required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: + - type + - properties type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array + required: + - name + - description + - parameters + type: object + type: + description: Specifies the type of tool (e.g., 'function'). + type: string + type: array + requests: + items: + type: object + title: Prompt + properties: + frequency_penalty: + description: Decreases the likelihood of the model repeating the same lines verbatim. + maximum: 2 + minimum: -2 + type: number + lora: + description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. + type: string + max_tokens: + default: 256 + description: The maximum number of tokens to generate in the response. + type: integer + presence_penalty: + description: Increases the likelihood of the model introducing new topics. + maximum: 2 + minimum: -2 + type: number + prompt: + description: The input text prompt for the model to generate a response. + minLength: 1 + type: string + raw: + default: false + description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. + type: boolean + repetition_penalty: + description: Penalty for repeated tokens; higher values discourage repetition. + maximum: 2 + minimum: 0 + type: number + response_format: + properties: + json_schema: {} + type: + enum: + - json_object + - json_schema + type: string + title: JSON Mode + type: object + seed: + description: Random seed for reproducibility of the generation. + maximum: 9999999999 + minimum: 1 + type: integer + stream: + default: false + description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. + type: boolean + temperature: + default: 0.6 + description: Controls the randomness of the output; higher values produce more random results. + maximum: 5 + minimum: 0 + type: number + top_k: + 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. + maximum: 50 + minimum: 1 + type: integer + top_p: + 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. + maximum: 1 + minimum: 0.001 + type: number + functions: + items: + properties: + code: + type: string + name: + type: string + required: + - name + - code + type: object + type: array + messages: + description: An array of message objects representing the conversation history. + items: + properties: + content: + type: string + description: The content of the message as a string. + items: + properties: + text: + description: Text content + type: string type: - description: The type of the parameters object (usually 'object'). + description: Type of the content (text) type: string - required: - - type - - properties type: object - function: - description: Details of the function tool. + role: + description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). + type: string + required: + - role + - content + type: object + type: array + tools: + description: A list of tools available for the assistant to use. + items: + type: object + properties: + description: + description: A brief description of what the tool does. + type: string + name: + description: The name of the tool. More descriptive the better. + type: string + parameters: + description: Schema defining the parameters accepted by the tool. + properties: properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object + description: Definitions of each parameter. + type: object required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: + description: List of required parameter names. + items: + type: string + type: array + type: + description: The type of the parameters object (usually 'object'). + type: string + required: + - type + - properties + type: object + function: + description: Details of the function tool. properties: - code: + description: + description: A brief description of what the function does. type: string - message: + name: + description: The name of the function. type: string + parameters: + description: Schema defining the parameters accepted by the function. + properties: + properties: + description: Definitions of each parameter. + type: object + required: + description: List of required parameter names. + items: + type: string + type: array + type: + description: The type of the parameters object (usually 'object'). + type: string + required: + - type + - properties + type: object required: - - code - - message + - name + - description + - parameters type: object - type: array - result: - type: object - success: - type: boolean + type: + description: Specifies the type of tool (e.g., 'function'). + type: string + type: array + type: array + guided_json: + description: JSON schema that should be fufilled for the response. + type: object + image: + type: array + description: An array of integers that represent the image data constrained to 8-bit unsigned integer values. Deprecated, use image as a part of messages now. + items: + description: A value between 0 and 255 + type: number + format: binary + audio: + description: Parameters for audio output. Required when modalities includes 'audio'. + properties: + format: + enum: + - wav + - aac + - mp3 + - flac + - opus + - pcm16 + type: string + voice: + type: string + properties: + id: + type: string + required: + - id + required: + - voice + - format + type: object + chat_template_kwargs: + properties: + clear_thinking: + default: false + description: If false, preserves reasoning context between turns. + type: boolean + enable_thinking: + default: true + description: Whether to enable reasoning, enabled by default. + type: boolean + type: object + function_call: + type: string + enum: + - none + - auto + properties: + name: + type: string + required: + - name + logit_bias: + nullable: true + type: object + logprobs: + nullable: true + type: boolean + max_completion_tokens: + nullable: true + type: integer + metadata: + nullable: true + type: object + modalities: + items: + enum: + - text + - audio + type: string + nullable: true + type: array + model: + description: ID of the model to use (e.g. '@cf/zai-org/glm-4.7-flash, etc'). + type: string + 'n': + maximum: 128 + minimum: 1 + nullable: true + type: integer + parallel_tool_calls: + default: true + description: Whether to enable parallel function calling during tool use. + type: boolean + prediction: + properties: + content: + type: string + items: + properties: + text: + type: string + type: + enum: + - text + type: string required: - - errors - - success - - result + - type + - text type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/deepseek-ai/deepseek-math-7b-instruct model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/deepseek-ai/deepseek-r1-distill-qwen-32b: - post: - description: Runs inference on the @cf/deepseek-ai/deepseek-r1-distill-qwen-32b model. - operationId: workers-ai-post-run-cf-deepseek-ai-deepseek-r1-distill-qwen-32b - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: + type: + enum: + - content + type: string + required: + - type + - content + type: object + reasoning_effort: + enum: + - low + - medium + - high + nullable: true type: string - x-auditable: true - - in: query - name: tags - schema: + service_tier: + enum: + - auto + - default + - flex + - scale + - priority + nullable: true + type: string + stop: + type: string + items: + type: string + store: + nullable: true + type: boolean + stream_options: + properties: + include_obfuscation: + type: boolean + include_usage: + type: boolean + type: object + tool_choice: + description: Controls which (if any) tool is called by the model. 'none' = no tools, 'auto' = model decides, 'required' = must call a tool. type: string - requestBody: - content: - application/json: - schema: + enum: + - none + - auto + - required + properties: + function: + properties: + name: + type: string + required: + - name type: object - title: Prompt + type: + enum: + - function + type: string + custom: properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. + name: type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 + required: + - name + type: object + allowed_tools: + properties: + mode: + enum: + - auto + - required type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: + tools: + items: + type: object + type: array + required: + - mode + - tools + type: object + required: + - type + top_logprobs: + maximum: 20 + minimum: 0 + nullable: true + type: integer + user: + description: A unique identifier representing your end-user, for abuse monitoring. + type: string + web_search_options: + description: Options for the web search tool (when using built-in web search). + properties: + search_context_size: + default: medium + enum: + - low + - medium + - high + type: string + user_location: + properties: + approximate: properties: - json_schema: {} - type: - enum: - - json_object - - json_schema + city: + type: string + country: + type: string + region: + type: string + timezone: type: string - title: JSON Mode type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/deepseek-ai/deepseek-r1-distill-qwen-32b model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/defog/sqlcoder-7b-2: - post: - description: Runs inference on the @cf/defog/sqlcoder-7b-2 model. - operationId: workers-ai-post-run-cf-defog-sqlcoder-7b-2 - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: + type: + enum: + - approximate + type: string + required: + - type + - approximate + type: object + type: object + input: + description: Responses API Input messages. Refer to OpenAI Responses API docs to learn more about supported content types + type: string + items: {} + reasoning: + properties: + effort: + description: Constrains effort on reasoning for reasoning models. Currently supported values are low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. + enum: + - low + - medium + - high + type: string + summary: + description: A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. One of auto, concise, or detailed. + enum: + - auto + - concise + - detailed + type: string + type: object + pooling: + default: mean + description: The pooling method used in the embedding process. `cls` pooling will generate more accurate embeddings on larger inputs - however, embeddings created with cls pooling are not compatible with embeddings generated with mean pooling. The default pooling method is `mean` in order for this to not be a breaking change, but we highly suggest using the new `cls` pooling for better accuracy. + enum: + - mean + - cls + type: string + text: + type: string + description: The text to embed + items: + description: The text to embed + minLength: 1 + type: string + contexts: + description: List of provided contexts. Note that the index in this array is important, as the response will refer to it. + items: + properties: + text: + description: One of the provided context content + minLength: 1 + type: string + type: object + type: array + query: + description: A query you wish to perform against the provided contexts. If no query is provided the model with respond with embeddings for contexts + minLength: 1 type: string - - in: query - name: queueRequest - schema: + truncate_inputs: + default: false + description: When provided with too long context should the model error out or truncate the context to fit? + type: boolean + documents: + type: string + description: A single document string + items: + minLength: 1 + type: string + instruction: + default: Given a web search query, retrieve relevant passages that answer the query + description: Optional instruction for the task + type: string + queries: + type: string + description: A single query string + items: + minLength: 1 + type: string + eager_eot_threshold: + description: End-of-turn confidence required to fire an eager end-of-turn event. When set, enables EagerEndOfTurn and TurnResumed events. Valid Values 0.3 - 0.9. + type: string + encoding: + description: Encoding of the audio stream. Currently only supports raw signed little-endian 16-bit PCM. + enum: + - linear16 type: string - x-auditable: true - - in: query - name: tags - schema: + eot_threshold: + default: '0.7' + description: End-of-turn confidence required to finish a turn. Valid Values 0.5 - 0.9. type: string - requestBody: - content: - application/json: - schema: + eot_timeout_ms: + default: '5000' + description: A turn will be finished when this much time has passed after speech, regardless of EOT confidence. + type: string + keyterm: + description: Keyterm prompting can improve recognition of specialized terminology. Pass multiple keyterm query parameters to boost multiple keyterms. + type: string + mip_opt_out: + default: 'false' + description: Opts out requests from the Deepgram Model Improvement Program. Refer to Deepgram Docs for pricing impacts before setting this to true. https://dpgr.am/deepgram-mip + enum: + - 'true' + - 'false' + type: string + sample_rate: + description: Sample rate of the audio stream in Hz. + type: string + tag: + description: Label your requests for the purpose of identification during usage reporting + type: string + channels: + description: The number of channels in the submitted audio + type: number + custom_intent: + description: Custom intents you want the model to detect within your input audio if present + type: string + custom_intent_mode: + description: Sets how the model will interpret intents submitted to the custom_intent param. When strict, the model will only return intents submitted using the custom_intent param. When extended, the model will return its own detected intents in addition those submitted using the custom_intents param + enum: + - extended + - strict + type: string + custom_topic: + description: Custom topics you want the model to detect within your input audio or text if present Submit up to 100 + type: string + custom_topic_mode: + description: Sets how the model will interpret strings submitted to the custom_topic param. When strict, the model will only return topics submitted using the custom_topic param. When extended, the model will return its own detected topics in addition to those submitted using the custom_topic param. + enum: + - extended + - strict + type: string + detect_entities: + description: Identifies and extracts key entities from content in submitted audio + type: boolean + detect_language: + description: Identifies the dominant language spoken in submitted audio + type: boolean + diarize: + description: Recognize speaker changes. Each word in the transcript will be assigned a speaker number starting at 0 + type: boolean + dictation: + description: Identify and extract key entities from content in submitted audio + type: boolean + endpointing: + description: Indicates how long model will wait to detect whether a speaker has finished speaking or pauses for a significant period of time. When set to a value, the streaming endpoint immediately finalizes the transcription for the processed time range and returns the transcript with a speech_final parameter set to true. Can also be set to false to disable endpointing + type: string + extra: + description: Arbitrary key-value pairs that are attached to the API response for usage in downstream processing + type: string + filler_words: + description: Filler Words can help transcribe interruptions in your audio, like 'uh' and 'um' + type: boolean + interim_results: + description: 'Specifies whether the streaming endpoint should provide ongoing transcription updates as more audio is received. When set to true, the endpoint sends continuous updates, meaning transcription results may evolve over time. Note: Supported only for webosockets.' + type: boolean + keywords: + description: Keywords can boost or suppress specialized terminology and brands. + type: string + language: + description: The BCP-47 language tag that hints at the primary spoken language. Depending on the Model and API endpoint you choose only certain languages are available. + type: string + measurements: + description: Spoken measurements will be converted to their corresponding abbreviations. + type: boolean + mode: + description: Mode of operation for the model representing broad area of topic that will be talked about in the supplied audio + enum: + - general + - medical + - finance + type: string + multichannel: + description: Transcribe each audio channel independently. + type: boolean + numerals: + description: Numerals converts numbers from written format to numerical format. + type: boolean + paragraphs: + description: Splits audio into paragraphs to improve transcript readability. + type: boolean + profanity_filter: + description: Profanity Filter looks for recognized profanity and converts it to the nearest recognized non-profane word or removes it from the transcript completely. + type: boolean + punctuate: + description: Add punctuation and capitalization to the transcript. + type: boolean + redact: + description: Redaction removes sensitive information from your transcripts. + type: string + replace: + description: Search for terms or phrases in submitted audio and replaces them. + type: string + search: + description: Search for terms or phrases in submitted audio. + type: string + sentiment: + description: Recognizes the sentiment throughout a transcript or text. + type: boolean + smart_format: + description: Apply formatting to transcript output. When set to true, additional formatting will be applied to transcripts to improve readability. + type: boolean + topics: + description: Detect topics throughout a transcript or text. + type: boolean + utt_split: + description: Seconds to wait before detecting a pause between words in submitted audio. + type: number + utterance_end_ms: + description: 'Indicates how long model will wait to send an UtteranceEnd message after a word has been transcribed. Use with interim_results. Note: Supported only for webosockets.' + type: boolean + utterances: + description: Segments speech into meaningful semantic units. + type: boolean + vad_events: + description: 'Indicates that speech has started. You''ll begin receiving Speech Started messages upon speech starting. Note: Supported only for webosockets.' + type: boolean + beam_size: + default: 5 + description: The number of beams to use in beam search decoding. Higher values may improve accuracy at the cost of speed. + type: integer + compression_ratio_threshold: + default: 2.4 + description: Threshold for filtering out segments with high compression ratio, which often indicate repetitive or hallucinated text. + type: number + condition_on_previous_text: + default: true + description: Whether to condition on previous text during transcription. Setting to false may help prevent hallucination loops. + type: boolean + hallucination_silence_threshold: + description: Optional threshold (in seconds) to skip silent periods that may cause hallucinations. + type: number + initial_prompt: + description: A text prompt to help provide context to the model on the contents of the audio. + type: string + log_prob_threshold: + default: -1 + description: Threshold for filtering out segments with low average log probability, indicating low confidence. + type: number + no_speech_threshold: + default: 0.6 + description: Threshold for detecting no-speech segments. Segments with no-speech probability above this value are skipped. + type: number + prefix: + description: The prefix appended to the beginning of the output of the transcription and can guide the transcription result. + type: string + task: + default: transcribe + description: Supported tasks are 'translate' or 'transcribe'. + type: string + vad_filter: + default: false + description: Preprocess the audio with a voice activity detection model. + type: boolean + target_language: + default: hin_Deva + description: Target langauge to translate to + enum: + - asm_Beng + - awa_Deva + - ben_Beng + - bho_Deva + - brx_Deva + - doi_Deva + - eng_Latn + - gom_Deva + - gon_Deva + - guj_Gujr + - hin_Deva + - hne_Deva + - kan_Knda + - kas_Arab + - kas_Deva + - kha_Latn + - lus_Latn + - mag_Deva + - mai_Deva + - mal_Mlym + - mar_Deva + - mni_Beng + - mni_Mtei + - npi_Deva + - ory_Orya + - pan_Guru + - san_Deva + - sat_Olck + - snd_Arab + - snd_Deva + - tam_Taml + - tel_Telu + - urd_Arab + - unr_Deva + type: string + source_lang: + default: en + description: The language code of the source text (e.g., 'en' for English). Defaults to 'en' if not specified + type: string + target_lang: + description: The language code to translate the text into (e.g., 'es' for Spanish) + type: string + input_text: + description: The text that you want the model to summarize + minLength: 1 + type: string + max_length: + default: 1024 + description: The maximum length of the generated summary in tokens + type: integer + steps: + default: 4 + description: The number of diffusion steps; higher values can improve quality but take longer. + maximum: 8 + type: integer + multipart: + properties: + body: type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/defog/sqlcoder-7b-2 model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/facebook/bart-large-cnn: - post: - description: Runs inference on the @cf/facebook/bart-large-cnn model. - operationId: workers-ai-post-run-cf-facebook-bart-large-cnn - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: + contentType: + type: string + type: object + guidance: + default: 7.5 + description: Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt + type: number + height: + description: The height of the generated image in pixels + maximum: 2048 + minimum: 256 + type: integer + image_b64: + description: For use with img2img tasks. A base64-encoded string of the input image + type: string + mask: + description: An array representing An array of integers that represent mask image data for inpainting constrained to 8-bit unsigned integer values + items: + description: A value between 0 and 255 + type: number + type: array + negative_prompt: + description: Text describing elements to avoid in the generated image + type: string + num_steps: + default: 20 + description: The number of diffusion steps; higher values can improve quality but take longer + maximum: 20 + type: integer + strength: + default: 1 + 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 + type: number + width: + description: The width of the generated image in pixels + maximum: 2048 + minimum: 256 + type: integer + bit_rate: + description: The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the encoding type. + type: number + container: + description: Container specifies the file format wrapper for the output audio. The available options depend on the encoding type.. + enum: + - none + - wav + - ogg type: string - x-auditable: true - - in: query - name: tags - schema: + speaker: + default: angus + description: Speaker used to produce the audio. + enum: + - angus + - asteria + - arcas + - orion + - orpheus + - athena + - luna + - zeus + - perseus + - helios + - hera + - stella + type: string + lang: + default: en + description: The speech language (e.g., 'en' for English, 'fr' for French). Defaults to 'en' if not specified type: string - requestBody: - content: - application/json: - schema: - properties: - input_text: - description: The text that you want the model to summarize - minLength: 1 - type: string - max_length: - default: 1024 - description: The maximum length of the generated summary in tokens - type: integer - required: - - input_text - type: object - responses: - '200': - content: - application/json: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/facebook/bart-large-cnn model. - tags: - - Workers AI Summarization - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/facebook/nonomni-bart-large-cnn: - post: - description: Runs inference on the @cf/facebook/nonomni-bart-large-cnn model. - operationId: workers-ai-post-run-cf-facebook-nonomni-bart-large-cnn - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - properties: - input_text: - description: The text that you want the model to summarize - minLength: 1 - type: string - max_length: - default: 1024 - description: The maximum length of the generated summary in tokens - type: integer - required: - - input_text - type: object - responses: - '200': - content: - application/json: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/facebook/nonomni-bart-large-cnn model. - tags: - - Workers AI Summarization - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/facebook/nonomni-detr-resnet-50: - post: - description: Runs inference on the @cf/facebook/nonomni-detr-resnet-50 model. - operationId: workers-ai-post-run-cf-facebook-nonomni-detr-resnet-50 - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/octet-stream: - schema: - format: binary - type: string - responses: - '200': - content: - application/json: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/facebook/nonomni-detr-resnet-50 model. - tags: - - Workers AI Object Detection - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/fblgit/una-cybertron-7b-v2-bf16: - post: - description: Runs inference on the @cf/fblgit/una-cybertron-7b-v2-bf16 model. - operationId: workers-ai-post-run-cf-fblgit-una-cybertron-7b-v2-bf16 - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/fblgit/una-cybertron-7b-v2-bf16 model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/google/embeddinggemma-300m: - post: - description: Runs inference on the @cf/google/embeddinggemma-300m model. - operationId: workers-ai-post-run-cf-google-embeddinggemma-300m - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - properties: - text: - type: string - description: The text to embed - items: - description: The text to embed - minLength: 1 - type: string - required: - - text - type: object - responses: - '200': - content: - application/json: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/google/embeddinggemma-300m model. - tags: - - Workers AI Text Embeddings - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/google/gemma-2b-it-lora: - post: - description: Runs inference on the @cf/google/gemma-2b-it-lora model. - operationId: workers-ai-post-run-cf-google-gemma-2b-it-lora - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/google/gemma-2b-it-lora model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/google/gemma-3-12b-it: - post: - description: Runs inference on the @cf/google/gemma-3-12b-it model. - operationId: workers-ai-post-run-cf-google-gemma-3-12b-it - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: 0 - type: number - guided_json: - description: JSON schema that should be fufilled for the response. - type: object - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: 0 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 2 - minimum: 0 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - image_url: - properties: - url: - description: image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted - type: string - type: object - text: - type: string - type: - description: Type of the content provided - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/google/gemma-3-12b-it model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/google/gemma-7b-it-lora: - post: - description: Runs inference on the @cf/google/gemma-7b-it-lora model. - operationId: workers-ai-post-run-cf-google-gemma-7b-it-lora - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/google/gemma-7b-it-lora model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/google/nonomni-embeddinggemma-300m: - post: - description: Runs inference on the @cf/google/nonomni-embeddinggemma-300m model. - operationId: workers-ai-post-run-cf-google-nonomni-embeddinggemma-300m - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - properties: - text: - description: Input text to embed. Can be a single string or a list of strings. - type: string - items: - type: string - required: - - text - type: object - responses: - '200': - content: - application/json: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/google/nonomni-embeddinggemma-300m model. - tags: - - Workers AI Text Embeddings - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/huggingface/distilbert-sst-2-int8: - post: - description: Runs inference on the @cf/huggingface/distilbert-sst-2-int8 model. - operationId: workers-ai-post-run-cf-huggingface-distilbert-sst-2-int8 - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - properties: - text: - description: The text that you want to classify - minLength: 1 - type: string - required: - - text - type: object - responses: - '200': - content: - application/json: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/huggingface/distilbert-sst-2-int8 model. - tags: - - Workers AI Text Classification - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/huggingface/nonomni-distilbert-sst-2-int8: - post: - description: Runs inference on the @cf/huggingface/nonomni-distilbert-sst-2-int8 model. - operationId: workers-ai-post-run-cf-huggingface-nonomni-distilbert-sst-2-int8 - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - properties: - text: - description: The text that you want to classify - minLength: 1 - type: string - required: - - text - type: object - responses: - '200': - content: - application/json: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/huggingface/nonomni-distilbert-sst-2-int8 model. - tags: - - Workers AI Text Classification - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/ibm-granite/granite-4.0-h-micro: - post: - description: Runs inference on the @cf/ibm-granite/granite-4.0-h-micro model. - operationId: workers-ai-post-run-cf-ibm-granite-granite-4-0-h-micro - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/ibm-granite/granite-4.0-h-micro model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/leonardo/lucid-origin: - post: - description: Runs inference on the @cf/leonardo/lucid-origin model. - operationId: workers-ai-post-run-cf-leonardo-lucid-origin - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - properties: - guidance: - default: 4.5 - description: Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt - maximum: 10 - minimum: 0 - type: number - height: - default: 1120 - description: The height of the generated image in pixels - maximum: 2500 - minimum: 0 - type: integer - num_steps: - description: The number of diffusion steps; higher values can improve quality but take longer - maximum: 40 - minimum: 1 - type: integer - prompt: - description: A text description of the image you want to generate. - minLength: 1 - type: string - seed: - description: Random seed for reproducibility of the image generation - minimum: 0 - type: integer - steps: - description: The number of diffusion steps; higher values can improve quality but take longer - maximum: 40 - minimum: 1 - type: integer - width: - default: 1120 - description: The width of the generated image in pixels - maximum: 2500 - minimum: 0 - type: integer - required: - - prompt - type: object - responses: - '200': - content: - application/json: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/leonardo/lucid-origin model. - tags: - - Workers AI Text To Image - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/leonardo/phoenix-1.0: - post: - description: Runs inference on the @cf/leonardo/phoenix-1.0 model. - operationId: workers-ai-post-run-cf-leonardo-phoenix-1-0 - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - properties: - guidance: - default: 2 - description: Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt - maximum: 10 - minimum: 2 - type: number - height: - default: 1024 - description: The height of the generated image in pixels - maximum: 2048 - minimum: 0 - type: integer - negative_prompt: - description: Specify what to exclude from the generated images - minLength: 1 - type: string - num_steps: - default: 25 - description: The number of diffusion steps; higher values can improve quality but take longer - maximum: 50 - minimum: 1 - type: integer - prompt: - description: A text description of the image you want to generate. - minLength: 1 - type: string - seed: - description: Random seed for reproducibility of the image generation - minimum: 0 - type: integer - width: - default: 1024 - description: The width of the generated image in pixels - maximum: 2048 - minimum: 0 - type: integer - required: - - prompt - type: object - responses: - '200': - content: - application/json: - schema: - type: object - image/jpeg: - schema: - format: binary - type: string - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/leonardo/phoenix-1.0 model. - tags: - - Workers AI Text To Image - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/lykon/dreamshaper-8-lcm: - post: - description: Runs inference on the @cf/lykon/dreamshaper-8-lcm model. - operationId: workers-ai-post-run-cf-lykon-dreamshaper-8-lcm - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - properties: - guidance: - default: 7.5 - description: Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt - type: number - height: - description: The height of the generated image in pixels - maximum: 2048 - minimum: 256 - type: integer - image: - description: For use with img2img tasks. An array of integers that represent the image data constrained to 8-bit unsigned integer values - items: - description: A value between 0 and 255 - type: number - type: array - image_b64: - description: For use with img2img tasks. A base64-encoded string of the input image - type: string - mask: - description: An array representing An array of integers that represent mask image data for inpainting constrained to 8-bit unsigned integer values - items: - description: A value between 0 and 255 - type: number - type: array - negative_prompt: - description: Text describing elements to avoid in the generated image - type: string - num_steps: - default: 20 - description: The number of diffusion steps; higher values can improve quality but take longer - maximum: 20 - type: integer - prompt: - description: A text description of the image you want to generate - minLength: 1 - type: string - seed: - description: Random seed for reproducibility of the image generation - type: integer - strength: - default: 1 - 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 - type: number - width: - description: The width of the generated image in pixels - maximum: 2048 - minimum: 256 - type: integer - required: - - prompt - type: object - responses: - '200': - content: - application/json: - schema: - type: object - image/png: - schema: - format: binary - type: string - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/lykon/dreamshaper-8-lcm model. - tags: - - Workers AI Text To Image - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/meta-llama/llama-2-7b-chat-hf-lora: - post: - description: Runs inference on the @cf/meta-llama/llama-2-7b-chat-hf-lora model. - operationId: workers-ai-post-run-cf-meta-llama-llama-2-7b-chat-hf-lora - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/meta-llama/llama-2-7b-chat-hf-lora model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/meta/llama-2-7b-chat-fp16: - post: - description: Runs inference on the @cf/meta/llama-2-7b-chat-fp16 model. - operationId: workers-ai-post-run-cf-meta-llama-2-7b-chat-fp16 - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/meta/llama-2-7b-chat-fp16 model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/meta/llama-2-7b-chat-int8: - post: - description: Runs inference on the @cf/meta/llama-2-7b-chat-int8 model. - operationId: workers-ai-post-run-cf-meta-llama-2-7b-chat-int8 - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/meta/llama-2-7b-chat-int8 model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/meta/llama-3-8b-instruct: - post: - description: Runs inference on the @cf/meta/llama-3-8b-instruct model. - operationId: workers-ai-post-run-cf-meta-llama-3-8b-instruct - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/meta/llama-3-8b-instruct model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/meta/llama-3-8b-instruct-awq: - post: - description: Runs inference on the @cf/meta/llama-3-8b-instruct-awq model. - operationId: workers-ai-post-run-cf-meta-llama-3-8b-instruct-awq - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/meta/llama-3-8b-instruct-awq model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/meta/llama-3.1-70b-instruct-fp8-fast: - post: - description: Runs inference on the @cf/meta/llama-3.1-70b-instruct-fp8-fast model. - operationId: workers-ai-post-run-cf-meta-llama-3-1-70b-instruct-fp8-fast - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/meta/llama-3.1-70b-instruct-fp8-fast model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/meta/llama-3.1-8b-instruct-awq: - post: - description: Runs inference on the @cf/meta/llama-3.1-8b-instruct-awq model. - operationId: workers-ai-post-run-cf-meta-llama-3-1-8b-instruct-awq - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/meta/llama-3.1-8b-instruct-awq model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/meta/llama-3.1-8b-instruct-fp8: - post: - description: Runs inference on the @cf/meta/llama-3.1-8b-instruct-fp8 model. - operationId: workers-ai-post-run-cf-meta-llama-3-1-8b-instruct-fp8 - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/meta/llama-3.1-8b-instruct-fp8 model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/meta/llama-3.1-8b-instruct-fp8-fast: - post: - description: Runs inference on the @cf/meta/llama-3.1-8b-instruct-fp8-fast model. - operationId: workers-ai-post-run-cf-meta-llama-3-1-8b-instruct-fp8-fast - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/meta/llama-3.1-8b-instruct-fp8-fast model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/meta/llama-3.2-11b-vision-instruct: - post: - description: Runs inference on the @cf/meta/llama-3.2-11b-vision-instruct model. - operationId: workers-ai-post-run-cf-meta-llama-3-2-11b-vision-instruct - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: 0 - type: number - image: - type: array - description: An array of integers that represent the image data constrained to 8-bit unsigned integer values. Deprecated, use image as a part of messages now. - items: - description: A value between 0 and 255 - type: number - format: binary - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: 0 - type: number - prompt: - description: The input text prompt for the model to generate a response. - maxLength: 131072 - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 2 - minimum: 0 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - image_url: - properties: - url: - description: image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted - type: string - type: object - text: - type: string - type: - description: Type of the content provided - type: string - type: object - properties: - image_url: - properties: - url: - description: image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted - type: string - type: object - text: - type: string - type: - description: Type of the content provided - type: string - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - tool_call_id: - description: The tool call id. If you don't know what to put here you can fall back to 000000001 - type: string - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/meta/llama-3.2-11b-vision-instruct model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/meta/llama-3.2-1b-instruct: - post: - description: Runs inference on the @cf/meta/llama-3.2-1b-instruct model. - operationId: workers-ai-post-run-cf-meta-llama-3-2-1b-instruct - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/meta/llama-3.2-1b-instruct model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/meta/llama-3.2-3b-instruct: - post: - description: Runs inference on the @cf/meta/llama-3.2-3b-instruct model. - operationId: workers-ai-post-run-cf-meta-llama-3-2-3b-instruct - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/meta/llama-3.2-3b-instruct model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/meta/llama-3.3-70b-instruct-fp8-fast: - post: - description: Runs inference on the @cf/meta/llama-3.3-70b-instruct-fp8-fast model. - operationId: workers-ai-post-run-cf-meta-llama-3-3-70b-instruct-fp8-fast - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - requests: - items: - properties: - external_reference: - description: User-supplied reference. This field will be present in the response as well it can be used to reference the request and response. It's NOT validated to be unique. - type: string - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: 0 - type: number - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: 0 - type: number - prompt: - description: Prompt for the text generation model - minLength: 1 - type: string - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_p: - 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. - maximum: 2 - minimum: 0 - type: number - type: object - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/meta/llama-3.3-70b-instruct-fp8-fast model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/meta/llama-4-scout-17b-16e-instruct: - post: - description: Runs inference on the @cf/meta/llama-4-scout-17b-16e-instruct model. - operationId: workers-ai-post-run-cf-meta-llama-4-scout-17b-16e-instruct - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: 0 - type: number - guided_json: - description: JSON schema that should be fulfilled for the response. - type: object - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: 0 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.15 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 2 - minimum: 0 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - image_url: - properties: - url: - description: image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted - type: string - type: object - text: - type: string - type: - description: Type of the content provided - type: string - type: object - properties: - image_url: - properties: - url: - description: image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted - type: string - type: object - text: - type: string - type: - description: Type of the content provided - type: string - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - tool_call_id: - description: The tool call id. If you don't know what to put here you can fall back to 000000001 - type: string - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - requests: - items: - type: object - title: Prompt_Inner - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: 0 - type: number - guided_json: - description: JSON schema that should be fulfilled for the response. - type: object - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: 0 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.15 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 2 - minimum: 0 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - image_url: - properties: - url: - description: image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted - type: string - type: object - text: - type: string - type: - description: Type of the content provided - type: string - type: object - properties: - image_url: - properties: - url: - description: image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted - type: string - type: object - text: - type: string - type: - description: Type of the content provided - type: string - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - tool_call_id: - description: The tool call id. If you don't know what to put here you can fall back to 000000001 - type: string - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/meta/llama-4-scout-17b-16e-instruct model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/meta/llama-guard-3-8b: - post: - description: Runs inference on the @cf/meta/llama-guard-3-8b model. - operationId: workers-ai-post-run-cf-meta-llama-guard-3-8b - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - properties: - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - description: The content of the message as a string. - type: string - role: - description: The role of the message sender must alternate between 'user' and 'assistant'. - enum: - - user - - assistant - type: string - required: - - role - - content - type: object - type: array - response_format: - description: Dictate the output format of the generated response. - properties: - type: - description: Set to json_object to process and output generated text as JSON. - type: string - type: object - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - required: - - messages - type: object - responses: - '200': - content: - application/json: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/meta/llama-guard-3-8b model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/meta/m2m100-1.2b: - post: - description: Runs inference on the @cf/meta/m2m100-1.2b model. - operationId: workers-ai-post-run-cf-meta-m2m100-1-2b - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - properties: - source_lang: - default: en - description: The language code of the source text (e.g., 'en' for English). Defaults to 'en' if not specified - type: string - target_lang: - description: The language code to translate the text into (e.g., 'es' for Spanish) - type: string - text: - description: The text to be translated - minLength: 1 - type: string - requests: - description: Batch of the embeddings requests to run using async-queue - items: - properties: - source_lang: - default: en - description: The language code of the source text (e.g., 'en' for English). Defaults to 'en' if not specified - type: string - target_lang: - description: The language code to translate the text into (e.g., 'es' for Spanish) - type: string - text: - description: The text to be translated - minLength: 1 - type: string - required: - - text - - target_lang - type: object - type: array - responses: - '200': - content: - application/json: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/meta/m2m100-1.2b model. - tags: - - Workers AI Translation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/microsoft/nonomni-resnet-50: - post: - description: Runs inference on the @cf/microsoft/nonomni-resnet-50 model. - operationId: workers-ai-post-run-cf-microsoft-nonomni-resnet-50 - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/octet-stream: - schema: - format: binary - type: string - responses: - '200': - content: - application/json: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/microsoft/nonomni-resnet-50 model. - tags: - - Workers AI Image Classification - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/microsoft/phi-2: - post: - description: Runs inference on the @cf/microsoft/phi-2 model. - operationId: workers-ai-post-run-cf-microsoft-phi-2 - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/microsoft/phi-2 model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/microsoft/resnet-50: - post: - description: Runs inference on the @cf/microsoft/resnet-50 model. - operationId: workers-ai-post-run-cf-microsoft-resnet-50 - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/octet-stream: - schema: - format: binary - type: string - responses: - '200': - content: - application/json: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/microsoft/resnet-50 model. - tags: - - Workers AI Image Classification - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/mistral/mistral-7b-instruct-v0.1: - post: - description: Runs inference on the @cf/mistral/mistral-7b-instruct-v0.1 model. - operationId: workers-ai-post-run-cf-mistral-mistral-7b-instruct-v0-1 - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/mistral/mistral-7b-instruct-v0.1 model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/mistral/mistral-7b-instruct-v0.2-lora: - post: - description: Runs inference on the @cf/mistral/mistral-7b-instruct-v0.2-lora model. - operationId: workers-ai-post-run-cf-mistral-mistral-7b-instruct-v0-2-lora - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/mistral/mistral-7b-instruct-v0.2-lora model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/mistralai/mistral-small-3.1-24b-instruct: - post: - description: Runs inference on the @cf/mistralai/mistral-small-3.1-24b-instruct model. - operationId: workers-ai-post-run-cf-mistralai-mistral-small-3-1-24b-instruct - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: 0 - type: number - guided_json: - description: JSON schema that should be fulfilled for the response. - type: object - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: 0 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.15 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 2 - minimum: 0 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - image_url: - properties: - url: - description: image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted - type: string - type: object - text: - type: string - type: - description: Type of the content provided - type: string - type: object - properties: - image_url: - properties: - url: - description: image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted - type: string - type: object - text: - type: string - type: - description: Type of the content provided - type: string - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - tool_call_id: - description: The tool call id. Must be supplied for tool calls for Mistral-3. If you don't know what to put here you can fall back to 000000001 - type: string - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/mistralai/mistral-small-3.1-24b-instruct model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/moonshotai/kimi-k2.5: - post: - description: Runs inference on the @cf/moonshotai/kimi-k2.5 model. - operationId: workers-ai-post-run-cf-moonshotai-kimi-k2-5 - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - audio: - description: Parameters for audio output. Required when modalities includes 'audio'. - properties: - format: - enum: - - wav - - aac - - mp3 - - flac - - opus - - pcm16 - type: string - voice: - type: string - properties: - id: - type: string - required: - - id - required: - - voice - - format - type: object - chat_template_kwargs: - properties: - clear_thinking: - default: false - description: If false, preserves reasoning context between turns. - type: boolean - enable_thinking: - default: true - description: Whether to enable reasoning, enabled by default. - type: boolean - type: object - frequency_penalty: - maximum: 2 - minimum: -2 - nullable: true - type: number - function_call: - type: string - enum: - - none - - auto - properties: - name: - type: string - required: - - name - functions: - items: - properties: - description: - description: A description of what the function does. - type: string - name: - description: The name of the function to be called. - type: string - parameters: - description: The parameters the function accepts, described as a JSON Schema object. - type: object - strict: - nullable: true - type: boolean - required: - - name - type: object - maxItems: 128 - minItems: 1 - type: array - logit_bias: - nullable: true - type: object - logprobs: - nullable: true - type: boolean - max_completion_tokens: - nullable: true - type: integer - max_tokens: - nullable: true - type: integer - metadata: - nullable: true - type: object - modalities: - items: - enum: - - text - - audio - type: string - nullable: true - type: array - model: - description: ID of the model to use (e.g. '@cf/zai-org/glm-4.7-flash, etc'). - type: string - 'n': - maximum: 128 - minimum: 1 - nullable: true - type: integer - parallel_tool_calls: - default: true - description: Whether to enable parallel function calling during tool use. - type: boolean - prediction: - properties: - content: - type: string - items: - properties: - text: - type: string - type: - enum: - - text - type: string - required: - - type - - text - type: object - type: - enum: - - content - type: string - required: - - type - - content - type: object - presence_penalty: - maximum: 2 - minimum: -2 - nullable: true - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - reasoning_effort: - enum: - - low - - medium - - high - nullable: true - type: string - response_format: - description: Specifies the format the model must output. - type: object - properties: - type: - enum: - - text - type: string - json_schema: - properties: - description: - type: string - name: - type: string - schema: - type: object - strict: - nullable: true - type: boolean - required: - - name - type: object - required: - - type - seed: - nullable: true - type: integer - service_tier: - enum: - - auto - - default - - flex - - scale - - priority - nullable: true - type: string - stop: - type: string - items: - type: string - store: - nullable: true - type: boolean - stream: - nullable: true - type: boolean - stream_options: - properties: - include_obfuscation: - type: boolean - include_usage: - type: boolean - type: object - temperature: - maximum: 2 - minimum: 0 - nullable: true - type: number - tool_choice: - description: Controls which (if any) tool is called by the model. 'none' = no tools, 'auto' = model decides, 'required' = must call a tool. - type: string - enum: - - none - - auto - - required - properties: - function: - properties: - name: - type: string - required: - - name - type: object - type: - enum: - - function - type: string - custom: - properties: - name: - type: string - required: - - name - type: object - allowed_tools: - properties: - mode: - enum: - - auto - - required - type: string - tools: - items: - type: object - type: array - required: - - mode - - tools - type: object - required: - - type - tools: - description: A list of tools the model may call. - items: - type: object - properties: - function: - properties: - description: - description: A description of what the function does. - type: string - name: - description: The name of the function to be called. - type: string - parameters: - description: The parameters the function accepts, described as a JSON Schema object. - type: object - strict: - nullable: true - type: boolean - required: - - name - type: object - type: - enum: - - function - type: string - custom: - properties: - description: - type: string - format: - type: object - properties: - type: - enum: - - text - type: string - grammar: - properties: - definition: - type: string - syntax: - enum: - - lark - - regex - type: string - required: - - definition - - syntax - type: object - required: - - type - name: - type: string - required: - - name - type: object - required: - - type - type: array - top_logprobs: - maximum: 20 - minimum: 0 - nullable: true - type: integer - top_p: - maximum: 1 - minimum: 0 - nullable: true - type: number - user: - description: A unique identifier representing your end-user, for abuse monitoring. - type: string - web_search_options: - description: Options for the web search tool (when using built-in web search). - properties: - search_context_size: - default: medium - enum: - - low - - medium - - high - type: string - user_location: - properties: - approximate: - properties: - city: - type: string - country: - type: string - region: - type: string - timezone: - type: string - type: object - type: - enum: - - approximate - type: string - required: - - type - - approximate - type: object - type: object - messages: - description: A list of messages comprising the conversation so far. - items: - type: object - properties: - content: - type: string - items: - properties: - text: - type: string - type: - enum: - - text - type: string - required: - - type - - text - type: object - name: - type: string - role: - enum: - - developer - type: string - audio: - properties: - id: - type: string - required: - - id - type: object - function_call: - properties: - arguments: - type: string - name: - type: string - required: - - name - - arguments - type: object - refusal: - nullable: true - type: string - tool_calls: - items: - type: object - properties: - function: - properties: - arguments: - description: JSON-encoded arguments string. - type: string - name: - type: string - required: - - name - - arguments - type: object - id: - type: string - type: - enum: - - function - type: string - custom: - properties: - input: - type: string - name: - type: string - required: - - name - - input - type: object - required: - - id - - type - type: array - tool_call_id: - type: string - required: - - role - minItems: 1 - type: array - requests: - items: - type: object - title: Prompt - properties: - audio: - description: Parameters for audio output. Required when modalities includes 'audio'. - properties: - format: - enum: - - wav - - aac - - mp3 - - flac - - opus - - pcm16 - type: string - voice: - type: string - properties: - id: - type: string - required: - - id - required: - - voice - - format - type: object - chat_template_kwargs: - properties: - clear_thinking: - default: false - description: If false, preserves reasoning context between turns. - type: boolean - enable_thinking: - default: true - description: Whether to enable reasoning, enabled by default. - type: boolean - type: object - frequency_penalty: - maximum: 2 - minimum: -2 - nullable: true - type: number - function_call: - type: string - enum: - - none - - auto - properties: - name: - type: string - required: - - name - functions: - items: - properties: - description: - description: A description of what the function does. - type: string - name: - description: The name of the function to be called. - type: string - parameters: - description: The parameters the function accepts, described as a JSON Schema object. - type: object - strict: - nullable: true - type: boolean - required: - - name - type: object - maxItems: 128 - minItems: 1 - type: array - logit_bias: - nullable: true - type: object - logprobs: - nullable: true - type: boolean - max_completion_tokens: - nullable: true - type: integer - max_tokens: - nullable: true - type: integer - metadata: - nullable: true - type: object - modalities: - items: - enum: - - text - - audio - type: string - nullable: true - type: array - model: - description: ID of the model to use (e.g. '@cf/zai-org/glm-4.7-flash, etc'). - type: string - 'n': - maximum: 128 - minimum: 1 - nullable: true - type: integer - parallel_tool_calls: - default: true - description: Whether to enable parallel function calling during tool use. - type: boolean - prediction: - properties: - content: - type: string - items: - properties: - text: - type: string - type: - enum: - - text - type: string - required: - - type - - text - type: object - type: - enum: - - content - type: string - required: - - type - - content - type: object - presence_penalty: - maximum: 2 - minimum: -2 - nullable: true - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - reasoning_effort: - enum: - - low - - medium - - high - nullable: true - type: string - response_format: - description: Specifies the format the model must output. - type: object - properties: - type: - enum: - - text - type: string - json_schema: - properties: - description: - type: string - name: - type: string - schema: - type: object - strict: - nullable: true - type: boolean - required: - - name - type: object - required: - - type - seed: - nullable: true - type: integer - service_tier: - enum: - - auto - - default - - flex - - scale - - priority - nullable: true - type: string - stop: - type: string - items: - type: string - store: - nullable: true - type: boolean - stream: - nullable: true - type: boolean - stream_options: - properties: - include_obfuscation: - type: boolean - include_usage: - type: boolean - type: object - temperature: - maximum: 2 - minimum: 0 - nullable: true - type: number - tool_choice: - description: Controls which (if any) tool is called by the model. 'none' = no tools, 'auto' = model decides, 'required' = must call a tool. - type: string - enum: - - none - - auto - - required - properties: - function: - properties: - name: - type: string - required: - - name - type: object - type: - enum: - - function - type: string - custom: - properties: - name: - type: string - required: - - name - type: object - allowed_tools: - properties: - mode: - enum: - - auto - - required - type: string - tools: - items: - type: object - type: array - required: - - mode - - tools - type: object - required: - - type - tools: - description: A list of tools the model may call. - items: - type: object - properties: - function: - properties: - description: - description: A description of what the function does. - type: string - name: - description: The name of the function to be called. - type: string - parameters: - description: The parameters the function accepts, described as a JSON Schema object. - type: object - strict: - nullable: true - type: boolean - required: - - name - type: object - type: - enum: - - function - type: string - custom: - properties: - description: - type: string - format: - type: object - properties: - type: - enum: - - text - type: string - grammar: - properties: - definition: - type: string - syntax: - enum: - - lark - - regex - type: string - required: - - definition - - syntax - type: object - required: - - type - name: - type: string - required: - - name - type: object - required: - - type - type: array - top_logprobs: - maximum: 20 - minimum: 0 - nullable: true - type: integer - top_p: - maximum: 1 - minimum: 0 - nullable: true - type: number - user: - description: A unique identifier representing your end-user, for abuse monitoring. - type: string - web_search_options: - description: Options for the web search tool (when using built-in web search). - properties: - search_context_size: - default: medium - enum: - - low - - medium - - high - type: string - user_location: - properties: - approximate: - properties: - city: - type: string - country: - type: string - region: - type: string - timezone: - type: string - type: object - type: - enum: - - approximate - type: string - required: - - type - - approximate - type: object - type: object - messages: - description: A list of messages comprising the conversation so far. - items: - type: object - properties: - content: - type: string - items: - properties: - text: - type: string - type: - enum: - - text - type: string - required: - - type - - text - type: object - name: - type: string - role: - enum: - - developer - type: string - audio: - properties: - id: - type: string - required: - - id - type: object - function_call: - properties: - arguments: - type: string - name: - type: string - required: - - name - - arguments - type: object - refusal: - nullable: true - type: string - tool_calls: - items: - type: object - properties: - function: - properties: - arguments: - description: JSON-encoded arguments string. - type: string - name: - type: string - required: - - name - - arguments - type: object - id: - type: string - type: - enum: - - function - type: string - custom: - properties: - input: - type: string - name: - type: string - required: - - name - - input - type: object - required: - - id - - type - type: array - tool_call_id: - type: string - required: - - role - minItems: 1 - type: array - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/moonshotai/kimi-k2.5 model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/myshell-ai/melotts: - post: - description: Runs inference on the @cf/myshell-ai/melotts model. - operationId: workers-ai-post-run-cf-myshell-ai-melotts - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - properties: - lang: - default: en - description: The speech language (e.g., 'en' for English, 'fr' for French). Defaults to 'en' if not specified - type: string - prompt: - description: A text description of the audio you want to generate - minLength: 1 - type: string - required: - - prompt - type: object - responses: - '200': - content: - application/json: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/myshell-ai/melotts model. - tags: - - Workers AI Text To Speech - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/nvidia/nemotron-3-120b-a12b: - post: - description: Runs inference on the @cf/nvidia/nemotron-3-120b-a12b model. - operationId: workers-ai-post-run-cf-nvidia-nemotron-3-120b-a12b - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - audio: - description: Parameters for audio output. Required when modalities includes 'audio'. - properties: - format: - enum: - - wav - - aac - - mp3 - - flac - - opus - - pcm16 - type: string - voice: - type: string - properties: - id: - type: string - required: - - id - required: - - voice - - format - type: object - chat_template_kwargs: - properties: - clear_thinking: - default: false - description: If false, preserves reasoning context between turns. - type: boolean - enable_thinking: - default: true - description: Whether to enable reasoning, enabled by default. - type: boolean - type: object - frequency_penalty: - maximum: 2 - minimum: -2 - nullable: true - type: number - function_call: - type: string - enum: - - none - - auto - properties: - name: - type: string - required: - - name - functions: - items: - properties: - description: - description: A description of what the function does. - type: string - name: - description: The name of the function to be called. - type: string - parameters: - description: The parameters the function accepts, described as a JSON Schema object. - type: object - strict: - nullable: true - type: boolean - required: - - name - type: object - maxItems: 128 - minItems: 1 - type: array - logit_bias: - nullable: true - type: object - logprobs: - nullable: true - type: boolean - max_completion_tokens: - nullable: true - type: integer - max_tokens: - nullable: true - type: integer - metadata: - nullable: true - type: object - modalities: - items: - enum: - - text - - audio - type: string - nullable: true - type: array - model: - description: ID of the model to use (e.g. '@cf/zai-org/glm-4.7-flash, etc'). - type: string - 'n': - maximum: 128 - minimum: 1 - nullable: true - type: integer - parallel_tool_calls: - default: true - description: Whether to enable parallel function calling during tool use. - type: boolean - prediction: - properties: - content: - type: string - items: - properties: - text: - type: string - type: - enum: - - text - type: string - required: - - type - - text - type: object - type: - enum: - - content - type: string - required: - - type - - content - type: object - presence_penalty: - maximum: 2 - minimum: -2 - nullable: true - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - reasoning_effort: - enum: - - low - - medium - - high - nullable: true - type: string - response_format: - description: Specifies the format the model must output. - type: object - properties: - type: - enum: - - text - type: string - json_schema: - properties: - description: - type: string - name: - type: string - schema: - type: object - strict: - nullable: true - type: boolean - required: - - name - type: object - required: - - type - seed: - nullable: true - type: integer - service_tier: - enum: - - auto - - default - - flex - - scale - - priority - nullable: true - type: string - stop: - type: string - items: - type: string - store: - nullable: true - type: boolean - stream: - nullable: true - type: boolean - stream_options: - properties: - include_obfuscation: - type: boolean - include_usage: - type: boolean - type: object - temperature: - maximum: 2 - minimum: 0 - nullable: true - type: number - tool_choice: - description: Controls which (if any) tool is called by the model. 'none' = no tools, 'auto' = model decides, 'required' = must call a tool. - type: string - enum: - - none - - auto - - required - properties: - function: - properties: - name: - type: string - required: - - name - type: object - type: - enum: - - function - type: string - custom: - properties: - name: - type: string - required: - - name - type: object - allowed_tools: - properties: - mode: - enum: - - auto - - required - type: string - tools: - items: - type: object - type: array - required: - - mode - - tools - type: object - required: - - type - tools: - description: A list of tools the model may call. - items: - type: object - properties: - function: - properties: - description: - description: A description of what the function does. - type: string - name: - description: The name of the function to be called. - type: string - parameters: - description: The parameters the function accepts, described as a JSON Schema object. - type: object - strict: - nullable: true - type: boolean - required: - - name - type: object - type: - enum: - - function - type: string - custom: - properties: - description: - type: string - format: - type: object - properties: - type: - enum: - - text - type: string - grammar: - properties: - definition: - type: string - syntax: - enum: - - lark - - regex - type: string - required: - - definition - - syntax - type: object - required: - - type - name: - type: string - required: - - name - type: object - required: - - type - type: array - top_logprobs: - maximum: 20 - minimum: 0 - nullable: true - type: integer - top_p: - maximum: 1 - minimum: 0 - nullable: true - type: number - user: - description: A unique identifier representing your end-user, for abuse monitoring. - type: string - web_search_options: - description: Options for the web search tool (when using built-in web search). - properties: - search_context_size: - default: medium - enum: - - low - - medium - - high - type: string - user_location: - properties: - approximate: - properties: - city: - type: string - country: - type: string - region: - type: string - timezone: - type: string - type: object - type: - enum: - - approximate - type: string - required: - - type - - approximate - type: object - type: object - messages: - description: A list of messages comprising the conversation so far. - items: - type: object - properties: - content: - type: string - items: - properties: - text: - type: string - type: - enum: - - text - type: string - required: - - type - - text - type: object - name: - type: string - role: - enum: - - developer - type: string - audio: - properties: - id: - type: string - required: - - id - type: object - function_call: - properties: - arguments: - type: string - name: - type: string - required: - - name - - arguments - type: object - refusal: - nullable: true - type: string - tool_calls: - items: - type: object - properties: - function: - properties: - arguments: - description: JSON-encoded arguments string. - type: string - name: - type: string - required: - - name - - arguments - type: object - id: - type: string - type: - enum: - - function - type: string - custom: - properties: - input: - type: string - name: - type: string - required: - - name - - input - type: object - required: - - id - - type - type: array - tool_call_id: - type: string - required: - - role - minItems: 1 - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/nvidia/nemotron-3-120b-a12b model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/openai/gpt-oss-120b: - post: - description: Runs inference on the @cf/openai/gpt-oss-120b model. - operationId: workers-ai-post-run-cf-openai-gpt-oss-120b - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - input: - description: Responses API Input messages. Refer to OpenAI Responses API docs to learn more about supported content types - type: string - items: {} - reasoning: - properties: - effort: - description: Constrains effort on reasoning for reasoning models. Currently supported values are low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. - enum: - - low - - medium - - high - type: string - summary: - description: A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. One of auto, concise, or detailed. - enum: - - auto - - concise - - detailed - type: string - type: object - requests: - items: - properties: - input: - description: Responses API Input messages. Refer to OpenAI Responses API docs to learn more about supported content types - type: string - items: {} - reasoning: - properties: - effort: - description: Constrains effort on reasoning for reasoning models. Currently supported values are low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. - enum: - - low - - medium - - high - type: string - summary: - description: A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. One of auto, concise, or detailed. - enum: - - auto - - concise - - detailed - type: string - type: object - required: - - input - type: object - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/openai/gpt-oss-120b model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/openai/gpt-oss-20b: - post: - description: Runs inference on the @cf/openai/gpt-oss-20b model. - operationId: workers-ai-post-run-cf-openai-gpt-oss-20b - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - input: - description: Responses API Input messages. Refer to OpenAI Responses API docs to learn more about supported content types - type: string - items: {} - reasoning: - properties: - effort: - description: Constrains effort on reasoning for reasoning models. Currently supported values are low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. - enum: - - low - - medium - - high - type: string - summary: - description: A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. One of auto, concise, or detailed. - enum: - - auto - - concise - - detailed - type: string - type: object - requests: - items: - properties: - input: - description: Responses API Input messages. Refer to OpenAI Responses API docs to learn more about supported content types - type: string - items: {} - reasoning: - properties: - effort: - description: Constrains effort on reasoning for reasoning models. Currently supported values are low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. - enum: - - low - - medium - - high - type: string - summary: - description: A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. One of auto, concise, or detailed. - enum: - - auto - - concise - - detailed - type: string - type: object - required: - - input - type: object - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/openai/gpt-oss-20b model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/openai/whisper: - post: - description: Runs inference on the @cf/openai/whisper model. - operationId: workers-ai-post-run-cf-openai-whisper - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/octet-stream: - schema: - format: binary - type: string - responses: - '200': - content: - application/json: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/openai/whisper model. - tags: - - Workers AI Automatic Speech Recognition - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/openai/whisper-large-v3-turbo: - post: - description: Runs inference on the @cf/openai/whisper-large-v3-turbo model. - operationId: workers-ai-post-run-cf-openai-whisper-large-v3-turbo - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - properties: - audio: - type: string - description: Base64 encoded value of the audio data. - properties: - body: - type: object - contentType: - type: string - beam_size: - default: 5 - description: The number of beams to use in beam search decoding. Higher values may improve accuracy at the cost of speed. - type: integer - compression_ratio_threshold: - default: 2.4 - description: Threshold for filtering out segments with high compression ratio, which often indicate repetitive or hallucinated text. - type: number - condition_on_previous_text: - default: true - description: Whether to condition on previous text during transcription. Setting to false may help prevent hallucination loops. - type: boolean - hallucination_silence_threshold: - description: Optional threshold (in seconds) to skip silent periods that may cause hallucinations. - type: number - initial_prompt: - description: A text prompt to help provide context to the model on the contents of the audio. - type: string - language: - description: The language of the audio being transcribed or translated. - type: string - log_prob_threshold: - default: -1 - description: Threshold for filtering out segments with low average log probability, indicating low confidence. - type: number - no_speech_threshold: - default: 0.6 - description: Threshold for detecting no-speech segments. Segments with no-speech probability above this value are skipped. - type: number - prefix: - description: The prefix appended to the beginning of the output of the transcription and can guide the transcription result. - type: string - task: - default: transcribe - description: Supported tasks are 'translate' or 'transcribe'. - type: string - vad_filter: - default: false - description: Preprocess the audio with a voice activity detection model. - type: boolean - required: - - audio - type: object - responses: - '200': - content: - application/json: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/openai/whisper-large-v3-turbo model. - tags: - - Workers AI Automatic Speech Recognition - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/openai/whisper-tiny-en: - post: - description: Runs inference on the @cf/openai/whisper-tiny-en model. - operationId: workers-ai-post-run-cf-openai-whisper-tiny-en - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/octet-stream: - schema: - format: binary - type: string - responses: - '200': - content: - application/json: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/openai/whisper-tiny-en model. - tags: - - Workers AI Automatic Speech Recognition - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/openchat/openchat-3.5-0106: - post: - description: Runs inference on the @cf/openchat/openchat-3.5-0106 model. - operationId: workers-ai-post-run-cf-openchat-openchat-3-5-0106 - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/openchat/openchat-3.5-0106 model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/pfnet/plamo-embedding-1b: - post: - description: Runs inference on the @cf/pfnet/plamo-embedding-1b model. - operationId: workers-ai-post-run-cf-pfnet-plamo-embedding-1b - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - properties: - text: - description: Input text to embed. Can be a single string or a list of strings. - type: string - items: - type: string - required: - - text - type: object - responses: - '200': - content: - application/json: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/pfnet/plamo-embedding-1b model. - tags: - - Workers AI Text Embeddings - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/qwen/qwen1.5-0.5b-chat: - post: - description: Runs inference on the @cf/qwen/qwen1.5-0.5b-chat model. - operationId: workers-ai-post-run-cf-qwen-qwen1-5-0-5b-chat - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/qwen/qwen1.5-0.5b-chat model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/qwen/qwen1.5-1.8b-chat: - post: - description: Runs inference on the @cf/qwen/qwen1.5-1.8b-chat model. - operationId: workers-ai-post-run-cf-qwen-qwen1-5-1-8b-chat - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/qwen/qwen1.5-1.8b-chat model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/qwen/qwen1.5-14b-chat-awq: - post: - description: Runs inference on the @cf/qwen/qwen1.5-14b-chat-awq model. - operationId: workers-ai-post-run-cf-qwen-qwen1-5-14b-chat-awq - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/qwen/qwen1.5-14b-chat-awq model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/qwen/qwen1.5-7b-chat-awq: - post: - description: Runs inference on the @cf/qwen/qwen1.5-7b-chat-awq model. - operationId: workers-ai-post-run-cf-qwen-qwen1-5-7b-chat-awq - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/qwen/qwen1.5-7b-chat-awq model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/qwen/qwen2.5-coder-32b-instruct: - post: - description: Runs inference on the @cf/qwen/qwen2.5-coder-32b-instruct model. - operationId: workers-ai-post-run-cf-qwen-qwen2-5-coder-32b-instruct - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: 0 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: 0 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 2 - minimum: 0 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - description: The content of the message as a string. - type: string - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/qwen/qwen2.5-coder-32b-instruct model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/qwen/qwen3-30b-a3b-fp8: - post: - description: Runs inference on the @cf/qwen/qwen3-30b-a3b-fp8 model. - operationId: workers-ai-post-run-cf-qwen-qwen3-30b-a3b-fp8 - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 2000 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - requests: - items: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/qwen/qwen3-30b-a3b-fp8 model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/qwen/qwen3-embedding-0.6b: - post: - description: Runs inference on the @cf/qwen/qwen3-embedding-0.6b model. - operationId: workers-ai-post-run-cf-qwen-qwen3-embedding-0-6b - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - properties: - documents: - type: string - description: A single document string - items: - minLength: 1 - type: string - instruction: - default: Given a web search query, retrieve relevant passages that answer the query - description: Optional instruction for the task - type: string - queries: - type: string - description: A single query string - items: - minLength: 1 - type: string - text: - type: string - description: 'Alias for documents: a single text string' - items: - minLength: 1 - type: string - type: object - responses: - '200': - content: - application/json: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/qwen/qwen3-embedding-0.6b model. - tags: - - Workers AI Text Embeddings - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/qwen/qwq-32b: - post: - description: Runs inference on the @cf/qwen/qwq-32b model. - operationId: workers-ai-post-run-cf-qwen-qwq-32b - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: 0 - type: number - guided_json: - description: JSON schema that should be fulfilled for the response. - type: object - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: 0 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.15 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 2 - minimum: 0 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - image_url: - properties: - url: - description: image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted - type: string - type: object - text: - type: string - type: - description: Type of the content provided - type: string - type: object - properties: - image_url: - properties: - url: - description: image uri with data (e.g. data:image/jpeg;base64,/9j/...). HTTP URL will not be accepted - type: string - type: object - text: - type: string - type: - description: Type of the content provided - type: string - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - tool_call_id: - description: The tool call id. If you don't know what to put here you can fall back to 000000001 - type: string - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/qwen/qwq-32b model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/runwayml/stable-diffusion-v1-5-img2img: - post: - description: Runs inference on the @cf/runwayml/stable-diffusion-v1-5-img2img model. - operationId: workers-ai-post-run-cf-runwayml-stable-diffusion-v1-5-img2img - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - properties: - guidance: - default: 7.5 - description: Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt - type: number - height: - description: The height of the generated image in pixels - maximum: 2048 - minimum: 256 - type: integer - image: - description: For use with img2img tasks. An array of integers that represent the image data constrained to 8-bit unsigned integer values - items: - description: A value between 0 and 255 - type: number - type: array - image_b64: - description: For use with img2img tasks. A base64-encoded string of the input image - type: string - mask: - description: An array representing An array of integers that represent mask image data for inpainting constrained to 8-bit unsigned integer values - items: - description: A value between 0 and 255 - type: number - type: array - negative_prompt: - description: Text describing elements to avoid in the generated image - type: string - num_steps: - default: 20 - description: The number of diffusion steps; higher values can improve quality but take longer - maximum: 20 - type: integer - prompt: - description: A text description of the image you want to generate - minLength: 1 - type: string - seed: - description: Random seed for reproducibility of the image generation - type: integer - strength: - default: 1 - 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 - type: number - width: - description: The width of the generated image in pixels - maximum: 2048 - minimum: 256 - type: integer - required: - - prompt - type: object - responses: - '200': - content: - application/json: - schema: - type: object - image/png: - schema: - format: binary - type: string - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/runwayml/stable-diffusion-v1-5-img2img model. - tags: - - Workers AI Text To Image - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/runwayml/stable-diffusion-v1-5-inpainting: - post: - description: Runs inference on the @cf/runwayml/stable-diffusion-v1-5-inpainting model. - operationId: workers-ai-post-run-cf-runwayml-stable-diffusion-v1-5-inpainting - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - properties: - guidance: - default: 7.5 - description: Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt - type: number - height: - description: The height of the generated image in pixels - maximum: 2048 - minimum: 256 - type: integer - image: - description: For use with img2img tasks. An array of integers that represent the image data constrained to 8-bit unsigned integer values - items: - description: A value between 0 and 255 - type: number - type: array - image_b64: - description: For use with img2img tasks. A base64-encoded string of the input image - type: string - mask: - description: An array representing An array of integers that represent mask image data for inpainting constrained to 8-bit unsigned integer values - items: - description: A value between 0 and 255 - type: number - type: array - negative_prompt: - description: Text describing elements to avoid in the generated image - type: string - num_steps: - default: 20 - description: The number of diffusion steps; higher values can improve quality but take longer - maximum: 20 - type: integer - prompt: - description: A text description of the image you want to generate - minLength: 1 - type: string - seed: - description: Random seed for reproducibility of the image generation - type: integer - strength: - default: 1 - 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 - type: number - width: - description: The width of the generated image in pixels - maximum: 2048 - minimum: 256 - type: integer - required: - - prompt - type: object - responses: - '200': - content: - application/json: - schema: - type: object - image/png: - schema: - format: binary - type: string - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/runwayml/stable-diffusion-v1-5-inpainting model. - tags: - - Workers AI Text To Image - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/stabilityai/stable-diffusion-xl-base-1.0: - post: - description: Runs inference on the @cf/stabilityai/stable-diffusion-xl-base-1.0 model. - operationId: workers-ai-post-run-cf-stabilityai-stable-diffusion-xl-base-1-0 - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - properties: - guidance: - default: 7.5 - description: Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt - type: number - height: - description: The height of the generated image in pixels - maximum: 2048 - minimum: 256 - type: integer - image: - description: For use with img2img tasks. An array of integers that represent the image data constrained to 8-bit unsigned integer values - items: - description: A value between 0 and 255 - type: number - type: array - image_b64: - description: For use with img2img tasks. A base64-encoded string of the input image - type: string - mask: - description: An array representing An array of integers that represent mask image data for inpainting constrained to 8-bit unsigned integer values - items: - description: A value between 0 and 255 - type: number - type: array - negative_prompt: - description: Text describing elements to avoid in the generated image - type: string - num_steps: - default: 20 - description: The number of diffusion steps; higher values can improve quality but take longer - maximum: 20 - type: integer - prompt: - description: A text description of the image you want to generate - minLength: 1 - type: string - seed: - description: Random seed for reproducibility of the image generation - type: integer - strength: - default: 1 - 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 - type: number - width: - description: The width of the generated image in pixels - maximum: 2048 - minimum: 256 - type: integer - required: - - prompt - type: object - responses: - '200': - content: - application/json: - schema: - type: object - image/png: - schema: - format: binary - type: string - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/stabilityai/stable-diffusion-xl-base-1.0 model. - tags: - - Workers AI Text To Image - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/thebloke/discolm-german-7b-v1-awq: - post: - description: Runs inference on the @cf/thebloke/discolm-german-7b-v1-awq model. - operationId: workers-ai-post-run-cf-thebloke-discolm-german-7b-v1-awq - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/thebloke/discolm-german-7b-v1-awq model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/tiiuae/falcon-7b-instruct: - post: - description: Runs inference on the @cf/tiiuae/falcon-7b-instruct model. - operationId: workers-ai-post-run-cf-tiiuae-falcon-7b-instruct - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/tiiuae/falcon-7b-instruct model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/tinyllama/tinyllama-1.1b-chat-v1.0: - post: - description: Runs inference on the @cf/tinyllama/tinyllama-1.1b-chat-v1.0 model. - operationId: workers-ai-post-run-cf-tinyllama-tinyllama-1-1b-chat-v1-0 - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/tinyllama/tinyllama-1.1b-chat-v1.0 model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@cf/zai-org/glm-4.7-flash: - post: - description: Runs inference on the @cf/zai-org/glm-4.7-flash model. - operationId: workers-ai-post-run-cf-zai-org-glm-4-7-flash - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - audio: - description: Parameters for audio output. Required when modalities includes 'audio'. - properties: - format: - enum: - - wav - - aac - - mp3 - - flac - - opus - - pcm16 - type: string - voice: - type: string - properties: - id: - type: string - required: - - id - required: - - voice - - format - type: object - chat_template_kwargs: - properties: - clear_thinking: - default: false - description: If false, preserves reasoning context between turns. - type: boolean - enable_thinking: - default: true - description: Whether to enable reasoning, enabled by default. - type: boolean - type: object - frequency_penalty: - maximum: 2 - minimum: -2 - nullable: true - type: number - function_call: - type: string - enum: - - none - - auto - properties: - name: - type: string - required: - - name - functions: - items: - properties: - description: - description: A description of what the function does. - type: string - name: - description: The name of the function to be called. - type: string - parameters: - description: The parameters the function accepts, described as a JSON Schema object. - type: object - strict: - nullable: true - type: boolean - required: - - name - type: object - maxItems: 128 - minItems: 1 - type: array - logit_bias: - nullable: true - type: object - logprobs: - nullable: true - type: boolean - max_completion_tokens: - nullable: true - type: integer - max_tokens: - nullable: true - type: integer - metadata: - nullable: true - type: object - modalities: - items: - enum: - - text - - audio - type: string - nullable: true - type: array - model: - description: ID of the model to use (e.g. '@cf/zai-org/glm-4.7-flash, etc'). - type: string - 'n': - maximum: 128 - minimum: 1 - nullable: true - type: integer - parallel_tool_calls: - default: true - description: Whether to enable parallel function calling during tool use. - type: boolean - prediction: - properties: - content: - type: string - items: - properties: - text: - type: string - type: - enum: - - text - type: string - required: - - type - - text - type: object - type: - enum: - - content - type: string - required: - - type - - content - type: object - presence_penalty: - maximum: 2 - minimum: -2 - nullable: true - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - reasoning_effort: - enum: - - low - - medium - - high - nullable: true - type: string - response_format: - description: Specifies the format the model must output. - type: object - properties: - type: - enum: - - text - type: string - json_schema: - properties: - description: - type: string - name: - type: string - schema: - type: object - strict: - nullable: true - type: boolean - required: - - name - type: object - required: - - type - seed: - nullable: true - type: integer - service_tier: - enum: - - auto - - default - - flex - - scale - - priority - nullable: true - type: string - stop: - type: string - items: - type: string - store: - nullable: true - type: boolean - stream: - nullable: true - type: boolean - stream_options: - properties: - include_obfuscation: - type: boolean - include_usage: - type: boolean - type: object - temperature: - maximum: 2 - minimum: 0 - nullable: true - type: number - tool_choice: - description: Controls which (if any) tool is called by the model. 'none' = no tools, 'auto' = model decides, 'required' = must call a tool. - type: string - enum: - - none - - auto - - required - properties: - function: - properties: - name: - type: string - required: - - name - type: object - type: - enum: - - function - type: string - custom: - properties: - name: - type: string - required: - - name - type: object - allowed_tools: - properties: - mode: - enum: - - auto - - required - type: string - tools: - items: - type: object - type: array - required: - - mode - - tools - type: object - required: - - type - tools: - description: A list of tools the model may call. - items: - type: object - properties: - function: - properties: - description: - description: A description of what the function does. - type: string - name: - description: The name of the function to be called. - type: string - parameters: - description: The parameters the function accepts, described as a JSON Schema object. - type: object - strict: - nullable: true - type: boolean - required: - - name - type: object - type: - enum: - - function - type: string - custom: - properties: - description: - type: string - format: - type: object - properties: - type: - enum: - - text - type: string - grammar: - properties: - definition: - type: string - syntax: - enum: - - lark - - regex - type: string - required: - - definition - - syntax - type: object - required: - - type - name: - type: string - required: - - name - type: object - required: - - type - type: array - top_logprobs: - maximum: 20 - minimum: 0 - nullable: true - type: integer - top_p: - maximum: 1 - minimum: 0 - nullable: true - type: number - user: - description: A unique identifier representing your end-user, for abuse monitoring. - type: string - web_search_options: - description: Options for the web search tool (when using built-in web search). - properties: - search_context_size: - default: medium - enum: - - low - - medium - - high - type: string - user_location: - properties: - approximate: - properties: - city: - type: string - country: - type: string - region: - type: string - timezone: - type: string - type: object - type: - enum: - - approximate - type: string - required: - - type - - approximate - type: object - type: object - messages: - description: A list of messages comprising the conversation so far. - items: - type: object - properties: - content: - type: string - items: - properties: - text: - type: string - type: - enum: - - text - type: string - required: - - type - - text - type: object - name: - type: string - role: - enum: - - developer - type: string - audio: - properties: - id: - type: string - required: - - id - type: object - function_call: - properties: - arguments: - type: string - name: - type: string - required: - - name - - arguments - type: object - refusal: - nullable: true - type: string - tool_calls: - items: - type: object - properties: - function: - properties: - arguments: - description: JSON-encoded arguments string. - type: string - name: - type: string - required: - - name - - arguments - type: object - id: - type: string - type: - enum: - - function - type: string - custom: - properties: - input: - type: string - name: - type: string - required: - - name - - input - type: object - required: - - id - - type - type: array - tool_call_id: - type: string - required: - - role - minItems: 1 - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @cf/zai-org/glm-4.7-flash model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@hf/google/gemma-7b-it: - post: - description: Runs inference on the @hf/google/gemma-7b-it model. - operationId: workers-ai-post-run-hf-google-gemma-7b-it - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @hf/google/gemma-7b-it model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@hf/mistral/mistral-7b-instruct-v0.2: - post: - description: Runs inference on the @hf/mistral/mistral-7b-instruct-v0.2 model. - operationId: workers-ai-post-run-hf-mistral-mistral-7b-instruct-v0-2 - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @hf/mistral/mistral-7b-instruct-v0.2 model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@hf/nexusflow/starling-lm-7b-beta: - post: - description: Runs inference on the @hf/nexusflow/starling-lm-7b-beta model. - operationId: workers-ai-post-run-hf-nexusflow-starling-lm-7b-beta - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @hf/nexusflow/starling-lm-7b-beta model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@hf/nousresearch/hermes-2-pro-mistral-7b: - post: - description: Runs inference on the @hf/nousresearch/hermes-2-pro-mistral-7b model. - operationId: workers-ai-post-run-hf-nousresearch-hermes-2-pro-mistral-7b - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @hf/nousresearch/hermes-2-pro-mistral-7b model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@hf/thebloke/deepseek-coder-6.7b-base-awq: - post: - description: Runs inference on the @hf/thebloke/deepseek-coder-6.7b-base-awq model. - operationId: workers-ai-post-run-hf-thebloke-deepseek-coder-6-7b-base-awq - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @hf/thebloke/deepseek-coder-6.7b-base-awq model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@hf/thebloke/deepseek-coder-6.7b-instruct-awq: - post: - description: Runs inference on the @hf/thebloke/deepseek-coder-6.7b-instruct-awq model. - operationId: workers-ai-post-run-hf-thebloke-deepseek-coder-6-7b-instruct-awq - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @hf/thebloke/deepseek-coder-6.7b-instruct-awq model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@hf/thebloke/llama-2-13b-chat-awq: - post: - description: Runs inference on the @hf/thebloke/llama-2-13b-chat-awq model. - operationId: workers-ai-post-run-hf-thebloke-llama-2-13b-chat-awq - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @hf/thebloke/llama-2-13b-chat-awq model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@hf/thebloke/mistral-7b-instruct-v0.1-awq: - post: - description: Runs inference on the @hf/thebloke/mistral-7b-instruct-v0.1-awq model. - operationId: workers-ai-post-run-hf-thebloke-mistral-7b-instruct-v0-1-awq - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @hf/thebloke/mistral-7b-instruct-v0.1-awq model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@hf/thebloke/neural-chat-7b-v3-1-awq: - post: - description: Runs inference on the @hf/thebloke/neural-chat-7b-v3-1-awq model. - operationId: workers-ai-post-run-hf-thebloke-neural-chat-7b-v3-1-awq - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @hf/thebloke/neural-chat-7b-v3-1-awq model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@hf/thebloke/openhermes-2.5-mistral-7b-awq: - post: - description: Runs inference on the @hf/thebloke/openhermes-2.5-mistral-7b-awq model. - operationId: workers-ai-post-run-hf-thebloke-openhermes-2-5-mistral-7b-awq - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @hf/thebloke/openhermes-2.5-mistral-7b-awq model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/@hf/thebloke/zephyr-7b-beta-awq: - post: - description: Runs inference on the @hf/thebloke/zephyr-7b-beta-awq model. - operationId: workers-ai-post-run-hf-thebloke-zephyr-7b-beta-awq - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: queueRequest - schema: - type: string - x-auditable: true - - in: query - name: tags - schema: - type: string - requestBody: - content: - application/json: - schema: - type: object - title: Prompt - properties: - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - prompt: - description: The input text prompt for the model to generate a response. - minLength: 1 - type: string - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - seed: - description: Random seed for reproducibility of the generation. - maximum: 9999999999 - minimum: 1 - type: integer - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - responses: - '200': - content: - application/json: - schema: - type: object - text/event-stream: - schema: - type: object - description: Object with user data. - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: string - message: - type: string - required: - - code - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - errors - - success - - result - type: object - description: Bad request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute @hf/thebloke/zephyr-7b-beta-awq model. - tags: - - Workers AI Text Generation - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/run/{model_name}: - post: - description: 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](https://developers.cloudflare.com/workers-ai/models/). - operationId: workers-ai-post-run-model - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: path - name: model_name - schema: - type: string - required: true - requestBody: - content: - application/json: - schema: - type: object - title: Text Classification - properties: - text: - description: The text that you want to classify - minLength: 1 - type: string - guidance: - default: 7.5 - description: Controls how closely the generated image should adhere to the prompt; higher values make the image more aligned with the prompt - type: number - height: - description: The height of the generated image in pixels - maximum: 2048 - minimum: 256 - type: integer - image: - description: For use with img2img tasks. An array of integers that represent the image data constrained to 8-bit unsigned integer values - items: - description: A value between 0 and 255 - type: number - type: array - image_b64: - description: For use with img2img tasks. A base64-encoded string of the input image - type: string - mask: - description: An array representing An array of integers that represent mask image data for inpainting constrained to 8-bit unsigned integer values - items: - description: A value between 0 and 255 - type: number - type: array - negative_prompt: - description: Text describing elements to avoid in the generated image - type: string - num_steps: - default: 20 - description: The number of diffusion steps; higher values can improve quality but take longer - maximum: 20 - type: integer - prompt: - description: A text description of the image you want to generate - minLength: 1 - type: string - seed: - description: Random seed for reproducibility of the image generation - type: integer - strength: - default: 1 - 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 - type: number - width: - description: The width of the generated image in pixels - maximum: 2048 - minimum: 256 - type: integer - lang: - default: en - description: The speech language (e.g., 'en' for English, 'fr' for French). Defaults to 'en' if not specified - type: string - audio: - description: An array of integers that represent the audio data constrained to 8-bit unsigned integer values - items: - description: A value between 0 and 255 - type: number - type: array - source_lang: - description: The language of the recorded audio - type: string - target_lang: - description: The language to translate the transcription into. Currently only English is supported. - type: string - frequency_penalty: - description: Decreases the likelihood of the model repeating the same lines verbatim. - maximum: 2 - minimum: -2 - type: number - lora: - description: Name of the LoRA (Low-Rank Adaptation) model to fine-tune the base model. - type: string - max_tokens: - default: 256 - description: The maximum number of tokens to generate in the response. - type: integer - presence_penalty: - description: Increases the likelihood of the model introducing new topics. - maximum: 2 - minimum: -2 - type: number - raw: - default: false - description: If true, a chat template is not applied and you must adhere to the specific model's expected formatting. - type: boolean - repetition_penalty: - description: Penalty for repeated tokens; higher values discourage repetition. - maximum: 2 - minimum: 0 - type: number - response_format: - properties: - json_schema: {} - type: - enum: - - json_object - - json_schema - type: string - title: JSON Mode - type: object - stream: - default: false - description: If true, the response will be streamed back incrementally using SSE, Server Sent Events. - type: boolean - temperature: - default: 0.6 - description: Controls the randomness of the output; higher values produce more random results. - maximum: 5 - minimum: 0 - type: number - top_k: - 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. - maximum: 50 - minimum: 1 - type: integer - top_p: - 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. - maximum: 1 - minimum: 0.001 - type: number - functions: - items: - properties: - code: - type: string - name: - type: string - required: - - name - - code - type: object - type: array - messages: - description: An array of message objects representing the conversation history. - items: - properties: - content: - type: string - description: The content of the message as a string. - items: - properties: - text: - description: Text content - type: string - type: - description: Type of the content (text) - type: string - type: object - role: - description: The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool'). - type: string - required: - - role - - content - type: object - type: array - tools: - description: A list of tools available for the assistant to use. - items: - type: object - properties: - description: - description: A brief description of what the tool does. - type: string - name: - description: The name of the tool. More descriptive the better. - type: string - parameters: - description: Schema defining the parameters accepted by the tool. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - function: - description: Details of the function tool. - properties: - description: - description: A brief description of what the function does. - type: string - name: - description: The name of the function. - type: string - parameters: - description: Schema defining the parameters accepted by the function. - properties: - properties: - description: Definitions of each parameter. - type: object - required: - description: List of required parameter names. - items: - type: string - type: array - type: - description: The type of the parameters object (usually 'object'). - type: string - required: - - type - - properties - type: object - required: - - name - - description - - parameters - type: object - type: - description: Specifies the type of tool (e.g., 'function'). - type: string - type: array - input_text: - description: The text that you want the model to summarize - minLength: 1 - type: string - max_length: - default: 1024 - description: The maximum length of the generated summary in tokens - type: integer - ignore_eos: - description: Whether to ignore the EOS token and continue generating tokens after the EOS token is generated. - type: boolean - responses: - '200': - content: - application/json: - schema: - properties: - result: - type: object - title: Text Classification - description: An array of classification results for the input text - items: - properties: - label: - description: The classification label assigned to the text (e.g., 'POSITIVE' or 'NEGATIVE') - type: string - score: - description: Confidence score indicating the likelihood that the text belongs to the specified label - type: number - type: object - format: binary - properties: - audio: - description: The generated audio in MP3 format, base64-encoded - type: string - data: - description: Embeddings of the requested text values - items: - description: Floating point embedding representation shaped by the embedding model - items: - type: number - type: array - type: array - shape: - items: - type: number - type: array - text: - description: The transcription - type: string - vtt: - type: string - word_count: - type: number - words: - items: - properties: - end: - description: The ending second when the word completes - type: number - start: - description: The second this word begins in the recording - type: number - word: - type: string - type: object - type: array - response: - description: The generated text response from the model - type: string - tool_calls: - description: An array of tool calls requests made during the response generation - items: - properties: - arguments: - description: The arguments passed to be passed to the tool call request - type: object - name: - description: The name of the tool to be called - type: string - type: object - type: array - usage: - description: Usage statistics for the inference request - properties: - completion_tokens: - default: 0 - description: Total number of tokens in output - type: number - prompt_tokens: - default: 0 - description: Total number of tokens in input - type: number - total_tokens: - default: 0 - description: Total number of input and output tokens - type: number - type: object - translated_text: - description: The translated text in the target language - type: string - summary: - description: The summarized version of the input text - type: string - description: - type: string - required: [] - type: object - description: Model response - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - message: - type: string - required: - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - result - - success - - errors - type: object - description: Bad Request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Execute AI model - tags: - - Workers AI - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - x-stackql-sdk: - service: ai - resource_chain: [] - method: run - /accounts/{account_id}/ai/tasks/search: - get: - description: Searches Workers AI models by task type (e.g., text-generation, embeddings). - operationId: workers-ai-search-task - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - responses: - '200': - content: - application/json: - schema: - properties: - errors: - items: - type: object - type: array - messages: - items: - type: string - type: array - result: - items: - type: object - type: array - success: - type: boolean - x-auditable: true - required: - - success - - result - - errors - - messages - type: object - description: Returns a list of tasks - '404': - content: - application/json: - schema: - properties: - errors: - items: - type: object - type: array - success: - type: boolean - required: - - success - - errors - type: object - description: Object not found - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Task Search - tags: - - Workers AI - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - x-stackql-sdk: - service: ai - resource_chain: - - tasks - method: list - /accounts/{account_id}/ai/tomarkdown: - post: - description: Converts uploaded files into Markdown format using Workers AI. - operationId: workers-ai-post-to-markdown - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - requestBody: - content: - multipart/form-data: - schema: - properties: - files: - items: - format: binary - type: string - type: array - required: - - files - type: object - responses: - '200': - content: - application/json: - schema: - properties: - result: - items: - properties: - data: - type: string - x-auditable: true - format: - type: string - x-auditable: true - mimeType: - type: string - x-auditable: true - name: - type: string - x-auditable: true - tokens: - type: string - x-auditable: true - required: - - name - - mimeType - - format - - tokens - - data - type: object - type: array - success: - type: boolean - required: - - success - - result - type: object - description: Model Schema - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - message: - type: string - required: - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - result - - success - - errors - type: object - description: Bad Request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Convert Files into Markdown - tags: - - Workers AI - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/ai/tomarkdown/supported: - get: - description: Lists all file formats supported for conversion to Markdown. - operationId: workers-ai-get-to-markdown-supported - parameters: - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - responses: - '200': - content: - application/json: - schema: - properties: - result: - items: - properties: - extension: - type: string - x-auditable: true - mimeType: - type: string - x-auditable: true - required: - - extension - - mimeType - type: object - type: array - success: - type: boolean - required: - - success - - result - type: object - description: Successful response - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - message: - type: string - required: - - message - type: object - type: array - result: - type: object - success: - type: boolean - required: - - result - - success - - errors - type: object - description: Bad Request - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Get all converted formats supported - tags: - - Workers AI - x-api-token-group: - - Workers AI Write - - Workers AI Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.ai - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - x-stackql-sdk: - service: ai - resource_chain: - - to_markdown - method: supported - /accounts/{account_id}/autorag/rags/{id}/ai-search: - post: - operationId: autorag-config-ai-search - parameters: - - name: id - in: path - required: true - description: Resource ID. - schema: - type: string - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - requestBody: - content: - application/json: - schema: - properties: - filters: - type: object - properties: - key: - type: string - type: - enum: - - eq - - ne - - gt - - gte - - lt - - lte - type: string - value: - type: string - filters: - items: - properties: - key: - type: string - type: - enum: - - eq - - ne - - gt - - gte - - lt - - lte - type: string - value: - type: string - required: - - key - - type - - value - type: object - type: array - required: - - type - max_num_results: - default: 10 - maximum: 50 - minimum: 1 - type: integer - model: - type: string - enum: - - '@cf/meta/llama-3.3-70b-instruct-fp8-fast' - - '@cf/meta/llama-3.1-8b-instruct-fast' - - '@cf/meta/llama-3.1-8b-instruct-fp8' - - '@cf/meta/llama-4-scout-17b-16e-instruct' - - '@cf/qwen/qwen3-30b-a3b-fp8' - - '@cf/deepseek-ai/deepseek-r1-distill-qwen-32b' - - '@cf/moonshotai/kimi-k2-instruct' - - anthropic/claude-3-7-sonnet - - anthropic/claude-sonnet-4 - - anthropic/claude-opus-4 - - anthropic/claude-3-5-haiku - - cerebras/qwen-3-235b-a22b-instruct - - cerebras/qwen-3-235b-a22b-thinking - - cerebras/llama-3.3-70b - - cerebras/llama-4-maverick-17b-128e-instruct - - cerebras/llama-4-scout-17b-16e-instruct - - cerebras/gpt-oss-120b - - google-ai-studio/gemini-2.5-flash - - google-ai-studio/gemini-2.5-pro - - grok/grok-4 - - groq/llama-3.3-70b-versatile - - groq/llama-3.1-8b-instant - - openai/gpt-5 - - openai/gpt-5-mini - - openai/gpt-5-nano - query: - type: string - ranking_options: - default: {} - properties: - ranker: - type: string - score_threshold: - default: 0.4 - maximum: 1 - minimum: 0 - type: number - type: object - reranking: - properties: - enabled: - default: false - type: boolean - model: - type: string - enum: - - '@cf/baai/bge-reranker-base' - type: object - rewrite_query: - default: false - type: boolean - stream: - default: false - type: boolean - system_prompt: - type: string - required: - - query - type: object - responses: - '200': - content: - application/json: - schema: - properties: - result: - properties: - data: - items: - properties: - attributes: - type: object - content: - items: - properties: - text: - type: string - type: - type: string - type: object - type: array - file_id: - type: string - filename: - type: string - score: - type: number - required: - - score - type: object - type: array - has_more: - default: false - type: boolean - next_page: - nullable: true - type: string - object: - type: string - response: - type: string - search_query: - type: string - required: - - search_query - - response - type: object - success: - type: boolean - required: - - success - - result - type: object - description: Returns the log details - '404': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: number - message: - type: string - required: - - code - - message - type: object - type: array - success: - enum: - - false - type: boolean - required: - - success - - errors - type: object - description: Not Found - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: AI Search - tags: - - AutoRAG RAG Search - x-api-token-group: - - Auto Rag Write - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.rag - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/autorag/rags/{id}/files: - get: - operationId: autorag-config-files - parameters: - - name: id - in: path - required: true - description: Resource ID. - schema: - type: string - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: page - schema: - default: 1 - minimum: 1 - type: integer - - in: query - name: per_page - schema: - default: 20 - maximum: 50 - minimum: 0 - type: integer - - in: query - name: search - schema: - type: string - - in: query - name: status - schema: - enum: - - completed - - queued - - running - - error - type: string - responses: - '200': - content: - application/json: - schema: - properties: - result: - items: - properties: - error: - type: string - key: - type: string - required: - - key - - error - type: object - type: array - result_info: - properties: - count: - type: integer - page: - type: integer - per_page: - default: 20 - maximum: 50 - minimum: 5 - type: integer - total_count: - type: integer - required: - - count - - page - - total_count - type: object - success: - type: boolean - required: - - success - - result - - result_info - type: object - description: Returns the AI Search files - '404': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: number - message: - type: string - required: - - code - - message - type: object - type: array - success: - enum: - - false - type: boolean - required: - - success - - errors - type: object - description: autorag_not_found - '503': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: number - message: - type: string - required: - - code - - message - type: object - type: array - success: - enum: - - false - type: boolean - required: - - success - - errors - type: object - description: unable_to_connect_to_autorag - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Files - tags: - - AutoRAG RAG - x-api-token-group: - - Auto Rag Write - - Auto Rag Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.rag - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/autorag/rags/{id}/jobs: - get: - operationId: autorag-config-list-jobs - parameters: - - name: id - in: path - required: true - description: Resource ID. - schema: - type: string - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: page - schema: - default: 1 - minimum: 1 - type: integer - - in: query - name: per_page - schema: - default: 20 - maximum: 50 - minimum: 0 - type: integer - responses: - '200': - content: - application/json: - schema: - properties: - result: - items: - properties: - end_reason: - type: string - ended_at: - type: string - id: - type: string - last_seen_at: - type: string - source: - enum: - - user - - schedule - type: string - started_at: - type: string - required: - - id - - source - type: object - type: array - result_info: - properties: - count: - type: integer - page: - type: integer - per_page: - type: integer - total_count: - type: integer - required: - - count - - page - - per_page - - total_count - type: object - success: - type: boolean - required: - - success - - result - - result_info - type: object - description: Returns a list of AutoRAG Jobs - '404': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: number - message: - type: string - required: - - code - - message - type: object - type: array - success: - enum: - - false - type: boolean - required: - - success - - errors - type: object - description: autorag_not_found - '503': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: number - message: - type: string - required: - - code - - message - type: object - type: array - success: - enum: - - false - type: boolean - required: - - success - - errors - type: object - description: unable_to_connect_to_autorag - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: List Jobs - tags: - - AutoRAG Jobs - x-api-token-group: - - Auto Rag Write - - Auto Rag Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.rag - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/autorag/rags/{id}/jobs/{job_id}: - get: - operationId: autorag-config-get-job - parameters: - - name: id - in: path - required: true - description: Resource ID. - schema: - type: string - - name: job_id - in: path - required: true - description: The job ID. - schema: - type: string - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - responses: - '200': - content: - application/json: - schema: - properties: - result: - properties: - end_reason: - type: string - ended_at: - type: string - id: - type: string - last_seen_at: - type: string - source: - enum: - - user - - schedule - type: string - started_at: - type: string - required: - - id - - source - type: object - success: - type: boolean - required: - - success - - result - type: object - description: Returns a AutoRAG Job Details - '404': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: number - message: - type: string - required: - - code - - message - type: object - type: array - success: - enum: - - false - type: boolean - required: - - success - - errors - type: object - description: job_not_found - '503': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: number - message: - type: string - required: - - code - - message - type: object - type: array - success: - enum: - - false - type: boolean - required: - - success - - errors - type: object - description: unable_to_connect_to_autorag - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Get a Job Details - tags: - - AutoRAG Jobs - x-api-token-group: - - Auto Rag Write - - Auto Rag Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.rag - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/autorag/rags/{id}/jobs/{job_id}/logs: - get: - operationId: autorag-config-list-job-logs - parameters: - - name: id - in: path - required: true - description: Resource ID. - schema: - type: string - - name: job_id - in: path - required: true - description: The job ID. - schema: - type: string - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - - in: query - name: page - schema: - default: 1 - minimum: 1 - type: integer - - in: query - name: per_page - schema: - default: 20 - maximum: 500 - minimum: 0 - type: integer - responses: - '200': - content: - application/json: - schema: - properties: - result: - items: - properties: - created_at: - type: number - readOnly: true - id: - type: integer - message: - type: string - message_type: - type: integer - required: - - id - - message - - message_type - - created_at - type: object - type: array - result_info: - properties: - count: - type: integer - page: - type: integer - per_page: - type: integer - total_count: - type: integer - required: - - count - - page - - per_page - - total_count - type: object - success: - type: boolean - required: - - success - - result - - result_info - type: object - description: Returns a list of AutoRAG Job Logs - '404': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: number - message: - type: string - required: - - code - - message - type: object - type: array - success: - enum: - - false - type: boolean - required: - - success - - errors - type: object - description: autorag_not_found - '503': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: number - message: - type: string - required: - - code - - message - type: object - type: array - success: - enum: - - false - type: boolean - required: - - success - - errors - type: object - description: unable_to_connect_to_autorag - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: List Job Logs - tags: - - AutoRAG Jobs - x-api-token-group: - - Auto Rag Write - - Auto Rag Read - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.rag - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/autorag/rags/{id}/search: - post: - operationId: autorag-config-search - parameters: - - name: id - in: path - required: true - description: Resource ID. - schema: - type: string - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - requestBody: - content: - application/json: - schema: - properties: - filters: - type: object - properties: - key: - type: string - type: - enum: - - eq - - ne - - gt - - gte - - lt - - lte - type: string - value: - type: string - filters: - items: - properties: - key: - type: string - type: - enum: - - eq - - ne - - gt - - gte - - lt - - lte - type: string - value: - type: string - required: - - key - - type - - value - type: object - type: array - required: - - type - max_num_results: - default: 10 - maximum: 50 - minimum: 1 - type: integer - query: - type: string - ranking_options: - default: {} - properties: - ranker: - type: string - score_threshold: - default: 0.4 - maximum: 1 - minimum: 0 - type: number - type: object - reranking: - properties: - enabled: - default: false - type: boolean - model: - type: string - enum: - - '@cf/baai/bge-reranker-base' - type: object - rewrite_query: - default: false - type: boolean - required: - - query - type: object - responses: - '200': - content: - application/json: - schema: - properties: - result: - properties: - data: - items: - properties: - attributes: - type: object - content: - items: - properties: - text: - type: string - type: - type: string - type: object - type: array - file_id: - type: string - filename: - type: string - score: - type: number - required: - - score - type: object - type: array - has_more: - default: false - type: boolean - next_page: - nullable: true - type: string - object: - type: string - search_query: - type: string - required: - - search_query - type: object - success: - type: boolean - required: - - success - - result - type: object - description: Returns the log details - '404': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: number - message: - type: string - required: - - code - - message - type: object - type: array - success: - enum: - - false - type: boolean - required: - - success - - errors - type: object - description: Not Found - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Search - tags: - - AutoRAG RAG Search - x-api-token-group: - - Auto Rag Write - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.rag - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true - /accounts/{account_id}/autorag/rags/{id}/sync: - patch: - operationId: autorag-config-sync - parameters: - - name: id - in: path - required: true - description: Resource ID. - schema: - type: string - - name: account_id - in: path - required: true - description: The Cloudflare account ID. - schema: - type: string - responses: - '200': - content: - application/json: - schema: - properties: - result: - properties: - job_id: - type: string - required: - - job_id - type: object - success: - type: boolean - required: - - success - - result - type: object - description: Returns the autorag sync status - '400': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: number - message: - type: string - required: - - code - - message - type: object - type: array - success: - enum: - - false - type: boolean - required: - - success - - errors - type: object - description: autorag_is_paused - '404': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: number - message: - type: string - required: - - code - - message - type: object - type: array - success: - enum: - - false - type: boolean - required: - - success - - errors - type: object - description: autorag_not_found - '429': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: number - message: - type: string - required: - - code - - message - type: object - type: array - success: - enum: - - false - type: boolean - required: - - success - - errors - type: object - description: sync_in_cooldown - '503': - content: - application/json: - schema: - properties: - errors: - items: - properties: - code: - type: number - message: - type: string - required: - - code - - message - type: object - type: array - success: - enum: - - false - type: boolean - required: - - success - - errors - type: object - description: unable_to_connect_to_autorag - security: - - api_token: [] - - api_email: [] - api_key: [] - summary: Sync - tags: - - AutoRAG RAG - x-api-token-group: - - Auto Rag Write - x-cfPermissionsRequired: - enum: - - com.cloudflare.api.account.rag - x-cfPlanAvailability: - business: true - enterprise: true - free: true - pro: true -components: - schemas: {} - securitySchemes: - api_email: - in: header - name: X-Auth-Email - type: apiKey - description: The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key. - api_key: - in: header - name: X-Auth-Key - type: apiKey - description: The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys. - api_token: - scheme: bearer - type: http - description: The preferred authorization scheme for interacting with the Cloudflare API. [Create a token](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/). - user_service_key: - in: header - name: X-Auth-User-Service-Key - type: apiKey - description: Used when interacting with the Origin CA certificates API. [View/change your key](https://developers.cloudflare.com/fundamentals/api/get-started/ca-keys/#viewchange-your-origin-ca-keys). - x-stackQL-resources: - authors: - id: cloudflare.ai.authors - name: authors - title: Authors - methods: - list: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1authors~1search/get' - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/authors/methods/list' - insert: [] - update: [] - delete: [] - replace: [] - finetunes: - id: cloudflare.ai.finetunes - name: finetunes - title: Finetunes - methods: - list: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1finetunes/get' - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result - create: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1finetunes/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/finetunes/methods/list' - insert: - - $ref: '#/components/x-stackQL-resources/finetunes/methods/create' - update: [] - delete: [] - replace: [] - public: - id: cloudflare.ai.public - name: public - title: Public - methods: - list: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1finetunes~1public/get' - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/public/methods/list' - insert: [] - update: [] - delete: [] - replace: [] - assets: - id: cloudflare.ai.assets - name: assets - title: Assets - methods: - create: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1finetunes~1{finetune_id}~1finetune-assets/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/assets/methods/create' - update: [] - delete: [] - replace: [] - schema: - id: cloudflare.ai.schema - name: schema - title: Schema - methods: - list: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1models~1schema/get' - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/schema/methods/list' - insert: [] - update: [] - delete: [] - replace: [] - models: - id: cloudflare.ai.models - name: models - title: Models - methods: - list: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1models~1search/get' - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/models/methods/list' - insert: [] - update: [] - delete: [] - replace: [] - indictrans2_en_indic_1_b: - id: cloudflare.ai.indictrans2_en_indic_1_b - name: indictrans2_en_indic_1_b - title: Indictrans2 En Indic 1 B - methods: - workers_ai_post_run_cf_ai4bharat_indictrans2_en_indic_1_b: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1ai4bharat~1indictrans2-en-indic-1B/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/indictrans2_en_indic_1_b/methods/workers_ai_post_run_cf_ai4bharat_indictrans2_en_indic_1_b' - update: [] - delete: [] - replace: [] - nonomni_indictrans2_en_indic_1b: - id: cloudflare.ai.nonomni_indictrans2_en_indic_1b - name: nonomni_indictrans2_en_indic_1b - title: Nonomni Indictrans2 En Indic 1b - methods: - workers_ai_post_run_cf_ai4bharat_nonomni_indictrans2_en_indic_1b: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1ai4bharat~1nonomni-indictrans2-en-indic-1b/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/nonomni_indictrans2_en_indic_1b/methods/workers_ai_post_run_cf_ai4bharat_nonomni_indictrans2_en_indic_1b' - update: [] - delete: [] - replace: [] - gemma_sea_lion_v4_27b_it: - id: cloudflare.ai.gemma_sea_lion_v4_27b_it - name: gemma_sea_lion_v4_27b_it - title: Gemma Sea Lion V4 27b It - methods: - workers_ai_post_run_cf_aisingapore_gemma_sea_lion_v4_27b_it: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1aisingapore~1gemma-sea-lion-v4-27b-it/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .requests }}{{ $sep }}"requests": {{ if eq (kindOf .requests) "string" }}{{ .requests }}{{ else }}{{ toJson .requests }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/gemma_sea_lion_v4_27b_it/methods/workers_ai_post_run_cf_aisingapore_gemma_sea_lion_v4_27b_it' - update: [] - delete: [] - replace: [] - bge_base_en_v1_5: - id: cloudflare.ai.bge_base_en_v1_5 - name: bge_base_en_v1_5 - title: Bge Base En V1 5 - methods: - workers_ai_post_run_cf_baai_bge_base_en_v1_5: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1baai~1bge-base-en-v1.5/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .pooling }}{{ $sep }}"pooling": {{ toJson .pooling }}{{- $sep = "," -}}{{ end }} - - {{- if .text }}{{ $sep }}"text": {{ toJson .text }}{{- $sep = "," -}}{{ end }} - - {{- if .requests }}{{ $sep }}"requests": {{ if eq (kindOf .requests) "string" }}{{ .requests }}{{ else }}{{ toJson .requests }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/bge_base_en_v1_5/methods/workers_ai_post_run_cf_baai_bge_base_en_v1_5' - update: [] - delete: [] - replace: [] - bge_large_en_v1_5: - id: cloudflare.ai.bge_large_en_v1_5 - name: bge_large_en_v1_5 - title: Bge Large En V1 5 - methods: - workers_ai_post_run_cf_baai_bge_large_en_v1_5: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1baai~1bge-large-en-v1.5/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .pooling }}{{ $sep }}"pooling": {{ toJson .pooling }}{{- $sep = "," -}}{{ end }} - - {{- if .text }}{{ $sep }}"text": {{ toJson .text }}{{- $sep = "," -}}{{ end }} - - {{- if .requests }}{{ $sep }}"requests": {{ if eq (kindOf .requests) "string" }}{{ .requests }}{{ else }}{{ toJson .requests }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/bge_large_en_v1_5/methods/workers_ai_post_run_cf_baai_bge_large_en_v1_5' - update: [] - delete: [] - replace: [] - bge_m3: - id: cloudflare.ai.bge_m3 - name: bge_m3 - title: Bge M3 - methods: - workers_ai_post_run_cf_baai_bge_m3: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1baai~1bge-m3/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .contexts }}{{ $sep }}"contexts": {{ if eq (kindOf .contexts) "string" }}{{ .contexts }}{{ else }}{{ toJson .contexts }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .query }}{{ $sep }}"query": {{ toJson .query }}{{- $sep = "," -}}{{ end }} - - {{- if .truncate_inputs }}{{ $sep }}"truncate_inputs": {{ toJson .truncate_inputs }}{{- $sep = "," -}}{{ end }} - - {{- if .text }}{{ $sep }}"text": {{ toJson .text }}{{- $sep = "," -}}{{ end }} - - {{- if .requests }}{{ $sep }}"requests": {{ if eq (kindOf .requests) "string" }}{{ .requests }}{{ else }}{{ toJson .requests }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/bge_m3/methods/workers_ai_post_run_cf_baai_bge_m3' - update: [] - delete: [] - replace: [] - bge_reranker_base: - id: cloudflare.ai.bge_reranker_base - name: bge_reranker_base - title: Bge Reranker Base - methods: - workers_ai_post_run_cf_baai_bge_reranker_base: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1baai~1bge-reranker-base/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .contexts }}{{ $sep }}"contexts": {{ if eq (kindOf .contexts) "string" }}{{ .contexts }}{{ else }}{{ toJson .contexts }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .query }}{{ $sep }}"query": {{ toJson .query }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/bge_reranker_base/methods/workers_ai_post_run_cf_baai_bge_reranker_base' - update: [] - delete: [] - replace: [] - bge_small_en_v1_5: - id: cloudflare.ai.bge_small_en_v1_5 - name: bge_small_en_v1_5 - title: Bge Small En V1 5 - methods: - workers_ai_post_run_cf_baai_bge_small_en_v1_5: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1baai~1bge-small-en-v1.5/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .pooling }}{{ $sep }}"pooling": {{ toJson .pooling }}{{- $sep = "," -}}{{ end }} - - {{- if .text }}{{ $sep }}"text": {{ toJson .text }}{{- $sep = "," -}}{{ end }} - - {{- if .requests }}{{ $sep }}"requests": {{ if eq (kindOf .requests) "string" }}{{ .requests }}{{ else }}{{ toJson .requests }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/bge_small_en_v1_5/methods/workers_ai_post_run_cf_baai_bge_small_en_v1_5' - update: [] - delete: [] - replace: [] - nonomni_bge_base_en_v1_5: - id: cloudflare.ai.nonomni_bge_base_en_v1_5 - name: nonomni_bge_base_en_v1_5 - title: Nonomni Bge Base En V1 5 - methods: - workers_ai_post_run_cf_baai_nonomni_bge_base_en_v1_5: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1baai~1nonomni-bge-base-en-v1.5/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .pooling }}{{ $sep }}"pooling": {{ toJson .pooling }}{{- $sep = "," -}}{{ end }} - - {{- if .text }}{{ $sep }}"text": {{ toJson .text }}{{- $sep = "," -}}{{ end }} - - {{- if .requests }}{{ $sep }}"requests": {{ if eq (kindOf .requests) "string" }}{{ .requests }}{{ else }}{{ toJson .requests }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/nonomni_bge_base_en_v1_5/methods/workers_ai_post_run_cf_baai_nonomni_bge_base_en_v1_5' - update: [] - delete: [] - replace: [] - nonomni_bge_large_en_v1_5: - id: cloudflare.ai.nonomni_bge_large_en_v1_5 - name: nonomni_bge_large_en_v1_5 - title: Nonomni Bge Large En V1 5 - methods: - workers_ai_post_run_cf_baai_nonomni_bge_large_en_v1_5: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1baai~1nonomni-bge-large-en-v1.5/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .pooling }}{{ $sep }}"pooling": {{ toJson .pooling }}{{- $sep = "," -}}{{ end }} - - {{- if .text }}{{ $sep }}"text": {{ toJson .text }}{{- $sep = "," -}}{{ end }} - - {{- if .requests }}{{ $sep }}"requests": {{ if eq (kindOf .requests) "string" }}{{ .requests }}{{ else }}{{ toJson .requests }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/nonomni_bge_large_en_v1_5/methods/workers_ai_post_run_cf_baai_nonomni_bge_large_en_v1_5' - update: [] - delete: [] - replace: [] - nonomni_bge_m3: - id: cloudflare.ai.nonomni_bge_m3 - name: nonomni_bge_m3 - title: Nonomni Bge M3 - methods: - workers_ai_post_run_cf_baai_nonomni_bge_m3: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1baai~1nonomni-bge-m3/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .contexts }}{{ $sep }}"contexts": {{ if eq (kindOf .contexts) "string" }}{{ .contexts }}{{ else }}{{ toJson .contexts }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .query }}{{ $sep }}"query": {{ toJson .query }}{{- $sep = "," -}}{{ end }} - - {{- if .truncate_inputs }}{{ $sep }}"truncate_inputs": {{ toJson .truncate_inputs }}{{- $sep = "," -}}{{ end }} - - {{- if .text }}{{ $sep }}"text": {{ toJson .text }}{{- $sep = "," -}}{{ end }} - - {{- if .requests }}{{ $sep }}"requests": {{ if eq (kindOf .requests) "string" }}{{ .requests }}{{ else }}{{ toJson .requests }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/nonomni_bge_m3/methods/workers_ai_post_run_cf_baai_nonomni_bge_m3' - update: [] - delete: [] - replace: [] - nonomni_bge_small_en_v1_5: - id: cloudflare.ai.nonomni_bge_small_en_v1_5 - name: nonomni_bge_small_en_v1_5 - title: Nonomni Bge Small En V1 5 - methods: - workers_ai_post_run_cf_baai_nonomni_bge_small_en_v1_5: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1baai~1nonomni-bge-small-en-v1.5/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .pooling }}{{ $sep }}"pooling": {{ toJson .pooling }}{{- $sep = "," -}}{{ end }} - - {{- if .text }}{{ $sep }}"text": {{ toJson .text }}{{- $sep = "," -}}{{ end }} - - {{- if .requests }}{{ $sep }}"requests": {{ if eq (kindOf .requests) "string" }}{{ .requests }}{{ else }}{{ toJson .requests }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/nonomni_bge_small_en_v1_5/methods/workers_ai_post_run_cf_baai_nonomni_bge_small_en_v1_5' - update: [] - delete: [] - replace: [] - flux_1_schnell: - id: cloudflare.ai.flux_1_schnell - name: flux_1_schnell - title: Flux 1 Schnell - methods: - workers_ai_post_run_cf_black_forest_labs_flux_1_schnell: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1black-forest-labs~1flux-1-schnell/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/flux_1_schnell/methods/workers_ai_post_run_cf_black_forest_labs_flux_1_schnell' - update: [] - delete: [] - replace: [] - flux_2_dev: - id: cloudflare.ai.flux_2_dev - name: flux_2_dev - title: Flux 2 Dev - methods: - workers_ai_post_run_cf_black_forest_labs_flux_2_dev: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1black-forest-labs~1flux-2-dev/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .multipart }}{{ $sep }}"multipart": {{ if eq (kindOf .multipart) "string" }}{{ .multipart }}{{ else }}{{ toJson .multipart }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/flux_2_dev/methods/workers_ai_post_run_cf_black_forest_labs_flux_2_dev' - update: [] - delete: [] - replace: [] - flux_2_klein_4b: - id: cloudflare.ai.flux_2_klein_4b - name: flux_2_klein_4b - title: Flux 2 Klein 4b - methods: - workers_ai_post_run_cf_black_forest_labs_flux_2_klein_4b: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1black-forest-labs~1flux-2-klein-4b/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .multipart }}{{ $sep }}"multipart": {{ if eq (kindOf .multipart) "string" }}{{ .multipart }}{{ else }}{{ toJson .multipart }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/flux_2_klein_4b/methods/workers_ai_post_run_cf_black_forest_labs_flux_2_klein_4b' - update: [] - delete: [] - replace: [] - flux_2_klein_9b: - id: cloudflare.ai.flux_2_klein_9b - name: flux_2_klein_9b - title: Flux 2 Klein 9b - methods: - workers_ai_post_run_cf_black_forest_labs_flux_2_klein_9b: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1black-forest-labs~1flux-2-klein-9b/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .multipart }}{{ $sep }}"multipart": {{ if eq (kindOf .multipart) "string" }}{{ .multipart }}{{ else }}{{ toJson .multipart }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/flux_2_klein_9b/methods/workers_ai_post_run_cf_black_forest_labs_flux_2_klein_9b' - update: [] - delete: [] - replace: [] - stable_diffusion_xl_lightning: - id: cloudflare.ai.stable_diffusion_xl_lightning - name: stable_diffusion_xl_lightning - title: Stable Diffusion Xl Lightning - methods: - workers_ai_post_run_cf_bytedance_stable_diffusion_xl_lightning: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1bytedance~1stable-diffusion-xl-lightning/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .guidance }}{{ $sep }}"guidance": {{ toJson .guidance }}{{- $sep = "," -}}{{ end }} - - {{- if .height }}{{ $sep }}"height": {{ toJson .height }}{{- $sep = "," -}}{{ end }} - - {{- if .image }}{{ $sep }}"image": {{ if eq (kindOf .image) "string" }}{{ .image }}{{ else }}{{ toJson .image }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .image_b64 }}{{ $sep }}"image_b64": {{ toJson .image_b64 }}{{- $sep = "," -}}{{ end }} - - {{- if .mask }}{{ $sep }}"mask": {{ if eq (kindOf .mask) "string" }}{{ .mask }}{{ else }}{{ toJson .mask }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .negative_prompt }}{{ $sep }}"negative_prompt": {{ toJson .negative_prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .num_steps }}{{ $sep }}"num_steps": {{ toJson .num_steps }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .strength }}{{ $sep }}"strength": {{ toJson .strength }}{{- $sep = "," -}}{{ end }} - - {{- if .width }}{{ $sep }}"width": {{ toJson .width }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/stable_diffusion_xl_lightning/methods/workers_ai_post_run_cf_bytedance_stable_diffusion_xl_lightning' - update: [] - delete: [] - replace: [] - aura_1: - id: cloudflare.ai.aura_1 - name: aura_1 - title: Aura 1 - methods: - workers_ai_post_run_cf_deepgram_aura_1: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1deepgram~1aura-1/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/aura_1/methods/workers_ai_post_run_cf_deepgram_aura_1' - update: [] - delete: [] - replace: [] - aura_2_en: - id: cloudflare.ai.aura_2_en - name: aura_2_en - title: Aura 2 En - methods: - workers_ai_post_run_cf_deepgram_aura_2_en: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1deepgram~1aura-2-en/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/aura_2_en/methods/workers_ai_post_run_cf_deepgram_aura_2_en' - update: [] - delete: [] - replace: [] - aura_2_es: - id: cloudflare.ai.aura_2_es - name: aura_2_es - title: Aura 2 Es - methods: - workers_ai_post_run_cf_deepgram_aura_2_es: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1deepgram~1aura-2-es/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/aura_2_es/methods/workers_ai_post_run_cf_deepgram_aura_2_es' - update: [] - delete: [] - replace: [] - flux: - id: cloudflare.ai.flux - name: flux - title: Flux - methods: - workers_ai_post_run_cf_deepgram_flux: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1deepgram~1flux/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/flux/methods/workers_ai_post_run_cf_deepgram_flux' - update: [] - delete: [] - replace: [] - nova_3: - id: cloudflare.ai.nova_3 - name: nova_3 - title: Nova 3 - methods: - workers_ai_post_run_cf_deepgram_nova_3: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1deepgram~1nova-3/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .audio }}{{ $sep }}"audio": {{ if eq (kindOf .audio) "string" }}{{ .audio }}{{ else }}{{ toJson .audio }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .channels }}{{ $sep }}"channels": {{ toJson .channels }}{{- $sep = "," -}}{{ end }} - - {{- if .custom_intent }}{{ $sep }}"custom_intent": {{ toJson .custom_intent }}{{- $sep = "," -}}{{ end }} - - {{- if .custom_intent_mode }}{{ $sep }}"custom_intent_mode": {{ toJson .custom_intent_mode }}{{- $sep = "," -}}{{ end }} - - {{- if .custom_topic }}{{ $sep }}"custom_topic": {{ toJson .custom_topic }}{{- $sep = "," -}}{{ end }} - - {{- if .custom_topic_mode }}{{ $sep }}"custom_topic_mode": {{ toJson .custom_topic_mode }}{{- $sep = "," -}}{{ end }} - - {{- if .detect_entities }}{{ $sep }}"detect_entities": {{ toJson .detect_entities }}{{- $sep = "," -}}{{ end }} - - {{- if .detect_language }}{{ $sep }}"detect_language": {{ toJson .detect_language }}{{- $sep = "," -}}{{ end }} - - {{- if .diarize }}{{ $sep }}"diarize": {{ toJson .diarize }}{{- $sep = "," -}}{{ end }} - - {{- if .dictation }}{{ $sep }}"dictation": {{ toJson .dictation }}{{- $sep = "," -}}{{ end }} - - {{- if .encoding }}{{ $sep }}"encoding": {{ toJson .encoding }}{{- $sep = "," -}}{{ end }} - - {{- if .endpointing }}{{ $sep }}"endpointing": {{ toJson .endpointing }}{{- $sep = "," -}}{{ end }} - - {{- if .extra }}{{ $sep }}"extra": {{ toJson .extra }}{{- $sep = "," -}}{{ end }} - - {{- if .filler_words }}{{ $sep }}"filler_words": {{ toJson .filler_words }}{{- $sep = "," -}}{{ end }} - - {{- if .interim_results }}{{ $sep }}"interim_results": {{ toJson .interim_results }}{{- $sep = "," -}}{{ end }} - - {{- if .keyterm }}{{ $sep }}"keyterm": {{ toJson .keyterm }}{{- $sep = "," -}}{{ end }} - - {{- if .keywords }}{{ $sep }}"keywords": {{ toJson .keywords }}{{- $sep = "," -}}{{ end }} - - {{- if .language }}{{ $sep }}"language": {{ toJson .language }}{{- $sep = "," -}}{{ end }} - - {{- if .measurements }}{{ $sep }}"measurements": {{ toJson .measurements }}{{- $sep = "," -}}{{ end }} - - {{- if .mip_opt_out }}{{ $sep }}"mip_opt_out": {{ toJson .mip_opt_out }}{{- $sep = "," -}}{{ end }} - - {{- if .mode }}{{ $sep }}"mode": {{ toJson .mode }}{{- $sep = "," -}}{{ end }} - - {{- if .multichannel }}{{ $sep }}"multichannel": {{ toJson .multichannel }}{{- $sep = "," -}}{{ end }} - - {{- if .numerals }}{{ $sep }}"numerals": {{ toJson .numerals }}{{- $sep = "," -}}{{ end }} - - {{- if .paragraphs }}{{ $sep }}"paragraphs": {{ toJson .paragraphs }}{{- $sep = "," -}}{{ end }} - - {{- if .profanity_filter }}{{ $sep }}"profanity_filter": {{ toJson .profanity_filter }}{{- $sep = "," -}}{{ end }} - - {{- if .punctuate }}{{ $sep }}"punctuate": {{ toJson .punctuate }}{{- $sep = "," -}}{{ end }} - - {{- if .redact }}{{ $sep }}"redact": {{ toJson .redact }}{{- $sep = "," -}}{{ end }} - - {{- if .replace }}{{ $sep }}"replace": {{ toJson .replace }}{{- $sep = "," -}}{{ end }} - - {{- if .search }}{{ $sep }}"search": {{ toJson .search }}{{- $sep = "," -}}{{ end }} - - {{- if .sentiment }}{{ $sep }}"sentiment": {{ toJson .sentiment }}{{- $sep = "," -}}{{ end }} - - {{- if .smart_format }}{{ $sep }}"smart_format": {{ toJson .smart_format }}{{- $sep = "," -}}{{ end }} - - {{- if .topics }}{{ $sep }}"topics": {{ toJson .topics }}{{- $sep = "," -}}{{ end }} - - {{- if .utt_split }}{{ $sep }}"utt_split": {{ toJson .utt_split }}{{- $sep = "," -}}{{ end }} - - {{- if .utterance_end_ms }}{{ $sep }}"utterance_end_ms": {{ toJson .utterance_end_ms }}{{- $sep = "," -}}{{ end }} - - {{- if .utterances }}{{ $sep }}"utterances": {{ toJson .utterances }}{{- $sep = "," -}}{{ end }} - - {{- if .vad_events }}{{ $sep }}"vad_events": {{ toJson .vad_events }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/nova_3/methods/workers_ai_post_run_cf_deepgram_nova_3' - update: [] - delete: [] - replace: [] - deepseek_math_7b_instruct: - id: cloudflare.ai.deepseek_math_7b_instruct - name: deepseek_math_7b_instruct - title: Deepseek Math 7b Instruct - methods: - workers_ai_post_run_cf_deepseek_ai_deepseek_math_7b_instruct: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1deepseek-ai~1deepseek-math-7b-instruct/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/deepseek_math_7b_instruct/methods/workers_ai_post_run_cf_deepseek_ai_deepseek_math_7b_instruct' - update: [] - delete: [] - replace: [] - deepseek_r1_distill_qwen_32b: - id: cloudflare.ai.deepseek_r1_distill_qwen_32b - name: deepseek_r1_distill_qwen_32b - title: Deepseek R1 Distill Qwen 32b - methods: - workers_ai_post_run_cf_deepseek_ai_deepseek_r1_distill_qwen_32b: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1deepseek-ai~1deepseek-r1-distill-qwen-32b/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/deepseek_r1_distill_qwen_32b/methods/workers_ai_post_run_cf_deepseek_ai_deepseek_r1_distill_qwen_32b' - update: [] - delete: [] - replace: [] - sqlcoder_7b_2: - id: cloudflare.ai.sqlcoder_7b_2 - name: sqlcoder_7b_2 - title: Sqlcoder 7b 2 - methods: - workers_ai_post_run_cf_defog_sqlcoder_7b_2: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1defog~1sqlcoder-7b-2/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/sqlcoder_7b_2/methods/workers_ai_post_run_cf_defog_sqlcoder_7b_2' - update: [] - delete: [] - replace: [] - bart_large_cnn: - id: cloudflare.ai.bart_large_cnn - name: bart_large_cnn - title: Bart Large Cnn - methods: - workers_ai_post_run_cf_facebook_bart_large_cnn: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1facebook~1bart-large-cnn/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/bart_large_cnn/methods/workers_ai_post_run_cf_facebook_bart_large_cnn' - update: [] - delete: [] - replace: [] - nonomni_bart_large_cnn: - id: cloudflare.ai.nonomni_bart_large_cnn - name: nonomni_bart_large_cnn - title: Nonomni Bart Large Cnn - methods: - workers_ai_post_run_cf_facebook_nonomni_bart_large_cnn: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1facebook~1nonomni-bart-large-cnn/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/nonomni_bart_large_cnn/methods/workers_ai_post_run_cf_facebook_nonomni_bart_large_cnn' - update: [] - delete: [] - replace: [] - nonomni_detr_resnet_50: - id: cloudflare.ai.nonomni_detr_resnet_50 - name: nonomni_detr_resnet_50 - title: Nonomni Detr Resnet 50 - methods: - workers_ai_post_run_cf_facebook_nonomni_detr_resnet_50: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1facebook~1nonomni-detr-resnet-50/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/nonomni_detr_resnet_50/methods/workers_ai_post_run_cf_facebook_nonomni_detr_resnet_50' - update: [] - delete: [] - replace: [] - una_cybertron_7b_v2_bf16: - id: cloudflare.ai.una_cybertron_7b_v2_bf16 - name: una_cybertron_7b_v2_bf16 - title: Una Cybertron 7b V2 Bf16 - methods: - workers_ai_post_run_cf_fblgit_una_cybertron_7b_v2_bf16: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1fblgit~1una-cybertron-7b-v2-bf16/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/una_cybertron_7b_v2_bf16/methods/workers_ai_post_run_cf_fblgit_una_cybertron_7b_v2_bf16' - update: [] - delete: [] - replace: [] - embeddinggemma_300m: - id: cloudflare.ai.embeddinggemma_300m - name: embeddinggemma_300m - title: Embeddinggemma 300m - methods: - workers_ai_post_run_cf_google_embeddinggemma_300m: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1google~1embeddinggemma-300m/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/embeddinggemma_300m/methods/workers_ai_post_run_cf_google_embeddinggemma_300m' - update: [] - delete: [] - replace: [] - gemma_2b_it_lora: - id: cloudflare.ai.gemma_2b_it_lora - name: gemma_2b_it_lora - title: Gemma 2b It Lora - methods: - workers_ai_post_run_cf_google_gemma_2b_it_lora: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1google~1gemma-2b-it-lora/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/gemma_2b_it_lora/methods/workers_ai_post_run_cf_google_gemma_2b_it_lora' - update: [] - delete: [] - replace: [] - gemma_3_12b_it: - id: cloudflare.ai.gemma_3_12b_it - name: gemma_3_12b_it - title: Gemma 3 12b It - methods: - workers_ai_post_run_cf_google_gemma_3_12b_it: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1google~1gemma-3-12b-it/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .guided_json }}{{ $sep }}"guided_json": {{ if eq (kindOf .guided_json) "string" }}{{ .guided_json }}{{ else }}{{ toJson .guided_json }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/gemma_3_12b_it/methods/workers_ai_post_run_cf_google_gemma_3_12b_it' - update: [] - delete: [] - replace: [] - gemma_7b_it_lora: - id: cloudflare.ai.gemma_7b_it_lora - name: gemma_7b_it_lora - title: Gemma 7b It Lora - methods: - workers_ai_post_run_cf_google_gemma_7b_it_lora: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1google~1gemma-7b-it-lora/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/gemma_7b_it_lora/methods/workers_ai_post_run_cf_google_gemma_7b_it_lora' - update: [] - delete: [] - replace: [] - nonomni_embeddinggemma_300m: - id: cloudflare.ai.nonomni_embeddinggemma_300m - name: nonomni_embeddinggemma_300m - title: Nonomni Embeddinggemma 300m - methods: - workers_ai_post_run_cf_google_nonomni_embeddinggemma_300m: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1google~1nonomni-embeddinggemma-300m/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/nonomni_embeddinggemma_300m/methods/workers_ai_post_run_cf_google_nonomni_embeddinggemma_300m' - update: [] - delete: [] - replace: [] - distilbert_sst_2_int8: - id: cloudflare.ai.distilbert_sst_2_int8 - name: distilbert_sst_2_int8 - title: Distilbert Sst 2 Int8 - methods: - workers_ai_post_run_cf_huggingface_distilbert_sst_2_int8: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1huggingface~1distilbert-sst-2-int8/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/distilbert_sst_2_int8/methods/workers_ai_post_run_cf_huggingface_distilbert_sst_2_int8' - update: [] - delete: [] - replace: [] - nonomni_distilbert_sst_2_int8: - id: cloudflare.ai.nonomni_distilbert_sst_2_int8 - name: nonomni_distilbert_sst_2_int8 - title: Nonomni Distilbert Sst 2 Int8 - methods: - workers_ai_post_run_cf_huggingface_nonomni_distilbert_sst_2_int8: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1huggingface~1nonomni-distilbert-sst-2-int8/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/nonomni_distilbert_sst_2_int8/methods/workers_ai_post_run_cf_huggingface_nonomni_distilbert_sst_2_int8' - update: [] - delete: [] - replace: [] - granite_4_0_h_micro: - id: cloudflare.ai.granite_4_0_h_micro - name: granite_4_0_h_micro - title: Granite 4 0 H Micro - methods: - workers_ai_post_run_cf_ibm_granite_granite_4_0_h_micro: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1ibm-granite~1granite-4.0-h-micro/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/granite_4_0_h_micro/methods/workers_ai_post_run_cf_ibm_granite_granite_4_0_h_micro' - update: [] - delete: [] - replace: [] - lucid_origin: - id: cloudflare.ai.lucid_origin - name: lucid_origin - title: Lucid Origin - methods: - workers_ai_post_run_cf_leonardo_lucid_origin: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1leonardo~1lucid-origin/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/lucid_origin/methods/workers_ai_post_run_cf_leonardo_lucid_origin' - update: [] - delete: [] - replace: [] - phoenix_1_0: - id: cloudflare.ai.phoenix_1_0 - name: phoenix_1_0 - title: Phoenix 1 0 - methods: - workers_ai_post_run_cf_leonardo_phoenix_1_0: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1leonardo~1phoenix-1.0/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/phoenix_1_0/methods/workers_ai_post_run_cf_leonardo_phoenix_1_0' - update: [] - delete: [] - replace: [] - dreamshaper_8_lcm: - id: cloudflare.ai.dreamshaper_8_lcm - name: dreamshaper_8_lcm - title: Dreamshaper 8 Lcm - methods: - workers_ai_post_run_cf_lykon_dreamshaper_8_lcm: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1lykon~1dreamshaper-8-lcm/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .guidance }}{{ $sep }}"guidance": {{ toJson .guidance }}{{- $sep = "," -}}{{ end }} - - {{- if .height }}{{ $sep }}"height": {{ toJson .height }}{{- $sep = "," -}}{{ end }} - - {{- if .image }}{{ $sep }}"image": {{ if eq (kindOf .image) "string" }}{{ .image }}{{ else }}{{ toJson .image }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .image_b64 }}{{ $sep }}"image_b64": {{ toJson .image_b64 }}{{- $sep = "," -}}{{ end }} - - {{- if .mask }}{{ $sep }}"mask": {{ if eq (kindOf .mask) "string" }}{{ .mask }}{{ else }}{{ toJson .mask }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .negative_prompt }}{{ $sep }}"negative_prompt": {{ toJson .negative_prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .num_steps }}{{ $sep }}"num_steps": {{ toJson .num_steps }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .strength }}{{ $sep }}"strength": {{ toJson .strength }}{{- $sep = "," -}}{{ end }} - - {{- if .width }}{{ $sep }}"width": {{ toJson .width }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/dreamshaper_8_lcm/methods/workers_ai_post_run_cf_lykon_dreamshaper_8_lcm' - update: [] - delete: [] - replace: [] - llama_2_7b_chat_hf_lora: - id: cloudflare.ai.llama_2_7b_chat_hf_lora - name: llama_2_7b_chat_hf_lora - title: Llama 2 7b Chat Hf Lora - methods: - workers_ai_post_run_cf_meta_llama_llama_2_7b_chat_hf_lora: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1meta-llama~1llama-2-7b-chat-hf-lora/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/llama_2_7b_chat_hf_lora/methods/workers_ai_post_run_cf_meta_llama_llama_2_7b_chat_hf_lora' - update: [] - delete: [] - replace: [] - llama_2_7b_chat_fp16: - id: cloudflare.ai.llama_2_7b_chat_fp16 - name: llama_2_7b_chat_fp16 - title: Llama 2 7b Chat Fp16 - methods: - workers_ai_post_run_cf_meta_llama_2_7b_chat_fp16: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1meta~1llama-2-7b-chat-fp16/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/llama_2_7b_chat_fp16/methods/workers_ai_post_run_cf_meta_llama_2_7b_chat_fp16' - update: [] - delete: [] - replace: [] - llama_2_7b_chat_int8: - id: cloudflare.ai.llama_2_7b_chat_int8 - name: llama_2_7b_chat_int8 - title: Llama 2 7b Chat Int8 - methods: - workers_ai_post_run_cf_meta_llama_2_7b_chat_int8: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1meta~1llama-2-7b-chat-int8/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/llama_2_7b_chat_int8/methods/workers_ai_post_run_cf_meta_llama_2_7b_chat_int8' - update: [] - delete: [] - replace: [] - llama_3_8b_instruct: - id: cloudflare.ai.llama_3_8b_instruct - name: llama_3_8b_instruct - title: Llama 3 8b Instruct - methods: - workers_ai_post_run_cf_meta_llama_3_8b_instruct: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1meta~1llama-3-8b-instruct/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/llama_3_8b_instruct/methods/workers_ai_post_run_cf_meta_llama_3_8b_instruct' - update: [] - delete: [] - replace: [] - llama_3_8b_instruct_awq: - id: cloudflare.ai.llama_3_8b_instruct_awq - name: llama_3_8b_instruct_awq - title: Llama 3 8b Instruct Awq - methods: - workers_ai_post_run_cf_meta_llama_3_8b_instruct_awq: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1meta~1llama-3-8b-instruct-awq/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/llama_3_8b_instruct_awq/methods/workers_ai_post_run_cf_meta_llama_3_8b_instruct_awq' - update: [] - delete: [] - replace: [] - llama_3_1_70b_instruct_fp8_fast: - id: cloudflare.ai.llama_3_1_70b_instruct_fp8_fast - name: llama_3_1_70b_instruct_fp8_fast - title: Llama 3 1 70b Instruct Fp8 Fast - methods: - workers_ai_post_run_cf_meta_llama_3_1_70b_instruct_fp8_fast: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1meta~1llama-3.1-70b-instruct-fp8-fast/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/llama_3_1_70b_instruct_fp8_fast/methods/workers_ai_post_run_cf_meta_llama_3_1_70b_instruct_fp8_fast' - update: [] - delete: [] - replace: [] - llama_3_1_8b_instruct_awq: - id: cloudflare.ai.llama_3_1_8b_instruct_awq - name: llama_3_1_8b_instruct_awq - title: Llama 3 1 8b Instruct Awq - methods: - workers_ai_post_run_cf_meta_llama_3_1_8b_instruct_awq: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1meta~1llama-3.1-8b-instruct-awq/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/llama_3_1_8b_instruct_awq/methods/workers_ai_post_run_cf_meta_llama_3_1_8b_instruct_awq' - update: [] - delete: [] - replace: [] - llama_3_1_8b_instruct_fp8: - id: cloudflare.ai.llama_3_1_8b_instruct_fp8 - name: llama_3_1_8b_instruct_fp8 - title: Llama 3 1 8b Instruct Fp8 - methods: - workers_ai_post_run_cf_meta_llama_3_1_8b_instruct_fp8: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1meta~1llama-3.1-8b-instruct-fp8/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/llama_3_1_8b_instruct_fp8/methods/workers_ai_post_run_cf_meta_llama_3_1_8b_instruct_fp8' - update: [] - delete: [] - replace: [] - llama_3_1_8b_instruct_fp8_fast: - id: cloudflare.ai.llama_3_1_8b_instruct_fp8_fast - name: llama_3_1_8b_instruct_fp8_fast - title: Llama 3 1 8b Instruct Fp8 Fast - methods: - workers_ai_post_run_cf_meta_llama_3_1_8b_instruct_fp8_fast: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1meta~1llama-3.1-8b-instruct-fp8-fast/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/llama_3_1_8b_instruct_fp8_fast/methods/workers_ai_post_run_cf_meta_llama_3_1_8b_instruct_fp8_fast' - update: [] - delete: [] - replace: [] - llama_3_2_11b_vision_instruct: - id: cloudflare.ai.llama_3_2_11b_vision_instruct - name: llama_3_2_11b_vision_instruct - title: Llama 3 2 11b Vision Instruct - methods: - workers_ai_post_run_cf_meta_llama_3_2_11b_vision_instruct: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1meta~1llama-3.2-11b-vision-instruct/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .image }}{{ $sep }}"image": {{ if eq (kindOf .image) "string" }}{{ .image }}{{ else }}{{ toJson .image }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/llama_3_2_11b_vision_instruct/methods/workers_ai_post_run_cf_meta_llama_3_2_11b_vision_instruct' - update: [] - delete: [] - replace: [] - llama_3_2_1b_instruct: - id: cloudflare.ai.llama_3_2_1b_instruct - name: llama_3_2_1b_instruct - title: Llama 3 2 1b Instruct - methods: - workers_ai_post_run_cf_meta_llama_3_2_1b_instruct: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1meta~1llama-3.2-1b-instruct/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/llama_3_2_1b_instruct/methods/workers_ai_post_run_cf_meta_llama_3_2_1b_instruct' - update: [] - delete: [] - replace: [] - llama_3_2_3b_instruct: - id: cloudflare.ai.llama_3_2_3b_instruct - name: llama_3_2_3b_instruct - title: Llama 3 2 3b Instruct - methods: - workers_ai_post_run_cf_meta_llama_3_2_3b_instruct: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1meta~1llama-3.2-3b-instruct/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/llama_3_2_3b_instruct/methods/workers_ai_post_run_cf_meta_llama_3_2_3b_instruct' - update: [] - delete: [] - replace: [] - llama_3_3_70b_instruct_fp8_fast: - id: cloudflare.ai.llama_3_3_70b_instruct_fp8_fast - name: llama_3_3_70b_instruct_fp8_fast - title: Llama 3 3 70b Instruct Fp8 Fast - methods: - workers_ai_post_run_cf_meta_llama_3_3_70b_instruct_fp8_fast: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1meta~1llama-3.3-70b-instruct-fp8-fast/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .requests }}{{ $sep }}"requests": {{ if eq (kindOf .requests) "string" }}{{ .requests }}{{ else }}{{ toJson .requests }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/llama_3_3_70b_instruct_fp8_fast/methods/workers_ai_post_run_cf_meta_llama_3_3_70b_instruct_fp8_fast' - update: [] - delete: [] - replace: [] - llama_4_scout_17b_16e_instruct: - id: cloudflare.ai.llama_4_scout_17b_16e_instruct - name: llama_4_scout_17b_16e_instruct - title: Llama 4 Scout 17b 16e Instruct - methods: - workers_ai_post_run_cf_meta_llama_4_scout_17b_16e_instruct: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1meta~1llama-4-scout-17b-16e-instruct/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .guided_json }}{{ $sep }}"guided_json": {{ if eq (kindOf .guided_json) "string" }}{{ .guided_json }}{{ else }}{{ toJson .guided_json }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .requests }}{{ $sep }}"requests": {{ if eq (kindOf .requests) "string" }}{{ .requests }}{{ else }}{{ toJson .requests }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/llama_4_scout_17b_16e_instruct/methods/workers_ai_post_run_cf_meta_llama_4_scout_17b_16e_instruct' - update: [] - delete: [] - replace: [] - llama_guard_3_8b: - id: cloudflare.ai.llama_guard_3_8b - name: llama_guard_3_8b - title: Llama Guard 3 8b - methods: - workers_ai_post_run_cf_meta_llama_guard_3_8b: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1meta~1llama-guard-3-8b/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/llama_guard_3_8b/methods/workers_ai_post_run_cf_meta_llama_guard_3_8b' - update: [] - delete: [] - replace: [] - m2m100_1_2b: - id: cloudflare.ai.m2m100_1_2b - name: m2m100_1_2b - title: M2m100 1 2b - methods: - workers_ai_post_run_cf_meta_m2m100_1_2b: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1meta~1m2m100-1.2b/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .source_lang }}{{ $sep }}"source_lang": {{ toJson .source_lang }}{{- $sep = "," -}}{{ end }} - - {{- if .target_lang }}{{ $sep }}"target_lang": {{ toJson .target_lang }}{{- $sep = "," -}}{{ end }} - - {{- if .text }}{{ $sep }}"text": {{ toJson .text }}{{- $sep = "," -}}{{ end }} - - {{- if .requests }}{{ $sep }}"requests": {{ if eq (kindOf .requests) "string" }}{{ .requests }}{{ else }}{{ toJson .requests }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/m2m100_1_2b/methods/workers_ai_post_run_cf_meta_m2m100_1_2b' - update: [] - delete: [] - replace: [] - nonomni_resnet_50: - id: cloudflare.ai.nonomni_resnet_50 - name: nonomni_resnet_50 - title: Nonomni Resnet 50 - methods: - workers_ai_post_run_cf_microsoft_nonomni_resnet_50: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1microsoft~1nonomni-resnet-50/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/nonomni_resnet_50/methods/workers_ai_post_run_cf_microsoft_nonomni_resnet_50' - update: [] - delete: [] - replace: [] - phi_2: - id: cloudflare.ai.phi_2 - name: phi_2 - title: Phi 2 - methods: - workers_ai_post_run_cf_microsoft_phi_2: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1microsoft~1phi-2/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/phi_2/methods/workers_ai_post_run_cf_microsoft_phi_2' - update: [] - delete: [] - replace: [] - resnet_50: - id: cloudflare.ai.resnet_50 - name: resnet_50 - title: Resnet 50 - methods: - workers_ai_post_run_cf_microsoft_resnet_50: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1microsoft~1resnet-50/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/resnet_50/methods/workers_ai_post_run_cf_microsoft_resnet_50' - update: [] - delete: [] - replace: [] - mistral_7b_instruct_v0_1: - id: cloudflare.ai.mistral_7b_instruct_v0_1 - name: mistral_7b_instruct_v0_1 - title: Mistral 7b Instruct V0 1 - methods: - workers_ai_post_run_cf_mistral_mistral_7b_instruct_v0_1: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1mistral~1mistral-7b-instruct-v0.1/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/mistral_7b_instruct_v0_1/methods/workers_ai_post_run_cf_mistral_mistral_7b_instruct_v0_1' - update: [] - delete: [] - replace: [] - mistral_7b_instruct_v0_2_lora: - id: cloudflare.ai.mistral_7b_instruct_v0_2_lora - name: mistral_7b_instruct_v0_2_lora - title: Mistral 7b Instruct V0 2 Lora - methods: - workers_ai_post_run_cf_mistral_mistral_7b_instruct_v0_2_lora: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1mistral~1mistral-7b-instruct-v0.2-lora/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/mistral_7b_instruct_v0_2_lora/methods/workers_ai_post_run_cf_mistral_mistral_7b_instruct_v0_2_lora' - update: [] - delete: [] - replace: [] - mistral_small_3_1_24b_instruct: - id: cloudflare.ai.mistral_small_3_1_24b_instruct - name: mistral_small_3_1_24b_instruct - title: Mistral Small 3 1 24b Instruct - methods: - workers_ai_post_run_cf_mistralai_mistral_small_3_1_24b_instruct: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1mistralai~1mistral-small-3.1-24b-instruct/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .guided_json }}{{ $sep }}"guided_json": {{ if eq (kindOf .guided_json) "string" }}{{ .guided_json }}{{ else }}{{ toJson .guided_json }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/mistral_small_3_1_24b_instruct/methods/workers_ai_post_run_cf_mistralai_mistral_small_3_1_24b_instruct' - update: [] - delete: [] - replace: [] - kimi_k2_5: - id: cloudflare.ai.kimi_k2_5 - name: kimi_k2_5 - title: Kimi K2 5 - methods: - workers_ai_post_run_cf_moonshotai_kimi_k2_5: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1moonshotai~1kimi-k2.5/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .audio }}{{ $sep }}"audio": {{ if eq (kindOf .audio) "string" }}{{ .audio }}{{ else }}{{ toJson .audio }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .chat_template_kwargs }}{{ $sep }}"chat_template_kwargs": {{ if eq (kindOf .chat_template_kwargs) "string" }}{{ .chat_template_kwargs }}{{ else }}{{ toJson .chat_template_kwargs }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .function_call }}{{ $sep }}"function_call": {{ toJson .function_call }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .logit_bias }}{{ $sep }}"logit_bias": {{ if eq (kindOf .logit_bias) "string" }}{{ .logit_bias }}{{ else }}{{ toJson .logit_bias }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .logprobs }}{{ $sep }}"logprobs": {{ toJson .logprobs }}{{- $sep = "," -}}{{ end }} - - {{- if .max_completion_tokens }}{{ $sep }}"max_completion_tokens": {{ toJson .max_completion_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .metadata }}{{ $sep }}"metadata": {{ if eq (kindOf .metadata) "string" }}{{ .metadata }}{{ else }}{{ toJson .metadata }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .modalities }}{{ $sep }}"modalities": {{ if eq (kindOf .modalities) "string" }}{{ .modalities }}{{ else }}{{ toJson .modalities }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .model }}{{ $sep }}"model": {{ toJson .model }}{{- $sep = "," -}}{{ end }} - - {{- if .n }}{{ $sep }}"n": {{ toJson .n }}{{- $sep = "," -}}{{ end }} - - {{- if .parallel_tool_calls }}{{ $sep }}"parallel_tool_calls": {{ toJson .parallel_tool_calls }}{{- $sep = "," -}}{{ end }} - - {{- if .prediction }}{{ $sep }}"prediction": {{ if eq (kindOf .prediction) "string" }}{{ .prediction }}{{ else }}{{ toJson .prediction }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .reasoning_effort }}{{ $sep }}"reasoning_effort": {{ toJson .reasoning_effort }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .service_tier }}{{ $sep }}"service_tier": {{ toJson .service_tier }}{{- $sep = "," -}}{{ end }} - - {{- if .stop }}{{ $sep }}"stop": {{ toJson .stop }}{{- $sep = "," -}}{{ end }} - - {{- if .store }}{{ $sep }}"store": {{ toJson .store }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .stream_options }}{{ $sep }}"stream_options": {{ if eq (kindOf .stream_options) "string" }}{{ .stream_options }}{{ else }}{{ toJson .stream_options }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .tool_choice }}{{ $sep }}"tool_choice": {{ toJson .tool_choice }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .top_logprobs }}{{ $sep }}"top_logprobs": {{ toJson .top_logprobs }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .user }}{{ $sep }}"user": {{ toJson .user }}{{- $sep = "," -}}{{ end }} - - {{- if .web_search_options }}{{ $sep }}"web_search_options": {{ if eq (kindOf .web_search_options) "string" }}{{ .web_search_options }}{{ else }}{{ toJson .web_search_options }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .requests }}{{ $sep }}"requests": {{ if eq (kindOf .requests) "string" }}{{ .requests }}{{ else }}{{ toJson .requests }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/kimi_k2_5/methods/workers_ai_post_run_cf_moonshotai_kimi_k2_5' - update: [] - delete: [] - replace: [] - melotts: - id: cloudflare.ai.melotts - name: melotts - title: Melotts - methods: - workers_ai_post_run_cf_myshell_ai_melotts: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1myshell-ai~1melotts/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/melotts/methods/workers_ai_post_run_cf_myshell_ai_melotts' - update: [] - delete: [] - replace: [] - nemotron_3_120b_a12b: - id: cloudflare.ai.nemotron_3_120b_a12b - name: nemotron_3_120b_a12b - title: Nemotron 3 120b A12b - methods: - workers_ai_post_run_cf_nvidia_nemotron_3_120b_a12b: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1nvidia~1nemotron-3-120b-a12b/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .audio }}{{ $sep }}"audio": {{ if eq (kindOf .audio) "string" }}{{ .audio }}{{ else }}{{ toJson .audio }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .chat_template_kwargs }}{{ $sep }}"chat_template_kwargs": {{ if eq (kindOf .chat_template_kwargs) "string" }}{{ .chat_template_kwargs }}{{ else }}{{ toJson .chat_template_kwargs }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .function_call }}{{ $sep }}"function_call": {{ toJson .function_call }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .logit_bias }}{{ $sep }}"logit_bias": {{ if eq (kindOf .logit_bias) "string" }}{{ .logit_bias }}{{ else }}{{ toJson .logit_bias }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .logprobs }}{{ $sep }}"logprobs": {{ toJson .logprobs }}{{- $sep = "," -}}{{ end }} - - {{- if .max_completion_tokens }}{{ $sep }}"max_completion_tokens": {{ toJson .max_completion_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .metadata }}{{ $sep }}"metadata": {{ if eq (kindOf .metadata) "string" }}{{ .metadata }}{{ else }}{{ toJson .metadata }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .modalities }}{{ $sep }}"modalities": {{ if eq (kindOf .modalities) "string" }}{{ .modalities }}{{ else }}{{ toJson .modalities }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .model }}{{ $sep }}"model": {{ toJson .model }}{{- $sep = "," -}}{{ end }} - - {{- if .n }}{{ $sep }}"n": {{ toJson .n }}{{- $sep = "," -}}{{ end }} - - {{- if .parallel_tool_calls }}{{ $sep }}"parallel_tool_calls": {{ toJson .parallel_tool_calls }}{{- $sep = "," -}}{{ end }} - - {{- if .prediction }}{{ $sep }}"prediction": {{ if eq (kindOf .prediction) "string" }}{{ .prediction }}{{ else }}{{ toJson .prediction }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .reasoning_effort }}{{ $sep }}"reasoning_effort": {{ toJson .reasoning_effort }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .service_tier }}{{ $sep }}"service_tier": {{ toJson .service_tier }}{{- $sep = "," -}}{{ end }} - - {{- if .stop }}{{ $sep }}"stop": {{ toJson .stop }}{{- $sep = "," -}}{{ end }} - - {{- if .store }}{{ $sep }}"store": {{ toJson .store }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .stream_options }}{{ $sep }}"stream_options": {{ if eq (kindOf .stream_options) "string" }}{{ .stream_options }}{{ else }}{{ toJson .stream_options }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .tool_choice }}{{ $sep }}"tool_choice": {{ toJson .tool_choice }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .top_logprobs }}{{ $sep }}"top_logprobs": {{ toJson .top_logprobs }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .user }}{{ $sep }}"user": {{ toJson .user }}{{- $sep = "," -}}{{ end }} - - {{- if .web_search_options }}{{ $sep }}"web_search_options": {{ if eq (kindOf .web_search_options) "string" }}{{ .web_search_options }}{{ else }}{{ toJson .web_search_options }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/nemotron_3_120b_a12b/methods/workers_ai_post_run_cf_nvidia_nemotron_3_120b_a12b' - update: [] - delete: [] - replace: [] - gpt_oss_120b: - id: cloudflare.ai.gpt_oss_120b - name: gpt_oss_120b - title: Gpt Oss 120b - methods: - workers_ai_post_run_cf_openai_gpt_oss_120b: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1openai~1gpt-oss-120b/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .input }}{{ $sep }}"input": {{ toJson .input }}{{- $sep = "," -}}{{ end }} - - {{- if .reasoning }}{{ $sep }}"reasoning": {{ if eq (kindOf .reasoning) "string" }}{{ .reasoning }}{{ else }}{{ toJson .reasoning }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .requests }}{{ $sep }}"requests": {{ if eq (kindOf .requests) "string" }}{{ .requests }}{{ else }}{{ toJson .requests }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/gpt_oss_120b/methods/workers_ai_post_run_cf_openai_gpt_oss_120b' - update: [] - delete: [] - replace: [] - gpt_oss_20b: - id: cloudflare.ai.gpt_oss_20b - name: gpt_oss_20b - title: Gpt Oss 20b - methods: - workers_ai_post_run_cf_openai_gpt_oss_20b: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1openai~1gpt-oss-20b/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .input }}{{ $sep }}"input": {{ toJson .input }}{{- $sep = "," -}}{{ end }} - - {{- if .reasoning }}{{ $sep }}"reasoning": {{ if eq (kindOf .reasoning) "string" }}{{ .reasoning }}{{ else }}{{ toJson .reasoning }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .requests }}{{ $sep }}"requests": {{ if eq (kindOf .requests) "string" }}{{ .requests }}{{ else }}{{ toJson .requests }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/gpt_oss_20b/methods/workers_ai_post_run_cf_openai_gpt_oss_20b' - update: [] - delete: [] - replace: [] - whisper: - id: cloudflare.ai.whisper - name: whisper - title: Whisper - methods: - workers_ai_post_run_cf_openai_whisper: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1openai~1whisper/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/whisper/methods/workers_ai_post_run_cf_openai_whisper' - update: [] - delete: [] - replace: [] - whisper_large_v3_turbo: - id: cloudflare.ai.whisper_large_v3_turbo - name: whisper_large_v3_turbo - title: Whisper Large V3 Turbo - methods: - workers_ai_post_run_cf_openai_whisper_large_v3_turbo: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1openai~1whisper-large-v3-turbo/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/whisper_large_v3_turbo/methods/workers_ai_post_run_cf_openai_whisper_large_v3_turbo' - update: [] - delete: [] - replace: [] - whisper_tiny_en: - id: cloudflare.ai.whisper_tiny_en - name: whisper_tiny_en - title: Whisper Tiny En - methods: - workers_ai_post_run_cf_openai_whisper_tiny_en: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1openai~1whisper-tiny-en/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/whisper_tiny_en/methods/workers_ai_post_run_cf_openai_whisper_tiny_en' - update: [] - delete: [] - replace: [] - openchat_3_5_0106: - id: cloudflare.ai.openchat_3_5_0106 - name: openchat_3_5_0106 - title: Openchat 3 5 0106 - methods: - workers_ai_post_run_cf_openchat_openchat_3_5_0106: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1openchat~1openchat-3.5-0106/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/openchat_3_5_0106/methods/workers_ai_post_run_cf_openchat_openchat_3_5_0106' - update: [] - delete: [] - replace: [] - plamo_embedding_1b: - id: cloudflare.ai.plamo_embedding_1b - name: plamo_embedding_1b - title: Plamo Embedding 1b - methods: - workers_ai_post_run_cf_pfnet_plamo_embedding_1b: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1pfnet~1plamo-embedding-1b/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/plamo_embedding_1b/methods/workers_ai_post_run_cf_pfnet_plamo_embedding_1b' - update: [] - delete: [] - replace: [] - qwen1_5_0_5b_chat: - id: cloudflare.ai.qwen1_5_0_5b_chat - name: qwen1_5_0_5b_chat - title: Qwen1 5 0 5b Chat - methods: - workers_ai_post_run_cf_qwen_qwen1_5_0_5b_chat: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1qwen~1qwen1.5-0.5b-chat/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/qwen1_5_0_5b_chat/methods/workers_ai_post_run_cf_qwen_qwen1_5_0_5b_chat' - update: [] - delete: [] - replace: [] - qwen1_5_1_8b_chat: - id: cloudflare.ai.qwen1_5_1_8b_chat - name: qwen1_5_1_8b_chat - title: Qwen1 5 1 8b Chat - methods: - workers_ai_post_run_cf_qwen_qwen1_5_1_8b_chat: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1qwen~1qwen1.5-1.8b-chat/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/qwen1_5_1_8b_chat/methods/workers_ai_post_run_cf_qwen_qwen1_5_1_8b_chat' - update: [] - delete: [] - replace: [] - qwen1_5_14b_chat_awq: - id: cloudflare.ai.qwen1_5_14b_chat_awq - name: qwen1_5_14b_chat_awq - title: Qwen1 5 14b Chat Awq - methods: - workers_ai_post_run_cf_qwen_qwen1_5_14b_chat_awq: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1qwen~1qwen1.5-14b-chat-awq/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/qwen1_5_14b_chat_awq/methods/workers_ai_post_run_cf_qwen_qwen1_5_14b_chat_awq' - update: [] - delete: [] - replace: [] - qwen1_5_7b_chat_awq: - id: cloudflare.ai.qwen1_5_7b_chat_awq - name: qwen1_5_7b_chat_awq - title: Qwen1 5 7b Chat Awq - methods: - workers_ai_post_run_cf_qwen_qwen1_5_7b_chat_awq: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1qwen~1qwen1.5-7b-chat-awq/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/qwen1_5_7b_chat_awq/methods/workers_ai_post_run_cf_qwen_qwen1_5_7b_chat_awq' - update: [] - delete: [] - replace: [] - qwen2_5_coder_32b_instruct: - id: cloudflare.ai.qwen2_5_coder_32b_instruct - name: qwen2_5_coder_32b_instruct - title: Qwen2 5 Coder 32b Instruct - methods: - workers_ai_post_run_cf_qwen_qwen2_5_coder_32b_instruct: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1qwen~1qwen2.5-coder-32b-instruct/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/qwen2_5_coder_32b_instruct/methods/workers_ai_post_run_cf_qwen_qwen2_5_coder_32b_instruct' - update: [] - delete: [] - replace: [] - qwen3_30b_a3b_fp8: - id: cloudflare.ai.qwen3_30b_a3b_fp8 - name: qwen3_30b_a3b_fp8 - title: Qwen3 30b A3b Fp8 - methods: - workers_ai_post_run_cf_qwen_qwen3_30b_a3b_fp8: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1qwen~1qwen3-30b-a3b-fp8/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .requests }}{{ $sep }}"requests": {{ if eq (kindOf .requests) "string" }}{{ .requests }}{{ else }}{{ toJson .requests }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/qwen3_30b_a3b_fp8/methods/workers_ai_post_run_cf_qwen_qwen3_30b_a3b_fp8' - update: [] - delete: [] - replace: [] - qwen3_embedding_0_6b: - id: cloudflare.ai.qwen3_embedding_0_6b - name: qwen3_embedding_0_6b - title: Qwen3 Embedding 0 6b + securitySchemes: + api_email: + in: header + name: X-Auth-Email + type: apiKey + description: The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key. + api_key: + in: header + name: X-Auth-Key + type: apiKey + description: The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys. + api_token: + scheme: bearer + type: http + description: The preferred authorization scheme for interacting with the Cloudflare API. [Create a token](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/). + user_service_key: + in: header + name: X-Auth-User-Service-Key + type: apiKey + description: Used when interacting with the Origin CA certificates API. [View/change your key](https://developers.cloudflare.com/fundamentals/api/get-started/ca-keys/#viewchange-your-origin-ca-keys). + x-stackQL-resources: + authors: + id: cloudflare.ai.authors + name: authors + title: Authors methods: - workers_ai_post_run_cf_qwen_qwen3_embedding_0_6b: - config: - requestBodyTranslate: - algorithm: naive + list: operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1qwen~1qwen3-embedding-0.6b/post' + $ref: '#/paths/~1accounts~1{account_id}~1ai~1authors~1search/get' response: mediaType: application/json openAPIDocKey: '200' + overrideMediaType: application/json + transform: + body: '[{{ range $i, $v := .result }}{{ if $i }},{{ end }}{"author": {{ toJson $v }}}{{ end }}]' + type: golang_template_json_v0.3.0 sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/qwen3_embedding_0_6b/methods/workers_ai_post_run_cf_qwen_qwen3_embedding_0_6b' + select: + - $ref: '#/components/x-stackQL-resources/authors/methods/list' + insert: [] update: [] delete: [] replace: [] - qwq_32b: - id: cloudflare.ai.qwq_32b - name: qwq_32b - title: Qwq 32b + finetunes: + id: cloudflare.ai.finetunes + name: finetunes + title: Finetunes methods: - workers_ai_post_run_cf_qwen_qwq_32b: + list: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1ai~1finetunes/get' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result + create: config: requestBodyTranslate: algorithm: naive operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1qwen~1qwq-32b/post' + $ref: '#/paths/~1accounts~1{account_id}~1ai~1finetunes/post' response: mediaType: application/json openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .guided_json }}{{ $sep }}"guided_json": {{ if eq (kindOf .guided_json) "string" }}{{ .guided_json }}{{ else }}{{ toJson .guided_json }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/qwq_32b/methods/workers_ai_post_run_cf_qwen_qwq_32b' - update: [] - delete: [] - replace: [] - stable_diffusion_v1_5_img2img: - id: cloudflare.ai.stable_diffusion_v1_5_img2img - name: stable_diffusion_v1_5_img2img - title: Stable Diffusion V1 5 Img2img - methods: - workers_ai_post_run_cf_runwayml_stable_diffusion_v1_5_img2img: + upload_asset: config: requestBodyTranslate: algorithm: naive operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1runwayml~1stable-diffusion-v1-5-img2img/post' + $ref: '#/paths/~1accounts~1{account_id}~1ai~1finetunes~1{finetune_id}~1finetune-assets/post' response: mediaType: application/json openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .guidance }}{{ $sep }}"guidance": {{ toJson .guidance }}{{- $sep = "," -}}{{ end }} - - {{- if .height }}{{ $sep }}"height": {{ toJson .height }}{{- $sep = "," -}}{{ end }} - - {{- if .image }}{{ $sep }}"image": {{ if eq (kindOf .image) "string" }}{{ .image }}{{ else }}{{ toJson .image }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .image_b64 }}{{ $sep }}"image_b64": {{ toJson .image_b64 }}{{- $sep = "," -}}{{ end }} - - {{- if .mask }}{{ $sep }}"mask": {{ if eq (kindOf .mask) "string" }}{{ .mask }}{{ else }}{{ toJson .mask }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .negative_prompt }}{{ $sep }}"negative_prompt": {{ toJson .negative_prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .num_steps }}{{ $sep }}"num_steps": {{ toJson .num_steps }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .strength }}{{ $sep }}"strength": {{ toJson .strength }}{{- $sep = "," -}}{{ end }} - - {{- if .width }}{{ $sep }}"width": {{ toJson .width }}{{- $sep = "," -}}{{ end }} - - } - - ' sqlVerbs: - select: [] + select: + - $ref: '#/components/x-stackQL-resources/finetunes/methods/list' insert: - - $ref: '#/components/x-stackQL-resources/stable_diffusion_v1_5_img2img/methods/workers_ai_post_run_cf_runwayml_stable_diffusion_v1_5_img2img' + - $ref: '#/components/x-stackQL-resources/finetunes/methods/create' update: [] delete: [] replace: [] - stable_diffusion_v1_5_inpainting: - id: cloudflare.ai.stable_diffusion_v1_5_inpainting - name: stable_diffusion_v1_5_inpainting - title: Stable Diffusion V1 5 Inpainting + public: + id: cloudflare.ai.public + name: public + title: Public methods: - workers_ai_post_run_cf_runwayml_stable_diffusion_v1_5_inpainting: - config: - requestBodyTranslate: - algorithm: naive + list: operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1runwayml~1stable-diffusion-v1-5-inpainting/post' + $ref: '#/paths/~1accounts~1{account_id}~1ai~1finetunes~1public/get' response: mediaType: application/json openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .guidance }}{{ $sep }}"guidance": {{ toJson .guidance }}{{- $sep = "," -}}{{ end }} - - {{- if .height }}{{ $sep }}"height": {{ toJson .height }}{{- $sep = "," -}}{{ end }} - - {{- if .image }}{{ $sep }}"image": {{ if eq (kindOf .image) "string" }}{{ .image }}{{ else }}{{ toJson .image }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .image_b64 }}{{ $sep }}"image_b64": {{ toJson .image_b64 }}{{- $sep = "," -}}{{ end }} - - {{- if .mask }}{{ $sep }}"mask": {{ if eq (kindOf .mask) "string" }}{{ .mask }}{{ else }}{{ toJson .mask }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .negative_prompt }}{{ $sep }}"negative_prompt": {{ toJson .negative_prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .num_steps }}{{ $sep }}"num_steps": {{ toJson .num_steps }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .strength }}{{ $sep }}"strength": {{ toJson .strength }}{{- $sep = "," -}}{{ end }} - - {{- if .width }}{{ $sep }}"width": {{ toJson .width }}{{- $sep = "," -}}{{ end }} - - } - - ' + objectKey: $.result sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/stable_diffusion_v1_5_inpainting/methods/workers_ai_post_run_cf_runwayml_stable_diffusion_v1_5_inpainting' + select: + - $ref: '#/components/x-stackQL-resources/public/methods/list' + insert: [] update: [] delete: [] replace: [] - stable_diffusion_xl_base_1_0: - id: cloudflare.ai.stable_diffusion_xl_base_1_0 - name: stable_diffusion_xl_base_1_0 - title: Stable Diffusion Xl Base 1 0 + schema: + id: cloudflare.ai.schema + name: schema + title: Schema methods: - workers_ai_post_run_cf_stabilityai_stable_diffusion_xl_base_1_0: - config: - requestBodyTranslate: - algorithm: naive + list: operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1stabilityai~1stable-diffusion-xl-base-1.0/post' + $ref: '#/paths/~1accounts~1{account_id}~1ai~1models~1schema/get' response: mediaType: application/json openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .guidance }}{{ $sep }}"guidance": {{ toJson .guidance }}{{- $sep = "," -}}{{ end }} - - {{- if .height }}{{ $sep }}"height": {{ toJson .height }}{{- $sep = "," -}}{{ end }} - - {{- if .image }}{{ $sep }}"image": {{ if eq (kindOf .image) "string" }}{{ .image }}{{ else }}{{ toJson .image }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .image_b64 }}{{ $sep }}"image_b64": {{ toJson .image_b64 }}{{- $sep = "," -}}{{ end }} - - {{- if .mask }}{{ $sep }}"mask": {{ if eq (kindOf .mask) "string" }}{{ .mask }}{{ else }}{{ toJson .mask }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .negative_prompt }}{{ $sep }}"negative_prompt": {{ toJson .negative_prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .num_steps }}{{ $sep }}"num_steps": {{ toJson .num_steps }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .strength }}{{ $sep }}"strength": {{ toJson .strength }}{{- $sep = "," -}}{{ end }} - - {{- if .width }}{{ $sep }}"width": {{ toJson .width }}{{- $sep = "," -}}{{ end }} - - } - - ' + objectKey: $.result sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/stable_diffusion_xl_base_1_0/methods/workers_ai_post_run_cf_stabilityai_stable_diffusion_xl_base_1_0' + select: + - $ref: '#/components/x-stackQL-resources/schema/methods/list' + insert: [] update: [] delete: [] replace: [] - discolm_german_7b_v1_awq: - id: cloudflare.ai.discolm_german_7b_v1_awq - name: discolm_german_7b_v1_awq - title: Discolm German 7b V1 Awq + models: + id: cloudflare.ai.models + name: models + title: Models methods: - workers_ai_post_run_cf_thebloke_discolm_german_7b_v1_awq: - config: - requestBodyTranslate: - algorithm: naive + list: operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1thebloke~1discolm-german-7b-v1-awq/post' + $ref: '#/paths/~1accounts~1{account_id}~1ai~1models~1search/get' response: mediaType: application/json openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' + objectKey: $.result sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/discolm_german_7b_v1_awq/methods/workers_ai_post_run_cf_thebloke_discolm_german_7b_v1_awq' + select: + - $ref: '#/components/x-stackQL-resources/models/methods/list' + insert: [] update: [] delete: [] replace: [] - falcon_7b_instruct: - id: cloudflare.ai.falcon_7b_instruct - name: falcon_7b_instruct - title: Falcon 7b Instruct + run: + id: cloudflare.ai.run + name: run + title: Run methods: - workers_ai_post_run_cf_tiiuae_falcon_7b_instruct: - config: - requestBodyTranslate: - algorithm: naive + nonomni_detr_resnet_50: operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1tiiuae~1falcon-7b-instruct/post' + $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1facebook~1nonomni-detr-resnet-50/post' + request: + mediaType: application/octet-stream + required: + - value + schema_override: + $ref: '#/components/schemas/stackqlWorkersAiPostRunCfFacebookNonomniDetrResnet50Body' + transform: + type: golang_template_json_v0.1.0 + body: '{{ .value }}' response: mediaType: application/json openAPIDocKey: '200' + nonomni_resnet_50: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1microsoft~1nonomni-resnet-50/post' request: + mediaType: application/octet-stream + required: + - value + schema_override: + $ref: '#/components/schemas/stackqlWorkersAiPostRunCfMicrosoftNonomniResnet50Body' + transform: + type: golang_template_json_v0.1.0 + body: '{{ .value }}' + response: mediaType: application/json + openAPIDocKey: '200' + resnet_50: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1microsoft~1resnet-50/post' + request: + mediaType: application/octet-stream + required: + - value + schema_override: + $ref: '#/components/schemas/stackqlWorkersAiPostRunCfMicrosoftResnet50Body' transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/falcon_7b_instruct/methods/workers_ai_post_run_cf_tiiuae_falcon_7b_instruct' - update: [] - delete: [] - replace: [] - tinyllama_1_1b_chat_v1_0: - id: cloudflare.ai.tinyllama_1_1b_chat_v1_0 - name: tinyllama_1_1b_chat_v1_0 - title: Tinyllama 1 1b Chat V1 0 - methods: - workers_ai_post_run_cf_tinyllama_tinyllama_1_1b_chat_v1_0: + type: golang_template_json_v0.1.0 + body: '{{ .value }}' + response: + mediaType: application/json + openAPIDocKey: '200' + whisper: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1openai~1whisper/post' + request: + mediaType: application/octet-stream + required: + - value + schema_override: + $ref: '#/components/schemas/stackqlWorkersAiPostRunCfOpenaiWhisperBody' + transform: + type: golang_template_json_v0.1.0 + body: '{{ .value }}' + response: + mediaType: application/json + openAPIDocKey: '200' + whisper_tiny_en: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1openai~1whisper-tiny-en/post' + request: + mediaType: application/octet-stream + required: + - value + schema_override: + $ref: '#/components/schemas/stackqlWorkersAiPostRunCfOpenaiWhisperTinyEnBody' + transform: + type: golang_template_json_v0.1.0 + body: '{{ .value }}' + response: + mediaType: application/json + openAPIDocKey: '200' + run: config: requestBodyTranslate: algorithm: naive operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1tinyllama~1tinyllama-1.1b-chat-v1.0/post' + $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1{model_name}/post' response: mediaType: application/json openAPIDocKey: '200' + objectKey: $.result request: mediaType: application/json + schema_override: + $ref: '#/components/schemas/stackqlAiRunInput' transform: type: golang_template_json_v0.3.0 body: '{ @@ -27096,56 +5313,24 @@ components: {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - } + {{- if .requests }}{{ $sep }}"requests": {{ if eq (kindOf .requests) "string" }}{{ .requests }}{{ else }}{{ toJson .requests }}{{ end }}{{- $sep = "," -}}{{ end }} - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/tinyllama_1_1b_chat_v1_0/methods/workers_ai_post_run_cf_tinyllama_tinyllama_1_1b_chat_v1_0' - update: [] - delete: [] - replace: [] - glm_4_7_flash: - id: cloudflare.ai.glm_4_7_flash - name: glm_4_7_flash - title: Glm 4 7 Flash - methods: - workers_ai_post_run_cf_zai_org_glm_4_7_flash: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@cf~1zai-org~1glm-4.7-flash/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ + {{- if .guided_json }}{{ $sep }}"guided_json": {{ if eq (kindOf .guided_json) "string" }}{{ .guided_json }}{{ else }}{{ toJson .guided_json }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- $sep := "" -}} + {{- if .image }}{{ $sep }}"image": {{ if eq (kindOf .image) "string" }}{{ .image }}{{ else }}{{ toJson .image }}{{ end }}{{- $sep = "," -}}{{ end }} {{- if .audio }}{{ $sep }}"audio": {{ if eq (kindOf .audio) "string" }}{{ .audio }}{{ else }}{{ toJson .audio }}{{ end }}{{- $sep = "," -}}{{ end }} {{- if .chat_template_kwargs }}{{ $sep }}"chat_template_kwargs": {{ if eq (kindOf .chat_template_kwargs) "string" }}{{ .chat_template_kwargs }}{{ else }}{{ toJson .chat_template_kwargs }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - {{- if .function_call }}{{ $sep }}"function_call": {{ toJson .function_call }}{{- $sep = "," -}}{{ end }} - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .logit_bias }}{{ $sep }}"logit_bias": {{ if eq (kindOf .logit_bias) "string" }}{{ .logit_bias }}{{ else }}{{ toJson .logit_bias }}{{ end }}{{- $sep = "," -}}{{ end }} {{- if .logprobs }}{{ $sep }}"logprobs": {{ toJson .logprobs }}{{- $sep = "," -}}{{ end }} {{- if .max_completion_tokens }}{{ $sep }}"max_completion_tokens": {{ toJson .max_completion_tokens }}{{- $sep = "," -}}{{ end }} - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - {{- if .metadata }}{{ $sep }}"metadata": {{ if eq (kindOf .metadata) "string" }}{{ .metadata }}{{ else }}{{ toJson .metadata }}{{ end }}{{- $sep = "," -}}{{ end }} {{- if .modalities }}{{ $sep }}"modalities": {{ if eq (kindOf .modalities) "string" }}{{ .modalities }}{{ else }}{{ toJson .modalities }}{{ end }}{{- $sep = "," -}}{{ end }} @@ -27158,319 +5343,222 @@ components: {{- if .prediction }}{{ $sep }}"prediction": {{ if eq (kindOf .prediction) "string" }}{{ .prediction }}{{ else }}{{ toJson .prediction }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - {{- if .reasoning_effort }}{{ $sep }}"reasoning_effort": {{ toJson .reasoning_effort }}{{- $sep = "," -}}{{ end }} - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - {{- if .service_tier }}{{ $sep }}"service_tier": {{ toJson .service_tier }}{{- $sep = "," -}}{{ end }} {{- if .stop }}{{ $sep }}"stop": {{ toJson .stop }}{{- $sep = "," -}}{{ end }} {{- if .store }}{{ $sep }}"store": {{ toJson .store }}{{- $sep = "," -}}{{ end }} - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - {{- if .stream_options }}{{ $sep }}"stream_options": {{ if eq (kindOf .stream_options) "string" }}{{ .stream_options }}{{ else }}{{ toJson .stream_options }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - {{- if .tool_choice }}{{ $sep }}"tool_choice": {{ toJson .tool_choice }}{{- $sep = "," -}}{{ end }} - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .top_logprobs }}{{ $sep }}"top_logprobs": {{ toJson .top_logprobs }}{{- $sep = "," -}}{{ end }} - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - {{- if .user }}{{ $sep }}"user": {{ toJson .user }}{{- $sep = "," -}}{{ end }} {{- if .web_search_options }}{{ $sep }}"web_search_options": {{ if eq (kindOf .web_search_options) "string" }}{{ .web_search_options }}{{ else }}{{ toJson .web_search_options }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .input }}{{ $sep }}"input": {{ toJson .input }}{{- $sep = "," -}}{{ end }} - } + {{- if .reasoning }}{{ $sep }}"reasoning": {{ if eq (kindOf .reasoning) "string" }}{{ .reasoning }}{{ else }}{{ toJson .reasoning }}{{ end }}{{- $sep = "," -}}{{ end }} - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/glm_4_7_flash/methods/workers_ai_post_run_cf_zai_org_glm_4_7_flash' - update: [] - delete: [] - replace: [] - gemma_7b_it: - id: cloudflare.ai.gemma_7b_it - name: gemma_7b_it - title: Gemma 7b It - methods: - workers_ai_post_run_hf_google_gemma_7b_it: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@hf~1google~1gemma-7b-it/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ + {{- if .pooling }}{{ $sep }}"pooling": {{ toJson .pooling }}{{- $sep = "," -}}{{ end }} - {{- $sep := "" -}} + {{- if .text }}{{ $sep }}"text": {{ toJson .text }}{{- $sep = "," -}}{{ end }} - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} + {{- if .contexts }}{{ $sep }}"contexts": {{ if eq (kindOf .contexts) "string" }}{{ .contexts }}{{ else }}{{ toJson .contexts }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} + {{- if .query }}{{ $sep }}"query": {{ toJson .query }}{{- $sep = "," -}}{{ end }} - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} + {{- if .truncate_inputs }}{{ $sep }}"truncate_inputs": {{ toJson .truncate_inputs }}{{- $sep = "," -}}{{ end }} - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} + {{- if .documents }}{{ $sep }}"documents": {{ toJson .documents }}{{- $sep = "," -}}{{ end }} - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} + {{- if .instruction }}{{ $sep }}"instruction": {{ toJson .instruction }}{{- $sep = "," -}}{{ end }} - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} + {{- if .queries }}{{ $sep }}"queries": {{ toJson .queries }}{{- $sep = "," -}}{{ end }} - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} + {{- if .eager_eot_threshold }}{{ $sep }}"eager_eot_threshold": {{ toJson .eager_eot_threshold }}{{- $sep = "," -}}{{ end }} - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .encoding }}{{ $sep }}"encoding": {{ toJson .encoding }}{{- $sep = "," -}}{{ end }} - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} + {{- if .eot_threshold }}{{ $sep }}"eot_threshold": {{ toJson .eot_threshold }}{{- $sep = "," -}}{{ end }} - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} + {{- if .eot_timeout_ms }}{{ $sep }}"eot_timeout_ms": {{ toJson .eot_timeout_ms }}{{- $sep = "," -}}{{ end }} - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} + {{- if .keyterm }}{{ $sep }}"keyterm": {{ toJson .keyterm }}{{- $sep = "," -}}{{ end }} - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} + {{- if .mip_opt_out }}{{ $sep }}"mip_opt_out": {{ toJson .mip_opt_out }}{{- $sep = "," -}}{{ end }} - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} + {{- if .sample_rate }}{{ $sep }}"sample_rate": {{ toJson .sample_rate }}{{- $sep = "," -}}{{ end }} - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .tag }}{{ $sep }}"tag": {{ toJson .tag }}{{- $sep = "," -}}{{ end }} - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .channels }}{{ $sep }}"channels": {{ toJson .channels }}{{- $sep = "," -}}{{ end }} - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .custom_intent }}{{ $sep }}"custom_intent": {{ toJson .custom_intent }}{{- $sep = "," -}}{{ end }} - } + {{- if .custom_intent_mode }}{{ $sep }}"custom_intent_mode": {{ toJson .custom_intent_mode }}{{- $sep = "," -}}{{ end }} - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/gemma_7b_it/methods/workers_ai_post_run_hf_google_gemma_7b_it' - update: [] - delete: [] - replace: [] - mistral_7b_instruct_v0_2: - id: cloudflare.ai.mistral_7b_instruct_v0_2 - name: mistral_7b_instruct_v0_2 - title: Mistral 7b Instruct V0 2 - methods: - workers_ai_post_run_hf_mistral_mistral_7b_instruct_v0_2: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@hf~1mistral~1mistral-7b-instruct-v0.2/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ + {{- if .custom_topic }}{{ $sep }}"custom_topic": {{ toJson .custom_topic }}{{- $sep = "," -}}{{ end }} - {{- $sep := "" -}} + {{- if .custom_topic_mode }}{{ $sep }}"custom_topic_mode": {{ toJson .custom_topic_mode }}{{- $sep = "," -}}{{ end }} - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} + {{- if .detect_entities }}{{ $sep }}"detect_entities": {{ toJson .detect_entities }}{{- $sep = "," -}}{{ end }} - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} + {{- if .detect_language }}{{ $sep }}"detect_language": {{ toJson .detect_language }}{{- $sep = "," -}}{{ end }} - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} + {{- if .diarize }}{{ $sep }}"diarize": {{ toJson .diarize }}{{- $sep = "," -}}{{ end }} - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} + {{- if .dictation }}{{ $sep }}"dictation": {{ toJson .dictation }}{{- $sep = "," -}}{{ end }} - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} + {{- if .endpointing }}{{ $sep }}"endpointing": {{ toJson .endpointing }}{{- $sep = "," -}}{{ end }} - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} + {{- if .extra }}{{ $sep }}"extra": {{ toJson .extra }}{{- $sep = "," -}}{{ end }} - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} + {{- if .filler_words }}{{ $sep }}"filler_words": {{ toJson .filler_words }}{{- $sep = "," -}}{{ end }} - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .interim_results }}{{ $sep }}"interim_results": {{ toJson .interim_results }}{{- $sep = "," -}}{{ end }} - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} + {{- if .keywords }}{{ $sep }}"keywords": {{ toJson .keywords }}{{- $sep = "," -}}{{ end }} - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} + {{- if .language }}{{ $sep }}"language": {{ toJson .language }}{{- $sep = "," -}}{{ end }} - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} + {{- if .measurements }}{{ $sep }}"measurements": {{ toJson .measurements }}{{- $sep = "," -}}{{ end }} - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} + {{- if .mode }}{{ $sep }}"mode": {{ toJson .mode }}{{- $sep = "," -}}{{ end }} - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} + {{- if .multichannel }}{{ $sep }}"multichannel": {{ toJson .multichannel }}{{- $sep = "," -}}{{ end }} - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .numerals }}{{ $sep }}"numerals": {{ toJson .numerals }}{{- $sep = "," -}}{{ end }} - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .paragraphs }}{{ $sep }}"paragraphs": {{ toJson .paragraphs }}{{- $sep = "," -}}{{ end }} - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .profanity_filter }}{{ $sep }}"profanity_filter": {{ toJson .profanity_filter }}{{- $sep = "," -}}{{ end }} - } + {{- if .punctuate }}{{ $sep }}"punctuate": {{ toJson .punctuate }}{{- $sep = "," -}}{{ end }} - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/mistral_7b_instruct_v0_2/methods/workers_ai_post_run_hf_mistral_mistral_7b_instruct_v0_2' - update: [] - delete: [] - replace: [] - starling_lm_7b_beta: - id: cloudflare.ai.starling_lm_7b_beta - name: starling_lm_7b_beta - title: Starling Lm 7b Beta - methods: - workers_ai_post_run_hf_nexusflow_starling_lm_7b_beta: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@hf~1nexusflow~1starling-lm-7b-beta/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ + {{- if .redact }}{{ $sep }}"redact": {{ toJson .redact }}{{- $sep = "," -}}{{ end }} - {{- $sep := "" -}} + {{- if .replace }}{{ $sep }}"replace": {{ toJson .replace }}{{- $sep = "," -}}{{ end }} - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} + {{- if .search }}{{ $sep }}"search": {{ toJson .search }}{{- $sep = "," -}}{{ end }} - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} + {{- if .sentiment }}{{ $sep }}"sentiment": {{ toJson .sentiment }}{{- $sep = "," -}}{{ end }} - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} + {{- if .smart_format }}{{ $sep }}"smart_format": {{ toJson .smart_format }}{{- $sep = "," -}}{{ end }} - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} + {{- if .topics }}{{ $sep }}"topics": {{ toJson .topics }}{{- $sep = "," -}}{{ end }} - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} + {{- if .utt_split }}{{ $sep }}"utt_split": {{ toJson .utt_split }}{{- $sep = "," -}}{{ end }} - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} + {{- if .utterance_end_ms }}{{ $sep }}"utterance_end_ms": {{ toJson .utterance_end_ms }}{{- $sep = "," -}}{{ end }} - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} + {{- if .utterances }}{{ $sep }}"utterances": {{ toJson .utterances }}{{- $sep = "," -}}{{ end }} - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .vad_events }}{{ $sep }}"vad_events": {{ toJson .vad_events }}{{- $sep = "," -}}{{ end }} - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} + {{- if .beam_size }}{{ $sep }}"beam_size": {{ toJson .beam_size }}{{- $sep = "," -}}{{ end }} - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} + {{- if .compression_ratio_threshold }}{{ $sep }}"compression_ratio_threshold": {{ toJson .compression_ratio_threshold }}{{- $sep = "," -}}{{ end }} - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} + {{- if .condition_on_previous_text }}{{ $sep }}"condition_on_previous_text": {{ toJson .condition_on_previous_text }}{{- $sep = "," -}}{{ end }} - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} + {{- if .hallucination_silence_threshold }}{{ $sep }}"hallucination_silence_threshold": {{ toJson .hallucination_silence_threshold }}{{- $sep = "," -}}{{ end }} - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} + {{- if .initial_prompt }}{{ $sep }}"initial_prompt": {{ toJson .initial_prompt }}{{- $sep = "," -}}{{ end }} - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .log_prob_threshold }}{{ $sep }}"log_prob_threshold": {{ toJson .log_prob_threshold }}{{- $sep = "," -}}{{ end }} - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .no_speech_threshold }}{{ $sep }}"no_speech_threshold": {{ toJson .no_speech_threshold }}{{- $sep = "," -}}{{ end }} - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .prefix }}{{ $sep }}"prefix": {{ toJson .prefix }}{{- $sep = "," -}}{{ end }} - } + {{- if .task }}{{ $sep }}"task": {{ toJson .task }}{{- $sep = "," -}}{{ end }} - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/starling_lm_7b_beta/methods/workers_ai_post_run_hf_nexusflow_starling_lm_7b_beta' - update: [] - delete: [] - replace: [] - hermes_2_pro_mistral_7b: - id: cloudflare.ai.hermes_2_pro_mistral_7b - name: hermes_2_pro_mistral_7b - title: Hermes 2 Pro Mistral 7b - methods: - workers_ai_post_run_hf_nousresearch_hermes_2_pro_mistral_7b: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@hf~1nousresearch~1hermes-2-pro-mistral-7b/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ + {{- if .vad_filter }}{{ $sep }}"vad_filter": {{ toJson .vad_filter }}{{- $sep = "," -}}{{ end }} - {{- $sep := "" -}} + {{- if .target_language }}{{ $sep }}"target_language": {{ toJson .target_language }}{{- $sep = "," -}}{{ end }} - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} + {{- if .source_lang }}{{ $sep }}"source_lang": {{ toJson .source_lang }}{{- $sep = "," -}}{{ end }} - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} + {{- if .target_lang }}{{ $sep }}"target_lang": {{ toJson .target_lang }}{{- $sep = "," -}}{{ end }} - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} + {{- if .input_text }}{{ $sep }}"input_text": {{ toJson .input_text }}{{- $sep = "," -}}{{ end }} - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} + {{- if .max_length }}{{ $sep }}"max_length": {{ toJson .max_length }}{{- $sep = "," -}}{{ end }} - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} + {{- if .steps }}{{ $sep }}"steps": {{ toJson .steps }}{{- $sep = "," -}}{{ end }} - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} + {{- if .multipart }}{{ $sep }}"multipart": {{ if eq (kindOf .multipart) "string" }}{{ .multipart }}{{ else }}{{ toJson .multipart }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} + {{- if .guidance }}{{ $sep }}"guidance": {{ toJson .guidance }}{{- $sep = "," -}}{{ end }} - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .height }}{{ $sep }}"height": {{ toJson .height }}{{- $sep = "," -}}{{ end }} - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} + {{- if .image_b64 }}{{ $sep }}"image_b64": {{ toJson .image_b64 }}{{- $sep = "," -}}{{ end }} - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} + {{- if .mask }}{{ $sep }}"mask": {{ if eq (kindOf .mask) "string" }}{{ .mask }}{{ else }}{{ toJson .mask }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} + {{- if .negative_prompt }}{{ $sep }}"negative_prompt": {{ toJson .negative_prompt }}{{- $sep = "," -}}{{ end }} - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} + {{- if .num_steps }}{{ $sep }}"num_steps": {{ toJson .num_steps }}{{- $sep = "," -}}{{ end }} - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} + {{- if .strength }}{{ $sep }}"strength": {{ toJson .strength }}{{- $sep = "," -}}{{ end }} - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .width }}{{ $sep }}"width": {{ toJson .width }}{{- $sep = "," -}}{{ end }} - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .bit_rate }}{{ $sep }}"bit_rate": {{ toJson .bit_rate }}{{- $sep = "," -}}{{ end }} - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .container }}{{ $sep }}"container": {{ toJson .container }}{{- $sep = "," -}}{{ end }} + + {{- if .speaker }}{{ $sep }}"speaker": {{ toJson .speaker }}{{- $sep = "," -}}{{ end }} + + {{- if .lang }}{{ $sep }}"lang": {{ toJson .lang }}{{- $sep = "," -}}{{ end }} } ' sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/hermes_2_pro_mistral_7b/methods/workers_ai_post_run_hf_nousresearch_hermes_2_pro_mistral_7b' + select: + - $ref: '#/components/x-stackQL-resources/run/methods/run' + insert: [] + update: [] + delete: [] + replace: [] + tasks: + id: cloudflare.ai.tasks + name: tasks + title: Tasks + methods: + list: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1ai~1tasks~1search/get' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result + sqlVerbs: + select: + - $ref: '#/components/x-stackQL-resources/tasks/methods/list' + insert: [] update: [] delete: [] replace: [] - deepseek_coder_6_7b_base_awq: - id: cloudflare.ai.deepseek_coder_6_7b_base_awq - name: deepseek_coder_6_7b_base_awq - title: Deepseek Coder 6 7b Base Awq + to_markdown: + id: cloudflare.ai.to_markdown + name: to_markdown + title: To Markdown methods: - workers_ai_post_run_hf_thebloke_deepseek_coder_6_7b_base_awq: + convert: config: requestBodyTranslate: algorithm: naive operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@hf~1thebloke~1deepseek-coder-6.7b-base-awq/post' + $ref: '#/paths/~1accounts~1{account_id}~1ai~1tomarkdown/post' response: mediaType: application/json openAPIDocKey: '200' @@ -27482,59 +5570,48 @@ components: {{- $sep := "" -}} - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .files }}{{ $sep }}"files": {{ if eq (kindOf .files) "string" }}{{ .files }}{{ else }}{{ toJson .files }}{{ end }}{{- $sep = "," -}}{{ end }} } ' sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/deepseek_coder_6_7b_base_awq/methods/workers_ai_post_run_hf_thebloke_deepseek_coder_6_7b_base_awq' + select: + - $ref: '#/components/x-stackQL-resources/to_markdown/methods/convert' + insert: [] + update: [] + delete: [] + replace: [] + to_markdown_supported: + id: cloudflare.ai.to_markdown_supported + name: to_markdown_supported + title: To Markdown Supported + methods: + list: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1ai~1tomarkdown~1supported/get' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result + sqlVerbs: + select: + - $ref: '#/components/x-stackQL-resources/to_markdown_supported/methods/list' + insert: [] update: [] delete: [] replace: [] - deepseek_coder_6_7b_instruct_awq: - id: cloudflare.ai.deepseek_coder_6_7b_instruct_awq - name: deepseek_coder_6_7b_instruct_awq - title: Deepseek Coder 6 7b Instruct Awq + ai_search: + id: cloudflare.ai.ai_search + name: ai_search + title: Ai Search methods: - workers_ai_post_run_hf_thebloke_deepseek_coder_6_7b_instruct_awq: + autorag_config_ai_search: config: requestBodyTranslate: algorithm: naive operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@hf~1thebloke~1deepseek-coder-6.7b-instruct-awq/post' + $ref: '#/paths/~1accounts~1{account_id}~1autorag~1rags~1{id}~1ai-search/post' response: mediaType: application/json openAPIDocKey: '200' @@ -27546,59 +5623,116 @@ components: {{- $sep := "" -}} - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} + {{- if .filters }}{{ $sep }}"filters": {{ if eq (kindOf .filters) "string" }}{{ .filters }}{{ else }}{{ toJson .filters }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} + {{- if .max_num_results }}{{ $sep }}"max_num_results": {{ toJson .max_num_results }}{{- $sep = "," -}}{{ end }} - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} + {{- if .model }}{{ $sep }}"model": {{ toJson .model }}{{- $sep = "," -}}{{ end }} - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} + {{- if .query }}{{ $sep }}"query": {{ toJson .query }}{{- $sep = "," -}}{{ end }} - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} + {{- if .ranking_options }}{{ $sep }}"ranking_options": {{ if eq (kindOf .ranking_options) "string" }}{{ .ranking_options }}{{ else }}{{ toJson .ranking_options }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .reranking }}{{ $sep }}"reranking": {{ if eq (kindOf .reranking) "string" }}{{ .reranking }}{{ else }}{{ toJson .reranking }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} + {{- if .rewrite_query }}{{ $sep }}"rewrite_query": {{ toJson .rewrite_query }}{{- $sep = "," -}}{{ end }} {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} - - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} - - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} - - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .system_prompt }}{{ $sep }}"system_prompt": {{ toJson .system_prompt }}{{- $sep = "," -}}{{ end }} } ' sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/deepseek_coder_6_7b_instruct_awq/methods/workers_ai_post_run_hf_thebloke_deepseek_coder_6_7b_instruct_awq' + select: + - $ref: '#/components/x-stackQL-resources/ai_search/methods/autorag_config_ai_search' + insert: [] + update: [] + delete: [] + replace: [] + files: + id: cloudflare.ai.files + name: files + title: Files + methods: + list: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1autorag~1rags~1{id}~1files/get' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result + sqlVerbs: + select: + - $ref: '#/components/x-stackQL-resources/files/methods/list' + insert: [] + update: [] + delete: [] + replace: [] + jobs: + id: cloudflare.ai.jobs + name: jobs + title: Jobs + methods: + list: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1autorag~1rags~1{id}~1jobs/get' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result + get: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1autorag~1rags~1{id}~1jobs~1{job_id}/get' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result + sync: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1autorag~1rags~1{id}~1sync/patch' + response: + mediaType: application/json + openAPIDocKey: '200' + sqlVerbs: + select: + - $ref: '#/components/x-stackQL-resources/jobs/methods/get' + - $ref: '#/components/x-stackQL-resources/jobs/methods/list' + insert: [] + update: [] + delete: [] + replace: [] + logs: + id: cloudflare.ai.logs + name: logs + title: Logs + methods: + list: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1autorag~1rags~1{id}~1jobs~1{job_id}~1logs/get' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result + sqlVerbs: + select: + - $ref: '#/components/x-stackQL-resources/logs/methods/list' + insert: [] update: [] delete: [] replace: [] - llama_2_13b_chat_awq: - id: cloudflare.ai.llama_2_13b_chat_awq - name: llama_2_13b_chat_awq - title: Llama 2 13b Chat Awq + search: + id: cloudflare.ai.search + name: search + title: Search methods: - workers_ai_post_run_hf_thebloke_llama_2_13b_chat_awq: + autorag_config_search: config: requestBodyTranslate: algorithm: naive operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@hf~1thebloke~1llama-2-13b-chat-awq/post' + $ref: '#/paths/~1accounts~1{account_id}~1autorag~1rags~1{id}~1search/post' response: mediaType: application/json openAPIDocKey: '200' @@ -27610,64 +5744,43 @@ components: {{- $sep := "" -}} - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} - - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} - - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} + {{- if .filters }}{{ $sep }}"filters": {{ if eq (kindOf .filters) "string" }}{{ .filters }}{{ else }}{{ toJson .filters }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} + {{- if .max_num_results }}{{ $sep }}"max_num_results": {{ toJson .max_num_results }}{{- $sep = "," -}}{{ end }} - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} + {{- if .query }}{{ $sep }}"query": {{ toJson .query }}{{- $sep = "," -}}{{ end }} - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .ranking_options }}{{ $sep }}"ranking_options": {{ if eq (kindOf .ranking_options) "string" }}{{ .ranking_options }}{{ else }}{{ toJson .ranking_options }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .reranking }}{{ $sep }}"reranking": {{ if eq (kindOf .reranking) "string" }}{{ .reranking }}{{ else }}{{ toJson .reranking }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .rewrite_query }}{{ $sep }}"rewrite_query": {{ toJson .rewrite_query }}{{- $sep = "," -}}{{ end }} } ' sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/llama_2_13b_chat_awq/methods/workers_ai_post_run_hf_thebloke_llama_2_13b_chat_awq' + select: + - $ref: '#/components/x-stackQL-resources/search/methods/autorag_config_search' + insert: [] update: [] delete: [] replace: [] - mistral_7b_instruct_v0_1_awq: - id: cloudflare.ai.mistral_7b_instruct_v0_1_awq - name: mistral_7b_instruct_v0_1_awq - title: Mistral 7b Instruct V0 1 Awq + text_generation: + id: cloudflare.ai.text_generation + name: text_generation + title: Text Generation methods: - workers_ai_post_run_hf_thebloke_mistral_7b_instruct_v0_1_awq: + run: config: requestBodyTranslate: algorithm: naive operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@hf~1thebloke~1mistral-7b-instruct-v0.1-awq/post' - response: - mediaType: application/json - openAPIDocKey: '200' + $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1{model_name}/post' request: mediaType: application/json + schema_override: + $ref: '#/components/schemas/stackqlAiTextGenerationRunInput' transform: type: golang_template_json_v0.3.0 body: '{ @@ -27706,552 +5819,545 @@ components: {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} - } + {{- if .requests }}{{ $sep }}"requests": {{ if eq (kindOf .requests) "string" }}{{ .requests }}{{ else }}{{ toJson .requests }}{{ end }}{{- $sep = "," -}}{{ end }} - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/mistral_7b_instruct_v0_1_awq/methods/workers_ai_post_run_hf_thebloke_mistral_7b_instruct_v0_1_awq' - update: [] - delete: [] - replace: [] - neural_chat_7b_v3_1_awq: - id: cloudflare.ai.neural_chat_7b_v3_1_awq - name: neural_chat_7b_v3_1_awq - title: Neural Chat 7b V3 1 Awq - methods: - workers_ai_post_run_hf_thebloke_neural_chat_7b_v3_1_awq: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@hf~1thebloke~1neural-chat-7b-v3-1-awq/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ + {{- if .guided_json }}{{ $sep }}"guided_json": {{ if eq (kindOf .guided_json) "string" }}{{ .guided_json }}{{ else }}{{ toJson .guided_json }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- $sep := "" -}} + {{- if .image }}{{ $sep }}"image": {{ if eq (kindOf .image) "string" }}{{ .image }}{{ else }}{{ toJson .image }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} + {{- if .audio }}{{ $sep }}"audio": {{ if eq (kindOf .audio) "string" }}{{ .audio }}{{ else }}{{ toJson .audio }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} + {{- if .chat_template_kwargs }}{{ $sep }}"chat_template_kwargs": {{ if eq (kindOf .chat_template_kwargs) "string" }}{{ .chat_template_kwargs }}{{ else }}{{ toJson .chat_template_kwargs }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} + {{- if .function_call }}{{ $sep }}"function_call": {{ toJson .function_call }}{{- $sep = "," -}}{{ end }} - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} + {{- if .logit_bias }}{{ $sep }}"logit_bias": {{ if eq (kindOf .logit_bias) "string" }}{{ .logit_bias }}{{ else }}{{ toJson .logit_bias }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} + {{- if .logprobs }}{{ $sep }}"logprobs": {{ toJson .logprobs }}{{- $sep = "," -}}{{ end }} - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} + {{- if .max_completion_tokens }}{{ $sep }}"max_completion_tokens": {{ toJson .max_completion_tokens }}{{- $sep = "," -}}{{ end }} - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} + {{- if .metadata }}{{ $sep }}"metadata": {{ if eq (kindOf .metadata) "string" }}{{ .metadata }}{{ else }}{{ toJson .metadata }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .modalities }}{{ $sep }}"modalities": {{ if eq (kindOf .modalities) "string" }}{{ .modalities }}{{ else }}{{ toJson .modalities }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} + {{- if .model }}{{ $sep }}"model": {{ toJson .model }}{{- $sep = "," -}}{{ end }} - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} + {{- if .n }}{{ $sep }}"n": {{ toJson .n }}{{- $sep = "," -}}{{ end }} - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} + {{- if .parallel_tool_calls }}{{ $sep }}"parallel_tool_calls": {{ toJson .parallel_tool_calls }}{{- $sep = "," -}}{{ end }} - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} + {{- if .prediction }}{{ $sep }}"prediction": {{ if eq (kindOf .prediction) "string" }}{{ .prediction }}{{ else }}{{ toJson .prediction }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} + {{- if .reasoning_effort }}{{ $sep }}"reasoning_effort": {{ toJson .reasoning_effort }}{{- $sep = "," -}}{{ end }} - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .service_tier }}{{ $sep }}"service_tier": {{ toJson .service_tier }}{{- $sep = "," -}}{{ end }} - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .stop }}{{ $sep }}"stop": {{ toJson .stop }}{{- $sep = "," -}}{{ end }} - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .store }}{{ $sep }}"store": {{ toJson .store }}{{- $sep = "," -}}{{ end }} + + {{- if .stream_options }}{{ $sep }}"stream_options": {{ if eq (kindOf .stream_options) "string" }}{{ .stream_options }}{{ else }}{{ toJson .stream_options }}{{ end }}{{- $sep = "," -}}{{ end }} + + {{- if .tool_choice }}{{ $sep }}"tool_choice": {{ toJson .tool_choice }}{{- $sep = "," -}}{{ end }} + + {{- if .top_logprobs }}{{ $sep }}"top_logprobs": {{ toJson .top_logprobs }}{{- $sep = "," -}}{{ end }} + + {{- if .user }}{{ $sep }}"user": {{ toJson .user }}{{- $sep = "," -}}{{ end }} + + {{- if .web_search_options }}{{ $sep }}"web_search_options": {{ if eq (kindOf .web_search_options) "string" }}{{ .web_search_options }}{{ else }}{{ toJson .web_search_options }}{{ end }}{{- $sep = "," -}}{{ end }} + + {{- if .input }}{{ $sep }}"input": {{ toJson .input }}{{- $sep = "," -}}{{ end }} + + {{- if .reasoning }}{{ $sep }}"reasoning": {{ if eq (kindOf .reasoning) "string" }}{{ .reasoning }}{{ else }}{{ toJson .reasoning }}{{ end }}{{- $sep = "," -}}{{ end }} } ' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/neural_chat_7b_v3_1_awq/methods/workers_ai_post_run_hf_thebloke_neural_chat_7b_v3_1_awq' + select: + - $ref: '#/components/x-stackQL-resources/text_generation/methods/run' + insert: [] update: [] delete: [] replace: [] - openhermes_2_5_mistral_7b_awq: - id: cloudflare.ai.openhermes_2_5_mistral_7b_awq - name: openhermes_2_5_mistral_7b_awq - title: Openhermes 2 5 Mistral 7b Awq + text_embeddings: + id: cloudflare.ai.text_embeddings + name: text_embeddings + title: Text Embeddings methods: - workers_ai_post_run_hf_thebloke_openhermes_2_5_mistral_7b_awq: + run: config: requestBodyTranslate: algorithm: naive operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@hf~1thebloke~1openhermes-2.5-mistral-7b-awq/post' - response: - mediaType: application/json - openAPIDocKey: '200' + $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1{model_name}/post' request: mediaType: application/json + schema_override: + $ref: '#/components/schemas/stackqlAiTextEmbeddingsRunInput' transform: type: golang_template_json_v0.3.0 body: '{ {{- $sep := "" -}} - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} - - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} - - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} - - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .pooling }}{{ $sep }}"pooling": {{ toJson .pooling }}{{- $sep = "," -}}{{ end }} - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} + {{- if .text }}{{ $sep }}"text": {{ toJson .text }}{{- $sep = "," -}}{{ end }} - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} + {{- if .requests }}{{ $sep }}"requests": {{ if eq (kindOf .requests) "string" }}{{ .requests }}{{ else }}{{ toJson .requests }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} + {{- if .contexts }}{{ $sep }}"contexts": {{ if eq (kindOf .contexts) "string" }}{{ .contexts }}{{ else }}{{ toJson .contexts }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} + {{- if .query }}{{ $sep }}"query": {{ toJson .query }}{{- $sep = "," -}}{{ end }} - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} + {{- if .truncate_inputs }}{{ $sep }}"truncate_inputs": {{ toJson .truncate_inputs }}{{- $sep = "," -}}{{ end }} - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .documents }}{{ $sep }}"documents": {{ toJson .documents }}{{- $sep = "," -}}{{ end }} - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .instruction }}{{ $sep }}"instruction": {{ toJson .instruction }}{{- $sep = "," -}}{{ end }} - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .queries }}{{ $sep }}"queries": {{ toJson .queries }}{{- $sep = "," -}}{{ end }} } ' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/openhermes_2_5_mistral_7b_awq/methods/workers_ai_post_run_hf_thebloke_openhermes_2_5_mistral_7b_awq' + select: + - $ref: '#/components/x-stackQL-resources/text_embeddings/methods/run' + insert: [] update: [] delete: [] replace: [] - zephyr_7b_beta_awq: - id: cloudflare.ai.zephyr_7b_beta_awq - name: zephyr_7b_beta_awq - title: Zephyr 7b Beta Awq + speech_to_text: + id: cloudflare.ai.speech_to_text + name: speech_to_text + title: Speech to Text methods: - workers_ai_post_run_hf_thebloke_zephyr_7b_beta_awq: + run: config: requestBodyTranslate: algorithm: naive operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1@hf~1thebloke~1zephyr-7b-beta-awq/post' - response: - mediaType: application/json - openAPIDocKey: '200' + $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1{model_name}/post' request: mediaType: application/json + schema_override: + $ref: '#/components/schemas/stackqlAiSpeechToTextRunInput' transform: type: golang_template_json_v0.3.0 body: '{ {{- $sep := "" -}} - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} - - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} + {{- if .eager_eot_threshold }}{{ $sep }}"eager_eot_threshold": {{ toJson .eager_eot_threshold }}{{- $sep = "," -}}{{ end }} - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} + {{- if .encoding }}{{ $sep }}"encoding": {{ toJson .encoding }}{{- $sep = "," -}}{{ end }} - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} + {{- if .eot_threshold }}{{ $sep }}"eot_threshold": {{ toJson .eot_threshold }}{{- $sep = "," -}}{{ end }} - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} + {{- if .eot_timeout_ms }}{{ $sep }}"eot_timeout_ms": {{ toJson .eot_timeout_ms }}{{- $sep = "," -}}{{ end }} - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} + {{- if .keyterm }}{{ $sep }}"keyterm": {{ toJson .keyterm }}{{- $sep = "," -}}{{ end }} - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} + {{- if .mip_opt_out }}{{ $sep }}"mip_opt_out": {{ toJson .mip_opt_out }}{{- $sep = "," -}}{{ end }} - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .sample_rate }}{{ $sep }}"sample_rate": {{ toJson .sample_rate }}{{- $sep = "," -}}{{ end }} - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} + {{- if .tag }}{{ $sep }}"tag": {{ toJson .tag }}{{- $sep = "," -}}{{ end }} - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} + {{- if .audio }}{{ $sep }}"audio": {{ if eq (kindOf .audio) "string" }}{{ .audio }}{{ else }}{{ toJson .audio }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} + {{- if .channels }}{{ $sep }}"channels": {{ toJson .channels }}{{- $sep = "," -}}{{ end }} - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} + {{- if .custom_intent }}{{ $sep }}"custom_intent": {{ toJson .custom_intent }}{{- $sep = "," -}}{{ end }} - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} + {{- if .custom_intent_mode }}{{ $sep }}"custom_intent_mode": {{ toJson .custom_intent_mode }}{{- $sep = "," -}}{{ end }} - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .custom_topic }}{{ $sep }}"custom_topic": {{ toJson .custom_topic }}{{- $sep = "," -}}{{ end }} - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .custom_topic_mode }}{{ $sep }}"custom_topic_mode": {{ toJson .custom_topic_mode }}{{- $sep = "," -}}{{ end }} - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .detect_entities }}{{ $sep }}"detect_entities": {{ toJson .detect_entities }}{{- $sep = "," -}}{{ end }} - } + {{- if .detect_language }}{{ $sep }}"detect_language": {{ toJson .detect_language }}{{- $sep = "," -}}{{ end }} - ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/zephyr_7b_beta_awq/methods/workers_ai_post_run_hf_thebloke_zephyr_7b_beta_awq' - update: [] - delete: [] - replace: [] - run: - id: cloudflare.ai.run - name: run - title: Run - methods: - run: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1{model_name}/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ + {{- if .diarize }}{{ $sep }}"diarize": {{ toJson .diarize }}{{- $sep = "," -}}{{ end }} - {{- $sep := "" -}} + {{- if .dictation }}{{ $sep }}"dictation": {{ toJson .dictation }}{{- $sep = "," -}}{{ end }} - {{- if .text }}{{ $sep }}"text": {{ toJson .text }}{{- $sep = "," -}}{{ end }} + {{- if .endpointing }}{{ $sep }}"endpointing": {{ toJson .endpointing }}{{- $sep = "," -}}{{ end }} - {{- if .guidance }}{{ $sep }}"guidance": {{ toJson .guidance }}{{- $sep = "," -}}{{ end }} + {{- if .extra }}{{ $sep }}"extra": {{ toJson .extra }}{{- $sep = "," -}}{{ end }} - {{- if .height }}{{ $sep }}"height": {{ toJson .height }}{{- $sep = "," -}}{{ end }} + {{- if .filler_words }}{{ $sep }}"filler_words": {{ toJson .filler_words }}{{- $sep = "," -}}{{ end }} - {{- if .image }}{{ $sep }}"image": {{ if eq (kindOf .image) "string" }}{{ .image }}{{ else }}{{ toJson .image }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .interim_results }}{{ $sep }}"interim_results": {{ toJson .interim_results }}{{- $sep = "," -}}{{ end }} - {{- if .image_b64 }}{{ $sep }}"image_b64": {{ toJson .image_b64 }}{{- $sep = "," -}}{{ end }} + {{- if .keywords }}{{ $sep }}"keywords": {{ toJson .keywords }}{{- $sep = "," -}}{{ end }} - {{- if .mask }}{{ $sep }}"mask": {{ if eq (kindOf .mask) "string" }}{{ .mask }}{{ else }}{{ toJson .mask }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .language }}{{ $sep }}"language": {{ toJson .language }}{{- $sep = "," -}}{{ end }} - {{- if .negative_prompt }}{{ $sep }}"negative_prompt": {{ toJson .negative_prompt }}{{- $sep = "," -}}{{ end }} + {{- if .measurements }}{{ $sep }}"measurements": {{ toJson .measurements }}{{- $sep = "," -}}{{ end }} - {{- if .num_steps }}{{ $sep }}"num_steps": {{ toJson .num_steps }}{{- $sep = "," -}}{{ end }} + {{- if .mode }}{{ $sep }}"mode": {{ toJson .mode }}{{- $sep = "," -}}{{ end }} - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} + {{- if .multichannel }}{{ $sep }}"multichannel": {{ toJson .multichannel }}{{- $sep = "," -}}{{ end }} - {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} + {{- if .numerals }}{{ $sep }}"numerals": {{ toJson .numerals }}{{- $sep = "," -}}{{ end }} - {{- if .strength }}{{ $sep }}"strength": {{ toJson .strength }}{{- $sep = "," -}}{{ end }} + {{- if .paragraphs }}{{ $sep }}"paragraphs": {{ toJson .paragraphs }}{{- $sep = "," -}}{{ end }} - {{- if .width }}{{ $sep }}"width": {{ toJson .width }}{{- $sep = "," -}}{{ end }} + {{- if .profanity_filter }}{{ $sep }}"profanity_filter": {{ toJson .profanity_filter }}{{- $sep = "," -}}{{ end }} - {{- if .lang }}{{ $sep }}"lang": {{ toJson .lang }}{{- $sep = "," -}}{{ end }} + {{- if .punctuate }}{{ $sep }}"punctuate": {{ toJson .punctuate }}{{- $sep = "," -}}{{ end }} - {{- if .audio }}{{ $sep }}"audio": {{ if eq (kindOf .audio) "string" }}{{ .audio }}{{ else }}{{ toJson .audio }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .redact }}{{ $sep }}"redact": {{ toJson .redact }}{{- $sep = "," -}}{{ end }} - {{- if .source_lang }}{{ $sep }}"source_lang": {{ toJson .source_lang }}{{- $sep = "," -}}{{ end }} + {{- if .replace }}{{ $sep }}"replace": {{ toJson .replace }}{{- $sep = "," -}}{{ end }} - {{- if .target_lang }}{{ $sep }}"target_lang": {{ toJson .target_lang }}{{- $sep = "," -}}{{ end }} + {{- if .search }}{{ $sep }}"search": {{ toJson .search }}{{- $sep = "," -}}{{ end }} - {{- if .frequency_penalty }}{{ $sep }}"frequency_penalty": {{ toJson .frequency_penalty }}{{- $sep = "," -}}{{ end }} + {{- if .sentiment }}{{ $sep }}"sentiment": {{ toJson .sentiment }}{{- $sep = "," -}}{{ end }} - {{- if .lora }}{{ $sep }}"lora": {{ toJson .lora }}{{- $sep = "," -}}{{ end }} + {{- if .smart_format }}{{ $sep }}"smart_format": {{ toJson .smart_format }}{{- $sep = "," -}}{{ end }} - {{- if .max_tokens }}{{ $sep }}"max_tokens": {{ toJson .max_tokens }}{{- $sep = "," -}}{{ end }} + {{- if .topics }}{{ $sep }}"topics": {{ toJson .topics }}{{- $sep = "," -}}{{ end }} - {{- if .presence_penalty }}{{ $sep }}"presence_penalty": {{ toJson .presence_penalty }}{{- $sep = "," -}}{{ end }} + {{- if .utt_split }}{{ $sep }}"utt_split": {{ toJson .utt_split }}{{- $sep = "," -}}{{ end }} - {{- if .raw }}{{ $sep }}"raw": {{ toJson .raw }}{{- $sep = "," -}}{{ end }} + {{- if .utterance_end_ms }}{{ $sep }}"utterance_end_ms": {{ toJson .utterance_end_ms }}{{- $sep = "," -}}{{ end }} - {{- if .repetition_penalty }}{{ $sep }}"repetition_penalty": {{ toJson .repetition_penalty }}{{- $sep = "," -}}{{ end }} + {{- if .utterances }}{{ $sep }}"utterances": {{ toJson .utterances }}{{- $sep = "," -}}{{ end }} - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .vad_events }}{{ $sep }}"vad_events": {{ toJson .vad_events }}{{- $sep = "," -}}{{ end }} - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} + {{- if .beam_size }}{{ $sep }}"beam_size": {{ toJson .beam_size }}{{- $sep = "," -}}{{ end }} - {{- if .temperature }}{{ $sep }}"temperature": {{ toJson .temperature }}{{- $sep = "," -}}{{ end }} + {{- if .compression_ratio_threshold }}{{ $sep }}"compression_ratio_threshold": {{ toJson .compression_ratio_threshold }}{{- $sep = "," -}}{{ end }} - {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} + {{- if .condition_on_previous_text }}{{ $sep }}"condition_on_previous_text": {{ toJson .condition_on_previous_text }}{{- $sep = "," -}}{{ end }} - {{- if .top_p }}{{ $sep }}"top_p": {{ toJson .top_p }}{{- $sep = "," -}}{{ end }} + {{- if .hallucination_silence_threshold }}{{ $sep }}"hallucination_silence_threshold": {{ toJson .hallucination_silence_threshold }}{{- $sep = "," -}}{{ end }} - {{- if .functions }}{{ $sep }}"functions": {{ if eq (kindOf .functions) "string" }}{{ .functions }}{{ else }}{{ toJson .functions }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .initial_prompt }}{{ $sep }}"initial_prompt": {{ toJson .initial_prompt }}{{- $sep = "," -}}{{ end }} - {{- if .messages }}{{ $sep }}"messages": {{ if eq (kindOf .messages) "string" }}{{ .messages }}{{ else }}{{ toJson .messages }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .log_prob_threshold }}{{ $sep }}"log_prob_threshold": {{ toJson .log_prob_threshold }}{{- $sep = "," -}}{{ end }} - {{- if .tools }}{{ $sep }}"tools": {{ if eq (kindOf .tools) "string" }}{{ .tools }}{{ else }}{{ toJson .tools }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .no_speech_threshold }}{{ $sep }}"no_speech_threshold": {{ toJson .no_speech_threshold }}{{- $sep = "," -}}{{ end }} - {{- if .input_text }}{{ $sep }}"input_text": {{ toJson .input_text }}{{- $sep = "," -}}{{ end }} + {{- if .prefix }}{{ $sep }}"prefix": {{ toJson .prefix }}{{- $sep = "," -}}{{ end }} - {{- if .max_length }}{{ $sep }}"max_length": {{ toJson .max_length }}{{- $sep = "," -}}{{ end }} + {{- if .task }}{{ $sep }}"task": {{ toJson .task }}{{- $sep = "," -}}{{ end }} - {{- if .ignore_eos }}{{ $sep }}"ignore_eos": {{ toJson .ignore_eos }}{{- $sep = "," -}}{{ end }} + {{- if .vad_filter }}{{ $sep }}"vad_filter": {{ toJson .vad_filter }}{{- $sep = "," -}}{{ end }} } ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/run/methods/run' - update: [] - delete: [] - replace: [] - tasks: - id: cloudflare.ai.tasks - name: tasks - title: Tasks - methods: - list: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1tasks~1search/get' response: mediaType: application/json openAPIDocKey: '200' objectKey: $.result sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/tasks/methods/list' + - $ref: '#/components/x-stackQL-resources/speech_to_text/methods/run' insert: [] update: [] delete: [] replace: [] - tomarkdown: - id: cloudflare.ai.tomarkdown - name: tomarkdown - title: Tomarkdown + translation: + id: cloudflare.ai.translation + name: translation + title: Translation methods: - workers_ai_post_to_markdown: + run: config: requestBodyTranslate: algorithm: naive operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1tomarkdown/post' - response: - mediaType: application/json - openAPIDocKey: '200' + $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1{model_name}/post' request: mediaType: application/json + schema_override: + $ref: '#/components/schemas/stackqlAiTranslationRunInput' transform: type: golang_template_json_v0.3.0 body: '{ {{- $sep := "" -}} - {{- if .files }}{{ $sep }}"files": {{ if eq (kindOf .files) "string" }}{{ .files }}{{ else }}{{ toJson .files }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .target_language }}{{ $sep }}"target_language": {{ toJson .target_language }}{{- $sep = "," -}}{{ end }} + + {{- if .text }}{{ $sep }}"text": {{ toJson .text }}{{- $sep = "," -}}{{ end }} + + {{- if .source_lang }}{{ $sep }}"source_lang": {{ toJson .source_lang }}{{- $sep = "," -}}{{ end }} + + {{- if .target_lang }}{{ $sep }}"target_lang": {{ toJson .target_lang }}{{- $sep = "," -}}{{ end }} + + {{- if .requests }}{{ $sep }}"requests": {{ if eq (kindOf .requests) "string" }}{{ .requests }}{{ else }}{{ toJson .requests }}{{ end }}{{- $sep = "," -}}{{ end }} } ' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/tomarkdown/methods/workers_ai_post_to_markdown' + select: + - $ref: '#/components/x-stackQL-resources/translation/methods/run' + insert: [] update: [] delete: [] replace: [] - to_markdown: - id: cloudflare.ai.to_markdown - name: to_markdown - title: To Markdown + summarization: + id: cloudflare.ai.summarization + name: summarization + title: Summarization methods: - list: + run: + config: + requestBodyTranslate: + algorithm: naive operation: - $ref: '#/paths/~1accounts~1{account_id}~1ai~1tomarkdown~1supported/get' + $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1{model_name}/post' + request: + mediaType: application/json + schema_override: + $ref: '#/components/schemas/stackqlAiSummarizationRunInput' + transform: + type: golang_template_json_v0.3.0 + body: '{ + + {{- $sep := "" -}} + + {{- if .input_text }}{{ $sep }}"input_text": {{ toJson .input_text }}{{- $sep = "," -}}{{ end }} + + {{- if .max_length }}{{ $sep }}"max_length": {{ toJson .max_length }}{{- $sep = "," -}}{{ end }} + + } + + ' response: mediaType: application/json openAPIDocKey: '200' objectKey: $.result sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/to_markdown/methods/list' + - $ref: '#/components/x-stackQL-resources/summarization/methods/run' insert: [] update: [] delete: [] replace: [] - ai_search: - id: cloudflare.ai.ai_search - name: ai_search - title: Ai Search + text_to_image: + id: cloudflare.ai.text_to_image + name: text_to_image + title: Text to Image methods: - autorag_config_ai_search: + run: config: requestBodyTranslate: algorithm: naive operation: - $ref: '#/paths/~1accounts~1{account_id}~1autorag~1rags~1{id}~1ai-search/post' - response: - mediaType: application/json - openAPIDocKey: '200' + $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1{model_name}/post' request: mediaType: application/json + schema_override: + $ref: '#/components/schemas/stackqlAiTextToImageRunInput' transform: type: golang_template_json_v0.3.0 body: '{ {{- $sep := "" -}} - {{- if .filters }}{{ $sep }}"filters": {{ if eq (kindOf .filters) "string" }}{{ .filters }}{{ else }}{{ toJson .filters }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - {{- if .max_num_results }}{{ $sep }}"max_num_results": {{ toJson .max_num_results }}{{- $sep = "," -}}{{ end }} + {{- if .steps }}{{ $sep }}"steps": {{ toJson .steps }}{{- $sep = "," -}}{{ end }} - {{- if .model }}{{ $sep }}"model": {{ toJson .model }}{{- $sep = "," -}}{{ end }} + {{- if .multipart }}{{ $sep }}"multipart": {{ if eq (kindOf .multipart) "string" }}{{ .multipart }}{{ else }}{{ toJson .multipart }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .query }}{{ $sep }}"query": {{ toJson .query }}{{- $sep = "," -}}{{ end }} + {{- if .guidance }}{{ $sep }}"guidance": {{ toJson .guidance }}{{- $sep = "," -}}{{ end }} - {{- if .ranking_options }}{{ $sep }}"ranking_options": {{ if eq (kindOf .ranking_options) "string" }}{{ .ranking_options }}{{ else }}{{ toJson .ranking_options }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .height }}{{ $sep }}"height": {{ toJson .height }}{{- $sep = "," -}}{{ end }} - {{- if .reranking }}{{ $sep }}"reranking": {{ if eq (kindOf .reranking) "string" }}{{ .reranking }}{{ else }}{{ toJson .reranking }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .image }}{{ $sep }}"image": {{ if eq (kindOf .image) "string" }}{{ .image }}{{ else }}{{ toJson .image }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .rewrite_query }}{{ $sep }}"rewrite_query": {{ toJson .rewrite_query }}{{- $sep = "," -}}{{ end }} + {{- if .image_b64 }}{{ $sep }}"image_b64": {{ toJson .image_b64 }}{{- $sep = "," -}}{{ end }} - {{- if .stream }}{{ $sep }}"stream": {{ toJson .stream }}{{- $sep = "," -}}{{ end }} + {{- if .mask }}{{ $sep }}"mask": {{ if eq (kindOf .mask) "string" }}{{ .mask }}{{ else }}{{ toJson .mask }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .system_prompt }}{{ $sep }}"system_prompt": {{ toJson .system_prompt }}{{- $sep = "," -}}{{ end }} + {{- if .negative_prompt }}{{ $sep }}"negative_prompt": {{ toJson .negative_prompt }}{{- $sep = "," -}}{{ end }} + + {{- if .num_steps }}{{ $sep }}"num_steps": {{ toJson .num_steps }}{{- $sep = "," -}}{{ end }} + + {{- if .seed }}{{ $sep }}"seed": {{ toJson .seed }}{{- $sep = "," -}}{{ end }} + + {{- if .strength }}{{ $sep }}"strength": {{ toJson .strength }}{{- $sep = "," -}}{{ end }} + + {{- if .width }}{{ $sep }}"width": {{ toJson .width }}{{- $sep = "," -}}{{ end }} } ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/ai_search/methods/autorag_config_ai_search' - update: [] - delete: [] - replace: [] - files: - id: cloudflare.ai.files - name: files - title: Files - methods: - list: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1autorag~1rags~1{id}~1files/get' response: mediaType: application/json openAPIDocKey: '200' - objectKey: $.result + overrideMediaType: application/json + transform: + body: '[{"contents": {{ toJson . }}}]' + type: golang_template_text_v0.3.0 sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/files/methods/list' + - $ref: '#/components/x-stackQL-resources/text_to_image/methods/run' insert: [] update: [] delete: [] replace: [] - jobs: - id: cloudflare.ai.jobs - name: jobs - title: Jobs + text_to_speech: + id: cloudflare.ai.text_to_speech + name: text_to_speech + title: Text to Speech methods: - list: + run: + config: + requestBodyTranslate: + algorithm: naive operation: - $ref: '#/paths/~1accounts~1{account_id}~1autorag~1rags~1{id}~1jobs/get' - response: + $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1{model_name}/post' + request: mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result - get: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1autorag~1rags~1{id}~1jobs~1{job_id}/get' + schema_override: + $ref: '#/components/schemas/stackqlAiTextToSpeechRunInput' + transform: + type: golang_template_json_v0.3.0 + body: '{ + + {{- $sep := "" -}} + + {{- if .bit_rate }}{{ $sep }}"bit_rate": {{ toJson .bit_rate }}{{- $sep = "," -}}{{ end }} + + {{- if .container }}{{ $sep }}"container": {{ toJson .container }}{{- $sep = "," -}}{{ end }} + + {{- if .encoding }}{{ $sep }}"encoding": {{ toJson .encoding }}{{- $sep = "," -}}{{ end }} + + {{- if .sample_rate }}{{ $sep }}"sample_rate": {{ toJson .sample_rate }}{{- $sep = "," -}}{{ end }} + + {{- if .speaker }}{{ $sep }}"speaker": {{ toJson .speaker }}{{- $sep = "," -}}{{ end }} + + {{- if .text }}{{ $sep }}"text": {{ toJson .text }}{{- $sep = "," -}}{{ end }} + + {{- if .lang }}{{ $sep }}"lang": {{ toJson .lang }}{{- $sep = "," -}}{{ end }} + + {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} + + } + + ' response: mediaType: application/json openAPIDocKey: '200' - objectKey: $.result + overrideMediaType: application/json + transform: + body: '[{"contents": {{ toJson . }}}]' + type: golang_template_text_v0.3.0 sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/jobs/methods/get' - - $ref: '#/components/x-stackQL-resources/jobs/methods/list' + - $ref: '#/components/x-stackQL-resources/text_to_speech/methods/run' insert: [] update: [] delete: [] replace: [] - logs: - id: cloudflare.ai.logs - name: logs - title: Logs + text_classification: + id: cloudflare.ai.text_classification + name: text_classification + title: Text Classification methods: - list: + run: + config: + requestBodyTranslate: + algorithm: naive operation: - $ref: '#/paths/~1accounts~1{account_id}~1autorag~1rags~1{id}~1jobs~1{job_id}~1logs/get' + $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1{model_name}/post' + request: + mediaType: application/json + schema_override: + $ref: '#/components/schemas/stackqlAiTextClassificationRunInput' + transform: + type: golang_template_json_v0.3.0 + body: '{ + + {{- $sep := "" -}} + + {{- if .text }}{{ $sep }}"text": {{ toJson .text }}{{- $sep = "," -}}{{ end }} + + } + + ' response: mediaType: application/json openAPIDocKey: '200' - objectKey: $.result + overrideMediaType: application/json + transform: + body: '[{"contents": {{ toJson . }}}]' + type: golang_template_text_v0.3.0 sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/logs/methods/list' + - $ref: '#/components/x-stackQL-resources/text_classification/methods/run' insert: [] update: [] delete: [] replace: [] - search: - id: cloudflare.ai.search - name: search - title: Search + reranking: + id: cloudflare.ai.reranking + name: reranking + title: Reranking methods: - autorag_config_search: + run: config: requestBodyTranslate: algorithm: naive operation: - $ref: '#/paths/~1accounts~1{account_id}~1autorag~1rags~1{id}~1search/post' - response: - mediaType: application/json - openAPIDocKey: '200' + $ref: '#/paths/~1accounts~1{account_id}~1ai~1run~1{model_name}/post' request: mediaType: application/json + schema_override: + $ref: '#/components/schemas/stackqlAiRerankingRunInput' transform: type: golang_template_json_v0.3.0 body: '{ {{- $sep := "" -}} - {{- if .filters }}{{ $sep }}"filters": {{ if eq (kindOf .filters) "string" }}{{ .filters }}{{ else }}{{ toJson .filters }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .max_num_results }}{{ $sep }}"max_num_results": {{ toJson .max_num_results }}{{- $sep = "," -}}{{ end }} + {{- if .contexts }}{{ $sep }}"contexts": {{ if eq (kindOf .contexts) "string" }}{{ .contexts }}{{ else }}{{ toJson .contexts }}{{ end }}{{- $sep = "," -}}{{ end }} {{- if .query }}{{ $sep }}"query": {{ toJson .query }}{{- $sep = "," -}}{{ end }} - {{- if .ranking_options }}{{ $sep }}"ranking_options": {{ if eq (kindOf .ranking_options) "string" }}{{ .ranking_options }}{{ else }}{{ toJson .ranking_options }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .reranking }}{{ $sep }}"reranking": {{ if eq (kindOf .reranking) "string" }}{{ .reranking }}{{ else }}{{ toJson .reranking }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .rewrite_query }}{{ $sep }}"rewrite_query": {{ toJson .rewrite_query }}{{- $sep = "," -}}{{ end }} + {{- if .top_k }}{{ $sep }}"top_k": {{ toJson .top_k }}{{- $sep = "," -}}{{ end }} } ' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/search/methods/autorag_config_search' - update: [] - delete: [] - replace: [] - sync: - id: cloudflare.ai.sync - name: sync - title: Sync - methods: - autorag_config_sync: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1autorag~1rags~1{id}~1sync/patch' response: mediaType: application/json openAPIDocKey: '200' + overrideMediaType: application/json + transform: + body: '[{"contents": {{ toJson . }}}]' + type: golang_template_text_v0.3.0 sqlVerbs: - select: [] + select: + - $ref: '#/components/x-stackQL-resources/reranking/methods/run' insert: [] - update: - - $ref: '#/components/x-stackQL-resources/sync/methods/autorag_config_sync' + update: [] delete: [] replace: [] diff --git a/providers/src/cloudflare/v00.00.00000/services/ai_gateway.yaml b/providers/src/cloudflare/v00.00.00000/services/ai_gateway.yaml index aac29090..afacb060 100644 --- a/providers/src/cloudflare/v00.00.00000/services/ai_gateway.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/ai_gateway.yaml @@ -7508,7 +7508,7 @@ components: response: mediaType: application/json openAPIDocKey: '200' - objectKey: $.result + objectKey: $.data.routes create: config: requestBodyTranslate: diff --git a/providers/src/cloudflare/v00.00.00000/services/aisearch.yaml b/providers/src/cloudflare/v00.00.00000/services/ai_search.yaml similarity index 97% rename from providers/src/cloudflare/v00.00.00000/services/aisearch.yaml rename to providers/src/cloudflare/v00.00.00000/services/ai_search.yaml index 6c50e270..c89ce04d 100644 --- a/providers/src/cloudflare/v00.00.00000/services/aisearch.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/ai_search.yaml @@ -1,6 +1,6 @@ openapi: 3.0.3 info: - title: aisearch API + title: ai_search API description: Welcome to Cloudflare's API documentation site. We are experimenting with an updated version of our API documentation - check out [developers.cloudflare.com/api-next/](https://developers.cloudflare.com/api-next/) to test out the new experience. To get started using Cloudflare's products and services via the API, refer to [how to interact with Cloudflare](https://developers.cloudflare.com/fundamentals/basic-tasks/interact-with-cloudflare/), which covers using tools like [Terraform](https://developers.cloudflare.com/terraform/#cloudflare-terraform) and the [official SDKs](https://developers.cloudflare.com/fundamentals/api/reference/sdks/) to maintain your Cloudflare resources. Using the Cloudflare API requires authentication so that Cloudflare knows who is making requests and what permissions you have. Create an API token to grant access to the API to perform actions. You can also authenticate with [API keys](https://developers.cloudflare.com/fundamentals/api/get-started/keys/), but these keys have [several limitations](https://developers.cloudflare.com/fundamentals/api/get-started/keys/#limitations) that make them less secure than API tokens. Whenever possible, use API tokens to interact with the Cloudflare API. To create an API token, from the Cloudflare dashboard, go to My Profile > API Tokens and select Create Token. For more information on how to create and troubleshoot API tokens, refer to our [API fundamentals](https://developers.cloudflare.com/fundamentals/api/). For information regarding rate limits, refer to our [API Rate Limits](https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/platform/limits/#api-rate-limits). Totally new to Cloudflare? [Start here](https://developers.cloudflare.com/fundamentals/get-started/). version: 4.0.0 @@ -649,7 +649,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - instances method: list @@ -1698,7 +1698,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - instances method: create @@ -2271,7 +2271,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - instances method: delete @@ -2843,7 +2843,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - instances method: read @@ -3928,7 +3928,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - instances method: update @@ -4312,7 +4312,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - instances method: chat_completions @@ -4502,7 +4502,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - instances - jobs @@ -4695,7 +4695,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - instances - jobs @@ -4829,7 +4829,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - instances - jobs @@ -5183,7 +5183,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - instances - jobs @@ -5514,7 +5514,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - instances method: search @@ -5641,7 +5641,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - instances method: stats @@ -5778,7 +5778,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces method: list @@ -5938,7 +5938,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces method: create @@ -6044,7 +6044,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces method: delete @@ -6138,7 +6138,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces method: read @@ -6269,7 +6269,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces method: update @@ -6680,7 +6680,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces method: chat_completions @@ -7327,7 +7327,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces - instances @@ -8383,7 +8383,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces - instances @@ -8963,7 +8963,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces - instances @@ -9542,7 +9542,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces - instances @@ -10751,7 +10751,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces - instances @@ -11142,7 +11142,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces - instances @@ -11434,7 +11434,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces - instances @@ -11633,7 +11633,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces - instances @@ -11859,7 +11859,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces - instances @@ -11981,7 +11981,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces - instances @@ -12166,7 +12166,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces - instances @@ -12398,7 +12398,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces - instances @@ -12602,7 +12602,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces - instances @@ -12740,7 +12740,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces - instances @@ -12948,7 +12948,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces - instances @@ -13146,7 +13146,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces - instances @@ -13346,7 +13346,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces - instances @@ -13487,7 +13487,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces - instances @@ -13665,7 +13665,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces - instances @@ -13861,7 +13861,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces - instances @@ -14199,7 +14199,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces - instances @@ -14333,7 +14333,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces - instances @@ -14691,7 +14691,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - namespaces method: search @@ -14855,7 +14855,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - tokens method: list @@ -14990,7 +14990,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - tokens method: create @@ -15127,7 +15127,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - tokens method: delete @@ -15278,7 +15278,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - tokens method: read @@ -15445,7 +15445,7 @@ paths: free: true pro: true x-stackql-sdk: - service: aisearch + service: ai_search resource_chain: - tokens method: update @@ -15478,7 +15478,7 @@ components: description: Used when interacting with the Origin CA certificates API. [View/change your key](https://developers.cloudflare.com/fundamentals/api/get-started/ca-keys/#viewchange-your-origin-ca-keys). x-stackQL-resources: instances: - id: cloudflare.aisearch.instances + id: cloudflare.ai_search.instances name: instances title: Instances methods: @@ -15679,7 +15679,7 @@ components: replace: - $ref: '#/components/x-stackQL-resources/instances/methods/update_by_account' chat_completions: - id: cloudflare.aisearch.chat_completions + id: cloudflare.ai_search.chat_completions name: chat_completions title: Chat Completions methods: @@ -15740,15 +15740,15 @@ components: ' sqlVerbs: - select: [] - insert: + select: - $ref: '#/components/x-stackQL-resources/chat_completions/methods/chat_completions_by_account' - $ref: '#/components/x-stackQL-resources/chat_completions/methods/chat_completions' + insert: [] update: [] delete: [] replace: [] jobs: - id: cloudflare.aisearch.jobs + id: cloudflare.ai_search.jobs name: jobs title: Jobs methods: @@ -15805,7 +15805,7 @@ components: delete: [] replace: [] jobs_logs: - id: cloudflare.aisearch.jobs_logs + id: cloudflare.ai_search.jobs_logs name: jobs_logs title: Jobs Logs methods: @@ -15824,7 +15824,7 @@ components: delete: [] replace: [] instances_search: - id: cloudflare.aisearch.instances_search + id: cloudflare.ai_search.instances_search name: instances_search title: Instances Search methods: @@ -15855,14 +15855,14 @@ components: ' sqlVerbs: - select: [] - insert: + select: - $ref: '#/components/x-stackQL-resources/instances_search/methods/search_by_account' + insert: [] update: [] delete: [] replace: [] instances_stats: - id: cloudflare.aisearch.instances_stats + id: cloudflare.ai_search.instances_stats name: instances_stats title: Instances Stats methods: @@ -15881,7 +15881,7 @@ components: delete: [] replace: [] namespaces: - id: cloudflare.aisearch.namespaces + id: cloudflare.ai_search.namespaces name: namespaces title: Namespaces methods: @@ -15935,7 +15935,7 @@ components: replace: - $ref: '#/components/x-stackQL-resources/namespaces/methods/update' namespace_instances: - id: cloudflare.aisearch.namespace_instances + id: cloudflare.ai_search.namespace_instances name: namespace_instances title: Namespace Instances methods: @@ -16127,7 +16127,7 @@ components: replace: - $ref: '#/components/x-stackQL-resources/namespace_instances/methods/update_by_account' namespace_instance_chat_completions: - id: cloudflare.aisearch.namespace_instance_chat_completions + id: cloudflare.ai_search.namespace_instance_chat_completions name: namespace_instance_chat_completions title: Namespace Instance Chat Completions methods: @@ -16160,14 +16160,14 @@ components: ' sqlVerbs: - select: [] - insert: + select: - $ref: '#/components/x-stackQL-resources/namespace_instance_chat_completions/methods/chat_completions_by_account' + insert: [] update: [] delete: [] replace: [] instances_items: - id: cloudflare.aisearch.instances_items + id: cloudflare.ai_search.instances_items name: instances_items title: Instances Items methods: @@ -16186,7 +16186,7 @@ components: delete: [] replace: [] items: - id: cloudflare.aisearch.items + id: cloudflare.ai_search.items name: items title: Items methods: @@ -16242,7 +16242,7 @@ components: replace: - $ref: '#/components/x-stackQL-resources/items/methods/create_or_update' item_chunks: - id: cloudflare.aisearch.item_chunks + id: cloudflare.ai_search.item_chunks name: item_chunks title: Item Chunks methods: @@ -16261,7 +16261,7 @@ components: delete: [] replace: [] items_download: - id: cloudflare.aisearch.items_download + id: cloudflare.ai_search.items_download name: items_download title: Items Download methods: @@ -16283,7 +16283,7 @@ components: delete: [] replace: [] item_logs: - id: cloudflare.aisearch.item_logs + id: cloudflare.ai_search.item_logs name: item_logs title: Item Logs methods: @@ -16302,7 +16302,7 @@ components: delete: [] replace: [] namespaces_instance_jobs: - id: cloudflare.aisearch.namespaces_instance_jobs + id: cloudflare.ai_search.namespaces_instance_jobs name: namespaces_instance_jobs title: Namespaces Instance Jobs methods: @@ -16339,7 +16339,7 @@ components: delete: [] replace: [] namespaces_instance_job_logs: - id: cloudflare.aisearch.namespaces_instance_job_logs + id: cloudflare.ai_search.namespaces_instance_job_logs name: namespaces_instance_job_logs title: Namespaces Instance Job Logs methods: @@ -16358,7 +16358,7 @@ components: delete: [] replace: [] namespaces_instance_search: - id: cloudflare.aisearch.namespaces_instance_search + id: cloudflare.ai_search.namespaces_instance_search name: namespaces_instance_search title: Namespaces Instance Search methods: @@ -16389,14 +16389,14 @@ components: ' sqlVerbs: - select: [] - insert: + select: - $ref: '#/components/x-stackQL-resources/namespaces_instance_search/methods/search_by_account' + insert: [] update: [] delete: [] replace: [] namespaces_instance_stats: - id: cloudflare.aisearch.namespaces_instance_stats + id: cloudflare.ai_search.namespaces_instance_stats name: namespaces_instance_stats title: Namespaces Instance Stats methods: @@ -16415,7 +16415,7 @@ components: delete: [] replace: [] namespaces_search: - id: cloudflare.aisearch.namespaces_search + id: cloudflare.ai_search.namespaces_search name: namespaces_search title: Namespaces Search methods: @@ -16446,14 +16446,14 @@ components: ' sqlVerbs: - select: [] - insert: + select: - $ref: '#/components/x-stackQL-resources/namespaces_search/methods/search' + insert: [] update: [] delete: [] replace: [] tokens: - id: cloudflare.aisearch.tokens + id: cloudflare.ai_search.tokens name: tokens title: Tokens methods: diff --git a/providers/src/cloudflare/v00.00.00000/services/alerting.yaml b/providers/src/cloudflare/v00.00.00000/services/alerting.yaml index 21bacf73..9a5058f6 100644 --- a/providers/src/cloudflare/v00.00.00000/services/alerting.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/alerting.yaml @@ -28,7 +28,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/aaaAlertsResponseCollection' + type: object + properties: + contents: + type: string description: Get Alert Types response 4XX: content: @@ -2657,7 +2660,10 @@ components: response: mediaType: application/json openAPIDocKey: '200' - objectKey: $.result + overrideMediaType: application/json + transform: + body: '[{"contents": {{ toJson .result }}}]' + type: golang_template_json_v0.3.0 sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/available_alerts/methods/list' diff --git a/providers/src/cloudflare/v00.00.00000/services/billing.yaml b/providers/src/cloudflare/v00.00.00000/services/billing.yaml index 75375319..ea3a8612 100644 --- a/providers/src/cloudflare/v00.00.00000/services/billing.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/billing.yaml @@ -1367,7 +1367,8 @@ components: ' sqlVerbs: - select: [] + select: + - $ref: '#/components/x-stackQL-resources/accounts/methods/query_pay_per_crawl_zones' insert: [] update: [] delete: [] diff --git a/providers/src/cloudflare/v00.00.00000/services/browser_rendering.yaml b/providers/src/cloudflare/v00.00.00000/services/browser_rendering.yaml index 25f37c50..0e222bdf 100644 --- a/providers/src/cloudflare/v00.00.00000/services/browser_rendering.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/browser_rendering.yaml @@ -240,38 +240,10 @@ paths: content: application/json: schema: + type: object properties: - errors: - items: - properties: - code: - description: Error code. - type: number - message: - description: Error message. - type: string - required: - - message - - code - type: object - type: array - meta: - properties: - status: - type: number - title: - type: string - type: object - result: - description: HTML content. + contents: type: string - success: - description: Response status. - type: boolean - required: - - success - - meta - type: object description: Returns the page's content. '400': content: @@ -1865,35 +1837,10 @@ paths: content: application/json: schema: - items: - properties: - description: - description: Target description. - type: string - devtoolsFrontendUrl: - description: DevTools frontend URL. - type: string - id: - description: Target ID. - type: string - title: - description: Title of the target. - type: string - type: - description: Target type (page, background_page, worker, etc.). - type: string - url: - description: URL of the target. - type: string - webSocketDebuggerUrl: - description: WebSocket URL for debugging this target. - type: string - required: - - id - - type - - url - type: object - type: array + type: object + properties: + contents: + type: string description: List of targets. '400': content: @@ -2983,30 +2930,10 @@ paths: content: application/json: schema: - properties: - errors: - items: - properties: - code: - description: Error code. - type: number - message: - description: Error message. - type: string - required: - - message - - code - type: object - type: array - result: - type: object - success: - description: Response status. - type: boolean - required: - - success - - result type: object + properties: + contents: + type: string description: Returns the JSON based on a user prompt or JSON schema. '400': content: @@ -3378,32 +3305,10 @@ paths: content: application/json: schema: - properties: - errors: - items: - properties: - code: - description: Error code. - type: number - message: - description: Error message. - type: string - required: - - message - - code - type: object - type: array - result: - items: - type: string - type: array - success: - description: Response status. - type: boolean - required: - - success - - result type: object + properties: + link: + type: string description: Returns the links. '400': content: @@ -3766,30 +3671,10 @@ paths: content: application/json: schema: + type: object properties: - errors: - items: - properties: - code: - description: Error code. - type: number - message: - description: Error message. - type: string - required: - - message - - code - type: object - type: array - result: - description: Markdown content. + contents: type: string - success: - description: Response status. - type: boolean - required: - - success - type: object description: Returns the page markdown. '400': content: @@ -5739,12 +5624,12 @@ components: type: apiKey description: Used when interacting with the Origin CA certificates API. [View/change your key](https://developers.cloudflare.com/fundamentals/api/get-started/ca-keys/#viewchange-your-origin-ca-keys). x-stackQL-resources: - browser_rendering: - id: cloudflare.browser_rendering.browser_rendering - name: browser_rendering - title: Browser Rendering + content: + id: cloudflare.browser_rendering.content + name: content + title: Content methods: - create_content: + get: config: requestBodyTranslate: algorithm: naive @@ -5753,6 +5638,10 @@ components: response: mediaType: application/json openAPIDocKey: '200' + overrideMediaType: application/json + transform: + body: '[{"contents": {{ toJson .result }}}]' + type: golang_template_json_v0.3.0 request: mediaType: application/json transform: @@ -5804,12 +5693,24 @@ components: } ' - create_links: + sqlVerbs: + select: + - $ref: '#/components/x-stackQL-resources/content/methods/get' + insert: [] + update: [] + delete: [] + replace: [] + crawl: + id: cloudflare.browser_rendering.crawl + name: crawl + title: Crawl + methods: + create: config: requestBodyTranslate: algorithm: naive operation: - $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1links/post' + $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1crawl/post' response: mediaType: application/json openAPIDocKey: '200' @@ -5837,85 +5738,39 @@ components: {{- if .cookies }}{{ $sep }}"cookies": {{ if eq (kindOf .cookies) "string" }}{{ .cookies }}{{ else }}{{ toJson .cookies }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .emulateMediaType }}{{ $sep }}"emulateMediaType": {{ toJson .emulateMediaType }}{{- $sep = "," -}}{{ end }} - - {{- if .excludeExternalLinks }}{{ $sep }}"excludeExternalLinks": {{ toJson .excludeExternalLinks }}{{- $sep = "," -}}{{ end }} - - {{- if .gotoOptions }}{{ $sep }}"gotoOptions": {{ if eq (kindOf .gotoOptions) "string" }}{{ .gotoOptions }}{{ else }}{{ toJson .gotoOptions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .html }}{{ $sep }}"html": {{ toJson .html }}{{- $sep = "," -}}{{ end }} - - {{- if .rejectRequestPattern }}{{ $sep }}"rejectRequestPattern": {{ if eq (kindOf .rejectRequestPattern) "string" }}{{ .rejectRequestPattern }}{{ else }}{{ toJson .rejectRequestPattern }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .rejectResourceTypes }}{{ $sep }}"rejectResourceTypes": {{ if eq (kindOf .rejectResourceTypes) "string" }}{{ .rejectResourceTypes }}{{ else }}{{ toJson .rejectResourceTypes }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .setExtraHTTPHeaders }}{{ $sep }}"setExtraHTTPHeaders": {{ if eq (kindOf .setExtraHTTPHeaders) "string" }}{{ .setExtraHTTPHeaders }}{{ else }}{{ toJson .setExtraHTTPHeaders }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .setJavaScriptEnabled }}{{ $sep }}"setJavaScriptEnabled": {{ toJson .setJavaScriptEnabled }}{{- $sep = "," -}}{{ end }} - - {{- if .userAgent }}{{ $sep }}"userAgent": {{ toJson .userAgent }}{{- $sep = "," -}}{{ end }} - - {{- if .viewport }}{{ $sep }}"viewport": {{ if eq (kindOf .viewport) "string" }}{{ .viewport }}{{ else }}{{ toJson .viewport }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .visibleLinksOnly }}{{ $sep }}"visibleLinksOnly": {{ toJson .visibleLinksOnly }}{{- $sep = "," -}}{{ end }} - - {{- if .waitForSelector }}{{ $sep }}"waitForSelector": {{ if eq (kindOf .waitForSelector) "string" }}{{ .waitForSelector }}{{ else }}{{ toJson .waitForSelector }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .waitForTimeout }}{{ $sep }}"waitForTimeout": {{ toJson .waitForTimeout }}{{- $sep = "," -}}{{ end }} - - {{- if .url }}{{ $sep }}"url": {{ toJson .url }}{{- $sep = "," -}}{{ end }} - - } - - ' - create_markdown: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1markdown/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .actionTimeout }}{{ $sep }}"actionTimeout": {{ toJson .actionTimeout }}{{- $sep = "," -}}{{ end }} + {{- if .crawlPurposes }}{{ $sep }}"crawlPurposes": {{ if eq (kindOf .crawlPurposes) "string" }}{{ .crawlPurposes }}{{ else }}{{ toJson .crawlPurposes }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .addScriptTag }}{{ $sep }}"addScriptTag": {{ if eq (kindOf .addScriptTag) "string" }}{{ .addScriptTag }}{{ else }}{{ toJson .addScriptTag }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .depth }}{{ $sep }}"depth": {{ toJson .depth }}{{- $sep = "," -}}{{ end }} - {{- if .addStyleTag }}{{ $sep }}"addStyleTag": {{ if eq (kindOf .addStyleTag) "string" }}{{ .addStyleTag }}{{ else }}{{ toJson .addStyleTag }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .emulateMediaType }}{{ $sep }}"emulateMediaType": {{ toJson .emulateMediaType }}{{- $sep = "," -}}{{ end }} - {{- if .allowRequestPattern }}{{ $sep }}"allowRequestPattern": {{ if eq (kindOf .allowRequestPattern) "string" }}{{ .allowRequestPattern }}{{ else }}{{ toJson .allowRequestPattern }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .formats }}{{ $sep }}"formats": {{ if eq (kindOf .formats) "string" }}{{ .formats }}{{ else }}{{ toJson .formats }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .allowResourceTypes }}{{ $sep }}"allowResourceTypes": {{ if eq (kindOf .allowResourceTypes) "string" }}{{ .allowResourceTypes }}{{ else }}{{ toJson .allowResourceTypes }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .gotoOptions }}{{ $sep }}"gotoOptions": {{ if eq (kindOf .gotoOptions) "string" }}{{ .gotoOptions }}{{ else }}{{ toJson .gotoOptions }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .authenticate }}{{ $sep }}"authenticate": {{ if eq (kindOf .authenticate) "string" }}{{ .authenticate }}{{ else }}{{ toJson .authenticate }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .jsonOptions }}{{ $sep }}"jsonOptions": {{ if eq (kindOf .jsonOptions) "string" }}{{ .jsonOptions }}{{ else }}{{ toJson .jsonOptions }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .bestAttempt }}{{ $sep }}"bestAttempt": {{ toJson .bestAttempt }}{{- $sep = "," -}}{{ end }} + {{- if .limit }}{{ $sep }}"limit": {{ toJson .limit }}{{- $sep = "," -}}{{ end }} - {{- if .cookies }}{{ $sep }}"cookies": {{ if eq (kindOf .cookies) "string" }}{{ .cookies }}{{ else }}{{ toJson .cookies }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .maxAge }}{{ $sep }}"maxAge": {{ toJson .maxAge }}{{- $sep = "," -}}{{ end }} - {{- if .emulateMediaType }}{{ $sep }}"emulateMediaType": {{ toJson .emulateMediaType }}{{- $sep = "," -}}{{ end }} + {{- if .modifiedSince }}{{ $sep }}"modifiedSince": {{ toJson .modifiedSince }}{{- $sep = "," -}}{{ end }} - {{- if .gotoOptions }}{{ $sep }}"gotoOptions": {{ if eq (kindOf .gotoOptions) "string" }}{{ .gotoOptions }}{{ else }}{{ toJson .gotoOptions }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .options }}{{ $sep }}"options": {{ if eq (kindOf .options) "string" }}{{ .options }}{{ else }}{{ toJson .options }}{{ end }}{{- $sep = "," -}}{{ end }} {{- if .rejectRequestPattern }}{{ $sep }}"rejectRequestPattern": {{ if eq (kindOf .rejectRequestPattern) "string" }}{{ .rejectRequestPattern }}{{ else }}{{ toJson .rejectRequestPattern }}{{ end }}{{- $sep = "," -}}{{ end }} {{- if .rejectResourceTypes }}{{ $sep }}"rejectResourceTypes": {{ if eq (kindOf .rejectResourceTypes) "string" }}{{ .rejectResourceTypes }}{{ else }}{{ toJson .rejectResourceTypes }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .render }}{{ $sep }}"render": {{ toJson .render }}{{- $sep = "," -}}{{ end }} + {{- if .setExtraHTTPHeaders }}{{ $sep }}"setExtraHTTPHeaders": {{ if eq (kindOf .setExtraHTTPHeaders) "string" }}{{ .setExtraHTTPHeaders }}{{ else }}{{ toJson .setExtraHTTPHeaders }}{{ end }}{{- $sep = "," -}}{{ end }} {{- if .setJavaScriptEnabled }}{{ $sep }}"setJavaScriptEnabled": {{ toJson .setJavaScriptEnabled }}{{- $sep = "," -}}{{ end }} - {{- if .url }}{{ $sep }}"url": {{ toJson .url }}{{- $sep = "," -}}{{ end }} + {{- if .source }}{{ $sep }}"source": {{ toJson .source }}{{- $sep = "," -}}{{ end }} - {{- if .userAgent }}{{ $sep }}"userAgent": {{ toJson .userAgent }}{{- $sep = "," -}}{{ end }} + {{- if .url }}{{ $sep }}"url": {{ toJson .url }}{{- $sep = "," -}}{{ end }} {{- if .viewport }}{{ $sep }}"viewport": {{ if eq (kindOf .viewport) "string" }}{{ .viewport }}{{ else }}{{ toJson .viewport }}{{ end }}{{- $sep = "," -}}{{ end }} @@ -5923,32 +5778,246 @@ components: {{- if .waitForTimeout }}{{ $sep }}"waitForTimeout": {{ toJson .waitForTimeout }}{{- $sep = "," -}}{{ end }} - {{- if .html }}{{ $sep }}"html": {{ toJson .html }}{{- $sep = "," -}}{{ end }} - } ' - create_pdf: - config: - requestBodyTranslate: - algorithm: naive + delete: operation: - $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1pdf/post' + $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1crawl~1{job_id}/delete' response: - mediaType: application/pdf + mediaType: application/json openAPIDocKey: '200' - overrideMediaType: application/json - transform: - body: '[{"contents": {{ toJson . }}}]' - type: golang_template_text_v0.3.0 - request: + get: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1crawl~1{job_id}/get' + response: mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - + openAPIDocKey: '200' + objectKey: $.result + sqlVerbs: + select: + - $ref: '#/components/x-stackQL-resources/crawl/methods/get' + insert: + - $ref: '#/components/x-stackQL-resources/crawl/methods/create' + update: [] + delete: + - $ref: '#/components/x-stackQL-resources/crawl/methods/delete' + replace: [] + browser: + id: cloudflare.browser_rendering.browser + name: browser + title: Browser + methods: + create: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1devtools~1browser/post' + response: + mediaType: application/json + openAPIDocKey: '200' + delete: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1devtools~1browser~1{session_id}/delete' + response: + mediaType: application/json + openAPIDocKey: '200' + sqlVerbs: + select: [] + insert: + - $ref: '#/components/x-stackQL-resources/browser/methods/create' + update: [] + delete: + - $ref: '#/components/x-stackQL-resources/browser/methods/delete' + replace: [] + json: + id: cloudflare.browser_rendering.json + name: json + title: Json + methods: + list: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1devtools~1browser~1{session_id}~1json/get' + response: + mediaType: application/json + openAPIDocKey: '200' + sqlVerbs: + select: + - $ref: '#/components/x-stackQL-resources/json/methods/list' + insert: [] + update: [] + delete: [] + replace: [] + json_activate: + id: cloudflare.browser_rendering.json_activate + name: json_activate + title: Json Activate + methods: + get: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1devtools~1browser~1{session_id}~1json~1activate~1{target_id}/get' + response: + mediaType: application/json + openAPIDocKey: '200' + sqlVerbs: + select: + - $ref: '#/components/x-stackQL-resources/json_activate/methods/get' + insert: [] + update: [] + delete: [] + replace: [] + json_close: + id: cloudflare.browser_rendering.json_close + name: json_close + title: Json Close + methods: + get: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1devtools~1browser~1{session_id}~1json~1close~1{target_id}/get' + response: + mediaType: application/json + openAPIDocKey: '200' + sqlVerbs: + select: + - $ref: '#/components/x-stackQL-resources/json_close/methods/get' + insert: [] + update: [] + delete: [] + replace: [] + targets: + id: cloudflare.browser_rendering.targets + name: targets + title: Targets + methods: + list: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1devtools~1browser~1{session_id}~1json~1list/get' + response: + mediaType: application/json + openAPIDocKey: '200' + overrideMediaType: application/json + transform: + body: '[{"contents": {{ toJson . }}}]' + type: golang_template_text_v0.3.0 + create: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1devtools~1browser~1{session_id}~1json~1new/put' + response: + mediaType: application/json + openAPIDocKey: '200' + sqlVerbs: + select: + - $ref: '#/components/x-stackQL-resources/targets/methods/list' + insert: [] + update: [] + delete: [] + replace: + - $ref: '#/components/x-stackQL-resources/targets/methods/create' + json_list: + id: cloudflare.browser_rendering.json_list + name: json_list + title: Json List + methods: + get: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1devtools~1browser~1{session_id}~1json~1list~1{target_id}/get' + response: + mediaType: application/json + openAPIDocKey: '200' + sqlVerbs: + select: + - $ref: '#/components/x-stackQL-resources/json_list/methods/get' + insert: [] + update: [] + delete: [] + replace: [] + json_protocol: + id: cloudflare.browser_rendering.json_protocol + name: json_protocol + title: Json Protocol + methods: + list: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1devtools~1browser~1{session_id}~1json~1protocol/get' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.domains + sqlVerbs: + select: + - $ref: '#/components/x-stackQL-resources/json_protocol/methods/list' + insert: [] + update: [] + delete: [] + replace: [] + json_version: + id: cloudflare.browser_rendering.json_version + name: json_version + title: Json Version + methods: + list: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1devtools~1browser~1{session_id}~1json~1version/get' + response: + mediaType: application/json + openAPIDocKey: '200' + sqlVerbs: + select: + - $ref: '#/components/x-stackQL-resources/json_version/methods/list' + insert: [] + update: [] + delete: [] + replace: [] + session: + id: cloudflare.browser_rendering.session + name: session + title: Session + methods: + list: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1devtools~1session/get' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result + get: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1devtools~1session~1{session_id}/get' + response: + mediaType: application/json + openAPIDocKey: '200' + sqlVerbs: + select: + - $ref: '#/components/x-stackQL-resources/session/methods/get' + - $ref: '#/components/x-stackQL-resources/session/methods/list' + insert: [] + update: [] + delete: [] + replace: [] + json_extract: + id: cloudflare.browser_rendering.json_extract + name: json_extract + title: Json Extract + methods: + get: + config: + requestBodyTranslate: + algorithm: naive + operation: + $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1json/post' + response: + mediaType: application/json + openAPIDocKey: '200' + overrideMediaType: application/json + transform: + body: '[{"contents": {{ toJson .result }}}]' + type: golang_template_json_v0.3.0 + request: + mediaType: application/json + transform: + type: golang_template_json_v0.3.0 + body: '{ + + {{- $sep := "" -}} + {{- if .actionTimeout }}{{ $sep }}"actionTimeout": {{ toJson .actionTimeout }}{{- $sep = "," -}}{{ end }} {{- if .addScriptTag }}{{ $sep }}"addScriptTag": {{ if eq (kindOf .addScriptTag) "string" }}{{ .addScriptTag }}{{ else }}{{ toJson .addScriptTag }}{{ end }}{{- $sep = "," -}}{{ end }} @@ -5965,18 +6034,22 @@ components: {{- if .cookies }}{{ $sep }}"cookies": {{ if eq (kindOf .cookies) "string" }}{{ .cookies }}{{ else }}{{ toJson .cookies }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .custom_ai }}{{ $sep }}"custom_ai": {{ if eq (kindOf .custom_ai) "string" }}{{ .custom_ai }}{{ else }}{{ toJson .custom_ai }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .emulateMediaType }}{{ $sep }}"emulateMediaType": {{ toJson .emulateMediaType }}{{- $sep = "," -}}{{ end }} {{- if .gotoOptions }}{{ $sep }}"gotoOptions": {{ if eq (kindOf .gotoOptions) "string" }}{{ .gotoOptions }}{{ else }}{{ toJson .gotoOptions }}{{ end }}{{- $sep = "," -}}{{ end }} {{- if .html }}{{ $sep }}"html": {{ toJson .html }}{{- $sep = "," -}}{{ end }} - {{- if .pdfOptions }}{{ $sep }}"pdfOptions": {{ if eq (kindOf .pdfOptions) "string" }}{{ .pdfOptions }}{{ else }}{{ toJson .pdfOptions }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} {{- if .rejectRequestPattern }}{{ $sep }}"rejectRequestPattern": {{ if eq (kindOf .rejectRequestPattern) "string" }}{{ .rejectRequestPattern }}{{ else }}{{ toJson .rejectRequestPattern }}{{ end }}{{- $sep = "," -}}{{ end }} {{- if .rejectResourceTypes }}{{ $sep }}"rejectResourceTypes": {{ if eq (kindOf .rejectResourceTypes) "string" }}{{ .rejectResourceTypes }}{{ else }}{{ toJson .rejectResourceTypes }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .setExtraHTTPHeaders }}{{ $sep }}"setExtraHTTPHeaders": {{ if eq (kindOf .setExtraHTTPHeaders) "string" }}{{ .setExtraHTTPHeaders }}{{ else }}{{ toJson .setExtraHTTPHeaders }}{{ end }}{{- $sep = "," -}}{{ end }} {{- if .setJavaScriptEnabled }}{{ $sep }}"setJavaScriptEnabled": {{ toJson .setJavaScriptEnabled }}{{- $sep = "," -}}{{ end }} @@ -5994,15 +6067,31 @@ components: } ' - create_scrape: + sqlVerbs: + select: + - $ref: '#/components/x-stackQL-resources/json_extract/methods/get' + insert: [] + update: [] + delete: [] + replace: [] + links: + id: cloudflare.browser_rendering.links + name: links + title: Links + methods: + get: config: requestBodyTranslate: algorithm: naive operation: - $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1scrape/post' + $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1links/post' response: mediaType: application/json openAPIDocKey: '200' + overrideMediaType: application/json + transform: + body: '[{{ range $i, $v := .result }}{{ if $i }},{{ end }}{"link": {{ toJson $v }}}{{ end }}]' + type: golang_template_json_v0.3.0 request: mediaType: application/json transform: @@ -6027,10 +6116,10 @@ components: {{- if .cookies }}{{ $sep }}"cookies": {{ if eq (kindOf .cookies) "string" }}{{ .cookies }}{{ else }}{{ toJson .cookies }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .elements }}{{ $sep }}"elements": {{ if eq (kindOf .elements) "string" }}{{ .elements }}{{ else }}{{ toJson .elements }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .emulateMediaType }}{{ $sep }}"emulateMediaType": {{ toJson .emulateMediaType }}{{- $sep = "," -}}{{ end }} + {{- if .excludeExternalLinks }}{{ $sep }}"excludeExternalLinks": {{ toJson .excludeExternalLinks }}{{- $sep = "," -}}{{ end }} + {{- if .gotoOptions }}{{ $sep }}"gotoOptions": {{ if eq (kindOf .gotoOptions) "string" }}{{ .gotoOptions }}{{ else }}{{ toJson .gotoOptions }}{{ end }}{{- $sep = "," -}}{{ end }} {{- if .html }}{{ $sep }}"html": {{ toJson .html }}{{- $sep = "," -}}{{ end }} @@ -6047,6 +6136,8 @@ components: {{- if .viewport }}{{ $sep }}"viewport": {{ if eq (kindOf .viewport) "string" }}{{ .viewport }}{{ else }}{{ toJson .viewport }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .visibleLinksOnly }}{{ $sep }}"visibleLinksOnly": {{ toJson .visibleLinksOnly }}{{- $sep = "," -}}{{ end }} + {{- if .waitForSelector }}{{ $sep }}"waitForSelector": {{ if eq (kindOf .waitForSelector) "string" }}{{ .waitForSelector }}{{ else }}{{ toJson .waitForSelector }}{{ end }}{{- $sep = "," -}}{{ end }} {{- if .waitForTimeout }}{{ $sep }}"waitForTimeout": {{ toJson .waitForTimeout }}{{- $sep = "," -}}{{ end }} @@ -6056,15 +6147,31 @@ components: } ' - create_screenshot: + sqlVerbs: + select: + - $ref: '#/components/x-stackQL-resources/links/methods/get' + insert: [] + update: [] + delete: [] + replace: [] + markdown: + id: cloudflare.browser_rendering.markdown + name: markdown + title: Markdown + methods: + get: config: requestBodyTranslate: algorithm: naive operation: - $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1screenshot/post' + $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1markdown/post' response: mediaType: application/json openAPIDocKey: '200' + overrideMediaType: application/json + transform: + body: '[{"contents": {{ toJson .result }}}]' + type: golang_template_json_v0.3.0 request: mediaType: application/json transform: @@ -6093,17 +6200,89 @@ components: {{- if .gotoOptions }}{{ $sep }}"gotoOptions": {{ if eq (kindOf .gotoOptions) "string" }}{{ .gotoOptions }}{{ else }}{{ toJson .gotoOptions }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .html }}{{ $sep }}"html": {{ toJson .html }}{{- $sep = "," -}}{{ end }} - {{- if .rejectRequestPattern }}{{ $sep }}"rejectRequestPattern": {{ if eq (kindOf .rejectRequestPattern) "string" }}{{ .rejectRequestPattern }}{{ else }}{{ toJson .rejectRequestPattern }}{{ end }}{{- $sep = "," -}}{{ end }} {{- if .rejectResourceTypes }}{{ $sep }}"rejectResourceTypes": {{ if eq (kindOf .rejectResourceTypes) "string" }}{{ .rejectResourceTypes }}{{ else }}{{ toJson .rejectResourceTypes }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .screenshotOptions }}{{ $sep }}"screenshotOptions": {{ if eq (kindOf .screenshotOptions) "string" }}{{ .screenshotOptions }}{{ else }}{{ toJson .screenshotOptions }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .setExtraHTTPHeaders }}{{ $sep }}"setExtraHTTPHeaders": {{ if eq (kindOf .setExtraHTTPHeaders) "string" }}{{ .setExtraHTTPHeaders }}{{ else }}{{ toJson .setExtraHTTPHeaders }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .scrollPage }}{{ $sep }}"scrollPage": {{ toJson .scrollPage }}{{- $sep = "," -}}{{ end }} + {{- if .setJavaScriptEnabled }}{{ $sep }}"setJavaScriptEnabled": {{ toJson .setJavaScriptEnabled }}{{- $sep = "," -}}{{ end }} - {{- if .selector }}{{ $sep }}"selector": {{ toJson .selector }}{{- $sep = "," -}}{{ end }} + {{- if .url }}{{ $sep }}"url": {{ toJson .url }}{{- $sep = "," -}}{{ end }} + + {{- if .userAgent }}{{ $sep }}"userAgent": {{ toJson .userAgent }}{{- $sep = "," -}}{{ end }} + + {{- if .viewport }}{{ $sep }}"viewport": {{ if eq (kindOf .viewport) "string" }}{{ .viewport }}{{ else }}{{ toJson .viewport }}{{ end }}{{- $sep = "," -}}{{ end }} + + {{- if .waitForSelector }}{{ $sep }}"waitForSelector": {{ if eq (kindOf .waitForSelector) "string" }}{{ .waitForSelector }}{{ else }}{{ toJson .waitForSelector }}{{ end }}{{- $sep = "," -}}{{ end }} + + {{- if .waitForTimeout }}{{ $sep }}"waitForTimeout": {{ toJson .waitForTimeout }}{{- $sep = "," -}}{{ end }} + + {{- if .html }}{{ $sep }}"html": {{ toJson .html }}{{- $sep = "," -}}{{ end }} + + } + + ' + sqlVerbs: + select: + - $ref: '#/components/x-stackQL-resources/markdown/methods/get' + insert: [] + update: [] + delete: [] + replace: [] + pdf: + id: cloudflare.browser_rendering.pdf + name: pdf + title: Pdf + methods: + get: + config: + requestBodyTranslate: + algorithm: naive + operation: + $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1pdf/post' + response: + mediaType: application/pdf + openAPIDocKey: '200' + overrideMediaType: application/json + transform: + body: '[{"contents": {{ toJson . }}}]' + type: golang_template_text_v0.3.0 + request: + mediaType: application/json + transform: + type: golang_template_json_v0.3.0 + body: '{ + + {{- $sep := "" -}} + + {{- if .actionTimeout }}{{ $sep }}"actionTimeout": {{ toJson .actionTimeout }}{{- $sep = "," -}}{{ end }} + + {{- if .addScriptTag }}{{ $sep }}"addScriptTag": {{ if eq (kindOf .addScriptTag) "string" }}{{ .addScriptTag }}{{ else }}{{ toJson .addScriptTag }}{{ end }}{{- $sep = "," -}}{{ end }} + + {{- if .addStyleTag }}{{ $sep }}"addStyleTag": {{ if eq (kindOf .addStyleTag) "string" }}{{ .addStyleTag }}{{ else }}{{ toJson .addStyleTag }}{{ end }}{{- $sep = "," -}}{{ end }} + + {{- if .allowRequestPattern }}{{ $sep }}"allowRequestPattern": {{ if eq (kindOf .allowRequestPattern) "string" }}{{ .allowRequestPattern }}{{ else }}{{ toJson .allowRequestPattern }}{{ end }}{{- $sep = "," -}}{{ end }} + + {{- if .allowResourceTypes }}{{ $sep }}"allowResourceTypes": {{ if eq (kindOf .allowResourceTypes) "string" }}{{ .allowResourceTypes }}{{ else }}{{ toJson .allowResourceTypes }}{{ end }}{{- $sep = "," -}}{{ end }} + + {{- if .authenticate }}{{ $sep }}"authenticate": {{ if eq (kindOf .authenticate) "string" }}{{ .authenticate }}{{ else }}{{ toJson .authenticate }}{{ end }}{{- $sep = "," -}}{{ end }} + + {{- if .bestAttempt }}{{ $sep }}"bestAttempt": {{ toJson .bestAttempt }}{{- $sep = "," -}}{{ end }} + + {{- if .cookies }}{{ $sep }}"cookies": {{ if eq (kindOf .cookies) "string" }}{{ .cookies }}{{ else }}{{ toJson .cookies }}{{ end }}{{- $sep = "," -}}{{ end }} + + {{- if .emulateMediaType }}{{ $sep }}"emulateMediaType": {{ toJson .emulateMediaType }}{{- $sep = "," -}}{{ end }} + + {{- if .gotoOptions }}{{ $sep }}"gotoOptions": {{ if eq (kindOf .gotoOptions) "string" }}{{ .gotoOptions }}{{ else }}{{ toJson .gotoOptions }}{{ end }}{{- $sep = "," -}}{{ end }} + + {{- if .html }}{{ $sep }}"html": {{ toJson .html }}{{- $sep = "," -}}{{ end }} + + {{- if .pdfOptions }}{{ $sep }}"pdfOptions": {{ if eq (kindOf .pdfOptions) "string" }}{{ .pdfOptions }}{{ else }}{{ toJson .pdfOptions }}{{ end }}{{- $sep = "," -}}{{ end }} + + {{- if .rejectRequestPattern }}{{ $sep }}"rejectRequestPattern": {{ if eq (kindOf .rejectRequestPattern) "string" }}{{ .rejectRequestPattern }}{{ else }}{{ toJson .rejectRequestPattern }}{{ end }}{{- $sep = "," -}}{{ end }} + + {{- if .rejectResourceTypes }}{{ $sep }}"rejectResourceTypes": {{ if eq (kindOf .rejectResourceTypes) "string" }}{{ .rejectResourceTypes }}{{ else }}{{ toJson .rejectResourceTypes }}{{ end }}{{- $sep = "," -}}{{ end }} {{- if .setExtraHTTPHeaders }}{{ $sep }}"setExtraHTTPHeaders": {{ if eq (kindOf .setExtraHTTPHeaders) "string" }}{{ .setExtraHTTPHeaders }}{{ else }}{{ toJson .setExtraHTTPHeaders }}{{ end }}{{- $sep = "," -}}{{ end }} @@ -6122,12 +6301,24 @@ components: } ' - snapshot: + sqlVerbs: + select: + - $ref: '#/components/x-stackQL-resources/pdf/methods/get' + insert: [] + update: [] + delete: [] + replace: [] + scrape: + id: cloudflare.browser_rendering.scrape + name: scrape + title: Scrape + methods: + get: config: requestBodyTranslate: algorithm: naive operation: - $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1snapshot/post' + $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1scrape/post' response: mediaType: application/json openAPIDocKey: '200' @@ -6155,6 +6346,8 @@ components: {{- if .cookies }}{{ $sep }}"cookies": {{ if eq (kindOf .cookies) "string" }}{{ .cookies }}{{ else }}{{ toJson .cookies }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .elements }}{{ $sep }}"elements": {{ if eq (kindOf .elements) "string" }}{{ .elements }}{{ else }}{{ toJson .elements }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .emulateMediaType }}{{ $sep }}"emulateMediaType": {{ toJson .emulateMediaType }}{{- $sep = "," -}}{{ end }} {{- if .gotoOptions }}{{ $sep }}"gotoOptions": {{ if eq (kindOf .gotoOptions) "string" }}{{ .gotoOptions }}{{ else }}{{ toJson .gotoOptions }}{{ end }}{{- $sep = "," -}}{{ end }} @@ -6165,8 +6358,6 @@ components: {{- if .rejectResourceTypes }}{{ $sep }}"rejectResourceTypes": {{ if eq (kindOf .rejectResourceTypes) "string" }}{{ .rejectResourceTypes }}{{ else }}{{ toJson .rejectResourceTypes }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .screenshotOptions }}{{ $sep }}"screenshotOptions": {{ if eq (kindOf .screenshotOptions) "string" }}{{ .screenshotOptions }}{{ else }}{{ toJson .screenshotOptions }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .setExtraHTTPHeaders }}{{ $sep }}"setExtraHTTPHeaders": {{ if eq (kindOf .setExtraHTTPHeaders) "string" }}{{ .setExtraHTTPHeaders }}{{ else }}{{ toJson .setExtraHTTPHeaders }}{{ end }}{{- $sep = "," -}}{{ end }} {{- if .setJavaScriptEnabled }}{{ $sep }}"setJavaScriptEnabled": {{ toJson .setJavaScriptEnabled }}{{- $sep = "," -}}{{ end }} @@ -6185,22 +6376,23 @@ components: ' sqlVerbs: - select: [] + select: + - $ref: '#/components/x-stackQL-resources/scrape/methods/get' insert: [] update: [] delete: [] replace: [] - crawl: - id: cloudflare.browser_rendering.crawl - name: crawl - title: Crawl + screenshot: + id: cloudflare.browser_rendering.screenshot + name: screenshot + title: Screenshot methods: - create: + get: config: requestBodyTranslate: algorithm: naive operation: - $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1crawl/post' + $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1screenshot/post' response: mediaType: application/json openAPIDocKey: '200' @@ -6228,39 +6420,27 @@ components: {{- if .cookies }}{{ $sep }}"cookies": {{ if eq (kindOf .cookies) "string" }}{{ .cookies }}{{ else }}{{ toJson .cookies }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .crawlPurposes }}{{ $sep }}"crawlPurposes": {{ if eq (kindOf .crawlPurposes) "string" }}{{ .crawlPurposes }}{{ else }}{{ toJson .crawlPurposes }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .depth }}{{ $sep }}"depth": {{ toJson .depth }}{{- $sep = "," -}}{{ end }} - {{- if .emulateMediaType }}{{ $sep }}"emulateMediaType": {{ toJson .emulateMediaType }}{{- $sep = "," -}}{{ end }} - {{- if .formats }}{{ $sep }}"formats": {{ if eq (kindOf .formats) "string" }}{{ .formats }}{{ else }}{{ toJson .formats }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .gotoOptions }}{{ $sep }}"gotoOptions": {{ if eq (kindOf .gotoOptions) "string" }}{{ .gotoOptions }}{{ else }}{{ toJson .gotoOptions }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .jsonOptions }}{{ $sep }}"jsonOptions": {{ if eq (kindOf .jsonOptions) "string" }}{{ .jsonOptions }}{{ else }}{{ toJson .jsonOptions }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .limit }}{{ $sep }}"limit": {{ toJson .limit }}{{- $sep = "," -}}{{ end }} - - {{- if .maxAge }}{{ $sep }}"maxAge": {{ toJson .maxAge }}{{- $sep = "," -}}{{ end }} - - {{- if .modifiedSince }}{{ $sep }}"modifiedSince": {{ toJson .modifiedSince }}{{- $sep = "," -}}{{ end }} - - {{- if .options }}{{ $sep }}"options": {{ if eq (kindOf .options) "string" }}{{ .options }}{{ else }}{{ toJson .options }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .html }}{{ $sep }}"html": {{ toJson .html }}{{- $sep = "," -}}{{ end }} {{- if .rejectRequestPattern }}{{ $sep }}"rejectRequestPattern": {{ if eq (kindOf .rejectRequestPattern) "string" }}{{ .rejectRequestPattern }}{{ else }}{{ toJson .rejectRequestPattern }}{{ end }}{{- $sep = "," -}}{{ end }} {{- if .rejectResourceTypes }}{{ $sep }}"rejectResourceTypes": {{ if eq (kindOf .rejectResourceTypes) "string" }}{{ .rejectResourceTypes }}{{ else }}{{ toJson .rejectResourceTypes }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .render }}{{ $sep }}"render": {{ toJson .render }}{{- $sep = "," -}}{{ end }} + {{- if .screenshotOptions }}{{ $sep }}"screenshotOptions": {{ if eq (kindOf .screenshotOptions) "string" }}{{ .screenshotOptions }}{{ else }}{{ toJson .screenshotOptions }}{{ end }}{{- $sep = "," -}}{{ end }} + + {{- if .scrollPage }}{{ $sep }}"scrollPage": {{ toJson .scrollPage }}{{- $sep = "," -}}{{ end }} + + {{- if .selector }}{{ $sep }}"selector": {{ toJson .selector }}{{- $sep = "," -}}{{ end }} {{- if .setExtraHTTPHeaders }}{{ $sep }}"setExtraHTTPHeaders": {{ if eq (kindOf .setExtraHTTPHeaders) "string" }}{{ .setExtraHTTPHeaders }}{{ else }}{{ toJson .setExtraHTTPHeaders }}{{ end }}{{- $sep = "," -}}{{ end }} {{- if .setJavaScriptEnabled }}{{ $sep }}"setJavaScriptEnabled": {{ toJson .setJavaScriptEnabled }}{{- $sep = "," -}}{{ end }} - {{- if .source }}{{ $sep }}"source": {{ toJson .source }}{{- $sep = "," -}}{{ end }} - - {{- if .url }}{{ $sep }}"url": {{ toJson .url }}{{- $sep = "," -}}{{ end }} + {{- if .userAgent }}{{ $sep }}"userAgent": {{ toJson .userAgent }}{{- $sep = "," -}}{{ end }} {{- if .viewport }}{{ $sep }}"viewport": {{ if eq (kindOf .viewport) "string" }}{{ .viewport }}{{ else }}{{ toJson .viewport }}{{ end }}{{- $sep = "," -}}{{ end }} @@ -6268,73 +6448,29 @@ components: {{- if .waitForTimeout }}{{ $sep }}"waitForTimeout": {{ toJson .waitForTimeout }}{{- $sep = "," -}}{{ end }} + {{- if .url }}{{ $sep }}"url": {{ toJson .url }}{{- $sep = "," -}}{{ end }} + } ' - delete: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1crawl~1{job_id}/delete' - response: - mediaType: application/json - openAPIDocKey: '200' - get: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1crawl~1{job_id}/get' - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/crawl/methods/get' - insert: - - $ref: '#/components/x-stackQL-resources/crawl/methods/create' - update: [] - delete: - - $ref: '#/components/x-stackQL-resources/crawl/methods/delete' - replace: [] - browser: - id: cloudflare.browser_rendering.browser - name: browser - title: Browser - methods: - create: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1devtools~1browser/post' - response: - mediaType: application/json - openAPIDocKey: '200' - delete: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1devtools~1browser~1{session_id}/delete' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/browser/methods/create' + - $ref: '#/components/x-stackQL-resources/screenshot/methods/get' + insert: [] update: [] - delete: - - $ref: '#/components/x-stackQL-resources/browser/methods/delete' + delete: [] replace: [] - json: - id: cloudflare.browser_rendering.json - name: json - title: Json + snapshot: + id: cloudflare.browser_rendering.snapshot + name: snapshot + title: Snapshot methods: - list: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1devtools~1browser~1{session_id}~1json/get' - response: - mediaType: application/json - openAPIDocKey: '200' - create: + get: config: requestBodyTranslate: algorithm: naive operation: - $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1json/post' + $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1snapshot/post' response: mediaType: application/json openAPIDocKey: '200' @@ -6362,21 +6498,17 @@ components: {{- if .cookies }}{{ $sep }}"cookies": {{ if eq (kindOf .cookies) "string" }}{{ .cookies }}{{ else }}{{ toJson .cookies }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .custom_ai }}{{ $sep }}"custom_ai": {{ if eq (kindOf .custom_ai) "string" }}{{ .custom_ai }}{{ else }}{{ toJson .custom_ai }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .emulateMediaType }}{{ $sep }}"emulateMediaType": {{ toJson .emulateMediaType }}{{- $sep = "," -}}{{ end }} {{- if .gotoOptions }}{{ $sep }}"gotoOptions": {{ if eq (kindOf .gotoOptions) "string" }}{{ .gotoOptions }}{{ else }}{{ toJson .gotoOptions }}{{ end }}{{- $sep = "," -}}{{ end }} {{- if .html }}{{ $sep }}"html": {{ toJson .html }}{{- $sep = "," -}}{{ end }} - {{- if .prompt }}{{ $sep }}"prompt": {{ toJson .prompt }}{{- $sep = "," -}}{{ end }} - {{- if .rejectRequestPattern }}{{ $sep }}"rejectRequestPattern": {{ if eq (kindOf .rejectRequestPattern) "string" }}{{ .rejectRequestPattern }}{{ else }}{{ toJson .rejectRequestPattern }}{{ end }}{{- $sep = "," -}}{{ end }} {{- if .rejectResourceTypes }}{{ $sep }}"rejectResourceTypes": {{ if eq (kindOf .rejectResourceTypes) "string" }}{{ .rejectResourceTypes }}{{ else }}{{ toJson .rejectResourceTypes }}{{ end }}{{- $sep = "," -}}{{ end }} - {{- if .response_format }}{{ $sep }}"response_format": {{ if eq (kindOf .response_format) "string" }}{{ .response_format }}{{ else }}{{ toJson .response_format }}{{ end }}{{- $sep = "," -}}{{ end }} + {{- if .screenshotOptions }}{{ $sep }}"screenshotOptions": {{ if eq (kindOf .screenshotOptions) "string" }}{{ .screenshotOptions }}{{ else }}{{ toJson .screenshotOptions }}{{ end }}{{- $sep = "," -}}{{ end }} {{- if .setExtraHTTPHeaders }}{{ $sep }}"setExtraHTTPHeaders": {{ if eq (kindOf .setExtraHTTPHeaders) "string" }}{{ .setExtraHTTPHeaders }}{{ else }}{{ toJson .setExtraHTTPHeaders }}{{ end }}{{- $sep = "," -}}{{ end }} @@ -6397,151 +6529,7 @@ components: ' sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/json/methods/list' - insert: - - $ref: '#/components/x-stackQL-resources/json/methods/create' - update: [] - delete: [] - replace: [] - json_activate: - id: cloudflare.browser_rendering.json_activate - name: json_activate - title: Json Activate - methods: - get: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1devtools~1browser~1{session_id}~1json~1activate~1{target_id}/get' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/json_activate/methods/get' - insert: [] - update: [] - delete: [] - replace: [] - json_close: - id: cloudflare.browser_rendering.json_close - name: json_close - title: Json Close - methods: - get: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1devtools~1browser~1{session_id}~1json~1close~1{target_id}/get' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/json_close/methods/get' - insert: [] - update: [] - delete: [] - replace: [] - targets: - id: cloudflare.browser_rendering.targets - name: targets - title: Targets - methods: - list: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1devtools~1browser~1{session_id}~1json~1list/get' - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result - create: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1devtools~1browser~1{session_id}~1json~1new/put' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/targets/methods/list' - insert: [] - update: [] - delete: [] - replace: - - $ref: '#/components/x-stackQL-resources/targets/methods/create' - json_list: - id: cloudflare.browser_rendering.json_list - name: json_list - title: Json List - methods: - get: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1devtools~1browser~1{session_id}~1json~1list~1{target_id}/get' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/json_list/methods/get' - insert: [] - update: [] - delete: [] - replace: [] - json_protocol: - id: cloudflare.browser_rendering.json_protocol - name: json_protocol - title: Json Protocol - methods: - list: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1devtools~1browser~1{session_id}~1json~1protocol/get' - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.domains - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/json_protocol/methods/list' - insert: [] - update: [] - delete: [] - replace: [] - json_version: - id: cloudflare.browser_rendering.json_version - name: json_version - title: Json Version - methods: - list: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1devtools~1browser~1{session_id}~1json~1version/get' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/json_version/methods/list' - insert: [] - update: [] - delete: [] - replace: [] - session: - id: cloudflare.browser_rendering.session - name: session - title: Session - methods: - list: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1devtools~1session/get' - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result - get: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1browser-rendering~1devtools~1session~1{session_id}/get' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/session/methods/get' - - $ref: '#/components/x-stackQL-resources/session/methods/list' + - $ref: '#/components/x-stackQL-resources/snapshot/methods/get' insert: [] update: [] delete: [] diff --git a/providers/src/cloudflare/v00.00.00000/services/cache.yaml b/providers/src/cloudflare/v00.00.00000/services/cache.yaml index 6919fc95..ea0149e9 100644 --- a/providers/src/cloudflare/v00.00.00000/services/cache.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/cache.yaml @@ -2414,30 +2414,18 @@ components: type: apiKey description: Used when interacting with the Origin CA certificates API. [View/change your key](https://developers.cloudflare.com/fundamentals/api/get-started/ca-keys/#viewchange-your-origin-ca-keys). x-stackQL-resources: - cache_cache_reserve: - id: cloudflare.cache.cache_cache_reserve - name: cache_cache_reserve - title: Cache Cache Reserve + cache_reserve: + id: cloudflare.cache.cache_reserve + name: cache_reserve + title: Cache Reserve methods: - list: + get: operation: $ref: '#/paths/~1zones~1{zone_id}~1cache~1cache_reserve/get' response: mediaType: application/json openAPIDocKey: '200' objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/cache_cache_reserve/methods/list' - insert: [] - update: [] - delete: [] - replace: [] - cache_reserve: - id: cloudflare.cache.cache_reserve - name: cache_reserve - title: Cache Reserve - methods: edit: config: requestBodyTranslate: @@ -2447,6 +2435,13 @@ components: response: mediaType: application/json openAPIDocKey: '200' + get_clear_status: + operation: + $ref: '#/paths/~1zones~1{zone_id}~1cache~1cache_reserve_clear/get' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result clear: config: requestBodyTranslate: @@ -2457,31 +2452,13 @@ components: mediaType: application/json openAPIDocKey: '200' sqlVerbs: - select: [] + select: + - $ref: '#/components/x-stackQL-resources/cache_reserve/methods/get' insert: [] update: - $ref: '#/components/x-stackQL-resources/cache_reserve/methods/edit' delete: [] replace: [] - cache_cache_reserve_clear: - id: cloudflare.cache.cache_cache_reserve_clear - name: cache_cache_reserve_clear - title: Cache Cache Reserve Clear - methods: - list: - operation: - $ref: '#/paths/~1zones~1{zone_id}~1cache~1cache_reserve_clear/get' - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/cache_cache_reserve_clear/methods/list' - insert: [] - update: [] - delete: [] - replace: [] origin_cloud_regions: id: cloudflare.cache.origin_cloud_regions name: origin_cloud_regions diff --git a/providers/src/cloudflare/v00.00.00000/services/cloudforce_one.yaml b/providers/src/cloudflare/v00.00.00000/services/cloudforce_one.yaml index 33044d59..05617da6 100644 --- a/providers/src/cloudflare/v00.00.00000/services/cloudforce_one.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/cloudforce_one.yaml @@ -527,20 +527,10 @@ paths: content: application/json: schema: + type: object properties: - items: - properties: - type: - type: string - required: - - type - type: object - type: + contents: type: string - required: - - type - - items - type: object description: Returns a list of attackers. '400': content: @@ -604,30 +594,10 @@ paths: content: application/json: schema: - items: - properties: - killChain: - type: number - mitreAttack: - items: - type: string - type: array - mitreCapec: - items: - type: string - type: array - name: - type: string - shortname: - type: string - uuid: - type: string - required: - - uuid - - name - - killChain - type: object - type: array + type: object + properties: + contents: + type: string description: Returns a list of categories. '400': content: @@ -1202,27 +1172,10 @@ paths: content: application/json: schema: - items: - properties: - result: - items: - properties: - alpha3: - type: string - name: - type: string - required: - - name - - alpha3 - type: object - type: array - success: - type: string - required: - - success - - result - type: object - type: array + type: object + properties: + contents: + type: string description: Returns the long and short country code for every country. '400': content: @@ -1856,20 +1809,10 @@ paths: content: application/json: schema: - items: - properties: - isPublic: - type: boolean - name: - type: string - uuid: - type: string - required: - - uuid - - name - - isPublic - type: object - type: array + type: object + properties: + contents: + type: string description: Returns a list of dataset in an account. '400': content: @@ -3732,10 +3675,10 @@ paths: content: application/json: schema: - description: Array of mirror tag rows - items: - type: object - type: array + type: object + properties: + contents: + type: string description: Returns an array of mirrored tags. '400': content: @@ -5663,20 +5606,10 @@ paths: content: application/json: schema: + type: object properties: - items: - properties: - type: - type: string - required: - - type - type: object - type: + contents: type: string - required: - - type - - items - type: object description: Returns a list of indicator types. '400': content: @@ -8113,20 +8046,10 @@ paths: content: application/json: schema: + type: object properties: - items: - properties: - type: - type: string - required: - - type - type: object - type: + contents: type: string - required: - - type - - items - type: object description: Returns a list of target industries. '400': content: @@ -13302,7 +13225,10 @@ components: response: mediaType: application/json openAPIDocKey: '200' - objectKey: $.result + overrideMediaType: application/json + transform: + body: '[{"contents": {{ toJson .result }}}]' + type: golang_template_json_v0.3.0 sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/attackers/methods/list' @@ -13321,37 +13247,10 @@ components: response: mediaType: application/json openAPIDocKey: '200' - objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/events_categories/methods/list' - insert: [] - update: [] - delete: [] - replace: [] - categories_catalog: - id: cloudflare.cloudforce_one.categories_catalog - name: categories_catalog - title: Categories Catalog - methods: - list: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1cloudforce-one~1events~1categories~1catalog/get' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/categories_catalog/methods/list' - insert: [] - update: [] - delete: [] - replace: [] - events_categories_create: - id: cloudflare.cloudforce_one.events_categories_create - name: events_categories_create - title: Events Categories Create - methods: + overrideMediaType: application/json + transform: + body: '[{"contents": {{ toJson .result }}}]' + type: golang_template_json_v0.3.0 create: config: requestBodyTranslate: @@ -13383,9 +13282,28 @@ components: ' sqlVerbs: - select: [] + select: + - $ref: '#/components/x-stackQL-resources/events_categories/methods/list' insert: - - $ref: '#/components/x-stackQL-resources/events_categories_create/methods/create' + - $ref: '#/components/x-stackQL-resources/events_categories/methods/create' + update: [] + delete: [] + replace: [] + categories_catalog: + id: cloudflare.cloudforce_one.categories_catalog + name: categories_catalog + title: Categories Catalog + methods: + list: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1cloudforce-one~1events~1categories~1catalog/get' + response: + mediaType: application/json + openAPIDocKey: '200' + sqlVerbs: + select: + - $ref: '#/components/x-stackQL-resources/categories_catalog/methods/list' + insert: [] update: [] delete: [] replace: [] @@ -13504,7 +13422,10 @@ components: response: mediaType: application/json openAPIDocKey: '200' - objectKey: $.result + overrideMediaType: application/json + transform: + body: '[{"contents": {{ toJson .result }}}]' + type: golang_template_json_v0.3.0 sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/countries/methods/list' @@ -13512,12 +13433,12 @@ components: update: [] delete: [] replace: [] - events_create: - id: cloudflare.cloudforce_one.events_create - name: events_create - title: Events Create + events: + id: cloudflare.cloudforce_one.events + name: events + title: Events methods: - create_by_account: + create: config: requestBodyTranslate: algorithm: naive @@ -13569,9 +13490,90 @@ components: } ' + get: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1cloudforce-one~1events~1dataset~1{dataset_id}~1events~1{event_id}/get' + response: + mediaType: application/json + openAPIDocKey: '200' + create_graphql: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1cloudforce-one~1events~1graphql/post' + response: + mediaType: application/json + openAPIDocKey: '200' + delete_relate: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1cloudforce-one~1events~1relate~1{event_id}/delete' + response: + mediaType: application/json + openAPIDocKey: '200' + delete_delete: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1cloudforce-one~1events~1{dataset_id}~1delete/delete' + response: + mediaType: application/json + openAPIDocKey: '200' + post_event_update: + config: + requestBodyTranslate: + algorithm: naive + operation: + $ref: '#/paths/~1accounts~1{account_id}~1cloudforce-one~1events~1{event_id}/post' + response: + mediaType: application/json + openAPIDocKey: '200' + request: + mediaType: application/json + transform: + type: golang_template_json_v0.3.0 + body: '{ + + {{- $sep := "" -}} + + {{- if .attacker }}{{ $sep }}"attacker": {{ toJson .attacker }}{{- $sep = "," -}}{{ end }} + + {{- if .attackerCountry }}{{ $sep }}"attackerCountry": {{ toJson .attackerCountry }}{{- $sep = "," -}}{{ end }} + + {{- if .category }}{{ $sep }}"category": {{ toJson .category }}{{- $sep = "," -}}{{ end }} + + {{- if .createdAt }}{{ $sep }}"createdAt": {{ toJson .createdAt }}{{- $sep = "," -}}{{ end }} + + {{- if .datasetId }}{{ $sep }}"datasetId": {{ toJson .datasetId }}{{- $sep = "," -}}{{ end }} + + {{- if .date }}{{ $sep }}"date": {{ toJson .date }}{{- $sep = "," -}}{{ end }} + + {{- if .event }}{{ $sep }}"event": {{ toJson .event }}{{- $sep = "," -}}{{ end }} + + {{- if .indicator }}{{ $sep }}"indicator": {{ toJson .indicator }}{{- $sep = "," -}}{{ end }} + + {{- if .indicatorType }}{{ $sep }}"indicatorType": {{ toJson .indicatorType }}{{- $sep = "," -}}{{ end }} + + {{- if .insight }}{{ $sep }}"insight": {{ toJson .insight }}{{- $sep = "," -}}{{ end }} + + {{- if .raw }}{{ $sep }}"raw": {{ if eq (kindOf .raw) "string" }}{{ .raw }}{{ else }}{{ toJson .raw }}{{ end }}{{- $sep = "," -}}{{ end }} + + {{- if .targetCountry }}{{ $sep }}"targetCountry": {{ toJson .targetCountry }}{{- $sep = "," -}}{{ end }} + + {{- if .targetIndustry }}{{ $sep }}"targetIndustry": {{ toJson .targetIndustry }}{{- $sep = "," -}}{{ end }} + + {{- if .tlp }}{{ $sep }}"tlp": {{ toJson .tlp }}{{- $sep = "," -}}{{ end }} + + } + + ' + create_graphql_v2: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1cloudforce-one~1v2~1events~1graphql/post' + response: + mediaType: application/json + openAPIDocKey: '200' sqlVerbs: - select: [] - insert: [] + select: + - $ref: '#/components/x-stackQL-resources/events/methods/get' + insert: + - $ref: '#/components/x-stackQL-resources/events/methods/post_event_update' + - $ref: '#/components/x-stackQL-resources/events/methods/create' update: [] delete: [] replace: [] @@ -13603,6 +13605,28 @@ components: } + ' + create_relate: + config: + requestBodyTranslate: + algorithm: naive + operation: + $ref: '#/paths/~1accounts~1{account_id}~1cloudforce-one~1events~1relate~1{event_id}~1create/post' + response: + mediaType: application/json + openAPIDocKey: '200' + request: + mediaType: application/json + transform: + type: golang_template_json_v0.3.0 + body: '{ + + {{- $sep := "" -}} + + {{- if .events }}{{ $sep }}"events": {{ if eq (kindOf .events) "string" }}{{ .events }}{{ else }}{{ toJson .events }}{{ end }}{{- $sep = "," -}}{{ end }} + + } + ' create: config: @@ -13657,7 +13681,10 @@ components: response: mediaType: application/json openAPIDocKey: '200' - objectKey: $.result + overrideMediaType: application/json + transform: + body: '[{"contents": {{ toJson .result }}}]' + type: golang_template_json_v0.3.0 create: config: requestBodyTranslate: @@ -13872,97 +13899,6 @@ components: update: [] delete: [] replace: [] - events: - id: cloudflare.cloudforce_one.events - name: events - title: Events - methods: - get: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1cloudforce-one~1events~1dataset~1{dataset_id}~1events~1{event_id}/get' - response: - mediaType: application/json - openAPIDocKey: '200' - create_graphql: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1cloudforce-one~1events~1graphql/post' - response: - mediaType: application/json - openAPIDocKey: '200' - delete_relate: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1cloudforce-one~1events~1relate~1{event_id}/delete' - response: - mediaType: application/json - openAPIDocKey: '200' - delete_delete: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1cloudforce-one~1events~1{dataset_id}~1delete/delete' - response: - mediaType: application/json - openAPIDocKey: '200' - post_event_update: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1cloudforce-one~1events~1{event_id}/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .attacker }}{{ $sep }}"attacker": {{ toJson .attacker }}{{- $sep = "," -}}{{ end }} - - {{- if .attackerCountry }}{{ $sep }}"attackerCountry": {{ toJson .attackerCountry }}{{- $sep = "," -}}{{ end }} - - {{- if .category }}{{ $sep }}"category": {{ toJson .category }}{{- $sep = "," -}}{{ end }} - - {{- if .createdAt }}{{ $sep }}"createdAt": {{ toJson .createdAt }}{{- $sep = "," -}}{{ end }} - - {{- if .datasetId }}{{ $sep }}"datasetId": {{ toJson .datasetId }}{{- $sep = "," -}}{{ end }} - - {{- if .date }}{{ $sep }}"date": {{ toJson .date }}{{- $sep = "," -}}{{ end }} - - {{- if .event }}{{ $sep }}"event": {{ toJson .event }}{{- $sep = "," -}}{{ end }} - - {{- if .indicator }}{{ $sep }}"indicator": {{ toJson .indicator }}{{- $sep = "," -}}{{ end }} - - {{- if .indicatorType }}{{ $sep }}"indicatorType": {{ toJson .indicatorType }}{{- $sep = "," -}}{{ end }} - - {{- if .insight }}{{ $sep }}"insight": {{ toJson .insight }}{{- $sep = "," -}}{{ end }} - - {{- if .raw }}{{ $sep }}"raw": {{ if eq (kindOf .raw) "string" }}{{ .raw }}{{ else }}{{ toJson .raw }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .targetCountry }}{{ $sep }}"targetCountry": {{ toJson .targetCountry }}{{- $sep = "," -}}{{ end }} - - {{- if .targetIndustry }}{{ $sep }}"targetIndustry": {{ toJson .targetIndustry }}{{- $sep = "," -}}{{ end }} - - {{- if .tlp }}{{ $sep }}"tlp": {{ toJson .tlp }}{{- $sep = "," -}}{{ end }} - - } - - ' - create_graphql_v2: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1cloudforce-one~1v2~1events~1graphql/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/events/methods/get' - insert: - - $ref: '#/components/x-stackQL-resources/events/methods/post_event_update' - update: [] - delete: [] - replace: [] indicator_types: id: cloudflare.cloudforce_one.indicator_types name: indicator_types @@ -14167,6 +14103,10 @@ components: response: mediaType: application/json openAPIDocKey: '200' + overrideMediaType: application/json + transform: + body: '[{"contents": {{ toJson .result }}}]' + type: golang_template_json_v0.3.0 sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/indicators_tags/methods/list_by_account' @@ -14308,7 +14248,10 @@ components: response: mediaType: application/json openAPIDocKey: '200' - objectKey: $.result + overrideMediaType: application/json + transform: + body: '[{"contents": {{ toJson .result }}}]' + type: golang_template_json_v0.3.0 sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/indicator_types_indicator_types/methods/list' @@ -14413,39 +14356,6 @@ components: update: [] delete: [] replace: [] - relate_create: - id: cloudflare.cloudforce_one.relate_create - name: relate_create - title: Relate Create - methods: - create_by_account: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1cloudforce-one~1events~1relate~1{event_id}~1create/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .events }}{{ $sep }}"events": {{ if eq (kindOf .events) "string" }}{{ .events }}{{ else }}{{ toJson .events }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: [] - update: [] - delete: [] - replace: [] events_tags: id: cloudflare.cloudforce_one.events_tags name: events_tags @@ -14477,18 +14387,6 @@ components: mediaType: application/json openAPIDocKey: '200' objectKey: $.categories - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/tags_categories/methods/list' - insert: [] - update: [] - delete: [] - replace: [] - tags_categories_create: - id: cloudflare.cloudforce_one.tags_categories_create - name: tags_categories_create - title: Tags Categories Create - methods: create: config: requestBodyTranslate: @@ -14499,8 +14397,10 @@ components: mediaType: application/json openAPIDocKey: '200' sqlVerbs: - select: [] - insert: [] + select: + - $ref: '#/components/x-stackQL-resources/tags_categories/methods/list' + insert: + - $ref: '#/components/x-stackQL-resources/tags_categories/methods/create' update: [] delete: [] replace: [] @@ -14639,7 +14539,10 @@ components: response: mediaType: application/json openAPIDocKey: '200' - objectKey: $.result + overrideMediaType: application/json + transform: + body: '[{"contents": {{ toJson .result }}}]' + type: golang_template_json_v0.3.0 sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/events_target_industries/methods/list_by_account' @@ -14811,12 +14714,12 @@ components: update: [] delete: [] replace: [] - requests_new: - id: cloudflare.cloudforce_one.requests_new - name: requests_new - title: Requests New + requests: + id: cloudflare.cloudforce_one.requests + name: requests + title: Requests methods: - new_by_account: + create: config: requestBodyTranslate: algorithm: naive @@ -14825,17 +14728,6 @@ components: response: mediaType: application/json openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: [] - update: [] - delete: [] - replace: [] - requests: - id: cloudflare.cloudforce_one.requests - name: requests - title: Requests - methods: create_priority: config: requestBodyTranslate: @@ -14888,7 +14780,8 @@ components: sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/requests/methods/get' - insert: [] + insert: + - $ref: '#/components/x-stackQL-resources/requests/methods/create' update: [] delete: - $ref: '#/components/x-stackQL-resources/requests/methods/delete' @@ -15067,12 +14960,12 @@ components: - $ref: '#/components/x-stackQL-resources/assets/methods/delete' replace: - $ref: '#/components/x-stackQL-resources/assets/methods/update' - message_new: - id: cloudflare.cloudforce_one.message_new - name: message_new - title: Message New + message: + id: cloudflare.cloudforce_one.message + name: message + title: Message methods: - new_by_account: + create: config: requestBodyTranslate: algorithm: naive @@ -15081,17 +14974,6 @@ components: response: mediaType: application/json openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: [] - update: [] - delete: [] - replace: [] - message: - id: cloudflare.cloudforce_one.message - name: message - title: Message - methods: delete: operation: $ref: '#/paths/~1accounts~1{account_id}~1cloudforce-one~1requests~1{request_id}~1message~1{message_id}/delete' @@ -15109,7 +14991,8 @@ components: openAPIDocKey: '200' sqlVerbs: select: [] - insert: [] + insert: + - $ref: '#/components/x-stackQL-resources/message/methods/create' update: [] delete: - $ref: '#/components/x-stackQL-resources/message/methods/delete' diff --git a/providers/src/cloudflare/v00.00.00000/services/content_scanning.yaml b/providers/src/cloudflare/v00.00.00000/services/content_scanning.yaml index 6f0baecd..b2181da5 100644 --- a/providers/src/cloudflare/v00.00.00000/services/content_scanning.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/content_scanning.yaml @@ -612,10 +612,10 @@ components: your key](https://developers.cloudflare.com/fundamentals/api/get-started/ca-keys/#viewchange-your-origin-ca-keys). x-stackQL-resources: - content_upload_scan: - id: cloudflare.content_scanning.content_upload_scan - name: content_upload_scan - title: Content Upload Scan + settings: + id: cloudflare.content_scanning.settings + name: settings + title: Settings methods: disable: operation: @@ -629,12 +629,30 @@ components: response: mediaType: application/json openAPIDocKey: '200' + list: + operation: + $ref: '#/paths/~1zones~1{zone_id}~1content-upload-scan~1settings/get' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result + create: + config: + requestBodyTranslate: + algorithm: naive + operation: + $ref: '#/paths/~1zones~1{zone_id}~1content-upload-scan~1settings/put' + response: + mediaType: application/json + openAPIDocKey: '200' sqlVerbs: - select: [] + select: + - $ref: '#/components/x-stackQL-resources/settings/methods/list' insert: [] update: [] delete: [] - replace: [] + replace: + - $ref: '#/components/x-stackQL-resources/settings/methods/create' payloads: id: cloudflare.content_scanning.payloads name: payloads @@ -674,32 +692,3 @@ components: - $ref: >- #/components/x-stackQL-resources/payloads/methods/waf_content_scanning_delete_custom_scan_expressions replace: [] - settings: - id: cloudflare.content_scanning.settings - name: settings - title: Settings - methods: - list: - operation: - $ref: '#/paths/~1zones~1{zone_id}~1content-upload-scan~1settings/get' - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result - create: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1zones~1{zone_id}~1content-upload-scan~1settings/put' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/settings/methods/list' - insert: [] - update: [] - delete: [] - replace: - - $ref: '#/components/x-stackQL-resources/settings/methods/create' diff --git a/providers/src/cloudflare/v00.00.00000/services/d1.yaml b/providers/src/cloudflare/v00.00.00000/services/d1.yaml index e88a5746..344b8e37 100644 --- a/providers/src/cloudflare/v00.00.00000/services/d1.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/d1.yaml @@ -1066,9 +1066,9 @@ paths: - database - time_travel method: restore - /graphql/d1_analytics_adaptive_groups: + /graphql/analytics_adaptive_groups: post: - operationId: graphql-d1_analytics_adaptive_groups-list + operationId: graphql-analytics_adaptive_groups-list summary: Cloudflare D1 database analytics for an account, grouped by database, serving instance, and region description: Cloudflare D1 database analytics for an account, grouped by database, serving instance, and region. Per-tuple totals for request count, read/write query counts, rows read/written, and response bytes. x-stackQL-graphQL: @@ -1701,9 +1701,9 @@ components: ' sqlVerbs: - select: [] - insert: + select: - $ref: '#/components/x-stackQL-resources/database_query/methods/query' + insert: [] update: [] delete: [] replace: [] @@ -1732,14 +1732,14 @@ components: update: [] delete: [] replace: [] - d1_analytics_adaptive_groups: - id: cloudflare.d1.d1_analytics_adaptive_groups - name: d1_analytics_adaptive_groups - title: D1 Analytics Adaptive Groups + analytics_adaptive_groups: + id: cloudflare.d1.analytics_adaptive_groups + name: analytics_adaptive_groups + title: Analytics Adaptive Groups methods: list: operation: - $ref: '#/paths/~1graphql~1d1_analytics_adaptive_groups/post' + $ref: '#/paths/~1graphql~1analytics_adaptive_groups/post' response: mediaType: application/json openAPIDocKey: '200' @@ -1751,7 +1751,7 @@ components: x-stackql-protocol: graphql sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/d1_analytics_adaptive_groups/methods/list' + - $ref: '#/components/x-stackQL-resources/analytics_adaptive_groups/methods/list' insert: [] update: [] delete: [] diff --git a/providers/src/cloudflare/v00.00.00000/services/diagnostics.yaml b/providers/src/cloudflare/v00.00.00000/services/diagnostics.yaml index b8b7b9fd..0f81e8c6 100644 --- a/providers/src/cloudflare/v00.00.00000/services/diagnostics.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/diagnostics.yaml @@ -832,7 +832,8 @@ components: ' sqlVerbs: - select: [] + select: + - $ref: '#/components/x-stackQL-resources/diagnostics/methods/create_traceroute' insert: [] update: [] delete: [] diff --git a/providers/src/cloudflare/v00.00.00000/services/dns.yaml b/providers/src/cloudflare/v00.00.00000/services/dns.yaml index 08b395d4..53e8dc32 100644 --- a/providers/src/cloudflare/v00.00.00000/services/dns.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/dns.yaml @@ -5493,9 +5493,9 @@ paths: free: true pro: true operationId: get_zones_zone_id_dns_records_usage - /graphql/dns_analytics_adaptive_groups: + /graphql/analytics_adaptive_groups: post: - operationId: graphql-dns_analytics_adaptive_groups-list + operationId: graphql-analytics_adaptive_groups-list summary: DNS query analytics for a zone, grouped by query name, type, response code, cache status, and serving colo description: DNS query analytics for a zone, grouped by query name, type, response code, cache status, and serving colo. Replaces the deprecated REST endpoints /zones/{zone_id}/dns_analytics/* (hard EOL 2026-12-01). x-stackQL-graphQL: @@ -8579,10 +8579,10 @@ components: update: [] delete: [] replace: [] - bytimes: - id: cloudflare.dns.bytimes - name: bytimes - title: Bytimes + reports_by_times: + id: cloudflare.dns.reports_by_times + name: reports_by_times + title: Reports By Times methods: list: operation: @@ -8593,7 +8593,7 @@ components: objectKey: $.result.data sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/bytimes/methods/list' + - $ref: '#/components/x-stackQL-resources/reports_by_times/methods/list' insert: [] update: [] delete: [] @@ -9253,14 +9253,14 @@ components: update: [] delete: [] replace: [] - dns_analytics_adaptive_groups: - id: cloudflare.dns.dns_analytics_adaptive_groups - name: dns_analytics_adaptive_groups - title: Dns Analytics Adaptive Groups + analytics_adaptive_groups: + id: cloudflare.dns.analytics_adaptive_groups + name: analytics_adaptive_groups + title: Analytics Adaptive Groups methods: list: operation: - $ref: '#/paths/~1graphql~1dns_analytics_adaptive_groups/post' + $ref: '#/paths/~1graphql~1analytics_adaptive_groups/post' response: mediaType: application/json openAPIDocKey: '200' @@ -9272,7 +9272,7 @@ components: x-stackql-protocol: graphql sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/dns_analytics_adaptive_groups/methods/list' + - $ref: '#/components/x-stackQL-resources/analytics_adaptive_groups/methods/list' insert: [] update: [] delete: [] diff --git a/providers/src/cloudflare/v00.00.00000/services/dns_firewall.yaml b/providers/src/cloudflare/v00.00.00000/services/dns_firewall.yaml index 16cf81a0..e2f81ac2 100644 --- a/providers/src/cloudflare/v00.00.00000/services/dns_firewall.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/dns_firewall.yaml @@ -1761,10 +1761,10 @@ components: update: [] delete: [] replace: [] - bytimes: - id: cloudflare.dns_firewall.bytimes - name: bytimes - title: Bytimes + dimensions_and_metrics: + id: cloudflare.dns_firewall.dimensions_and_metrics + name: dimensions_and_metrics + title: Dimensions And Metrics methods: list: operation: @@ -1776,7 +1776,8 @@ components: objectKey: $.result.data sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/bytimes/methods/list' + - $ref: >- + #/components/x-stackQL-resources/dimensions_and_metrics/methods/list insert: [] update: [] delete: [] diff --git a/providers/src/cloudflare/v00.00.00000/services/email_security.yaml b/providers/src/cloudflare/v00.00.00000/services/email_security.yaml index 2d6827ab..5d6d2239 100644 --- a/providers/src/cloudflare/v00.00.00000/services/email_security.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/email_security.yaml @@ -5406,45 +5406,7 @@ components: mediaType: application/json openAPIDocKey: '200' objectKey: $.result - release: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1email-security~1investigate~1release/post' - response: - mediaType: application/json - openAPIDocKey: '200' - get: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1email-security~1investigate~1{investigate_id}/get' - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result - reclassify: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1email-security~1investigate~1{investigate_id}~1reclassify/post' - response: - mediaType: application/json - openAPIDocKey: '202' - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/investigate/methods/get' - - $ref: '#/components/x-stackQL-resources/investigate/methods/list' - insert: [] - update: [] - delete: [] - replace: [] - move: - id: cloudflare.email_security.move - name: move - title: Move - methods: - email_security_post_bulk_move: + bulk_move: config: requestBodyTranslate: algorithm: naive @@ -5470,7 +5432,23 @@ components: } ' - email_security_post_message_move: + release: + config: + requestBodyTranslate: + algorithm: naive + operation: + $ref: '#/paths/~1accounts~1{account_id}~1email-security~1investigate~1release/post' + response: + mediaType: application/json + openAPIDocKey: '200' + get: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1email-security~1investigate~1{investigate_id}/get' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result + move_message: config: requestBodyTranslate: algorithm: naive @@ -5479,11 +5457,20 @@ components: response: mediaType: application/json openAPIDocKey: '200' + reclassify: + config: + requestBodyTranslate: + algorithm: naive + operation: + $ref: '#/paths/~1accounts~1{account_id}~1email-security~1investigate~1{investigate_id}~1reclassify/post' + response: + mediaType: application/json + openAPIDocKey: '202' sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/move/methods/email_security_post_message_move' - - $ref: '#/components/x-stackQL-resources/move/methods/email_security_post_bulk_move' + select: + - $ref: '#/components/x-stackQL-resources/investigate/methods/get' + - $ref: '#/components/x-stackQL-resources/investigate/methods/list' + insert: [] update: [] delete: [] replace: [] diff --git a/providers/src/cloudflare/v00.00.00000/services/images.yaml b/providers/src/cloudflare/v00.00.00000/services/images.yaml index 7de712c5..7fd15fde 100644 --- a/providers/src/cloudflare/v00.00.00000/services/images.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/images.yaml @@ -1967,10 +1967,10 @@ components: type: apiKey description: Used when interacting with the Origin CA certificates API. [View/change your key](https://developers.cloudflare.com/fundamentals/api/get-started/ca-keys/#viewchange-your-origin-ca-keys). x-stackQL-resources: - v1: - id: cloudflare.images.v1 - name: v1 - title: V1 + images_v1: + id: cloudflare.images.images_v1 + name: images_v1 + title: Images V1 methods: list: operation: @@ -2052,14 +2052,14 @@ components: ' sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/v1/methods/get' - - $ref: '#/components/x-stackQL-resources/v1/methods/list' + - $ref: '#/components/x-stackQL-resources/images_v1/methods/get' + - $ref: '#/components/x-stackQL-resources/images_v1/methods/list' insert: - - $ref: '#/components/x-stackQL-resources/v1/methods/create' + - $ref: '#/components/x-stackQL-resources/images_v1/methods/create' update: - - $ref: '#/components/x-stackQL-resources/v1/methods/edit' + - $ref: '#/components/x-stackQL-resources/images_v1/methods/edit' delete: - - $ref: '#/components/x-stackQL-resources/v1/methods/delete' + - $ref: '#/components/x-stackQL-resources/images_v1/methods/delete' replace: [] keys: id: cloudflare.images.keys @@ -2240,10 +2240,10 @@ components: update: [] delete: [] replace: [] - v2: - id: cloudflare.images.v2 - name: v2 - title: V2 + images: + id: cloudflare.images.images + name: images + title: Images methods: list: operation: @@ -2252,18 +2252,6 @@ components: mediaType: application/json openAPIDocKey: '200' objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/v2/methods/list' - insert: [] - update: [] - delete: [] - replace: [] - images: - id: cloudflare.images.images - name: images - title: Images - methods: create_direct_upload_v2: config: requestBodyTranslate: @@ -2295,7 +2283,8 @@ components: ' sqlVerbs: - select: [] + select: + - $ref: '#/components/x-stackQL-resources/images/methods/list' insert: [] update: [] delete: [] diff --git a/providers/src/cloudflare/v00.00.00000/services/intel.yaml b/providers/src/cloudflare/v00.00.00000/services/intel.yaml index 4cd1ae44..a0d16353 100644 --- a/providers/src/cloudflare/v00.00.00000/services/intel.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/intel.yaml @@ -4663,30 +4663,18 @@ components: update: [] delete: [] replace: [] - intel_indicator_feeds: - id: cloudflare.intel.intel_indicator_feeds - name: intel_indicator_feeds - title: Intel Indicator Feeds + indicator_feeds: + id: cloudflare.intel.indicator_feeds + name: indicator_feeds + title: Indicator Feeds methods: - list_by_account: + list: operation: $ref: '#/paths/~1accounts~1{account_id}~1intel~1indicator-feeds/get' response: mediaType: application/json openAPIDocKey: '200' objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/intel_indicator_feeds/methods/list_by_account' - insert: [] - update: [] - delete: [] - replace: [] - indicator_feeds: - id: cloudflare.intel.indicator_feeds - name: indicator_feeds - title: Indicator Feeds - methods: create: config: requestBodyTranslate: @@ -4724,6 +4712,7 @@ components: sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/indicator_feeds/methods/get' + - $ref: '#/components/x-stackQL-resources/indicator_feeds/methods/list' insert: - $ref: '#/components/x-stackQL-resources/indicator_feeds/methods/create' update: [] diff --git a/providers/src/cloudflare/v00.00.00000/services/kv.yaml b/providers/src/cloudflare/v00.00.00000/services/kv.yaml index 45227a03..1360c3a7 100644 --- a/providers/src/cloudflare/v00.00.00000/services/kv.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/kv.yaml @@ -1242,6 +1242,13 @@ components: example: Some Value type: string format: binary + stackqlWorkersKvValueBody: + type: object + required: + - value + properties: + value: + $ref: '#/components/schemas/workersKvValue' securitySchemes: api_email: in: header @@ -1427,11 +1434,17 @@ components: body: '[{"contents": {{ toJson . }}}]' type: golang_template_text_v0.3.0 update: - config: - requestBodyTranslate: - algorithm: naive operation: $ref: '#/paths/~1accounts~1{account_id}~1storage~1kv~1namespaces~1{namespace_id}~1values~1{key_name}/put' + request: + mediaType: application/octet-stream + required: + - value + schema_override: + $ref: '#/components/schemas/stackqlWorkersKvValueBody' + transform: + type: golang_template_json_v0.1.0 + body: '{{ .value }}' response: mediaType: application/json openAPIDocKey: '200' diff --git a/providers/src/cloudflare/v00.00.00000/services/logpush.yaml b/providers/src/cloudflare/v00.00.00000/services/logpush.yaml index 9cb49e50..211066c5 100644 --- a/providers/src/cloudflare/v00.00.00000/services/logpush.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/logpush.yaml @@ -2508,26 +2508,7 @@ components: response: mediaType: application/json openAPIDocKey: '200' - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/jobs/methods/get_by_account' - - $ref: '#/components/x-stackQL-resources/jobs/methods/get_by_zone' - insert: - - $ref: '#/components/x-stackQL-resources/jobs/methods/create_by_account' - - $ref: '#/components/x-stackQL-resources/jobs/methods/create_by_zone' - update: [] - delete: - - $ref: '#/components/x-stackQL-resources/jobs/methods/delete_by_account' - - $ref: '#/components/x-stackQL-resources/jobs/methods/delete_by_zone' - replace: - - $ref: '#/components/x-stackQL-resources/jobs/methods/update_by_account' - - $ref: '#/components/x-stackQL-resources/jobs/methods/update_by_zone' - logpush_ownership: - id: cloudflare.logpush.logpush_ownership - name: logpush_ownership - title: Logpush Ownership - methods: - create_by_account: + get_ownership_challenge_by_account: config: requestBodyTranslate: algorithm: naive @@ -2536,7 +2517,7 @@ components: response: mediaType: application/json openAPIDocKey: '200' - create_by_zone: + get_ownership_challenge_by_zone: config: requestBodyTranslate: algorithm: naive @@ -2545,20 +2526,7 @@ components: response: mediaType: application/json openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/logpush_ownership/methods/create_by_account' - - $ref: '#/components/x-stackQL-resources/logpush_ownership/methods/create_by_zone' - update: [] - delete: [] - replace: [] - ownership_validate: - id: cloudflare.logpush.ownership_validate - name: ownership_validate - title: Ownership Validate - methods: - validate_by_account: + validate_ownership_challenge_by_account: config: requestBodyTranslate: algorithm: naive @@ -2567,7 +2535,7 @@ components: response: mediaType: application/json openAPIDocKey: '200' - validate_by_zone: + validate_ownership_challenge_by_zone: config: requestBodyTranslate: algorithm: naive @@ -2576,20 +2544,7 @@ components: response: mediaType: application/json openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/ownership_validate/methods/validate_by_account' - - $ref: '#/components/x-stackQL-resources/ownership_validate/methods/validate_by_zone' - update: [] - delete: [] - replace: [] - validate_destination: - id: cloudflare.logpush.validate_destination - name: validate_destination - title: Validate Destination - methods: - destination_by_account: + validate_destination_by_account: config: requestBodyTranslate: algorithm: naive @@ -2598,7 +2553,7 @@ components: response: mediaType: application/json openAPIDocKey: '200' - destination_by_zone: + validate_destination_by_zone: config: requestBodyTranslate: algorithm: naive @@ -2607,19 +2562,6 @@ components: response: mediaType: application/json openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/validate_destination/methods/destination_by_account' - - $ref: '#/components/x-stackQL-resources/validate_destination/methods/destination_by_zone' - update: [] - delete: [] - replace: [] - destination_exists: - id: cloudflare.logpush.destination_exists - name: destination_exists - title: Destination Exists - methods: destination_exists_by_account: config: requestBodyTranslate: @@ -2638,20 +2580,7 @@ components: response: mediaType: application/json openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/destination_exists/methods/destination_exists_by_account' - - $ref: '#/components/x-stackQL-resources/destination_exists/methods/destination_exists_by_zone' - update: [] - delete: [] - replace: [] - validate_origin: - id: cloudflare.logpush.validate_origin - name: validate_origin - title: Validate Origin - methods: - origin_by_account: + validate_origin_by_account: config: requestBodyTranslate: algorithm: naive @@ -2660,7 +2589,7 @@ components: response: mediaType: application/json openAPIDocKey: '200' - origin_by_zone: + validate_origin_by_zone: config: requestBodyTranslate: algorithm: naive @@ -2670,10 +2599,16 @@ components: mediaType: application/json openAPIDocKey: '200' sqlVerbs: - select: [] + select: + - $ref: '#/components/x-stackQL-resources/jobs/methods/get_by_account' + - $ref: '#/components/x-stackQL-resources/jobs/methods/get_by_zone' insert: - - $ref: '#/components/x-stackQL-resources/validate_origin/methods/origin_by_account' - - $ref: '#/components/x-stackQL-resources/validate_origin/methods/origin_by_zone' + - $ref: '#/components/x-stackQL-resources/jobs/methods/create_by_account' + - $ref: '#/components/x-stackQL-resources/jobs/methods/create_by_zone' update: [] - delete: [] - replace: [] + delete: + - $ref: '#/components/x-stackQL-resources/jobs/methods/delete_by_account' + - $ref: '#/components/x-stackQL-resources/jobs/methods/delete_by_zone' + replace: + - $ref: '#/components/x-stackQL-resources/jobs/methods/update_by_account' + - $ref: '#/components/x-stackQL-resources/jobs/methods/update_by_zone' diff --git a/providers/src/cloudflare/v00.00.00000/services/logs.yaml b/providers/src/cloudflare/v00.00.00000/services/logs.yaml index 399011ee..78331484 100644 --- a/providers/src/cloudflare/v00.00.00000/services/logs.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/logs.yaml @@ -294,7 +294,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/logshareLogsResponseJsonLines' + type: object + properties: + contents: + type: string description: Get logs RayIDs response 4XX: content: @@ -357,7 +360,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/logshareLogsResponseJsonLines' + type: object + properties: + contents: + type: string description: Get logs received response 4XX: content: @@ -933,7 +939,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/lexQueryResponse' + type: object + properties: + contents: + type: string description: Query results. '400': content: @@ -989,7 +998,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/lexQueryResponse' + type: object + properties: + contents: + type: string description: Query results. '400': content: @@ -1693,6 +1705,10 @@ components: response: mediaType: application/json openAPIDocKey: '200' + overrideMediaType: application/json + transform: + body: '[{"contents": {{ toJson . }}}]' + type: golang_template_text_v0.3.0 sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/rayids/methods/get' @@ -1711,6 +1727,10 @@ components: response: mediaType: application/json openAPIDocKey: '200' + overrideMediaType: application/json + transform: + body: '[{"contents": {{ toJson . }}}]' + type: golang_template_text_v0.3.0 sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/received/methods/list' @@ -1942,8 +1962,13 @@ components: response: mediaType: application/json openAPIDocKey: '200' + overrideMediaType: application/json + transform: + body: '[{{ range $i, $v := .result }}{{ if $i }},{{ end }}{"contents": {{ toJson $v }}}{{ end }}]' + type: golang_template_json_v0.3.0 sqlVerbs: - select: [] + select: + - $ref: '#/components/x-stackQL-resources/accounts_logs_explorer_query_sql/methods/create_sql' insert: [] update: [] delete: [] @@ -1962,8 +1987,13 @@ components: response: mediaType: application/json openAPIDocKey: '200' + overrideMediaType: application/json + transform: + body: '[{{ range $i, $v := .result }}{{ if $i }},{{ end }}{"contents": {{ toJson $v }}}{{ end }}]' + type: golang_template_json_v0.3.0 sqlVerbs: - select: [] + select: + - $ref: '#/components/x-stackQL-resources/zones_logs_explorer_query_sql/methods/create_sql' insert: [] update: [] delete: [] diff --git a/providers/src/cloudflare/v00.00.00000/services/network_interconnects.yaml b/providers/src/cloudflare/v00.00.00000/services/network_interconnects.yaml index e068c932..06b702f0 100644 --- a/providers/src/cloudflare/v00.00.00000/services/network_interconnects.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/network_interconnects.yaml @@ -458,6 +458,13 @@ paths: responses: '200': description: Generated LOA in PDF format + content: + application/json: + schema: + type: object + properties: + contents: + type: string '400': description: Bad request '404': @@ -1162,6 +1169,10 @@ components: response: mediaType: application/json openAPIDocKey: '200' + overrideMediaType: application/json + transform: + body: '[{"contents": {{ toJson . }}}]' + type: golang_template_text_v0.3.0 sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/loas/methods/list' diff --git a/providers/src/cloudflare/v00.00.00000/services/page_rules.yaml b/providers/src/cloudflare/v00.00.00000/services/page_rules.yaml index 150aab60..42008707 100644 --- a/providers/src/cloudflare/v00.00.00000/services/page_rules.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/page_rules.yaml @@ -933,10 +933,10 @@ components: type: apiKey description: Used when interacting with the Origin CA certificates API. [View/change your key](https://developers.cloudflare.com/fundamentals/api/get-started/ca-keys/#viewchange-your-origin-ca-keys). x-stackQL-resources: - pagerules: - id: cloudflare.page_rules.pagerules - name: pagerules - title: Pagerules + page_rules: + id: cloudflare.page_rules.page_rules + name: page_rules + title: Page Rules methods: list: operation: @@ -1044,16 +1044,16 @@ components: ' sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/pagerules/methods/get' - - $ref: '#/components/x-stackQL-resources/pagerules/methods/list' + - $ref: '#/components/x-stackQL-resources/page_rules/methods/get' + - $ref: '#/components/x-stackQL-resources/page_rules/methods/list' insert: - - $ref: '#/components/x-stackQL-resources/pagerules/methods/create' + - $ref: '#/components/x-stackQL-resources/page_rules/methods/create' update: - - $ref: '#/components/x-stackQL-resources/pagerules/methods/edit' + - $ref: '#/components/x-stackQL-resources/page_rules/methods/edit' delete: - - $ref: '#/components/x-stackQL-resources/pagerules/methods/delete' + - $ref: '#/components/x-stackQL-resources/page_rules/methods/delete' replace: - - $ref: '#/components/x-stackQL-resources/pagerules/methods/update' + - $ref: '#/components/x-stackQL-resources/page_rules/methods/update' settings: id: cloudflare.page_rules.settings name: settings diff --git a/providers/src/cloudflare/v00.00.00000/services/pipelines.yaml b/providers/src/cloudflare/v00.00.00000/services/pipelines.yaml index 1aba0c33..e30fdc7b 100644 --- a/providers/src/cloudflare/v00.00.00000/services/pipelines.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/pipelines.yaml @@ -2800,10 +2800,10 @@ components: type: apiKey description: Used when interacting with the Origin CA certificates API. [View/change your key](https://developers.cloudflare.com/fundamentals/api/get-started/ca-keys/#viewchange-your-origin-ca-keys). x-stackQL-resources: - accounts_pipelines: - id: cloudflare.pipelines.accounts_pipelines - name: accounts_pipelines - title: Accounts Pipelines + pipelines: + id: cloudflare.pipelines.pipelines + name: pipelines + title: Pipelines methods: list: operation: @@ -2838,64 +2838,6 @@ components: } ' - get_by_account: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1pipelines~1{pipeline_name}/get' - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/accounts_pipelines/methods/get_by_account' - - $ref: '#/components/x-stackQL-resources/accounts_pipelines/methods/list' - insert: - - $ref: '#/components/x-stackQL-resources/accounts_pipelines/methods/create' - update: [] - delete: [] - replace: [] - v1_pipelines: - id: cloudflare.pipelines.v1_pipelines - name: v1_pipelines - title: V1 Pipelines - methods: - list: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1pipelines~1v1~1pipelines/get' - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result - create_v1: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1pipelines~1v1~1pipelines/post' - response: - mediaType: application/json - openAPIDocKey: '200' - get_by_account: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1pipelines~1v1~1pipelines~1{pipeline_id}/get' - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/v1_pipelines/methods/get_by_account' - - $ref: '#/components/x-stackQL-resources/v1_pipelines/methods/list' - insert: - - $ref: '#/components/x-stackQL-resources/v1_pipelines/methods/create_v1' - update: [] - delete: [] - replace: [] - pipelines: - id: cloudflare.pipelines.pipelines - name: pipelines - title: Pipelines - methods: delete_v1: operation: $ref: '#/paths/~1accounts~1{account_id}~1pipelines~1v1~1pipelines~1{pipeline_id}/delete' @@ -2917,6 +2859,13 @@ components: response: mediaType: application/json openAPIDocKey: '200' + get: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1pipelines~1{pipeline_name}/get' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result update: config: requestBodyTranslate: @@ -2944,14 +2893,54 @@ components: ' sqlVerbs: - select: [] - insert: [] + select: + - $ref: '#/components/x-stackQL-resources/pipelines/methods/get' + - $ref: '#/components/x-stackQL-resources/pipelines/methods/list' + insert: + - $ref: '#/components/x-stackQL-resources/pipelines/methods/create' update: [] delete: - $ref: '#/components/x-stackQL-resources/pipelines/methods/delete_v1' - $ref: '#/components/x-stackQL-resources/pipelines/methods/delete' replace: - $ref: '#/components/x-stackQL-resources/pipelines/methods/update' + v1_pipelines: + id: cloudflare.pipelines.v1_pipelines + name: v1_pipelines + title: V1 Pipelines + methods: + list: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1pipelines~1v1~1pipelines/get' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result + create_v1: + config: + requestBodyTranslate: + algorithm: naive + operation: + $ref: '#/paths/~1accounts~1{account_id}~1pipelines~1v1~1pipelines/post' + response: + mediaType: application/json + openAPIDocKey: '200' + get_by_account: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1pipelines~1v1~1pipelines~1{pipeline_id}/get' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result + sqlVerbs: + select: + - $ref: '#/components/x-stackQL-resources/v1_pipelines/methods/get_by_account' + - $ref: '#/components/x-stackQL-resources/v1_pipelines/methods/list' + insert: + - $ref: '#/components/x-stackQL-resources/v1_pipelines/methods/create_v1' + update: [] + delete: [] + replace: [] sinks: id: cloudflare.pipelines.sinks name: sinks diff --git a/providers/src/cloudflare/v00.00.00000/services/queues.yaml b/providers/src/cloudflare/v00.00.00000/services/queues.yaml index 907d380c..9225d72e 100644 --- a/providers/src/cloudflare/v00.00.00000/services/queues.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/queues.yaml @@ -2411,6 +2411,30 @@ components: response: mediaType: application/json openAPIDocKey: '200' + ack_messages: + config: + requestBodyTranslate: + algorithm: naive + operation: + $ref: '#/paths/~1accounts~1{account_id}~1queues~1{queue_id}~1messages~1ack/post' + response: + mediaType: application/json + openAPIDocKey: '200' + request: + mediaType: application/json + transform: + type: golang_template_json_v0.3.0 + body: '{ + + {{- $sep := "" -}} + + {{- if .acks }}{{ $sep }}"acks": {{ if eq (kindOf .acks) "string" }}{{ .acks }}{{ else }}{{ toJson .acks }}{{ end }}{{- $sep = "," -}}{{ end }} + + {{- if .retries }}{{ $sep }}"retries": {{ if eq (kindOf .retries) "string" }}{{ .retries }}{{ else }}{{ toJson .retries }}{{ end }}{{- $sep = "," -}}{{ end }} + + } + + ' batch: config: requestBodyTranslate: @@ -2444,6 +2468,30 @@ components: response: mediaType: application/json openAPIDocKey: '200' + ack_preview_messages: + config: + requestBodyTranslate: + algorithm: naive + operation: + $ref: '#/paths/~1accounts~1{account_id}~1queues~1{queue_id}~1messages~1preview~1ack/post' + response: + mediaType: application/json + openAPIDocKey: '200' + request: + mediaType: application/json + transform: + type: golang_template_json_v0.3.0 + body: '{ + + {{- $sep := "" -}} + + {{- if .acks }}{{ $sep }}"acks": {{ if eq (kindOf .acks) "string" }}{{ .acks }}{{ else }}{{ toJson .acks }}{{ end }}{{- $sep = "," -}}{{ end }} + + {{- if .retries }}{{ $sep }}"retries": {{ if eq (kindOf .retries) "string" }}{{ .retries }}{{ else }}{{ toJson .retries }}{{ end }}{{- $sep = "," -}}{{ end }} + + } + + ' pull: config: requestBodyTranslate: @@ -2557,76 +2605,6 @@ components: - $ref: '#/components/x-stackQL-resources/consumers/methods/delete' replace: - $ref: '#/components/x-stackQL-resources/consumers/methods/update' - messages_ack: - id: cloudflare.queues.messages_ack - name: messages_ack - title: Messages Ack - methods: - ack: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1queues~1{queue_id}~1messages~1ack/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .acks }}{{ $sep }}"acks": {{ if eq (kindOf .acks) "string" }}{{ .acks }}{{ else }}{{ toJson .acks }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .retries }}{{ $sep }}"retries": {{ if eq (kindOf .retries) "string" }}{{ .retries }}{{ else }}{{ toJson .retries }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: [] - update: [] - delete: [] - replace: [] - preview_ack: - id: cloudflare.queues.preview_ack - name: preview_ack - title: Preview Ack - methods: - ack: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1queues~1{queue_id}~1messages~1preview~1ack/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .acks }}{{ $sep }}"acks": {{ if eq (kindOf .acks) "string" }}{{ .acks }}{{ else }}{{ toJson .acks }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .retries }}{{ $sep }}"retries": {{ if eq (kindOf .retries) "string" }}{{ .retries }}{{ else }}{{ toJson .retries }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: [] - update: [] - delete: [] - replace: [] metrics: id: cloudflare.queues.metrics name: metrics diff --git a/providers/src/cloudflare/v00.00.00000/services/r2.yaml b/providers/src/cloudflare/v00.00.00000/services/r2.yaml index 387fa2e8..f833c7be 100644 --- a/providers/src/cloudflare/v00.00.00000/services/r2.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/r2.yaml @@ -2719,9 +2719,9 @@ paths: - super_slurper - connectivity_precheck method: target - /graphql/r2_operations_adaptive_groups: + /graphql/operations_adaptive_groups: post: - operationId: graphql-r2_operations_adaptive_groups-list + operationId: graphql-operations_adaptive_groups-list summary: Cloudflare R2 storage operation analytics for an account, grouped by bucket, operation type, region, and HTTP status description: Cloudflare R2 storage operation analytics for an account, grouped by bucket, operation type, region, and HTTP status. Per-tuple totals for request count, response bytes, and object size. x-stackQL-graphQL: @@ -4087,6 +4087,70 @@ components: response: mediaType: application/json openAPIDocKey: '200' + update_source_connectivity_precheck: + config: + requestBodyTranslate: + algorithm: naive + operation: + $ref: '#/paths/~1accounts~1{account_id}~1slurper~1source~1connectivity-precheck/put' + response: + mediaType: application/json + openAPIDocKey: '200' + request: + mediaType: application/json + transform: + type: golang_template_json_v0.3.0 + body: '{ + + {{- $sep := "" -}} + + {{- if .bucket }}{{ $sep }}"bucket": {{ toJson .bucket }}{{- $sep = "," -}}{{ end }} + + {{- if .endpoint }}{{ $sep }}"endpoint": {{ toJson .endpoint }}{{- $sep = "," -}}{{ end }} + + {{- if .keys }}{{ $sep }}"keys": {{ if eq (kindOf .keys) "string" }}{{ .keys }}{{ else }}{{ toJson .keys }}{{ end }}{{- $sep = "," -}}{{ end }} + + {{- if .pathPrefix }}{{ $sep }}"pathPrefix": {{ toJson .pathPrefix }}{{- $sep = "," -}}{{ end }} + + {{- if .region }}{{ $sep }}"region": {{ toJson .region }}{{- $sep = "," -}}{{ end }} + + {{- if .secret }}{{ $sep }}"secret": {{ if eq (kindOf .secret) "string" }}{{ .secret }}{{ else }}{{ toJson .secret }}{{ end }}{{- $sep = "," -}}{{ end }} + + {{- if .vendor }}{{ $sep }}"vendor": {{ toJson .vendor }}{{- $sep = "," -}}{{ end }} + + {{- if .jurisdiction }}{{ $sep }}"jurisdiction": {{ toJson .jurisdiction }}{{- $sep = "," -}}{{ end }} + + } + + ' + update_target_connectivity_precheck: + config: + requestBodyTranslate: + algorithm: naive + operation: + $ref: '#/paths/~1accounts~1{account_id}~1slurper~1target~1connectivity-precheck/put' + response: + mediaType: application/json + openAPIDocKey: '200' + request: + mediaType: application/json + transform: + type: golang_template_json_v0.3.0 + body: '{ + + {{- $sep := "" -}} + + {{- if .bucket }}{{ $sep }}"bucket": {{ toJson .bucket }}{{- $sep = "," -}}{{ end }} + + {{- if .jurisdiction }}{{ $sep }}"jurisdiction": {{ toJson .jurisdiction }}{{- $sep = "," -}}{{ end }} + + {{- if .secret }}{{ $sep }}"secret": {{ if eq (kindOf .secret) "string" }}{{ .secret }}{{ else }}{{ toJson .secret }}{{ end }}{{- $sep = "," -}}{{ end }} + + {{- if .vendor }}{{ $sep }}"vendor": {{ toJson .vendor }}{{- $sep = "," -}}{{ end }} + + } + + ' sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/buckets/methods/get' @@ -4628,100 +4692,14 @@ components: update: [] delete: [] replace: [] - source_connectivity_precheck: - id: cloudflare.r2.source_connectivity_precheck - name: source_connectivity_precheck - title: Source Connectivity Precheck - methods: - update_connectivity_precheck: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1slurper~1source~1connectivity-precheck/put' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .bucket }}{{ $sep }}"bucket": {{ toJson .bucket }}{{- $sep = "," -}}{{ end }} - - {{- if .endpoint }}{{ $sep }}"endpoint": {{ toJson .endpoint }}{{- $sep = "," -}}{{ end }} - - {{- if .keys }}{{ $sep }}"keys": {{ if eq (kindOf .keys) "string" }}{{ .keys }}{{ else }}{{ toJson .keys }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .pathPrefix }}{{ $sep }}"pathPrefix": {{ toJson .pathPrefix }}{{- $sep = "," -}}{{ end }} - - {{- if .region }}{{ $sep }}"region": {{ toJson .region }}{{- $sep = "," -}}{{ end }} - - {{- if .secret }}{{ $sep }}"secret": {{ if eq (kindOf .secret) "string" }}{{ .secret }}{{ else }}{{ toJson .secret }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .vendor }}{{ $sep }}"vendor": {{ toJson .vendor }}{{- $sep = "," -}}{{ end }} - - {{- if .jurisdiction }}{{ $sep }}"jurisdiction": {{ toJson .jurisdiction }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: [] - update: [] - delete: [] - replace: [] - target_connectivity_precheck: - id: cloudflare.r2.target_connectivity_precheck - name: target_connectivity_precheck - title: Target Connectivity Precheck - methods: - update_connectivity_precheck: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1slurper~1target~1connectivity-precheck/put' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .bucket }}{{ $sep }}"bucket": {{ toJson .bucket }}{{- $sep = "," -}}{{ end }} - - {{- if .jurisdiction }}{{ $sep }}"jurisdiction": {{ toJson .jurisdiction }}{{- $sep = "," -}}{{ end }} - - {{- if .secret }}{{ $sep }}"secret": {{ if eq (kindOf .secret) "string" }}{{ .secret }}{{ else }}{{ toJson .secret }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .vendor }}{{ $sep }}"vendor": {{ toJson .vendor }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] - insert: [] - update: [] - delete: [] - replace: [] - r2_operations_adaptive_groups: - id: cloudflare.r2.r2_operations_adaptive_groups - name: r2_operations_adaptive_groups - title: R2 Operations Adaptive Groups + operations_adaptive_groups: + id: cloudflare.r2.operations_adaptive_groups + name: operations_adaptive_groups + title: Operations Adaptive Groups methods: list: operation: - $ref: '#/paths/~1graphql~1r2_operations_adaptive_groups/post' + $ref: '#/paths/~1graphql~1operations_adaptive_groups/post' response: mediaType: application/json openAPIDocKey: '200' @@ -4733,7 +4711,7 @@ components: x-stackql-protocol: graphql sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/r2_operations_adaptive_groups/methods/list' + - $ref: '#/components/x-stackQL-resources/operations_adaptive_groups/methods/list' insert: [] update: [] delete: [] diff --git a/providers/src/cloudflare/v00.00.00000/services/r2_data_catalog.yaml b/providers/src/cloudflare/v00.00.00000/services/r2_data_catalog.yaml index 3cc9e351..9e297d87 100644 --- a/providers/src/cloudflare/v00.00.00000/services/r2_data_catalog.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/r2_data_catalog.yaml @@ -1597,12 +1597,12 @@ components: update: [] delete: [] replace: [] - r2_catalog_maintenance_configs: - id: cloudflare.r2_data_catalog.r2_catalog_maintenance_configs - name: r2_catalog_maintenance_configs - title: R2 Catalog Maintenance Configs + maintenance_configs: + id: cloudflare.r2_data_catalog.maintenance_configs + name: maintenance_configs + title: Maintenance Configs methods: - list_by_account: + list: operation: $ref: >- #/paths/~1accounts~1{account_id}~1r2-catalog~1{bucket_name}~1maintenance-configs/get @@ -1610,7 +1610,7 @@ components: mediaType: application/json openAPIDocKey: '200' objectKey: $.result - update_by_account: + update: config: requestBodyTranslate: algorithm: naive @@ -1622,11 +1622,10 @@ components: openAPIDocKey: '200' sqlVerbs: select: - - $ref: >- - #/components/x-stackQL-resources/r2_catalog_maintenance_configs/methods/list_by_account + - $ref: '#/components/x-stackQL-resources/maintenance_configs/methods/list' insert: - $ref: >- - #/components/x-stackQL-resources/r2_catalog_maintenance_configs/methods/update_by_account + #/components/x-stackQL-resources/maintenance_configs/methods/update update: [] delete: [] replace: [] diff --git a/providers/src/cloudflare/v00.00.00000/services/radar.yaml b/providers/src/cloudflare/v00.00.00000/services/radar.yaml index d459e9c1..042f53ed 100644 --- a/providers/src/cloudflare/v00.00.00000/services/radar.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/radar.yaml @@ -72829,30 +72829,18 @@ components: update: [] delete: [] replace: [] - bots_summary_user_agent: - id: cloudflare.radar.bots_summary_user_agent - name: bots_summary_user_agent - title: Bots Summary User Agent + ai_bots_summary: + id: cloudflare.radar.ai_bots_summary + name: ai_bots_summary + title: Ai Bots Summary methods: - list: + list_by_user_agent: operation: $ref: '#/paths/~1radar~1ai~1bots~1summary~1user_agent/get' response: mediaType: application/json openAPIDocKey: '200' objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/bots_summary_user_agent/methods/list' - insert: [] - update: [] - delete: [] - replace: [] - bots_summary_dimension_7adba9: - id: cloudflare.radar.bots_summary_dimension_7adba9 - name: bots_summary_dimension_7adba9 - title: Bots Summary Dimension 7adba9 - methods: get: operation: $ref: '#/paths/~1radar~1ai~1bots~1summary~1{dimension}/get' @@ -72862,7 +72850,8 @@ components: objectKey: $.result sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/bots_summary_dimension_7adba9/methods/get' + - $ref: '#/components/x-stackQL-resources/ai_bots_summary/methods/get' + - $ref: '#/components/x-stackQL-resources/ai_bots_summary/methods/list_by_user_agent' insert: [] update: [] delete: [] @@ -72886,30 +72875,18 @@ components: update: [] delete: [] replace: [] - bots_timeseries_groups_user_agent: - id: cloudflare.radar.bots_timeseries_groups_user_agent - name: bots_timeseries_groups_user_agent - title: Bots Timeseries Groups User Agent + ai_bots_timeseries_groups: + id: cloudflare.radar.ai_bots_timeseries_groups + name: ai_bots_timeseries_groups + title: Ai Bots Timeseries Groups methods: - list: + list_by_user_agent: operation: $ref: '#/paths/~1radar~1ai~1bots~1timeseries_groups~1user_agent/get' response: mediaType: application/json openAPIDocKey: '200' objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/bots_timeseries_groups_user_agent/methods/list' - insert: [] - update: [] - delete: [] - replace: [] - bots_timeseries_groups_dimension_5dbf28: - id: cloudflare.radar.bots_timeseries_groups_dimension_5dbf28 - name: bots_timeseries_groups_dimension_5dbf28 - title: Bots Timeseries Groups Dimension 5dbf28 - methods: get: operation: $ref: '#/paths/~1radar~1ai~1bots~1timeseries_groups~1{dimension}/get' @@ -72919,7 +72896,8 @@ components: objectKey: $.result sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/bots_timeseries_groups_dimension_5dbf28/methods/get' + - $ref: '#/components/x-stackQL-resources/ai_bots_timeseries_groups/methods/get' + - $ref: '#/components/x-stackQL-resources/ai_bots_timeseries_groups/methods/list_by_user_agent' insert: [] update: [] delete: [] @@ -74672,10 +74650,10 @@ components: update: [] delete: [] replace: [] - radar_bots: - id: cloudflare.radar.radar_bots - name: radar_bots - title: Radar Bots + bots: + id: cloudflare.radar.bots + name: bots + title: Bots methods: list: operation: @@ -74684,9 +74662,17 @@ components: mediaType: application/json openAPIDocKey: '200' objectKey: $.result.bots + get: + operation: + $ref: '#/paths/~1radar~1bots~1{bot_slug}/get' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/radar_bots/methods/list' + - $ref: '#/components/x-stackQL-resources/bots/methods/get' + - $ref: '#/components/x-stackQL-resources/bots/methods/list' insert: [] update: [] delete: [] @@ -74729,10 +74715,10 @@ components: update: [] delete: [] replace: [] - bots_summary_dimension_f85b26: - id: cloudflare.radar.bots_summary_dimension_f85b26 - name: bots_summary_dimension_f85b26 - title: Bots Summary Dimension F85b26 + bots_summary: + id: cloudflare.radar.bots_summary + name: bots_summary + title: Bots Summary methods: get: operation: @@ -74743,7 +74729,7 @@ components: objectKey: $.result sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/bots_summary_dimension_f85b26/methods/get' + - $ref: '#/components/x-stackQL-resources/bots_summary/methods/get' insert: [] update: [] delete: [] @@ -74767,10 +74753,10 @@ components: update: [] delete: [] replace: [] - bots_timeseries_groups_dimension_42beed: - id: cloudflare.radar.bots_timeseries_groups_dimension_42beed - name: bots_timeseries_groups_dimension_42beed - title: Bots Timeseries Groups Dimension 42beed + bots_timeseries_groups: + id: cloudflare.radar.bots_timeseries_groups + name: bots_timeseries_groups + title: Bots Timeseries Groups methods: get: operation: @@ -74781,26 +74767,7 @@ components: objectKey: $.result sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/bots_timeseries_groups_dimension_42beed/methods/get' - insert: [] - update: [] - delete: [] - replace: [] - bots: - id: cloudflare.radar.bots - name: bots - title: Bots - methods: - get: - operation: - $ref: '#/paths/~1radar~1bots~1{bot_slug}/get' - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/bots/methods/get' + - $ref: '#/components/x-stackQL-resources/bots_timeseries_groups/methods/get' insert: [] update: [] delete: [] diff --git a/providers/src/cloudflare/v00.00.00000/services/registrar.yaml b/providers/src/cloudflare/v00.00.00000/services/registrar.yaml index 66e7451c..b4c2d7e8 100644 --- a/providers/src/cloudflare/v00.00.00000/services/registrar.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/registrar.yaml @@ -1580,7 +1580,8 @@ components: ' sqlVerbs: - select: [] + select: + - $ref: '#/components/x-stackQL-resources/registrar/methods/create_domain_check' insert: [] update: [] delete: [] diff --git a/providers/src/cloudflare/v00.00.00000/services/resource_tagging.yaml b/providers/src/cloudflare/v00.00.00000/services/resource_tagging.yaml index d1eeb0dc..38c46e57 100644 --- a/providers/src/cloudflare/v00.00.00000/services/resource_tagging.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/resource_tagging.yaml @@ -207,7 +207,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/resourceTaggingTagKeysResponseCollection' + type: object + properties: + key: + type: string description: List tag keys response. 4XX: content: @@ -336,7 +339,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/resourceTaggingTagValuesResponseCollection' + type: object + properties: + value: + type: string description: List tag values response. 4XX: content: @@ -993,7 +999,10 @@ components: response: mediaType: application/json openAPIDocKey: '200' - objectKey: $.result + overrideMediaType: application/json + transform: + body: '[{{ range $i, $v := .result }}{{ if $i }},{{ end }}{"key": {{ toJson $v }}}{{ end }}]' + type: golang_template_json_v0.3.0 sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/keys/methods/list' @@ -1031,7 +1040,10 @@ components: response: mediaType: application/json openAPIDocKey: '200' - objectKey: $.result + overrideMediaType: application/json + transform: + body: '[{{ range $i, $v := .result }}{{ if $i }},{{ end }}{"value": {{ toJson $v }}}{{ end }}]' + type: golang_template_json_v0.3.0 sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/values/methods/get' diff --git a/providers/src/cloudflare/v00.00.00000/services/rulesets.yaml b/providers/src/cloudflare/v00.00.00000/services/rulesets.yaml index 3b76e506..c55aee3f 100644 --- a/providers/src/cloudflare/v00.00.00000/services/rulesets.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/rulesets.yaml @@ -5723,8 +5723,24 @@ components: response: mediaType: application/json openAPIDocKey: '204' + list_rules_by_tag_by_account: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1rulesets~1{ruleset_id}~1versions~1{ruleset_version}~1by_tag~1{rule_tag}/get' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result + list_rules_by_tag_by_zone: + operation: + $ref: '#/paths/~1zones~1{zone_id}~1rulesets~1{ruleset_id}~1versions~1{ruleset_version}~1by_tag~1{rule_tag}/get' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result sqlVerbs: select: + - $ref: '#/components/x-stackQL-resources/rulesets/methods/list_rules_by_tag_by_account' + - $ref: '#/components/x-stackQL-resources/rulesets/methods/list_rules_by_tag_by_zone' - $ref: '#/components/x-stackQL-resources/rulesets/methods/get_by_account' - $ref: '#/components/x-stackQL-resources/rulesets/methods/get_by_zone' - $ref: '#/components/x-stackQL-resources/rulesets/methods/list_by_account' @@ -6060,10 +6076,10 @@ components: - $ref: '#/components/x-stackQL-resources/rules/methods/delete_by_account' - $ref: '#/components/x-stackQL-resources/rules/methods/delete_by_zone' replace: [] - rulesets_versions: - id: cloudflare.rulesets.rulesets_versions - name: rulesets_versions - title: Rulesets Versions + versions: + id: cloudflare.rulesets.versions + name: versions + title: Versions methods: list_by_account: operation: @@ -6086,6 +6102,12 @@ components: mediaType: application/json openAPIDocKey: '200' objectKey: $.result + delete_by_account: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1rulesets~1{ruleset_id}~1versions~1{ruleset_version}/delete' + response: + mediaType: application/json + openAPIDocKey: '204' get_by_zone: operation: $ref: '#/paths/~1zones~1{zone_id}~1rulesets~1{ruleset_id}~1versions~1{ruleset_version}/get' @@ -6093,27 +6115,6 @@ components: mediaType: application/json openAPIDocKey: '200' objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/rulesets_versions/methods/get_by_account' - - $ref: '#/components/x-stackQL-resources/rulesets_versions/methods/get_by_zone' - - $ref: '#/components/x-stackQL-resources/rulesets_versions/methods/list_by_account' - - $ref: '#/components/x-stackQL-resources/rulesets_versions/methods/list_by_zone' - insert: [] - update: [] - delete: [] - replace: [] - versions: - id: cloudflare.rulesets.versions - name: versions - title: Versions - methods: - delete_by_account: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1rulesets~1{ruleset_id}~1versions~1{ruleset_version}/delete' - response: - mediaType: application/json - openAPIDocKey: '204' delete_by_zone: operation: $ref: '#/paths/~1zones~1{zone_id}~1rulesets~1{ruleset_id}~1versions~1{ruleset_version}/delete' @@ -6121,37 +6122,14 @@ components: mediaType: application/json openAPIDocKey: '204' sqlVerbs: - select: [] + select: + - $ref: '#/components/x-stackQL-resources/versions/methods/get_by_account' + - $ref: '#/components/x-stackQL-resources/versions/methods/get_by_zone' + - $ref: '#/components/x-stackQL-resources/versions/methods/list_by_account' + - $ref: '#/components/x-stackQL-resources/versions/methods/list_by_zone' insert: [] update: [] delete: - $ref: '#/components/x-stackQL-resources/versions/methods/delete_by_account' - $ref: '#/components/x-stackQL-resources/versions/methods/delete_by_zone' replace: [] - by_tag: - id: cloudflare.rulesets.by_tag - name: by_tag - title: By Tag - methods: - get_by_account: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1rulesets~1{ruleset_id}~1versions~1{ruleset_version}~1by_tag~1{rule_tag}/get' - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result - get_by_zone: - operation: - $ref: '#/paths/~1zones~1{zone_id}~1rulesets~1{ruleset_id}~1versions~1{ruleset_version}~1by_tag~1{rule_tag}/get' - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/by_tag/methods/get_by_account' - - $ref: '#/components/x-stackQL-resources/by_tag/methods/get_by_zone' - insert: [] - update: [] - delete: [] - replace: [] diff --git a/providers/src/cloudflare/v00.00.00000/services/security_center.yaml b/providers/src/cloudflare/v00.00.00000/services/security_center.yaml index 67fdacd2..c010fd0c 100644 --- a/providers/src/cloudflare/v00.00.00000/services/security_center.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/security_center.yaml @@ -2106,10 +2106,10 @@ components: - $ref: >- #/components/x-stackQL-resources/insights/methods/dismiss_by_account - $ref: '#/components/x-stackQL-resources/insights/methods/dismiss_by_zone' - audit_logs_6f0256: - id: cloudflare.security_center.audit_logs_6f0256 - name: audit_logs_6f0256 - title: Audit Logs 6f0256 + audit_logs: + id: cloudflare.security_center.audit_logs + name: audit_logs + title: Audit Logs methods: list_by_account: operation: @@ -2119,19 +2119,6 @@ components: mediaType: application/json openAPIDocKey: '200' objectKey: $.result - sqlVerbs: - select: - - $ref: >- - #/components/x-stackQL-resources/audit_logs_6f0256/methods/list_by_account - insert: [] - update: [] - delete: [] - replace: [] - audit_logs_bff19a: - id: cloudflare.security_center.audit_logs_bff19a - name: audit_logs_bff19a - title: Audit Logs Bff19a - methods: list_by_zone: operation: $ref: >- @@ -2140,10 +2127,31 @@ components: mediaType: application/json openAPIDocKey: '200' objectKey: $.result + list_by_account_issue: + operation: + $ref: >- + #/paths/~1accounts~1{account_id}~1security-center~1insights~1{issue_id}~1audit-log/get + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result + list_by_zone_issue: + operation: + $ref: >- + #/paths/~1zones~1{zone_id}~1security-center~1insights~1{issue_id}~1audit-log/get + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result sqlVerbs: select: - $ref: >- - #/components/x-stackQL-resources/audit_logs_bff19a/methods/list_by_zone + #/components/x-stackQL-resources/audit_logs/methods/list_by_account_issue + - $ref: >- + #/components/x-stackQL-resources/audit_logs/methods/list_by_zone_issue + - $ref: >- + #/components/x-stackQL-resources/audit_logs/methods/list_by_account + - $ref: '#/components/x-stackQL-resources/audit_logs/methods/list_by_zone' insert: [] update: [] delete: [] @@ -2284,48 +2292,6 @@ components: update: [] delete: [] replace: [] - audit_logs_8c2f64: - id: cloudflare.security_center.audit_logs_8c2f64 - name: audit_logs_8c2f64 - title: Audit Logs 8c2f64 - methods: - list_by_account: - operation: - $ref: >- - #/paths/~1accounts~1{account_id}~1security-center~1insights~1{issue_id}~1audit-log/get - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result - sqlVerbs: - select: - - $ref: >- - #/components/x-stackQL-resources/audit_logs_8c2f64/methods/list_by_account - insert: [] - update: [] - delete: [] - replace: [] - audit_logs_e60d54: - id: cloudflare.security_center.audit_logs_e60d54 - name: audit_logs_e60d54 - title: Audit Logs E60d54 - methods: - list_by_zone: - operation: - $ref: >- - #/paths/~1zones~1{zone_id}~1security-center~1insights~1{issue_id}~1audit-log/get - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result - sqlVerbs: - select: - - $ref: >- - #/components/x-stackQL-resources/audit_logs_e60d54/methods/list_by_zone - insert: [] - update: [] - delete: [] - replace: [] classification: id: cloudflare.security_center.classification name: classification diff --git a/providers/src/cloudflare/v00.00.00000/services/security_txt.yaml b/providers/src/cloudflare/v00.00.00000/services/security_txt.yaml index 0146aadd..699b6b85 100644 --- a/providers/src/cloudflare/v00.00.00000/services/security_txt.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/security_txt.yaml @@ -302,10 +302,10 @@ components: type: apiKey description: Used when interacting with the Origin CA certificates API. [View/change your key](https://developers.cloudflare.com/fundamentals/api/get-started/ca-keys/#viewchange-your-origin-ca-keys). x-stackQL-resources: - securitytxt: - id: cloudflare.security_txt.securitytxt - name: securitytxt - title: Securitytxt + security_txt: + id: cloudflare.security_txt.security_txt + name: security_txt + title: Security Txt methods: delete: operation: @@ -360,10 +360,10 @@ components: ' sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/securitytxt/methods/list' + - $ref: '#/components/x-stackQL-resources/security_txt/methods/list' insert: [] update: [] delete: - - $ref: '#/components/x-stackQL-resources/securitytxt/methods/delete' + - $ref: '#/components/x-stackQL-resources/security_txt/methods/delete' replace: - - $ref: '#/components/x-stackQL-resources/securitytxt/methods/update' + - $ref: '#/components/x-stackQL-resources/security_txt/methods/update' diff --git a/providers/src/cloudflare/v00.00.00000/services/speed.yaml b/providers/src/cloudflare/v00.00.00000/services/speed.yaml index d42f6a36..a66130fc 100644 --- a/providers/src/cloudflare/v00.00.00000/services/speed.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/speed.yaml @@ -1249,10 +1249,10 @@ components: update: [] delete: [] replace: [] - speed_api_pages: - id: cloudflare.speed.speed_api_pages - name: speed_api_pages - title: Speed Api Pages + api_pages: + id: cloudflare.speed.api_pages + name: api_pages + title: Api Pages methods: list_by_zone: operation: @@ -1263,8 +1263,7 @@ components: objectKey: $.result sqlVerbs: select: - - $ref: >- - #/components/x-stackQL-resources/speed_api_pages/methods/list_by_zone + - $ref: '#/components/x-stackQL-resources/api_pages/methods/list_by_zone' insert: [] update: [] delete: [] diff --git a/providers/src/cloudflare/v00.00.00000/services/ssl.yaml b/providers/src/cloudflare/v00.00.00000/services/ssl.yaml index 6e478647..b15cd6c8 100644 --- a/providers/src/cloudflare/v00.00.00000/services/ssl.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/ssl.yaml @@ -38,7 +38,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/tlsCertificatesAndHostnamesCertificateAnalyzeResponse' + type: object + properties: + contents: + type: string description: Analyze Certificate response 4XX: content: @@ -1986,8 +1989,13 @@ components: response: mediaType: application/json openAPIDocKey: '200' + overrideMediaType: application/json + transform: + body: '[{"contents": {{ toJson .result }}}]' + type: golang_template_json_v0.3.0 sqlVerbs: - select: [] + select: + - $ref: '#/components/x-stackQL-resources/ssl/methods/create_analyze' insert: [] update: [] delete: [] diff --git a/providers/src/cloudflare/v00.00.00000/services/token_validation.yaml b/providers/src/cloudflare/v00.00.00000/services/token_validation.yaml index 757c6d02..0c0848cd 100644 --- a/providers/src/cloudflare/v00.00.00000/services/token_validation.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/token_validation.yaml @@ -1806,6 +1806,24 @@ components: response: mediaType: application/json openAPIDocKey: '200' + bulk_edit: + config: + requestBodyTranslate: + algorithm: naive + operation: + $ref: '#/paths/~1zones~1{zone_id}~1token_validation~1rules~1bulk/patch' + response: + mediaType: application/json + openAPIDocKey: '200' + bulk_create: + config: + requestBodyTranslate: + algorithm: naive + operation: + $ref: '#/paths/~1zones~1{zone_id}~1token_validation~1rules~1bulk/post' + response: + mediaType: application/json + openAPIDocKey: '200' preview: config: requestBodyTranslate: @@ -1888,34 +1906,3 @@ components: delete: - $ref: '#/components/x-stackQL-resources/rules/methods/delete' replace: [] - bulk: - id: cloudflare.token_validation.bulk - name: bulk - title: Bulk - methods: - token_validation_rules_bulk_edit: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1zones~1{zone_id}~1token_validation~1rules~1bulk/patch' - response: - mediaType: application/json - openAPIDocKey: '200' - token_validation_rules_bulk_create: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1zones~1{zone_id}~1token_validation~1rules~1bulk/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/bulk/methods/token_validation_rules_bulk_create' - update: - - $ref: '#/components/x-stackQL-resources/bulk/methods/token_validation_rules_bulk_edit' - delete: [] - replace: [] diff --git a/providers/src/cloudflare/v00.00.00000/services/vectorize.yaml b/providers/src/cloudflare/v00.00.00000/services/vectorize.yaml index 9b062175..4a070f1d 100644 --- a/providers/src/cloudflare/v00.00.00000/services/vectorize.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/vectorize.yaml @@ -2852,12 +2852,12 @@ components: delete: - $ref: '#/components/x-stackQL-resources/vectorize_indexes/methods/vectorize_deprecated_delete_vectorize_index' replace: [] - vectorize: - id: cloudflare.vectorize.vectorize - name: vectorize - title: Vectorize + indexes: + id: cloudflare.vectorize.indexes + name: indexes + title: Indexes methods: - update_indexes: + update_index: config: requestBodyTranslate: algorithm: naive @@ -2866,17 +2866,6 @@ components: response: mediaType: application/json openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: [] - update: [] - delete: [] - replace: [] - indexes: - id: cloudflare.vectorize.indexes - name: indexes - title: Indexes - methods: create_delete_by_ids: config: requestBodyTranslate: @@ -3062,7 +3051,8 @@ components: mediaType: application/json openAPIDocKey: '200' sqlVerbs: - select: [] + select: + - $ref: '#/components/x-stackQL-resources/indexes/methods/query_v2' insert: [] update: [] delete: [] diff --git a/providers/src/cloudflare/v00.00.00000/services/workers.yaml b/providers/src/cloudflare/v00.00.00000/services/workers.yaml index 64ae7d5d..53d12766 100644 --- a/providers/src/cloudflare/v00.00.00000/services/workers.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/workers.yaml @@ -12587,9 +12587,9 @@ paths: resource_chain: - routes method: update - /graphql/workers_invocations: + /graphql/invocations: post: - operationId: graphql-workers_invocations-list + operationId: graphql-invocations-list summary: Cloudflare Workers invocation analytics for an account, grouped by script, status, and serving colo description: Cloudflare Workers invocation analytics for an account, grouped by script, status, and serving colo. Per-tuple totals for requests, errors, CPU time, duration (GB-s), subrequests, and response bytes. x-stackQL-graphQL: @@ -17860,49 +17860,18 @@ components: update: [] delete: [] replace: [] - builds_builds: - id: cloudflare.workers.builds_builds - name: builds_builds - title: Builds Builds - methods: - list_by_account: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1builds~1builds/get' - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/builds_builds/methods/list_by_account' - insert: [] - update: [] - delete: [] - replace: [] - latest: - id: cloudflare.workers.latest - name: latest - title: Latest + builds: + id: cloudflare.workers.builds + name: builds + title: Builds methods: list: operation: - $ref: '#/paths/~1accounts~1{account_id}~1builds~1builds~1latest/get' + $ref: '#/paths/~1accounts~1{account_id}~1builds~1builds/get' response: mediaType: application/json openAPIDocKey: '200' objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/latest/methods/list' - insert: [] - update: [] - delete: [] - replace: [] - builds: - id: cloudflare.workers.builds - name: builds - title: Builds - methods: get: operation: $ref: '#/paths/~1accounts~1{account_id}~1builds~1builds~1{build_uuid}/get' @@ -17942,14 +17911,42 @@ components: } ' + list_by_script: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1builds~1workers~1{external_script_id}~1builds/get' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/builds/methods/get' + - $ref: '#/components/x-stackQL-resources/builds/methods/list_by_script' + - $ref: '#/components/x-stackQL-resources/builds/methods/list' insert: - $ref: '#/components/x-stackQL-resources/builds/methods/create_manual_build' update: [] delete: [] replace: [] + latest: + id: cloudflare.workers.latest + name: latest + title: Latest + methods: + list: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1builds~1builds~1latest/get' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result + sqlVerbs: + select: + - $ref: '#/components/x-stackQL-resources/latest/methods/list' + insert: [] + update: [] + delete: [] + replace: [] logs: id: cloudflare.workers.logs name: logs @@ -18205,25 +18202,6 @@ components: delete: - $ref: '#/components/x-stackQL-resources/environment_variables/methods/delete_environment_variable' replace: [] - workers_builds: - id: cloudflare.workers.workers_builds - name: workers_builds - title: Workers Builds - methods: - list_by_account: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1builds~1workers~1{external_script_id}~1builds/get' - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/workers_builds/methods/list_by_account' - insert: [] - update: [] - delete: [] - replace: [] deploy_hooks: id: cloudflare.workers.deploy_hooks name: deploy_hooks @@ -18630,13 +18608,27 @@ components: response: mediaType: application/json openAPIDocKey: '200' - list: + list_by_dispatch_namespace: operation: $ref: '#/paths/~1accounts~1{account_id}~1workers~1dispatch~1namespaces~1{dispatch_namespace}~1scripts/get' response: mediaType: application/json openAPIDocKey: '200' objectKey: $.result + list: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1workers~1scripts/get' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result + search: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1workers~1scripts-search/get' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result delete: operation: $ref: '#/paths/~1accounts~1{account_id}~1workers~1scripts~1{script_name}/delete' @@ -18686,8 +18678,9 @@ components: ' sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/scripts/methods/list' + - $ref: '#/components/x-stackQL-resources/scripts/methods/list_by_dispatch_namespace' - $ref: '#/components/x-stackQL-resources/scripts/methods/get' + - $ref: '#/components/x-stackQL-resources/scripts/methods/list' insert: [] update: [] delete: @@ -18926,44 +18919,6 @@ components: update: [] delete: [] replace: [] - workers_scripts: - id: cloudflare.workers.workers_scripts - name: workers_scripts - title: Workers Scripts - methods: - list: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1workers~1scripts/get' - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/workers_scripts/methods/list' - insert: [] - update: [] - delete: [] - replace: [] - workers_scripts_search: - id: cloudflare.workers.workers_scripts_search - name: workers_scripts_search - title: Workers Scripts Search - methods: - list: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1workers~1scripts-search/get' - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/workers_scripts_search/methods/list' - insert: [] - update: [] - delete: [] - replace: [] content: id: cloudflare.workers.content name: content @@ -19137,12 +19092,12 @@ components: delete: [] replace: - $ref: '#/components/x-stackQL-resources/schedules/methods/update' - scripts_script_settings: - id: cloudflare.workers.scripts_script_settings - name: scripts_script_settings - title: Scripts Script Settings + scripts_settings: + id: cloudflare.workers.scripts_settings + name: scripts_settings + title: Scripts Settings methods: - list_by_account: + get: operation: $ref: '#/paths/~1accounts~1{account_id}~1workers~1scripts~1{script_name}~1script-settings/get' response: @@ -19151,7 +19106,7 @@ components: objectKey: $.result sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/scripts_script_settings/methods/list_by_account' + - $ref: '#/components/x-stackQL-resources/scripts_settings/methods/get' insert: [] update: [] delete: [] @@ -19338,25 +19293,25 @@ components: - $ref: '#/components/x-stackQL-resources/script_and_version_settings/methods/edit' delete: [] replace: [] - subdomain: - id: cloudflare.workers.subdomain - name: subdomain - title: Subdomain + subdomains: + id: cloudflare.workers.subdomains + name: subdomains + title: Subdomains methods: - delete: + delete_script_subdomain: operation: $ref: '#/paths/~1accounts~1{account_id}~1workers~1scripts~1{script_name}~1subdomain/delete' response: mediaType: application/json openAPIDocKey: '200' - list: + get_script_subdomain: operation: $ref: '#/paths/~1accounts~1{account_id}~1workers~1scripts~1{script_name}~1subdomain/get' response: mediaType: application/json openAPIDocKey: '200' objectKey: $.result - create: + create_script_subdomain: config: requestBodyTranslate: algorithm: naive @@ -19365,15 +19320,40 @@ components: response: mediaType: application/json openAPIDocKey: '200' + delete: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1workers~1subdomain/delete' + response: + mediaType: application/json + openAPIDocKey: '204' + list: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1workers~1subdomain/get' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result + update: + config: + requestBodyTranslate: + algorithm: naive + operation: + $ref: '#/paths/~1accounts~1{account_id}~1workers~1subdomain/put' + response: + mediaType: application/json + openAPIDocKey: '200' sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/subdomain/methods/list' + - $ref: '#/components/x-stackQL-resources/subdomains/methods/get_script_subdomain' + - $ref: '#/components/x-stackQL-resources/subdomains/methods/list' insert: - - $ref: '#/components/x-stackQL-resources/subdomain/methods/create' + - $ref: '#/components/x-stackQL-resources/subdomains/methods/create_script_subdomain' update: [] delete: - - $ref: '#/components/x-stackQL-resources/subdomain/methods/delete' - replace: [] + - $ref: '#/components/x-stackQL-resources/subdomains/methods/delete_script_subdomain' + - $ref: '#/components/x-stackQL-resources/subdomains/methods/delete' + replace: + - $ref: '#/components/x-stackQL-resources/subdomains/methods/update' tail: id: cloudflare.workers.tail name: tail @@ -19547,55 +19527,19 @@ components: update: [] delete: [] replace: [] - subdomains: - id: cloudflare.workers.subdomains - name: subdomains - title: Subdomains + versions: + id: cloudflare.workers.versions + name: versions + title: Versions methods: - delete: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1workers~1subdomain/delete' - response: - mediaType: application/json - openAPIDocKey: '204' list: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1workers~1subdomain/get' - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result - update: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1workers~1subdomain/put' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/subdomains/methods/list' - insert: [] - update: [] - delete: - - $ref: '#/components/x-stackQL-resources/subdomains/methods/delete' - replace: - - $ref: '#/components/x-stackQL-resources/subdomains/methods/update' - workers_versions: - id: cloudflare.workers.workers_versions - name: workers_versions - title: Workers Versions - methods: - list_by_account: operation: $ref: '#/paths/~1accounts~1{account_id}~1workers~1workers~1{worker_id}~1versions/get' response: mediaType: application/json openAPIDocKey: '200' objectKey: $.result - create_by_account: + create: config: requestBodyTranslate: algorithm: naive @@ -19639,7 +19583,7 @@ components: } ' - get_by_account: + get: operation: $ref: '#/paths/~1accounts~1{account_id}~1workers~1workers~1{worker_id}~1versions~1{version_id}/get' response: @@ -19648,10 +19592,10 @@ components: objectKey: $.result sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/workers_versions/methods/get_by_account' - - $ref: '#/components/x-stackQL-resources/workers_versions/methods/list_by_account' + - $ref: '#/components/x-stackQL-resources/versions/methods/get' + - $ref: '#/components/x-stackQL-resources/versions/methods/list' insert: - - $ref: '#/components/x-stackQL-resources/workers_versions/methods/create_by_account' + - $ref: '#/components/x-stackQL-resources/versions/methods/create' update: [] delete: [] replace: [] @@ -19709,14 +19653,14 @@ components: - $ref: '#/components/x-stackQL-resources/routes/methods/delete' replace: - $ref: '#/components/x-stackQL-resources/routes/methods/update' - workers_invocations: - id: cloudflare.workers.workers_invocations - name: workers_invocations - title: Workers Invocations + invocations: + id: cloudflare.workers.invocations + name: invocations + title: Invocations methods: list: operation: - $ref: '#/paths/~1graphql~1workers_invocations/post' + $ref: '#/paths/~1graphql~1invocations/post' response: mediaType: application/json openAPIDocKey: '200' @@ -19728,7 +19672,7 @@ components: x-stackql-protocol: graphql sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/workers_invocations/methods/list' + - $ref: '#/components/x-stackQL-resources/invocations/methods/list' insert: [] update: [] delete: [] diff --git a/providers/src/cloudflare/v00.00.00000/services/workflows.yaml b/providers/src/cloudflare/v00.00.00000/services/workflows.yaml index 50491817..2cf3a2f9 100644 --- a/providers/src/cloudflare/v00.00.00000/services/workflows.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/workflows.yaml @@ -3839,6 +3839,32 @@ components: mediaType: application/json openAPIDocKey: '200' objectKey: $.result + create: + config: + requestBodyTranslate: + algorithm: naive + operation: + $ref: '#/paths/~1accounts~1{account_id}~1workflows~1{workflow_name}~1instances/post' + response: + mediaType: application/json + openAPIDocKey: '200' + request: + mediaType: application/json + transform: + type: golang_template_json_v0.3.0 + body: '{ + + {{- $sep := "" -}} + + {{- if .instance_id }}{{ $sep }}"instance_id": {{ toJson .instance_id }}{{- $sep = "," -}}{{ end }} + + {{- if .instance_retention }}{{ $sep }}"instance_retention": {{ if eq (kindOf .instance_retention) "string" }}{{ .instance_retention }}{{ else }}{{ toJson .instance_retention }}{{ end }}{{- $sep = "," -}}{{ end }} + + {{- if .params }}{{ $sep }}"params": {{ if eq (kindOf .params) "string" }}{{ .params }}{{ else }}{{ toJson .params }}{{ end }}{{- $sep = "," -}}{{ end }} + + } + + ' batch: config: requestBodyTranslate: @@ -3883,45 +3909,8 @@ components: select: - $ref: '#/components/x-stackQL-resources/instances/methods/get' - $ref: '#/components/x-stackQL-resources/instances/methods/list' - insert: [] - update: [] - delete: [] - replace: [] - workflows_instances: - id: cloudflare.workflows.workflows_instances - name: workflows_instances - title: Workflows Instances - methods: - create_by_account: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1workflows~1{workflow_name}~1instances/post' - response: - mediaType: application/json - openAPIDocKey: '200' - request: - mediaType: application/json - transform: - type: golang_template_json_v0.3.0 - body: '{ - - {{- $sep := "" -}} - - {{- if .instance_id }}{{ $sep }}"instance_id": {{ toJson .instance_id }}{{- $sep = "," -}}{{ end }} - - {{- if .instance_retention }}{{ $sep }}"instance_retention": {{ if eq (kindOf .instance_retention) "string" }}{{ .instance_retention }}{{ else }}{{ toJson .instance_retention }}{{ end }}{{- $sep = "," -}}{{ end }} - - {{- if .params }}{{ $sep }}"params": {{ if eq (kindOf .params) "string" }}{{ .params }}{{ else }}{{ toJson .params }}{{ end }}{{- $sep = "," -}}{{ end }} - - } - - ' - sqlVerbs: - select: [] insert: - - $ref: '#/components/x-stackQL-resources/workflows_instances/methods/create_by_account' + - $ref: '#/components/x-stackQL-resources/instances/methods/create' update: [] delete: [] replace: [] diff --git a/providers/src/cloudflare/v00.00.00000/services/zero_trust.yaml b/providers/src/cloudflare/v00.00.00000/services/zero_trust.yaml index c2919e55..2af6735b 100644 --- a/providers/src/cloudflare/v00.00.00000/services/zero_trust.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/zero_trust.yaml @@ -10218,26 +10218,10 @@ paths: content: application/json: schema: - properties: - errors: - items: - $ref: '#/components/schemas/teamsDevicesV4ResponseMessage' - type: array - messages: - items: - $ref: '#/components/schemas/teamsDevicesV4ResponseMessage' - type: array - result: - $ref: '#/components/schemas/teamsDevicesOverrideCodes' - success: - description: Whether the API call was successful. - type: boolean - required: - - result - - success - - errors - - messages type: object + properties: + contents: + type: string description: Get admin override codes for a registration response. security: - api_token: [] @@ -10981,7 +10965,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/teamsDevicesOverrideCodesResponse' + type: object + properties: + contents: + type: string description: Get an admin override code for a device response. 4XX: content: @@ -46334,6 +46321,22 @@ components: readOnly: true type: string x-stainless-terraform-configurability: computed + stackqlDlpDatasetsUploadVersionBody: + type: object + required: + - value + properties: + value: + format: binary + type: string + stackqlDlpDatasetsUploadDatasetColumnBody: + type: object + required: + - value + properties: + value: + format: binary + type: string securitySchemes: api_email: in: header @@ -47893,6 +47896,12 @@ components: response: mediaType: application/json openAPIDocKey: '200' + revoke_physical_device: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1devices~1physical-devices~1{device_id}~1revoke/post' + response: + mediaType: application/json + openAPIDocKey: '200' delete_policy: operation: $ref: '#/paths/~1accounts~1{account_id}~1devices~1policy~1{policy_id}/delete' @@ -47965,6 +47974,15 @@ components: } ' + revoke: + config: + requestBodyTranslate: + algorithm: naive + operation: + $ref: '#/paths/~1accounts~1{account_id}~1devices~1revoke/post' + response: + mediaType: application/json + openAPIDocKey: '200' unrevoke: config: requestBodyTranslate: @@ -48008,23 +48026,6 @@ components: update: [] delete: [] replace: [] - physical_devices_revoke: - id: cloudflare.zero_trust.physical_devices_revoke - name: physical_devices_revoke - title: Physical Devices Revoke - methods: - revoke_by_account: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1devices~1physical-devices~1{device_id}~1revoke/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: [] - update: [] - delete: [] - replace: [] devices_policies: id: cloudflare.zero_trust.devices_policies name: devices_policies @@ -48206,10 +48207,10 @@ components: update: [] delete: [] replace: [] - excludes_9e6eed: - id: cloudflare.zero_trust.excludes_9e6eed - name: excludes_9e6eed - title: Excludes 9e6eed + excludes: + id: cloudflare.zero_trust.excludes + name: excludes + title: Excludes methods: list_by_account: operation: @@ -48218,19 +48219,7 @@ components: mediaType: application/json openAPIDocKey: '200' objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/excludes_9e6eed/methods/list_by_account' - insert: [] - update: [] - delete: [] - replace: [] - exclude: - id: cloudflare.zero_trust.exclude - name: exclude - title: Exclude - methods: - devices_set_split_tunnel_exclude_list: + set: config: requestBodyTranslate: algorithm: naive @@ -48239,7 +48228,14 @@ components: response: mediaType: application/json openAPIDocKey: '200' - devices_set_split_tunnel_exclude_list_for_a_device_settings_policy: + list_by_policy: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1devices~1policy~1{policy_id}~1exclude/get' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result + set_by_policy: config: requestBodyTranslate: algorithm: naive @@ -48249,17 +48245,19 @@ components: mediaType: application/json openAPIDocKey: '200' sqlVerbs: - select: [] + select: + - $ref: '#/components/x-stackQL-resources/excludes/methods/list_by_policy' + - $ref: '#/components/x-stackQL-resources/excludes/methods/list_by_account' insert: [] update: [] delete: [] replace: - - $ref: '#/components/x-stackQL-resources/exclude/methods/devices_set_split_tunnel_exclude_list_for_a_device_settings_policy' - - $ref: '#/components/x-stackQL-resources/exclude/methods/devices_set_split_tunnel_exclude_list' - fallback_domains_f560de: - id: cloudflare.zero_trust.fallback_domains_f560de - name: fallback_domains_f560de - title: Fallback Domains F560de + - $ref: '#/components/x-stackQL-resources/excludes/methods/set_by_policy' + - $ref: '#/components/x-stackQL-resources/excludes/methods/set' + fallback_domains: + id: cloudflare.zero_trust.fallback_domains + name: fallback_domains + title: Fallback Domains methods: list_by_account: operation: @@ -48268,19 +48266,7 @@ components: mediaType: application/json openAPIDocKey: '200' objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/fallback_domains_f560de/methods/list_by_account' - insert: [] - update: [] - delete: [] - replace: [] - fallback_domains: - id: cloudflare.zero_trust.fallback_domains - name: fallback_domains - title: Fallback Domains - methods: - devices_set_local_domain_fallback_list: + set: config: requestBodyTranslate: algorithm: naive @@ -48289,7 +48275,14 @@ components: response: mediaType: application/json openAPIDocKey: '200' - devices_set_local_domain_fallback_list_for_a_device_settings_policy: + list_by_policy: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1devices~1policy~1{policy_id}~1fallback_domains/get' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result + set_by_policy: config: requestBodyTranslate: algorithm: naive @@ -48299,17 +48292,19 @@ components: mediaType: application/json openAPIDocKey: '200' sqlVerbs: - select: [] + select: + - $ref: '#/components/x-stackQL-resources/fallback_domains/methods/list_by_policy' + - $ref: '#/components/x-stackQL-resources/fallback_domains/methods/list_by_account' insert: [] update: [] delete: [] replace: - - $ref: '#/components/x-stackQL-resources/fallback_domains/methods/devices_set_local_domain_fallback_list_for_a_device_settings_policy' - - $ref: '#/components/x-stackQL-resources/fallback_domains/methods/devices_set_local_domain_fallback_list' - includes_73882e: - id: cloudflare.zero_trust.includes_73882e - name: includes_73882e - title: Includes 73882e + - $ref: '#/components/x-stackQL-resources/fallback_domains/methods/set_by_policy' + - $ref: '#/components/x-stackQL-resources/fallback_domains/methods/set' + includes: + id: cloudflare.zero_trust.includes + name: includes + title: Includes methods: list_by_account: operation: @@ -48318,19 +48313,7 @@ components: mediaType: application/json openAPIDocKey: '200' objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/includes_73882e/methods/list_by_account' - insert: [] - update: [] - delete: [] - replace: [] - include: - id: cloudflare.zero_trust.include - name: include - title: Include - methods: - devices_set_split_tunnel_include_list: + set: config: requestBodyTranslate: algorithm: naive @@ -48339,80 +48322,32 @@ components: response: mediaType: application/json openAPIDocKey: '200' - devices_set_split_tunnel_include_list_for_a_device_settings_policy: - config: - requestBodyTranslate: - algorithm: naive + list_by_policy: operation: - $ref: '#/paths/~1accounts~1{account_id}~1devices~1policy~1{policy_id}~1include/put' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: [] - update: [] - delete: [] - replace: - - $ref: '#/components/x-stackQL-resources/include/methods/devices_set_split_tunnel_include_list_for_a_device_settings_policy' - - $ref: '#/components/x-stackQL-resources/include/methods/devices_set_split_tunnel_include_list' - excludes_26edfa: - id: cloudflare.zero_trust.excludes_26edfa - name: excludes_26edfa - title: Excludes 26edfa - methods: - list_by_account: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1devices~1policy~1{policy_id}~1exclude/get' - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/excludes_26edfa/methods/list_by_account' - insert: [] - update: [] - delete: [] - replace: [] - fallback_domains_97f458: - id: cloudflare.zero_trust.fallback_domains_97f458 - name: fallback_domains_97f458 - title: Fallback Domains 97f458 - methods: - list_by_account: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1devices~1policy~1{policy_id}~1fallback_domains/get' + $ref: '#/paths/~1accounts~1{account_id}~1devices~1policy~1{policy_id}~1include/get' response: mediaType: application/json openAPIDocKey: '200' objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/fallback_domains_97f458/methods/list_by_account' - insert: [] - update: [] - delete: [] - replace: [] - includes_11848d: - id: cloudflare.zero_trust.includes_11848d - name: includes_11848d - title: Includes 11848d - methods: - list_by_account: + set_by_policy: + config: + requestBodyTranslate: + algorithm: naive operation: - $ref: '#/paths/~1accounts~1{account_id}~1devices~1policy~1{policy_id}~1include/get' + $ref: '#/paths/~1accounts~1{account_id}~1devices~1policy~1{policy_id}~1include/put' response: mediaType: application/json openAPIDocKey: '200' - objectKey: $.result sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/includes_11848d/methods/list_by_account' + - $ref: '#/components/x-stackQL-resources/includes/methods/list_by_policy' + - $ref: '#/components/x-stackQL-resources/includes/methods/list_by_account' insert: [] update: [] delete: [] - replace: [] + replace: + - $ref: '#/components/x-stackQL-resources/includes/methods/set_by_policy' + - $ref: '#/components/x-stackQL-resources/includes/methods/set' posture: id: cloudflare.zero_trust.posture name: posture @@ -48613,6 +48548,30 @@ components: } ' + create_entry: + config: + requestBodyTranslate: + algorithm: naive + operation: + $ref: '#/paths/~1accounts~1{account_id}~1dlp~1entries~1integration/post' + response: + mediaType: application/json + openAPIDocKey: '200' + delete_entry: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1dlp~1entries~1integration~1{entry_id}/delete' + response: + mediaType: application/json + openAPIDocKey: '200' + update_entry: + config: + requestBodyTranslate: + algorithm: naive + operation: + $ref: '#/paths/~1accounts~1{account_id}~1dlp~1entries~1integration~1{entry_id}/put' + response: + mediaType: application/json + openAPIDocKey: '200' update: config: requestBodyTranslate: @@ -48624,11 +48583,14 @@ components: openAPIDocKey: '200' sqlVerbs: select: [] - insert: [] + insert: + - $ref: '#/components/x-stackQL-resources/integrations/methods/create_entry' update: - $ref: '#/components/x-stackQL-resources/integrations/methods/edit' - delete: [] + delete: + - $ref: '#/components/x-stackQL-resources/integrations/methods/delete_entry' replace: + - $ref: '#/components/x-stackQL-resources/integrations/methods/update_entry' - $ref: '#/components/x-stackQL-resources/integrations/methods/update' registrations: id: cloudflare.zero_trust.registrations @@ -48695,7 +48657,10 @@ components: response: mediaType: application/json openAPIDocKey: '200' - objectKey: $.result + overrideMediaType: application/json + transform: + body: '[{"contents": {{ toJson .result }}}]' + type: golang_template_json_v0.3.0 sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/registrations_override_codes/methods/list_by_account' @@ -48732,26 +48697,6 @@ components: update: [] delete: [] replace: [] - devices_revoke: - id: cloudflare.zero_trust.devices_revoke - name: devices_revoke - title: Devices Revoke - methods: - revoke_by_account: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1devices~1revoke/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: [] - update: [] - delete: [] - replace: [] devices_settings: id: cloudflare.zero_trust.devices_settings name: devices_settings @@ -48809,7 +48754,10 @@ components: response: mediaType: application/json openAPIDocKey: '200' - objectKey: $.result + overrideMediaType: application/json + transform: + body: '[{"contents": {{ toJson .result }}}]' + type: golang_template_json_v0.3.0 sqlVerbs: select: - $ref: '#/components/x-stackQL-resources/devices_override_codes/methods/list_by_account' @@ -49374,6 +49322,27 @@ components: response: mediaType: application/json openAPIDocKey: '200' + upload_version: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1dlp~1datasets~1{dataset_id}~1upload/post' + response: + mediaType: application/json + openAPIDocKey: '200' + upload_version_data: + operation: + $ref: '#/paths/~1accounts~1{account_id}~1dlp~1datasets~1{dataset_id}~1upload~1{version}/post' + request: + mediaType: application/octet-stream + required: + - value + schema_override: + $ref: '#/components/schemas/stackqlDlpDatasetsUploadVersionBody' + transform: + type: golang_template_json_v0.1.0 + body: '{{ .value }}' + response: + mediaType: application/json + openAPIDocKey: '200' dlp_datasets_define_columns: config: requestBodyTranslate: @@ -49394,45 +49363,23 @@ components: - $ref: '#/components/x-stackQL-resources/datasets/methods/delete' replace: - $ref: '#/components/x-stackQL-resources/datasets/methods/update' - upload: - id: cloudflare.zero_trust.upload - name: upload - title: Upload - methods: - create: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1dlp~1datasets~1{dataset_id}~1upload/post' - response: - mediaType: application/json - openAPIDocKey: '200' - edit: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1dlp~1datasets~1{dataset_id}~1upload~1{version}/post' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/upload/methods/edit' - - $ref: '#/components/x-stackQL-resources/upload/methods/create' - update: [] - delete: [] - replace: [] entries: id: cloudflare.zero_trust.entries name: entries title: Entries methods: create: - config: - requestBodyTranslate: - algorithm: naive operation: $ref: '#/paths/~1accounts~1{account_id}~1dlp~1datasets~1{dataset_id}~1versions~1{version}~1entries~1{entry_id}/post' + request: + mediaType: application/octet-stream + required: + - value + schema_override: + $ref: '#/components/schemas/stackqlDlpDatasetsUploadDatasetColumnBody' + transform: + type: golang_template_json_v0.1.0 + body: '{{ .value }}' response: mediaType: application/json openAPIDocKey: '200' @@ -49809,44 +49756,6 @@ components: delete: - $ref: '#/components/x-stackQL-resources/dlp_entries/methods/delete_by_account' replace: [] - integration: - id: cloudflare.zero_trust.integration - name: integration - title: Integration - methods: - create: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1dlp~1entries~1integration/post' - response: - mediaType: application/json - openAPIDocKey: '200' - delete: - operation: - $ref: '#/paths/~1accounts~1{account_id}~1dlp~1entries~1integration~1{entry_id}/delete' - response: - mediaType: application/json - openAPIDocKey: '200' - update: - config: - requestBodyTranslate: - algorithm: naive - operation: - $ref: '#/paths/~1accounts~1{account_id}~1dlp~1entries~1integration~1{entry_id}/put' - response: - mediaType: application/json - openAPIDocKey: '200' - sqlVerbs: - select: [] - insert: - - $ref: '#/components/x-stackQL-resources/integration/methods/create' - update: [] - delete: - - $ref: '#/components/x-stackQL-resources/integration/methods/delete' - replace: - - $ref: '#/components/x-stackQL-resources/integration/methods/update' entries_predefined: id: cloudflare.zero_trust.entries_predefined name: entries_predefined @@ -52590,10 +52499,10 @@ components: replace: - $ref: '#/components/x-stackQL-resources/applications/methods/update_by_account' - $ref: '#/components/x-stackQL-resources/applications/methods/update_by_zone' - cas_f84f2f: - id: cloudflare.zero_trust.cas_f84f2f - name: cas_f84f2f - title: Cas F84f2f + cas: + id: cloudflare.zero_trust.cas + name: cas + title: Cas methods: list_by_account: operation: @@ -52602,18 +52511,6 @@ components: mediaType: application/json openAPIDocKey: '200' objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/cas_f84f2f/methods/list_by_account' - insert: [] - update: [] - delete: [] - replace: [] - cas_c5c46c: - id: cloudflare.zero_trust.cas_c5c46c - name: cas_c5c46c - title: Cas C5c46c - methods: list_by_zone: operation: $ref: '#/paths/~1zones~1{zone_id}~1access~1apps~1ca/get' @@ -52621,37 +52518,13 @@ components: mediaType: application/json openAPIDocKey: '200' objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/cas_c5c46c/methods/list_by_zone' - insert: [] - update: [] - delete: [] - replace: [] - cas_e335ab: - id: cloudflare.zero_trust.cas_e335ab - name: cas_e335ab - title: Cas E335ab - methods: - list_by_account: + get_by_account: operation: $ref: '#/paths/~1accounts~1{account_id}~1access~1apps~1{app_id}~1ca/get' response: mediaType: application/json openAPIDocKey: '200' objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/cas_e335ab/methods/list_by_account' - insert: [] - update: [] - delete: [] - replace: [] - cas: - id: cloudflare.zero_trust.cas - name: cas - title: Cas - methods: create_by_account: operation: $ref: '#/paths/~1accounts~1{account_id}~1access~1apps~1{app_id}~1ca/post' @@ -52664,6 +52537,13 @@ components: response: mediaType: application/json openAPIDocKey: '202' + get_by_zone: + operation: + $ref: '#/paths/~1zones~1{zone_id}~1access~1apps~1{app_id}~1ca/get' + response: + mediaType: application/json + openAPIDocKey: '200' + objectKey: $.result create_by_zone: operation: $ref: '#/paths/~1zones~1{zone_id}~1access~1apps~1{app_id}~1ca/post' @@ -52677,7 +52557,11 @@ components: mediaType: application/json openAPIDocKey: '202' sqlVerbs: - select: [] + select: + - $ref: '#/components/x-stackQL-resources/cas/methods/get_by_account' + - $ref: '#/components/x-stackQL-resources/cas/methods/get_by_zone' + - $ref: '#/components/x-stackQL-resources/cas/methods/list_by_account' + - $ref: '#/components/x-stackQL-resources/cas/methods/list_by_zone' insert: - $ref: '#/components/x-stackQL-resources/cas/methods/create_by_account' - $ref: '#/components/x-stackQL-resources/cas/methods/create_by_zone' @@ -52686,25 +52570,6 @@ components: - $ref: '#/components/x-stackQL-resources/cas/methods/delete_by_account' - $ref: '#/components/x-stackQL-resources/cas/methods/delete_by_zone' replace: [] - cas_0145fa: - id: cloudflare.zero_trust.cas_0145fa - name: cas_0145fa - title: Cas 0145fa - methods: - list_by_zone: - operation: - $ref: '#/paths/~1zones~1{zone_id}~1access~1apps~1{app_id}~1ca/get' - response: - mediaType: application/json - openAPIDocKey: '200' - objectKey: $.result - sqlVerbs: - select: - - $ref: '#/components/x-stackQL-resources/cas_0145fa/methods/list_by_zone' - insert: [] - update: [] - delete: [] - replace: [] apps_policies: id: cloudflare.zero_trust.apps_policies name: apps_policies diff --git a/providers/src/cloudflare/v00.00.00000/services/zones.yaml b/providers/src/cloudflare/v00.00.00000/services/zones.yaml index 6ca3ca74..4ad56f97 100644 --- a/providers/src/cloudflare/v00.00.00000/services/zones.yaml +++ b/providers/src/cloudflare/v00.00.00000/services/zones.yaml @@ -8353,19 +8353,19 @@ components: - $ref: '#/components/x-stackQL-resources/smart_shield/methods/smart_shield_patch_settings' delete: [] replace: [] - cache_reserve_clear: - id: cloudflare.zones.cache_reserve_clear - name: cache_reserve_clear - title: Cache Reserve Clear + cache_reserve: + id: cloudflare.zones.cache_reserve + name: cache_reserve + title: Cache Reserve methods: - list: + get_clear_status: operation: $ref: '#/paths/~1zones~1{zone_id}~1smart_shield~1cache_reserve_clear/get' response: mediaType: application/json openAPIDocKey: '200' objectKey: $.result - smart_shield_settings_start_cache_reserve_clear: + start_clear: config: requestBodyTranslate: algorithm: naive @@ -8376,9 +8376,8 @@ components: openAPIDocKey: '200' sqlVerbs: select: - - $ref: '#/components/x-stackQL-resources/cache_reserve_clear/methods/list' - insert: - - $ref: '#/components/x-stackQL-resources/cache_reserve_clear/methods/smart_shield_settings_start_cache_reserve_clear' + - $ref: '#/components/x-stackQL-resources/cache_reserve/methods/get_clear_status' + insert: [] update: [] delete: [] replace: []