Skip to content

inference.recraft.txt2img.v1

Schema

{
"type": "object",
"required": [
"type",
"config"
],
"properties": {
"type": {
"type": "string",
"enum": [
"inference.recraft.txt2img.v1"
]
},
"config": {
"type": "object",
"additionalProperties": false,
"required": [
"prompt"
],
"properties": {
"prompt": {
"type": "string",
"minLength": 0,
"maxLength": 1000,
"examples": [
"puppies in a cloud, 4k"
]
},
"text_layout": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"text",
"bbox"
],
"properties": {
"text": {
"type": "string"
},
"bbox": {
"type": "array",
"minItems": 4,
"maxItems": 4,
"items": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": {
"type": "number",
"minimum": 0,
"maximum": 1
}
}
}
}
}
},
"n": {
"type": "integer",
"default": 1,
"enum": [
1,
2
]
},
"style": {
"type": "string",
"default": "realistic_image"
},
"substyle": {
"type": "string"
},
"artistic_level": {
"type": "integer",
"minimum": 0,
"maximum": 5
},
"size": {
"type": "string",
"default": "1024x1024",
"enum": [
"1024x1024",
"1024x1280",
"1024x1365",
"1024x1434",
"1024x1536",
"1024x1707",
"1024x1820",
"1024x2048",
"1280x1024",
"1365x1024",
"1434x1024",
"1536x1024",
"1707x1024",
"1820x1024",
"2048x1024"
]
},
"controls": {
"type": "object",
"additionalProperties": false,
"required": [
"colors"
],
"properties": {
"colors": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"rgb"
],
"properties": {
"rgb": {
"type": "array",
"minLength": 3,
"maxLength": 3,
"items": {
"type": "integer",
"minimum": 0,
"maximum": 255
}
}
}
}
},
"background_color": {
"type": "object",
"additionalProperties": false,
"required": [
"rgb"
],
"properties": {
"rgb": {
"type": "array",
"minLength": 3,
"maxLength": 3,
"items": {
"type": "integer",
"minimum": 0,
"maximum": 255
}
}
}
}
}
}
}
}
}
}