The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
{
"components": {
"schemas": {
"File": {
"properties": {
"content_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The mime type of the file.",
"examples": [
"image/png"
],
"title": "Content Type"
},
"file_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The name of the file. It will be auto-generated if not provided.",
"examples": [
"z9RV14K95DvU.png"
],
"title": "File Name"
},
"file_size": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "The size of the file in bytes.",
"examples": [
4404019
],
"title": "File Size"
},
"url": {
"description": "The URL where the file can be downloaded from.",
"title": "Url",
"type": "string"
}
},
"required": [
"url"
],
"title": "File",
"type": "object",
"x-fal-order-properties": [
"url",
"content_type",
"file_name",
"file_size"
]
},
"ImageSize": {
"properties": {
"height": {
"default": 512,
"description": "The height of the generated image.",
"exclusiveMinimum": 0,
"maximum": 14142,
"title": "Height",
"type": "integer"
},
"width": {
"default": 512,
"description": "The width of the generated image.",
"exclusiveMinimum": 0,
"maximum": 14142,
"title": "Width",
"type": "integer"
}
},
"title": "ImageSize",
"type": "object",
"x-fal-order-properties": [
"width",
"height"
]
},
"QueueStatus": {
"properties": {
"cancel_url": {
"description": "The cancel url.",
"type": "string"
},
"logs": {
"additionalProperties": true,
"description": "The logs.",
"type": "object"
},
"metrics": {
"additionalProperties": true,
"description": "The metrics.",
"type": "object"
},
"queue_position": {
"description": "The queue position.",
"type": "integer"
},
"request_id": {
"description": "The request id.",
"type": "string"
},
"response_url": {
"description": "The response url.",
"type": "string"
},
"status": {
"enum": [
"IN_QUEUE",
"IN_PROGRESS",
"COMPLETED"
],
"type": "string"
},
"status_url": {
"description": "The status url.",
"type": "string"
}
},
"required": [
"status",
"request_id"
],
"type": "object"
},
"WanV27TextToImageInput": {
"properties": {
"enable_safety_checker": {
"default": true,
"description": "Enable content moderation for input and output. Disabling it requires account authorization; unauthorized requests are always checked.",
"title": "Enable Safety Checker",
"type": "boolean"
},
"image_size": {
"anyOf": [
{
"$ref": "#/components/schemas/ImageSize"
},
{
"enum": [
"square_hd",
"square",
"portrait_4_3",
"portrait_16_9",
"landscape_4_3",
"landscape_16_9"
],
"type": "string"
}
],
"default": "square_hd",
"description": "Output image size.",
"title": "Image Size"
},
"negative_prompt": {
"anyOf": [
{
"maxLength": 500,
"type": "string"
},
{
"type": "null"
}
],
"default": "",
"description": "Content to avoid in the generated image. Max 500 characters.",
"title": "Negative Prompt"
},
"num_images": {
"default": 1,
"description": "Number of images to generate (1-5).",
"maximum": 5,
"minimum": 1,
"title": "Num Images",
"type": "integer"
},
"output_format": {
"default": "jpeg",
"description": "The format of the generated images.",
"enum": [
"jpeg",
"png",
"webp"
],
"title": "Output Format",
"type": "string"
},
"prompt": {
"description": "Text prompt describing the desired output. Supports Chinese and English.",
"examples": [
"An astronaut riding a horse in a photorealistic style."
],
"maxLength": 2000,
"minLength": 1,
"title": "Prompt",
"type": "string"
},
"seed": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Random seed for reproducibility (0-2147483647).",
"title": "Seed"
}
},
"required": [
"prompt"
],
"title": "Wan27TextToImageInput",
"type": "object",
"x-fal-order-properties": [
"prompt",
"negative_prompt",
"image_size",
"num_images",
"seed",
"enable_safety_checker",
"output_format"
]
},
"WanV27TextToImageOutput": {
"properties": {
"generated_text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Optional generated text returned by the model.",
"title": "Generated Text"
},
"images": {
"description": "Generated images.",
"items": {
"$ref": "#/components/schemas/File"
},
"title": "Images",
"type": "array"
},
"seed": {
"description": "The seed used for generation.",
"title": "Seed",
"type": "integer"
}
},
"required": [
"images",
"seed"
],
"title": "Wan27TextToImageOutput",
"type": "object",
"x-fal-order-properties": [
"images",
"generated_text",
"seed"
]
}
},
"securitySchemes": {
"apiKeyAuth": {
"description": "Fal Key",
"in": "header",
"name": "Authorization",
"type": "apiKey"
}
}
},
"info": {
"description": "The OpenAPI schema for the fal-ai/wan/v2.7/text-to-image queue.",
"title": "Queue OpenAPI for fal-ai/wan/v2.7/text-to-image",
"version": "1.0.0",
"x-fal-metadata": {
"about": "Text To Image",
"category": "text-to-image",
"documentationUrl": "https://fal.ai/models/fal-ai/wan/v2.7/text-to-image/api",
"endpointId": "fal-ai/wan/v2.7/text-to-image",
"playgroundUrl": "https://fal.ai/models/fal-ai/wan/v2.7/text-to-image",
"thumbnailUrl": "https://v3b.fal.media/files/b/0a948152/0UucVYSOBXiyibwSyN3HT_38400743f04344a5b25b1cd9b551a625.jpg"
}
},
"openapi": "3.1.0",
"paths": {
"/fal-ai/wan/v2.7/text-to-image": {
"post": {
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WanV27TextToImageInput"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/QueueStatus"
}
}
},
"description": "The request status."
}
}
}
},
"/fal-ai/wan/v2.7/text-to-image/requests/{request_id}": {
"get": {
"parameters": [
{
"in": "path",
"name": "request_id",
"required": true,
"schema": {
"description": "Request ID",
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WanV27TextToImageOutput"
}
}
},
"description": "Result of the request."
}
}
}
},
"/fal-ai/wan/v2.7/text-to-image/requests/{request_id}/cancel": {
"put": {
"parameters": [
{
"in": "path",
"name": "request_id",
"required": true,
"schema": {
"description": "Request ID",
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"success": {
"description": "Whether the request was cancelled successfully.",
"type": "boolean"
}
},
"type": "object"
}
}
},
"description": "The request was cancelled."
}
}
}
},
"/fal-ai/wan/v2.7/text-to-image/requests/{request_id}/status": {
"get": {
"parameters": [
{
"in": "path",
"name": "request_id",
"required": true,
"schema": {
"description": "Request ID",
"type": "string"
}
},
{
"in": "query",
"name": "logs",
"required": false,
"schema": {
"description": "Whether to include logs (`1`) in the response or not (`0`).",
"type": "number"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/QueueStatus"
}
}
},
"description": "The request status."
}
}
}
}
},
"security": [
{
"apiKeyAuth": []
}
],
"servers": [
{
"url": "https://queue.fal.run"
}
]
}