Skip to main content

API Schema


Introduction

This reference provides comprehensive API schema documentation for all BabySea features. Each schema defines the complete parameter structure, data types, validation rules, and available options for image generation and editing operations in JSON Schema format.

Horizon

{
"type": "object",
"title": "Input",
"required": [
"prompt"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"x-order": 4,
"description": "Random seed. Set for reproducible generation"
},
"prompt": {
"type": "string",
"title": "Prompt",
"x-order": 0,
"description": "Prompt for generated image"
},
"go_fast": {
"type": "boolean",
"title": "Go Fast",
"default": true,
"x-order": 8,
"description": "Run faster predictions with model optimized for speed (currently fp8 quantized); disable to run in original bf16. Note that outputs will not be deterministic when this is enabled, even if you set a seed."
},
"megapixels": {
"enum": [
"1",
"0.25"
],
"type": "string",
"title": "megapixels",
"description": "Approximate number of megapixels for generated image",
"default": "1",
"x-order": 9
},
"num_outputs": {
"type": "integer",
"title": "Num Outputs",
"default": 1,
"maximum": 4,
"minimum": 1,
"x-order": 2,
"description": "Number of outputs to generate"
},
"aspect_ratio": {
"enum": [
"1:1",
"16:9",
"21:9",
"3:2",
"2:3",
"4:5",
"5:4",
"3:4",
"4:3",
"9:16",
"9:21"
],
"type": "string",
"title": "aspect_ratio",
"description": "Aspect ratio for the generated image",
"default": "1:1",
"x-order": 1
},
"output_format": {
"enum": [
"webp",
"jpg",
"png"
],
"type": "string",
"title": "output_format",
"description": "Format of the output images",
"default": "webp",
"x-order": 5
},
"output_quality": {
"type": "integer",
"title": "Output Quality",
"default": 80,
"maximum": 100,
"minimum": 0,
"x-order": 6,
"description": "Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs"
},
"num_inference_steps": {
"type": "integer",
"title": "Num Inference Steps",
"default": 4,
"maximum": 4,
"minimum": 1,
"x-order": 3,
"description": "Number of denoising steps. 4 is recommended, and lower number of steps produce lower quality outputs, faster."
},
"disable_safety_checker": {
"type": "boolean",
"title": "Disable Safety Checker",
"default": false,
"x-order": 7,
"description": "Disable safety checker for generated images."
}
}
}

Maker

{
"type": "object",
"title": "Input",
"required": [
"prompt"
],
"properties": {
"prompt": {
"type": "string",
"title": "Prompt",
"x-order": 0,
"description": "A text description of the image you want to generate"
},
"image_input": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Image Input",
"default": [],
"x-order": 1,
"description": "Input images to transform or use as reference (supports multiple images)"
},
"aspect_ratio": {
"enum": [
"match_input_image",
"1:1",
"2:3",
"3:2",
"3:4",
"4:3",
"4:5",
"5:4",
"9:16",
"16:9",
"21:9"
],
"type": "string",
"title": "aspect_ratio",
"description": "Aspect ratio of the generated image",
"default": "match_input_image",
"x-order": 2
},
"output_format": {
"enum": [
"jpg",
"png"
],
"type": "string",
"title": "output_format",
"description": "Format of the output image",
"default": "jpg",
"x-order": 3
}
}
}

Persona

{
"type": "object",
"title": "Input",
"required": [
"prompt"
],
"properties": {
"prompt": {
"type": "string",
"title": "Prompt",
"x-order": 0,
"description": "Text prompt for image generation"
},
"aspect_ratio": {
"enum": [
"1:1",
"9:16",
"16:9",
"3:4",
"4:3"
],
"type": "string",
"title": "aspect_ratio",
"description": "Aspect ratio of the generated image",
"default": "1:1",
"x-order": 1
},
"output_format": {
"enum": [
"jpg",
"png"
],
"type": "string",
"title": "output_format",
"description": "Format of the output image",
"default": "jpg",
"x-order": 3
},
"safety_filter_level": {
"enum": [
"block_low_and_above",
"block_medium_and_above",
"block_only_high"
],
"type": "string",
"title": "safety_filter_level",
"description": "block_low_and_above is strictest, block_medium_and_above blocks some prompts, block_only_high is most permissive but some prompts will still be blocked",
"default": "block_only_high",
"x-order": 2
}
}
}

Fixy

