{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/wordlift-io/json-schema/wordlift-io-content-generation-request-schema.json",
  "title": "ContentGenerationRequest",
  "description": "The Content Generation request.",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wordlift-io-content-generation.yml#/components/schemas/ContentGenerationRequest",
  "type": "object",
  "properties": {
    "account_id": {
      "type": "integer",
      "format": "int64",
      "description": "The account id bound to this content generation."
    },
    "deleted": {
      "type": "boolean",
      "default": false,
      "description": "The deleted flag."
    },
    "graphql_query": {
      "type": "string",
      "description": "The GraphQL query which will be used to import entity data from the Knowledge Graph."
    },
    "max_tokens": {
      "type": "integer",
      "format": "int32",
      "default": 64,
      "description": "The maximum number of tokens.",
      "maximum": 2000,
      "minimum": 0
    },
    "min_words": {
      "type": "integer",
      "format": "int32",
      "default": 0,
      "description": "Minimum amount of words per completion."
    },
    "model_id": {
      "type": "integer",
      "format": "int64",
      "default": 1,
      "description": "The model ID.",
      "minimum": 1
    },
    "name": {
      "type": "string",
      "description": "The model name.",
      "maxLength": 250,
      "minLength": 0
    },
    "penalty": {
      "type": "number",
      "format": "double",
      "default": 0.5,
      "description": "The penalty score.",
      "exclusiveMaximum": false,
      "exclusiveMinimum": false,
      "maximum": 1.9,
      "minimum": 0.5
    },
    "prompt_template": {
      "type": "string",
      "description": "The prompt template."
    },
    "stop": {
      "type": "string",
      "default": "###",
      "description": "The stop sequence."
    },
    "temperature": {
      "type": "number",
      "format": "double",
      "default": 0.4,
      "description": "The temperature score.",
      "exclusiveMaximum": false,
      "exclusiveMinimum": false,
      "maximum": 0.8,
      "minimum": 0.4
    },
    "words_to_ignore": {
      "type": "array",
      "description": "Words to ignore when checking for words not in prompt.",
      "items": {
        "type": "string",
        "description": "Words to ignore when checking for words not in prompt."
      },
      "uniqueItems": true
    }
  },
  "required": [
    "account_id",
    "graphql_query",
    "name"
  ]
}