{
  "openapi": "3.1.0",
  "info": {
    "title": "Runware API - ACE-Step v1.5 XL SFT",
    "summary": "Highest-quality 4B music generation model with CFG-controlled prompt adherence",
    "description": "ACE-Step v1.5 XL SFT is the supervised fine-tuned 4B DiT variant in the ACE-Step 1.5 XL line. It is positioned as the highest-quality XL option, combining 50-step CFG inference with stronger prompt adherence and refined audio quality for text-to-music, cover, and repaint workflows when final output quality matters more than speed or broader editing task coverage.",
    "version": "1.0.0",
    "x-model-id": "ace-step-v1-5-xl-sft",
    "x-air-id": "runware:ace-step@v1.5-xl-sft",
    "x-status": "coming-soon",
    "x-capabilities": [
      "text-to-audio"
    ],
    "x-released-at": "2026-04-02T00:00:00Z",
    "x-cover-image": "https://assets.runware.ai/covers/ace-step-v1-5-xl-sft.jpg"
  },
  "servers": [
    {
      "url": "https://api.runware.ai/v1",
      "description": "Runware REST API"
    }
  ],
  "components": {
    "securitySchemes": {
      "apiKeyAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Runware API Key (e.g., Bearer <your-key>)"
      }
    },
    "schemas": {
      "AuthenticationTask": {
        "title": "Authentication",
        "description": "Authenticates a connection using an API key. Can be sent as the first element of the request array as an alternative to using the Authorization header.",
        "type": "object",
        "x-response-schema": "https://schemas.runware.ai/responses/utilities/authentication.json",
        "properties": {
          "taskType": {
            "const": "authentication",
            "title": "Task Type",
            "description": "The type of task to perform."
          },
          "apiKey": {
            "title": "API Key",
            "description": "Your Runware API key.",
            "type": "string"
          },
          "connectionSessionUUID": {
            "title": "Connection Session UUID",
            "description": "Optional session UUID to resume a previous connection and receive any buffered results.",
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "taskType",
          "apiKey"
        ],
        "additionalProperties": false
      },
      "RequestBody": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "model": {
              "title": "Model",
              "description": "Identifier of the model to use for generation.",
              "type": "string",
              "const": "runware:ace-step@v1.5-xl-sft"
            },
            "inputs": {
              "title": "Inputs",
              "description": "The unified payload wrapper for complex media assets dictating image, video or audio inference constraints.",
              "type": "object",
              "properties": {
                "audio": {
                  "title": "Audio",
                  "description": "Audio input (UUID or URL).",
                  "type": "string",
                  "anyOf": [
                    {
                      "format": "uuid"
                    },
                    {
                      "format": "uri"
                    }
                  ]
                }
              },
              "additionalProperties": false
            },
            "positivePrompt": {
              "title": "Positive Prompt",
              "description": "Text prompt describing elements to include in the generated output.",
              "type": "string",
              "minLength": 2,
              "maxLength": 3000
            },
            "negativePrompt": {
              "title": "Negative Prompt",
              "description": "Prompt to guide what to exclude from generation. Ignored when guidance is disabled (CFGScale ≤ 1).",
              "type": "string",
              "minLength": 2,
              "maxLength": 3000
            },
            "duration": {
              "title": "Duration",
              "description": "Length of the generated audio track in seconds.",
              "type": "number",
              "default": 60,
              "minimum": 30,
              "maximum": 300,
              "multipleOf": 0.1
            },
            "seed": {
              "title": "Seed",
              "description": "Random seed for reproducible generation. When not provided, a random seed is generated in the unsigned 32-bit range.",
              "type": "integer",
              "minimum": 0,
              "maximum": 2147483647
            },
            "steps": {
              "title": "Steps",
              "description": "Total number of denoising steps. Higher values generally produce more detailed results but take longer.",
              "type": "integer",
              "minimum": 1,
              "default": 100,
              "maximum": 300
            },
            "CFGScale": {
              "title": "CFG Scale",
              "description": "Guidance scale representing how closely the output will resemble the prompt. Higher values produce results more aligned with the prompt.",
              "type": "number",
              "multipleOf": 0.01,
              "minimum": 1,
              "default": 10,
              "maximum": 30
            },
            "strength": {
              "title": "Strength",
              "description": "Fraction of steps using the input source instead of generated output.",
              "type": "number",
              "multipleOf": 0.01,
              "minimum": 0,
              "maximum": 1,
              "default": 0.5
            },
            "settings": {
              "title": "Settings",
              "description": "Global inference settings.",
              "type": "object",
              "properties": {
                "bpm": {
                  "title": "BPM",
                  "description": "Beats per minute. If not set, the model decides automatically.",
                  "type": "integer",
                  "minimum": 30,
                  "maximum": 300
                },
                "cfgIntervalEnd": {
                  "title": "CFG Interval End",
                  "description": "Diffusion ratio where CFG ends (1.0 = last step).",
                  "type": "number",
                  "default": 1,
                  "minimum": 0,
                  "maximum": 1,
                  "multipleOf": 0.01
                },
                "cfgIntervalStart": {
                  "title": "CFG Interval Start",
                  "description": "Diffusion ratio where CFG begins (0.0 = first step).",
                  "type": "number",
                  "default": 0,
                  "minimum": 0,
                  "maximum": 1,
                  "multipleOf": 0.01
                },
                "coverConditioningScale": {
                  "title": "Cover Conditioning Scale",
                  "description": "Fraction of denoising steps using source-audio conditioning. Only effective when input audio is provided. 1.0 uses source conditioning for all steps.",
                  "type": "number",
                  "default": 1,
                  "minimum": 0,
                  "maximum": 1,
                  "multipleOf": 0.01
                },
                "guidanceType": {
                  "title": "Guidance Type",
                  "description": "Controls how guidance is applied during generation.",
                  "type": "string",
                  "default": "apg",
                  "oneOf": [
                    {
                      "description": "Adaptive Projected Guidance.",
                      "const": "apg"
                    },
                    {
                      "description": "Classifier-Free Guidance.",
                      "const": "cfg"
                    }
                  ]
                },
                "keyScale": {
                  "title": "Key Scale",
                  "description": "Musical key and scale in '{Note}{Accidental} {Mode}' format (e.g. 'C major', 'F# minor', 'Bb major').",
                  "type": "string"
                },
                "lyrics": {
                  "title": "Lyrics",
                  "description": "Song lyrics, typically formatted like a lyrics website.",
                  "type": "string",
                  "minLength": 10,
                  "maxLength": 3000
                },
                "repaintingEnd": {
                  "title": "Repainting End",
                  "description": "End time in seconds for repaint region. Requires input audio. Values beyond audio duration append new audio.",
                  "type": "number",
                  "minimum": 0,
                  "maximum": 300
                },
                "repaintingStart": {
                  "title": "Repainting Start",
                  "description": "Start time in seconds for repaint region. Requires input audio. Negative values prepend audio before the start.",
                  "type": "number",
                  "minimum": -300,
                  "maximum": 300
                },
                "timeSignature": {
                  "title": "Time Signature",
                  "description": "Beats per measure. If not set, the model decides automatically.",
                  "type": "integer",
                  "enum": [
                    2,
                    3,
                    4,
                    6
                  ]
                },
                "vocalLanguage": {
                  "title": "Vocal Language",
                  "description": "ISO 639-1 language code for vocals. `unknown` for instrumental or auto detection.",
                  "type": "string",
                  "enum": [
                    "unknown",
                    "ar",
                    "az",
                    "bg",
                    "bn",
                    "ca",
                    "cs",
                    "da",
                    "de",
                    "el",
                    "en",
                    "es",
                    "fa",
                    "fi",
                    "fr",
                    "he",
                    "hi",
                    "hr",
                    "ht",
                    "hu",
                    "id",
                    "is",
                    "it",
                    "ja",
                    "ko",
                    "la",
                    "lt",
                    "ms",
                    "ne",
                    "nl",
                    "no",
                    "pa",
                    "pl",
                    "pt",
                    "ro",
                    "ru",
                    "sa",
                    "sk",
                    "sr",
                    "sv",
                    "sw",
                    "ta",
                    "te",
                    "th",
                    "tl",
                    "tr",
                    "uk",
                    "ur",
                    "vi",
                    "yue",
                    "zh"
                  ],
                  "default": "en"
                }
              },
              "additionalProperties": false
            },
            "advancedFeatures": {
              "title": "Advanced Features",
              "description": "Model-specific advanced configuration options.",
              "type": "object",
              "properties": {
                "modularScheduler": {
                  "title": "Modular Scheduler",
                  "description": "Manual scheduler configuration for fine-grained control over the diffusion process (sampler, modifiers, etc.).",
                  "type": "object",
                  "additionalProperties": true
                }
              },
              "additionalProperties": false
            },
            "taskType": {
              "title": "Task Type",
              "description": "Identifier for the type of task being performed",
              "type": "string",
              "const": "audioInference"
            },
            "taskUUID": {
              "title": "Task UUID",
              "description": "UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.",
              "type": "string",
              "format": "uuid"
            },
            "webhookURL": {
              "title": "Webhook URL",
              "description": "Specifies a webhook URL where JSON responses will be sent via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.",
              "type": "string",
              "format": "uri"
            },
            "includeCost": {
              "title": "Include Cost",
              "description": "Include task cost in the response.",
              "type": "boolean",
              "default": false
            },
            "numberResults": {
              "title": "Number of Results",
              "description": "Number of results to generate. Each result uses a different seed, producing variations of the same parameters.",
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "maximum": 4
            },
            "uploadEndpoint": {
              "title": "Upload Endpoint",
              "description": "Specifies a URL where the generated content will be automatically uploaded using the HTTP PUT method. The raw binary data of the media file is sent directly as the request body. For secure uploads to cloud storage, use presigned URLs that include temporary authentication credentials.\n\n**Common use cases:**\n\n- **Cloud storage**: Upload directly to S3 buckets, Google Cloud Storage, or Azure Blob Storage using presigned URLs.\n- **CDN integration**: Upload to content delivery networks for immediate distribution.\n\n```text\n// S3 presigned URL for secure upload\nhttps://your-bucket.s3.amazonaws.com/generated/content.mp4?X-Amz-Signature=abc123&X-Amz-Expires=3600\n\n// Google Cloud Storage presigned URL\nhttps://storage.googleapis.com/your-bucket/content.jpg?X-Goog-Signature=xyz789\n\n// Custom storage endpoint\nhttps://storage.example.com/uploads/generated-image.jpg\n```\n\nThe content data will be sent as the request body to the specified URL when generation is complete.\n\n[Read full documentation](https://runware.ai/docs/models/ace-step-v1-5-xl-sft#uploadEndpoint)",
              "type": "string",
              "format": "uri"
            },
            "ttl": {
              "title": "TTL",
              "description": "Time-to-live (TTL) in seconds for generated content. Only applies when `outputType` is `URL`.",
              "type": "integer",
              "minimum": 60
            },
            "outputType": {
              "title": "Output Type",
              "description": "Audio output type.",
              "type": "string",
              "enum": [
                "URL",
                "base64Data",
                "dataURI"
              ],
              "default": "URL"
            },
            "outputFormat": {
              "title": "Output Format",
              "description": "Specifies the file format of the generated output. The available values depend on the task type and the specific model's capabilities.\n\n- \\`JPG\\`: Best for photorealistic images with smaller file sizes (no transparency).\n- \\`PNG\\`: Lossless compression, supports high quality and transparency (alpha channel).\n- \\`WEBP\\`: Modern format providing superior compression and transparency support.\n- \\`MP4\\`: Widely supported video container (H.264), recommended for general use.\n- \\`WEBM\\`: Optimized for web delivery.\n- \\`MOV\\`: QuickTime format, common in professional workflows (Apple ecosystem).\n- \\`GIF\\`: Animated image format (no audio), suitable for short loops or previews.\n- \\`MP3\\`: Compressed audio, smaller file size.\n- \\`WAV\\`: Uncompressed, high-quality audio.\n- \\`FLAC\\`: Lossless compression.\n- \\`OGG\\`: Open-source compressed audio format (Vorbis codec).\n- \\`SVG\\`: Scalable Vector Graphics.\n- \\`TIFF\\`: High-quality output supporting layers.\n- \\`GLB\\`: Binary glTF format for 3D models, including geometry, textures, and PBR materials.\n\n> [!NOTE]\n> \\*\\*Transparency\\*\\*: If you are using features like background removal or LayerDiffuse that require transparency, you must select a format that supports an alpha channel (e.g., \\`PNG\\`, \\`WEBP\\`, \\`TIFF\\`). \\`JPG\\` does not support transparency.\n\n[Read full documentation](https://runware.ai/docs/models/ace-step-v1-5-xl-sft#outputFormat)",
              "type": "string",
              "enum": [
                "MP3",
                "WAV",
                "FLAC",
                "OGG"
              ],
              "default": "MP3"
            },
            "deliveryMethod": {
              "title": "Delivery Method",
              "description": "Determines how the API delivers task results.",
              "type": "string",
              "oneOf": [
                {
                  "const": "sync",
                  "description": "Returns complete results directly in the API response."
                },
                {
                  "const": "async",
                  "description": "Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse."
                }
              ],
              "default": "sync"
            },
            "audioSettings": {
              "title": "Audio Settings",
              "description": "Audio encoding settings for controlling the bitrate, number of channels, and sample rate of the generated audio. Only applicable for lossy output formats (`MP3` and `OGG`). When using lossless formats (`WAV` or `FLAC`), this parameter must not be provided.\n\nThe available sample rates and valid bitrate ranges depend on the output format. For `OGG`, bitrate limits also vary by the number of channels.\n\n**MP3 bitrate limits**:\n\nBitrate limits for MP3 are the same regardless of mono or stereo.\n\n| Sample Rate | Min Bitrate | Max Bitrate |\n| --- | --- | --- |\n| 8,000 Hz | 8 kbps | 64 kbps |\n| 11,025 Hz | 8 kbps | 64 kbps |\n| 12,000 Hz | 8 kbps | 64 kbps |\n| 16,000 Hz | 8 kbps | 160 kbps |\n| 22,050 Hz | 8 kbps | 160 kbps |\n| 24,000 Hz | 8 kbps | 160 kbps |\n| 32,000 Hz | 32 kbps | 320 kbps |\n| 44,100 Hz | 32 kbps | 320 kbps |\n| 48,000 Hz | 32 kbps | 320 kbps |\n\n**OGG bitrate limits — Mono (1 channel)**:\n\n| Sample Rate | Min Bitrate | Max Bitrate |\n| --- | --- | --- |\n| 8,000 Hz | 8 kbps | 40 kbps |\n| 12,000 Hz | 16 kbps | 48 kbps |\n| 16,000 Hz | 16 kbps | 96 kbps |\n| 24,000 Hz | 16 kbps | 80 kbps |\n| 48,000 Hz | 32 kbps | 224 kbps |\n\n**OGG bitrate limits — Stereo (2 channels)**:\n\n| Sample Rate | Min Bitrate | Max Bitrate |\n| --- | --- | --- |\n| 8,000 Hz | 16 kbps | 80 kbps |\n| 12,000 Hz | 16 kbps | 96 kbps |\n| 16,000 Hz | 24 kbps | 192 kbps |\n| 24,000 Hz | 32 kbps | 160 kbps |\n| 48,000 Hz | 48 kbps | 256 kbps |\n\n> [!NOTE]\n> **Lossless formats**: When `outputFormat` is set to `WAV` or `FLAC`, the `audioSettings` parameter is not available since these formats produce uncompressed or lossless audio with no configurable encoding settings.\n\n[Read full documentation](https://runware.ai/docs/models/ace-step-v1-5-xl-sft#audioSettings)",
              "type": "object",
              "properties": {
                "bitrate": {
                  "title": "Bitrate",
                  "description": "Audio bitrate in kbps.",
                  "type": "integer",
                  "minimum": 8
                },
                "channels": {
                  "title": "Channels",
                  "description": "Number of audio channels. 1 for mono, 2 for stereo.",
                  "type": "integer",
                  "enum": [
                    1,
                    2
                  ],
                  "default": 2
                },
                "sampleRate": {
                  "title": "Sample Rate",
                  "description": "Audio sample rate in Hz.",
                  "type": "integer"
                }
              },
              "additionalProperties": false
            }
          },
          "required": [
            "positivePrompt",
            "taskType",
            "taskUUID",
            "model"
          ],
          "allOf": [
            {
              "if": {
                "properties": {
                  "outputFormat": {
                    "enum": [
                      "WAV",
                      "FLAC"
                    ]
                  }
                },
                "required": [
                  "outputFormat"
                ]
              },
              "then": {
                "not": {
                  "required": [
                    "audioSettings"
                  ]
                }
              }
            },
            {
              "if": {
                "properties": {
                  "outputFormat": {
                    "const": "MP3"
                  }
                },
                "required": [
                  "outputFormat"
                ]
              },
              "then": {
                "properties": {
                  "audioSettings": {
                    "properties": {
                      "sampleRate": {
                        "enum": [
                          8000,
                          11025,
                          12000,
                          16000,
                          22050,
                          24000,
                          32000,
                          44100,
                          48000
                        ]
                      }
                    }
                  }
                },
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "audioSettings": {
                          "properties": {
                            "sampleRate": {
                              "enum": [
                                8000,
                                11025,
                                12000
                              ]
                            }
                          },
                          "required": [
                            "sampleRate"
                          ]
                        }
                      },
                      "required": [
                        "audioSettings"
                      ]
                    },
                    "then": {
                      "properties": {
                        "audioSettings": {
                          "properties": {
                            "bitrate": {
                              "minimum": 8,
                              "maximum": 64
                            }
                          }
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "audioSettings": {
                          "properties": {
                            "sampleRate": {
                              "enum": [
                                16000,
                                22050,
                                24000
                              ]
                            }
                          },
                          "required": [
                            "sampleRate"
                          ]
                        }
                      },
                      "required": [
                        "audioSettings"
                      ]
                    },
                    "then": {
                      "properties": {
                        "audioSettings": {
                          "properties": {
                            "bitrate": {
                              "minimum": 8,
                              "maximum": 160
                            }
                          }
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "audioSettings": {
                          "properties": {
                            "sampleRate": {
                              "enum": [
                                32000,
                                44100,
                                48000
                              ]
                            }
                          },
                          "required": [
                            "sampleRate"
                          ]
                        }
                      },
                      "required": [
                        "audioSettings"
                      ]
                    },
                    "then": {
                      "properties": {
                        "audioSettings": {
                          "properties": {
                            "bitrate": {
                              "minimum": 32,
                              "maximum": 320
                            }
                          }
                        }
                      }
                    }
                  }
                ]
              }
            },
            {
              "if": {
                "properties": {
                  "outputFormat": {
                    "const": "OGG"
                  }
                },
                "required": [
                  "outputFormat"
                ]
              },
              "then": {
                "properties": {
                  "audioSettings": {
                    "properties": {
                      "sampleRate": {
                        "enum": [
                          8000,
                          12000,
                          16000,
                          24000,
                          48000
                        ]
                      }
                    }
                  }
                },
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "audioSettings": {
                          "properties": {
                            "sampleRate": {
                              "const": 8000
                            },
                            "channels": {
                              "const": 1
                            }
                          },
                          "required": [
                            "sampleRate",
                            "channels"
                          ]
                        }
                      },
                      "required": [
                        "audioSettings"
                      ]
                    },
                    "then": {
                      "properties": {
                        "audioSettings": {
                          "properties": {
                            "bitrate": {
                              "minimum": 8,
                              "maximum": 40
                            }
                          }
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "audioSettings": {
                          "properties": {
                            "sampleRate": {
                              "const": 8000
                            },
                            "channels": {
                              "const": 2
                            }
                          },
                          "required": [
                            "sampleRate",
                            "channels"
                          ]
                        }
                      },
                      "required": [
                        "audioSettings"
                      ]
                    },
                    "then": {
                      "properties": {
                        "audioSettings": {
                          "properties": {
                            "bitrate": {
                              "minimum": 16,
                              "maximum": 80
                            }
                          }
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "audioSettings": {
                          "properties": {
                            "sampleRate": {
                              "const": 12000
                            },
                            "channels": {
                              "const": 1
                            }
                          },
                          "required": [
                            "sampleRate",
                            "channels"
                          ]
                        }
                      },
                      "required": [
                        "audioSettings"
                      ]
                    },
                    "then": {
                      "properties": {
                        "audioSettings": {
                          "properties": {
                            "bitrate": {
                              "minimum": 16,
                              "maximum": 48
                            }
                          }
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "audioSettings": {
                          "properties": {
                            "sampleRate": {
                              "const": 12000
                            },
                            "channels": {
                              "const": 2
                            }
                          },
                          "required": [
                            "sampleRate",
                            "channels"
                          ]
                        }
                      },
                      "required": [
                        "audioSettings"
                      ]
                    },
                    "then": {
                      "properties": {
                        "audioSettings": {
                          "properties": {
                            "bitrate": {
                              "minimum": 16,
                              "maximum": 96
                            }
                          }
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "audioSettings": {
                          "properties": {
                            "sampleRate": {
                              "const": 16000
                            },
                            "channels": {
                              "const": 1
                            }
                          },
                          "required": [
                            "sampleRate",
                            "channels"
                          ]
                        }
                      },
                      "required": [
                        "audioSettings"
                      ]
                    },
                    "then": {
                      "properties": {
                        "audioSettings": {
                          "properties": {
                            "bitrate": {
                              "minimum": 16,
                              "maximum": 96
                            }
                          }
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "audioSettings": {
                          "properties": {
                            "sampleRate": {
                              "const": 16000
                            },
                            "channels": {
                              "const": 2
                            }
                          },
                          "required": [
                            "sampleRate",
                            "channels"
                          ]
                        }
                      },
                      "required": [
                        "audioSettings"
                      ]
                    },
                    "then": {
                      "properties": {
                        "audioSettings": {
                          "properties": {
                            "bitrate": {
                              "minimum": 24,
                              "maximum": 192
                            }
                          }
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "audioSettings": {
                          "properties": {
                            "sampleRate": {
                              "const": 24000
                            },
                            "channels": {
                              "const": 1
                            }
                          },
                          "required": [
                            "sampleRate",
                            "channels"
                          ]
                        }
                      },
                      "required": [
                        "audioSettings"
                      ]
                    },
                    "then": {
                      "properties": {
                        "audioSettings": {
                          "properties": {
                            "bitrate": {
                              "minimum": 16,
                              "maximum": 80
                            }
                          }
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "audioSettings": {
                          "properties": {
                            "sampleRate": {
                              "const": 24000
                            },
                            "channels": {
                              "const": 2
                            }
                          },
                          "required": [
                            "sampleRate",
                            "channels"
                          ]
                        }
                      },
                      "required": [
                        "audioSettings"
                      ]
                    },
                    "then": {
                      "properties": {
                        "audioSettings": {
                          "properties": {
                            "bitrate": {
                              "minimum": 32,
                              "maximum": 160
                            }
                          }
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "audioSettings": {
                          "properties": {
                            "sampleRate": {
                              "const": 48000
                            },
                            "channels": {
                              "const": 1
                            }
                          },
                          "required": [
                            "sampleRate",
                            "channels"
                          ]
                        }
                      },
                      "required": [
                        "audioSettings"
                      ]
                    },
                    "then": {
                      "properties": {
                        "audioSettings": {
                          "properties": {
                            "bitrate": {
                              "minimum": 32,
                              "maximum": 224
                            }
                          }
                        }
                      }
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "audioSettings": {
                          "properties": {
                            "sampleRate": {
                              "const": 48000
                            },
                            "channels": {
                              "const": 2
                            }
                          },
                          "required": [
                            "sampleRate",
                            "channels"
                          ]
                        }
                      },
                      "required": [
                        "audioSettings"
                      ]
                    },
                    "then": {
                      "properties": {
                        "audioSettings": {
                          "properties": {
                            "bitrate": {
                              "minimum": 48,
                              "maximum": 256
                            }
                          }
                        }
                      }
                    }
                  }
                ]
              }
            },
            {
              "if": {
                "properties": {
                  "inputs": {
                    "required": [
                      "audio"
                    ]
                  }
                },
                "required": [
                  "inputs"
                ]
              },
              "then": {
                "not": {
                  "required": [
                    "duration"
                  ]
                }
              }
            },
            {
              "if": {
                "required": [
                  "strength"
                ]
              },
              "then": {
                "properties": {
                  "inputs": {
                    "required": [
                      "audio"
                    ]
                  }
                },
                "required": [
                  "inputs"
                ]
              }
            },
            {
              "if": {
                "properties": {
                  "settings": {
                    "anyOf": [
                      {
                        "required": [
                          "repaintingStart"
                        ]
                      },
                      {
                        "required": [
                          "repaintingEnd"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "settings"
                ]
              },
              "then": {
                "properties": {
                  "inputs": {
                    "required": [
                      "audio"
                    ]
                  }
                },
                "required": [
                  "inputs"
                ]
              }
            },
            {
              "if": {
                "properties": {
                  "settings": {
                    "required": [
                      "coverConditioningScale"
                    ]
                  }
                },
                "required": [
                  "settings"
                ]
              },
              "then": {
                "properties": {
                  "inputs": {
                    "required": [
                      "audio"
                    ]
                  }
                },
                "required": [
                  "inputs"
                ]
              }
            },
            {
              "if": {
                "required": [
                  "negativePrompt"
                ]
              },
              "then": {
                "properties": {
                  "CFGScale": {
                    "exclusiveMinimum": 1
                  }
                }
              }
            }
          ],
          "additionalProperties": false
        },
        "description": "You must always POST an array of task objects."
      },
      "ResponseBody": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "Unknown response structure"
            }
          }
        }
      },
      "ErrorResponse": {
        "title": "Error Response",
        "description": "Standard error response returned by the Runware API.",
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "code",
                "message"
              ],
              "additionalProperties": true,
              "properties": {
                "code": {
                  "type": "string",
                  "description": "A short identifier for the error (e.g., invalidApiKey, timeoutProvider)."
                },
                "message": {
                  "type": "string",
                  "description": "A human-readable explanation of what went wrong."
                },
                "parameter": {
                  "type": "string",
                  "description": "The request parameter related to the error, if applicable."
                },
                "taskType": {
                  "type": "string",
                  "description": "The task type of the request that failed."
                },
                "taskUUID": {
                  "type": "string",
                  "description": "The unique identifier of the failed request."
                },
                "documentation": {
                  "type": "string",
                  "description": "A link to relevant documentation."
                }
              }
            }
          }
        },
        "required": [
          "errors"
        ],
        "additionalProperties": false
      }
    }
  },
  "paths": {
    "/": {
      "post": {
        "summary": "Run ACE-Step v1.5 XL SFT",
        "description": "ACE-Step v1.5 XL SFT is the supervised fine-tuned 4B DiT variant in the ACE-Step 1.5 XL line. It is positioned as the highest-quality XL option, combining 50-step CFG inference with stronger prompt adherence and refined audio quality for text-to-music, cover, and repaint workflows when final output quality matters more than speed or broader editing task coverage.",
        "operationId": "run_ace_step_v1_5_xl_sft",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RequestBody"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseBody"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request — Missing or invalid parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized — No valid API key provided.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required — Insufficient account balance.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden — The API key lacks permissions for this request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests — Rate limit exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Server Error — Something went wrong on Runware's end.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable — Temporarily unavailable (maintenance or capacity).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "apiKeyAuth": []
    }
  ]
}