inference.recraft.v4.txt2vec.v1
The inference.recraft.v4.txt2vec.v1 job generates a vector (SVG) image from a text prompt using Recraft V4.
{ "type": "inference.recraft.v4.txt2vec.v1", "config": { "prompt": "a minimalist mountain logo, flat vector" }}Additional configuration:
size(string; one of1024x1024,1536x768,768x1536,1280x832,832x1280,1216x896,896x1216,1152x896,896x1152,832x1344,1280x896,896x1280,1344x768,768x1344; default1024x1024)controls(object)
This job type is also available under its partner alias inference.partner.recraft.v4.txt2vec.v1.
Schema
Section titled “Schema”{ "type": "object", "required": [ "type", "config" ], "properties": { "type": { "type": "string" }, "config": { "type": "object", "additionalProperties": false, "required": [ "prompt" ], "properties": { "prompt": { "type": "string", "minLength": 0, "maxLength": 10000, "examples": [ "a minimalist logo of a mountain" ] }, "size": { "type": "string", "default": "1024x1024", "enum": [ "1024x1024", "1536x768", "768x1536", "1280x832", "832x1280", "1216x896", "896x1216", "1152x896", "896x1152", "832x1344", "1280x896", "896x1280", "1344x768", "768x1344" ] }, "controls": { "type": "object", "additionalProperties": false, "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 } } } } } } } } }, "$schema": "https://json-schema.org/draft/2020-12/schema"}