{
"type": "object",
"title": "Input",
"required": [
"prompt",
"input_image"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"x-order": 5,
"description": "Random seed for reproducible generation. Leave blank for random."
},
"prompt": {
"type": "string",
"title": "Prompt",
"x-order": 0,
"description": "Text description of what you want to generate, or the instruction on how to edit the given image."
},
"go_fast": {
"type": "boolean",
"title": "Go Fast",
"default": true,
"x-order": 9,
"description": "Make the model go fast, output quality may be slightly degraded for more difficult prompts"
},
"guidance": {
"type": "number",
"title": "Guidance",
"default": 2.5,
"maximum": 10,
"minimum": 0,
"x-order": 4,
"description": "Guidance scale for generation"
},
"input_image": {
"type": "string",
"title": "Input Image",
"format": "uri",
"x-order": 1,
"description": "Image to use as reference. Must be jpeg, png, gif, or webp."
},
"aspect_ratio": {
"enum": [
"1:1",
"16:9",
"21:9",
"3:2",
"2:3",
"4:5",
"5:4",
"3:4",
"4:3",
"9:16",
"9:21",
"match_input_image"
],
"type": "string",
"title": "aspect_ratio",
"description": "Aspect ratio of the generated image. Use 'match_input_image' to match the aspect ratio of the input image.",
"default": "match_input_image",
"x-order": 2
},
"output_format": {
"enum": [
"webp",
"jpg",
"png"
],
"type": "string",
"title": "output_format",
"description": "Output image format",
"default": "webp",
"x-order": 6
},
"output_quality": {
"type": "integer",
"title": "Output Quality",
"default": 80,
"maximum": 100,
"minimum": 0,
"x-order": 7,
"description": "Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs"
},
"num_inference_steps": {
"type": "integer",
"title": "Num Inference Steps",
"default": 28,
"maximum": 50,
"minimum": 4,
"x-order": 3,
"description": "Number of inference steps"
},
"disable_safety_checker": {
"type": "boolean",
"title": "Disable Safety Checker",
"default": false,
"x-order": 8,
"description": "Disable NSFW safety checker"
}
}
}

Canvas

{
"type": "object",
"title": "Input",
"required": [
"prompt"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"maximum": 2147483647,
"x-order": 5,
"nullable": true,
"description": "Random seed. Set for reproducible generation"
},
"prompt": {
"type": "string",
"title": "Prompt",
"x-order": 0,
"description": "Text prompt for image generation"
},
"resolution": {
"enum": [
"None",
"512x1536",
"576x1408",
"576x1472",
"576x1536",
"640x1344",
"640x1408",
"640x1472",
"640x1536",
"704x1152",
"704x1216",
"704x1280",
"704x1344",
"704x1408",
"704x1472",
"736x1312",
"768x1088",
"768x1216",
"768x1280",
"768x1344",
"832x960",
"832x1024",
"832x1088",
"832x1152",
"832x1216",
"832x1248",
"864x1152",
"896x960",
"896x1024",
"896x1088",
"896x1120",
"896x1152",
"960x832",
"960x896",
"960x1024",
"960x1088",
"1024x832",
"1024x896",
"1024x960",
"1024x1024",
"1088x768",
"1088x832",
"1088x896",
"1088x960",
"1120x896",
"1152x704",
"1152x832",
"1152x864",
"1152x896",
"1216x704",
"1216x768",
"1216x832",
"1248x832",
"1280x704",
"1280x768",
"1280x800",
"1312x736",
"1344x640",
"1344x704",
"1344x768",
"1408x576",
"1408x640",
"1408x704",
"1472x576",
"1472x640",
"1472x704",
"1536x512",
"1536x576",
"1536x640"
],
"type": "string",
"title": "resolution",
"description": "Resolution. Overrides aspect ratio. Ignored if an inpainting image is given.",
"default": "None",
"x-order": 2
},
"style_type": {
"enum": [
"None",
"Auto",
"General",
"Realistic",
"Design",
"Render 3D",
"Anime"
],
"type": "string",
"title": "style_type",
"description": "The styles help define the specific aesthetic of the image you want to generate.",
"default": "None",
"x-order": 4
},
"aspect_ratio": {
"enum": [
"1:1",
"16:9",
"9:16",
"4:3",
"3:4",
"3:2",
"2:3",
"16:10",
"10:16",
"3:1",
"1:3"
],
"type": "string",
"title": "aspect_ratio",
"description": "Aspect ratio. Ignored if a resolution or inpainting image is given.",
"default": "1:1",
"x-order": 1
},
"magic_prompt_option": {
"enum": [
"Auto",
"On",
"Off"
],
"type": "string",
"title": "magic_prompt_option",
"description": "Magic Prompt will interpret your prompt and optimize it to maximize variety and quality of the images generated. You can also use it to write prompts in different languages.",
"default": "Auto",
"x-order": 3
}
}
}