changedInput schema / properties / request / anyOf
Previous value: -[
- {
- "properties": {
- "ref_file_url": {
- "description": "Url of the reference file to run task. The url should be publicly accessible.",
- "examples": [
- "https://example.com/reference.jpg"
- ],
- "type": "string"
- },
- "src_file_url": {
- "description": "Url of the file to run task. The url should be publicly accessible.",
- "examples": [
- "https://example.com/selfie.jpg"
- ],
- "type": "string"
- }
- },
- "required": [
- "src_file_url",
- "ref_file_url"
- ],
- "type": "object"
- },
- {
- "properties": {
- "ref_file_id": {
- "description": "ID of the reference file to run task. File ID from upload file API.",
- "examples": [
- "pfNK5PuRe0MrwLHcGA3DOmB1ahwfXTbYHjv+KoBIxbE="
- ],
- "type": "string"
- },
- "src_file_url": {
- "description": "Url of the file to run task. The url should be publicly accessible.",
- "examples": [
- "https://example.com/selfie.jpg"
- ],
- "type": "string"
- }
- },
- "required": [
- "src_file_url",
- "ref_file_id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "ref_file_url": {
- "description": "Url of the reference file to run task. The url should be publicly accessible.",
- "examples": [
- "https://example.com/reference.jpg"
- ],
- "type": "string"
- },
- "src_file_id": {
- "description": "ID of file to run task. File ID from upload file API.",
- "examples": [
- "pfNK5PuRe0MrwLHcGA3DOmB1ahwfXTbYHjv+KoBIxbE="
- ],
- "type": "string"
- }
- },
- "required": [
- "src_file_id",
- "ref_file_url"
- ],
- "type": "object"
- },
- {
- "properties": {
- "ref_file_id": {
- "description": "ID of the reference file to run task. File ID from upload file API.",
- "examples": [
- "pfNK5PuRe0MrwLHcGA3DOmB1ahwfXTbYHjv+KoBIxbE="
- ],
- "type": "string"
- },
- "src_file_id": {
- "description": "ID of file to run task. File ID from upload file API.",
- "examples": [
- "pfNK5PuRe0MrwLHcGA3DOmB1ahwfXTbYHjv+KoBIxbE="
- ],
- "type": "string"
- }
- },
- "required": [
- "src_file_id",
- "ref_file_id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "hair_color": {
- "anyOf": [
- {
- "enum": [
- "ref",
- "src"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "ref",
- "description": "Specifies the hair color of the output image (source/reference), default reference color. <br><b>*only support when using template, custom reference image is always using reference hair color.</b>"
- },
- "src_file_url": {
- "description": "Url of the file to run task. The url should be publicly accessible.",
- "examples": [
- "https://example.com/selfie.jpg"
- ],
- "type": "string"
- },
- "template_id": {
- "description": "ID of the template. List predefined templates first, and use the id of a template.",
- "examples": [
- "good_template_001"
- ],
- "type": "string"
- }
- },
- "required": [
- "src_file_url",
- "template_id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "hair_color": {
- "anyOf": [
- {
- "enum": [
- "ref",
- "src"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "ref",
- "description": "Specifies the hair color of the output image (source/reference), default reference color. <br><b>*only support when using template, custom reference image is always using reference hair color.</b>"
- },
- "src_file_id": {
- "description": "ID of file to run task. File ID from upload file API.",
- "examples": [
- "pfNK5PuRe0MrwLHcGA3DOmB1ahwfXTbYHjv+KoBIxbE="
- ],
- "type": "string"
- },
- "template_id": {
- "description": "ID of the template. List predefined templates first, and use the id of a template.",
- "examples": [
- "good_template_001"
- ],
- "type": "string"
- }
- },
- "required": [
- "src_file_id",
- "template_id"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "properties": {
+ "hair_color": {
+ "anyOf": [
+ {
+ "enum": [
+ "ref",
+ "src"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": "ref",
+ "description": "Specifies the hair color of the output image (source/reference), default reference color."
+ },
+ "ref_file_url": {
+ "description": "Url of the reference file to run task. The url should be publicly accessible.",
+ "examples": [
+ "https://example.com/reference.jpg"
+ ],
+ "type": "string"
+ },
+ "src_file_url": {
+ "description": "Url of the file to run task. The url should be publicly accessible.",
+ "examples": [
+ "https://example.com/selfie.jpg"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "src_file_url",
+ "ref_file_url"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "hair_color": {
+ "anyOf": [
+ {
+ "enum": [
+ "ref",
+ "src"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": "ref",
+ "description": "Specifies the hair color of the output image (source/reference), default reference color."
+ },
+ "ref_file_id": {
+ "description": "ID of the reference file to run task. File ID from upload file API.",
+ "examples": [
+ "pfNK5PuRe0MrwLHcGA3DOmB1ahwfXTbYHjv+KoBIxbE="
+ ],
+ "type": "string"
+ },
+ "src_file_url": {
+ "description": "Url of the file to run task. The url should be publicly accessible.",
+ "examples": [
+ "https://example.com/selfie.jpg"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "src_file_url",
+ "ref_file_id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "hair_color": {
+ "anyOf": [
+ {
+ "enum": [
+ "ref",
+ "src"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": "ref",
+ "description": "Specifies the hair color of the output image (source/reference), default reference color."
+ },
+ "ref_file_url": {
+ "description": "Url of the reference file to run task. The url should be publicly accessible.",
+ "examples": [
+ "https://example.com/reference.jpg"
+ ],
+ "type": "string"
+ },
+ "src_file_id": {
+ "description": "ID of file to run task. File ID from upload file API.",
+ "examples": [
+ "pfNK5PuRe0MrwLHcGA3DOmB1ahwfXTbYHjv+KoBIxbE="
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "src_file_id",
+ "ref_file_url"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "hair_color": {
+ "anyOf": [
+ {
+ "enum": [
+ "ref",
+ "src"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": "ref",
+ "description": "Specifies the hair color of the output image (source/reference), default reference color."
+ },
+ "ref_file_id": {
+ "description": "ID of the reference file to run task. File ID from upload file API.",
+ "examples": [
+ "pfNK5PuRe0MrwLHcGA3DOmB1ahwfXTbYHjv+KoBIxbE="
+ ],
+ "type": "string"
+ },
+ "src_file_id": {
+ "description": "ID of file to run task. File ID from upload file API.",
+ "examples": [
+ "pfNK5PuRe0MrwLHcGA3DOmB1ahwfXTbYHjv+KoBIxbE="
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "src_file_id",
+ "ref_file_id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "hair_color": {
+ "anyOf": [
+ {
+ "enum": [
+ "ref",
+ "src"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": "ref",
+ "description": "Specifies the hair color of the output image (source/reference), default reference color."
+ },
+ "src_file_url": {
+ "description": "Url of the file to run task. The url should be publicly accessible.",
+ "examples": [
+ "https://example.com/selfie.jpg"
+ ],
+ "type": "string"
+ },
+ "template_id": {
+ "description": "ID of the template. List predefined templates first, and use the id of a template.",
+ "examples": [
+ "good_template_001"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "src_file_url",
+ "template_id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "hair_color": {
+ "anyOf": [
+ {
+ "enum": [
+ "ref",
+ "src"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": "ref",
+ "description": "Specifies the hair color of the output image (source/reference), default reference color."
+ },
+ "src_file_id": {
+ "description": "ID of file to run task. File ID from upload file API.",
+ "examples": [
+ "pfNK5PuRe0MrwLHcGA3DOmB1ahwfXTbYHjv+KoBIxbE="
+ ],
+ "type": "string"
+ },
+ "template_id": {
+ "description": "ID of the template. List predefined templates first, and use the id of a template.",
+ "examples": [
+ "good_template_001"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "src_file_id",
+ "template_id"
+ ],
+ "type": "object"
+ }
+]