inference.recraft.v4.pro.txt2vec.v1
The inference.recraft.v4.pro.txt2vec.v1 job generates a vector (SVG) image from a text prompt using Recraft V4 Pro.
{ "type": "inference.recraft.v4.pro.txt2vec.v1", "config": { "prompt": "a minimalist mountain logo, flat vector" }}Additional configuration:
size(string; one of2048x2048,3072x1536,1536x3072,2560x1664,1664x2560,2432x1792,1792x2432,2304x1792,1792x2304,1664x2688,2560x1792,1792x2560,2688x1536,1536x2688; default2048x2048)controls(object)
This job type is also available under its partner alias inference.partner.recraft.v4.pro.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": "2048x2048", "enum": [ "2048x2048", "3072x1536", "1536x3072", "2560x1664", "1664x2560", "2432x1792", "1792x2432", "2304x1792", "1792x2304", "1664x2688", "2560x1792", "1792x2560", "2688x1536", "1536x2688" ] }, "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"}