{ "model_id": "recraft/recraftv4-pro-vector", "provider_id": "recraft", "name": "Recraft V4 Pro SVG", "description": "Generate detailed, production-ready SVG vector graphics from text prompts with fine geometry, scalable to any size for print and design work.", "task": "Text-to-Image", "tags": [ "Image Generation", "SVG", "Vector", "Design", "High Resolution" ], "context_length": null, "max_output_tokens": null, "schema_version": "1.0.0", "pricing": { "Per image": 0.3 }, "examples": [ { "name": "Logo Design", "description": "Generate a scalable vector logo", "input": { "prompt": "A modern minimalist logo for a cloud computing company, clean geometric shapes" }, "output": { "image": "https://examples.aig.cloudflare.com/recraft/recraftv4-pro-vector/logo-design.svg" }, "raw_response": { "state": "Completed", "result": { "image": "https://examples.aig.cloudflare.com/recraft/recraftv4-pro-vector/logo-design.svg" }, "gatewayMetadata": { "keySource": "Unified" } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'recraft/recraftv4-pro-vector',\n { prompt: 'A modern minimalist logo for a cloud computing company, clean geometric shapes' },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"recraft/recraftv4-pro-vector\",\n \"input\": {\n \"prompt\": \"A modern minimalist logo for a cloud computing company, clean geometric shapes\"\n }\n}'" } ] }, { "name": "Icon Set", "description": "Generate a vector icon", "input": { "prompt": "A flat design icon of a rocket launching, suitable for a mobile app", "size": "2048x2048" }, "output": { "image": "https://examples.aig.cloudflare.com/recraft/recraftv4-pro-vector/icon-set.svg" }, "raw_response": { "state": "Completed", "result": { "image": "https://examples.aig.cloudflare.com/recraft/recraftv4-pro-vector/icon-set.svg" }, "gatewayMetadata": { "keySource": "Unified" } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'recraft/recraftv4-pro-vector',\n {\n prompt: 'A flat design icon of a rocket launching, suitable for a mobile app',\n size: '2048x2048',\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"recraft/recraftv4-pro-vector\",\n \"input\": {\n \"prompt\": \"A flat design icon of a rocket launching, suitable for a mobile app\",\n \"size\": \"2048x2048\"\n }\n}'" } ] }, { "name": "Print-Ready Vector", "description": "High-resolution vector for large-format print", "input": { "prompt": "An intricate mandala pattern with floral and geometric elements, highly detailed and symmetrical", "size": "2048x2048" }, "output": { "image": "https://examples.aig.cloudflare.com/recraft/recraftv4-pro-vector/print-ready-vector.svg" }, "raw_response": { "state": "Completed", "result": { "image": "https://examples.aig.cloudflare.com/recraft/recraftv4-pro-vector/print-ready-vector.svg" }, "gatewayMetadata": { "keySource": "Unified" } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'recraft/recraftv4-pro-vector',\n {\n prompt:\n 'An intricate mandala pattern with floral and geometric elements, highly detailed and symmetrical',\n size: '2048x2048',\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"recraft/recraftv4-pro-vector\",\n \"input\": {\n \"prompt\": \"An intricate mandala pattern with floral and geometric elements, highly detailed and symmetrical\",\n \"size\": \"2048x2048\"\n }\n}'" } ] }, { "name": "Brand Illustration", "description": "Vector illustration with brand colors", "input": { "prompt": "A vector illustration of a cityscape skyline at sunset with clean lines and flat colors", "controls": { "colors": [ { "rgb": [ 255, 87, 51 ] }, { "rgb": [ 41, 50, 65 ] }, { "rgb": [ 239, 239, 239 ] } ] } }, "output": { "image": "https://examples.aig.cloudflare.com/recraft/recraftv4-pro-vector/brand-illustration.svg" }, "raw_response": { "state": "Completed", "result": { "image": "https://examples.aig.cloudflare.com/recraft/recraftv4-pro-vector/brand-illustration.svg" }, "gatewayMetadata": { "keySource": "Unified" } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'recraft/recraftv4-pro-vector',\n {\n prompt: 'A vector illustration of a cityscape skyline at sunset with clean lines and flat colors',\n controls: { colors: [{ rgb: [255, 87, 51] }, { rgb: [41, 50, 65] }, { rgb: [239, 239, 239] }] },\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"recraft/recraftv4-pro-vector\",\n \"input\": {\n \"prompt\": \"A vector illustration of a cityscape skyline at sunset with clean lines and flat colors\",\n \"controls\": {\n \"colors\": [\n {\n \"rgb\": [\n 255,\n 87,\n 51\n ]\n },\n {\n \"rgb\": [\n 41,\n 50,\n 65\n ]\n },\n {\n \"rgb\": [\n 239,\n 239,\n 239\n ]\n }\n ]\n }\n }\n}'" } ] } ], "default_example": null, "code_snippets": [], "supports_async": false, "zdr": true, "zdr_comment": null, "external_info": "https://www.recraft.ai/", "terms": "https://www.recraft.ai/terms", "cover_image_url": "https://pub-26f1392c1b674324be6786695bd72257.r2.dev/recraft/recraftv4-pro-vector.png", "metadata": { "Output Format": "SVG", "Resolution": "2048px+" }, "request_formats": null, "providers": null, "provider_details": [ { "id": "recraft", "pricing": { "output_image_count": 0.3 } } ], "banner": null, "created_at": "2026-05-22 17:53:55", "schema": { "input": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "prompt": { "type": "string" }, "size": { "type": "string" }, "style": { "type": "string" }, "substyle": { "type": "string" }, "controls": { "type": "object", "properties": { "colors": { "maxItems": 5, "type": "array", "items": { "type": "object", "properties": { "rgb": { "minItems": 3, "maxItems": 3, "type": "array", "items": { "type": "integer", "minimum": 0, "maximum": 255 } } }, "required": [ "rgb" ], "additionalProperties": false } }, "background_color": { "type": "object", "properties": { "rgb": { "minItems": 3, "maxItems": 3, "type": "array", "items": { "type": "integer", "minimum": 0, "maximum": 255 } } }, "required": [ "rgb" ], "additionalProperties": false } }, "additionalProperties": false } }, "required": [ "prompt" ], "additionalProperties": false }, "output": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "image": { "type": "string" } }, "required": [ "image" ], "additionalProperties": false } } }