Skip to content

inference.recraft.v4.pro.txt2img.v1

{
"type": "object",
"required": [
"type",
"config"
],
"properties": {
"type": {
"type": "string",
"enum": [
"inference.recraft.v4.pro.txt2img.v1"
]
},
"config": {
"type": "object",
"additionalProperties": false,
"required": [
"prompt"
],
"properties": {
"prompt": {
"type": "string",
"minLength": 0,
"maxLength": 10000,
"examples": [
"puppies in a cloud, 4k"
]
},
"size": {
"type": "string",
"default": "2048x2048",
"enum": [
"2048x2048",
"3072x1536",
"1536x3072",
"2560x1664",
"1664x2560",
"2432x1792",
"1792x2432",
"2304x1792",
"1792x2304",
"1664x2688",
"2560x1792",
"1792x2560",
"2688x1536",
"1536x2688"
]
},
"text_layout": {
"type": "array",
"description": "Array of text elements to render on the image with bounding box positions",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"text",
"bbox"
],
"properties": {
"text": {
"type": "string",
"description": "Text content to render"
},
"bbox": {
"type": "array",
"description": "Bounding box as 4 corner points, each [x, y] normalized to 0-1 range",
"minItems": 4,
"maxItems": 4,
"items": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": {
"type": "number",
"minimum": 0,
"maximum": 1
}
}
}
}
}
}
}
}
}
}