Cloudflare · Schema
AiRunRequest
AI GatewayAPI GatewayArtificial IntelligenceCDNCloudContainersDDoS ProtectionDNSEdgeEdge ComputingObject StoragePlatformReal-Time CommunicationSecurityServerlessWeb Performance
Properties
| Name | Type | Description |
|---|---|---|
| prompt | string | The input prompt for text generation models. |
| messages | array | Array of messages for chat-style models. |
| image | array | Raw image bytes for image classification models. |
| text | string | Text input for embedding or translation models. |
| source_lang | string | Source language code for translation. |
| target_lang | string | Target language code for translation. |
| max_tokens | integer | Maximum number of tokens to generate. |
| temperature | number | Sampling temperature. |
| stream | boolean | Whether to stream the response using server-sent events. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "AiRunRequest",
"type": "object",
"properties": {
"prompt": {
"type": "string",
"description": "The input prompt for text generation models."
},
"messages": {
"type": "array",
"description": "Array of messages for chat-style models."
},
"image": {
"type": "array",
"description": "Raw image bytes for image classification models."
},
"text": {
"type": "string",
"description": "Text input for embedding or translation models."
},
"source_lang": {
"type": "string",
"description": "Source language code for translation."
},
"target_lang": {
"type": "string",
"description": "Target language code for translation."
},
"max_tokens": {
"type": "integer",
"description": "Maximum number of tokens to generate."
},
"temperature": {
"type": "number",
"description": "Sampling temperature."
},
"stream": {
"type": "boolean",
"description": "Whether to stream the response using server-sent events."
}
}
}