Cloudflare · JSON Structure

Cloudflare Workers Ai Ai Run Request Structure

Type: object Properties: 9
AI GatewayAPI GatewayArtificial IntelligenceCDNCloudContainersDDoS ProtectionDNSEdgeEdge ComputingObject StoragePlatformReal-Time CommunicationSecurityServerlessWeb Performance

AiRunRequest is a JSON Structure definition published by Cloudflare, describing 9 properties. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

prompt messages image text source_lang target_lang max_tokens temperature stream

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/draft/2020-12/schema",
  "name": "AiRunRequest",
  "type": "object",
  "properties": {
    "prompt": {
      "type": "string"
    },
    "messages": {
      "type": "array"
    },
    "image": {
      "type": "array"
    },
    "text": {
      "type": "string"
    },
    "source_lang": {
      "type": "string"
    },
    "target_lang": {
      "type": "string"
    },
    "max_tokens": {
      "type": "integer"
    },
    "temperature": {
      "type": "number"
    },
    "stream": {
      "type": "boolean"
    }
  }
}