Skip to main content
Generate AI images using Cloudflare AI with Flux Schnell model

Tool details

FieldValue
Namecreate_image_generation
GroupImages

Playground

Input schema

Input schema
{
  "type": "object",
  "properties": {
    "project_reference": {
      "type": "string",
      "description": "Project ID or slug"
    },
    "prompt": {
      "type": "string",
      "maxLength": 1000,
      "description": "Text description of the desired image (max 1000 characters)"
    },
    "count": {
      "type": "number",
      "minimum": 1,
      "maximum": 10,
      "description": "Number of images to generate (1-10)",
      "default": 1
    },
    "seed": {
      "type": "number",
      "minimum": 1,
      "maximum": 999999,
      "description": "Random seed for reproducible generation"
    }
  },
  "required": [
    "project_reference",
    "prompt"
  ],
  "additionalProperties": false,
  "description": "Input schema for the create_image_generation tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Output schema

Output schema
{
  "type": "object",
  "properties": {
    "sources": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "One source item associated with this tool result."
      },
      "description": "Array of CDN URLs for generated images"
    },
    "count": {
      "type": "number",
      "description": "Number of images successfully generated"
    }
  },
  "required": [
    "sources",
    "count"
  ],
  "additionalProperties": false,
  "description": "Structured result returned by the create_image_generation tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}