Cloudflare · Schema

ChatCompletionResponse

AI GatewayAPI GatewayArtificial IntelligenceCDNCloudContainersDDoS ProtectionDNSEdgeEdge ComputingObject StoragePlatformReal-Time CommunicationSecurityServerlessWeb Performance

Properties

Name Type Description
id string Unique identifier for the completion.
object string
created integer Unix timestamp of when the completion was created.
model string The model used for the completion.
choices array
usage object
View JSON Schema on GitHub

JSON Schema

cloudflare-workers-ai-chat-completion-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ChatCompletionResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the completion."
    },
    "object": {
      "type": "string"
    },
    "created": {
      "type": "integer",
      "description": "Unix timestamp of when the completion was created."
    },
    "model": {
      "type": "string",
      "description": "The model used for the completion."
    },
    "choices": {
      "type": "array"
    },
    "usage": {
      "type": "object"
    }
  }
}