## Basic model info

Model name: recraft-ai/recraft-v4-svg
Model description: Generate production-ready SVG vector images from text prompts. Recraft V4's design taste applied to vector output — clean geometry, structured layers, and editable paths.


## Model inputs

- prompt (required): Text prompt for image generation (up to 10,000 characters) (string)
- aspect_ratio (optional): Aspect ratio of the generated image (string)
- size (optional): Width and height of the generated image. Size is ignored if an aspect ratio is set. (string)


## Model output schema

{
  "type": "string",
  "title": "Output",
  "format": "uri"
}

If the input or output schema includes a format of URI, it is referring to a file.


## Example inputs and outputs

Use these example outputs to better understand the types of inputs the model accepts, and the types of outputs the model returns:

### Example (https://replicate.com/p/zevey76hy9rmy0cwe3k8qxgw7c)

#### Input

```json
{
  "prompt": "Retro 1970s style poster with the text 'Recraft V4' in bold groovy typography with rainbow gradient colors, sunburst background in warm orange and yellow tones, psychedelic design",
  "aspect_ratio": "1:1"
}
```

#### Output

```json
"https://replicate.delivery/xezq/GZWGe3cYG3xZUSlVYxKZbV0wjzKILnrDtgrmEPELIJed52IWA/tmp9xf39p1o.svg"
```


### Example (https://replicate.com/p/y6gz3mvfa9rmw0cwe3cbaqd7er)

#### Input

```json
{
  "prompt": "Minimalist logo design for a mountain hiking brand called 'Summit Trail', geometric mountain peaks with a winding path, clean lines, single color",
  "aspect_ratio": "1:1"
}
```

#### Output

```json
"https://replicate.delivery/xezq/eTh73SJoBxXUMKDSfVEiDq3EJzRh0D6xGv6Jvr61OYe8TtRsA/tmppokl5j1w.svg"
```


### Example (https://replicate.com/p/1jkv3aknc1rmt0cwe3cbps5kp0)

#### Input

```json
{
  "prompt": "Set of six line icons for a food delivery app: a shopping bag, a bicycle, a clock, a map pin, a star rating, and a credit card, consistent stroke width, minimal style",
  "aspect_ratio": "16:9"
}
```

#### Output

```json
"https://replicate.delivery/xezq/tNItVjfpOeniJUkIdVHHbXxgjz3hgpCpBAkQyJ1TJNIaq2IWA/tmpi2velhlh.svg"
```


### Example (https://replicate.com/p/qeqq0sbtvxrmy0cwe3c9x5npk0)

#### Input

```json
{
  "prompt": "Flat vector illustration of a woman working at her desk with a laptop, surrounded by houseplants, a cat on the windowsill, warm pastel color palette, modern editorial illustration style",
  "aspect_ratio": "1:1"
}
```

#### Output

```json
"https://replicate.delivery/xezq/1DIr8EkufGS9GqGkdfxwyf7YeVIZ4eM33jZjtUFf3TmHnqNiF/tmpqlte7jxb.svg"
```


### Example (https://replicate.com/p/9gpa4yc0zdrmt0cwe3c9tdyrqm)

#### Input

```json
{
  "prompt": "Vintage travel poster for Tokyo, Japan, featuring a stylized Tokyo Tower, cherry blossoms, and Mount Fuji in the background, bold typography reading 'Visit Tokyo', retro color palette with warm oranges and deep blues",
  "aspect_ratio": "2:3"
}
```

#### Output

```json
"https://replicate.delivery/xezq/K4V1HPO5ZaayI5Ws1YVOznTSc7ha0UYVWu1NyxmHR6FlqNiF/tmpxj4xlko7.svg"
```


### Example (https://replicate.com/p/9a84cvhrbsrmw0cwe6vv9n4z1r)

#### Input

```json
{
  "prompt": "A set of four minimalist coffee shop icons: a steaming cup, a coffee bean, a pour-over dripper, and a croissant. Clean line art style, consistent stroke weight, warm brown color palette on white background",
  "aspect_ratio": "1:1"
}
```

#### Output

```json
"https://replicate.delivery/xezq/ScZeUROoyAVTDiwwsDhALHPkC8fOz5EW7vlOmp3Jp7jHO6IWA/tmpg9z2s27t.svg"
```


### Example (https://replicate.com/p/3kjrskmk85rmw0cwe6vvpktx7m)

#### Input

```json
{
  "prompt": "A vintage-style botanical illustration of a monstera deliciosa leaf. Detailed vector art with clean outlines, subtle shading using flat color fills, dark green with lighter green highlights, cream background, scientific illustration aesthetic",
  "aspect_ratio": "3:4"
}
```

#### Output

```json
"https://replicate.delivery/xezq/FJswYgfseasvSE4Pd5YlWEip3pgktkZseHdPdVzs0br1d0RsA/tmp80lln2yo.svg"
```


### Example (https://replicate.com/p/ztjny9estdrmw0cweyct3cg5yw)

#### Input

```json
{
  "prompt": "Create a set of 6 clean vector icons in a bold minimal style: thick black outlines, flat white background, bright neon green accents only, no gradients, no shadows. Slightly playful abstract shapes, modern startup vibe. Icons: rocket launch button, hand holding a tiny cube, smiling AI face with grid overlay, checkbox growing like a plant, chat bubble with a coin, a coin with a dollar sign rolling like a comet.",
  "aspect_ratio": "3:2"
}
```

#### Output

```json
"https://replicate.delivery/xezq/MBgGaIZVJiqxEV7QDnudAS1rR2ehWvgEcClqQFZLa7AQLpELA/tmp1vuwsv8e.svg"
```


## Model readme

> ## Overview
> 
> Recraft V4 SVG generates editable vector files (SVG) from text prompts. These are actual vector graphics with structured layers and clean geometry — not traced rasters. The output is ready to open in design tools like Illustrator, Figma, or Sketch, or to use directly on the web.
> 
> Recraft is the only image generation model that produces native vector output. V4 SVG brings the same design taste and prompt accuracy as the raster V4 model to vector workflows — brand assets, illustrations, icons, and product design elements with no tracing or conversion steps required.
> 
> This is the standard-resolution vector model. For higher-resolution vector output, use [Recraft V4 Pro SVG](https://replicate.com/recraft-ai/recraft-v4-pro-svg).
> 
> ## Features
> 
> - **Native SVG output.** Generates actual editable vector files with clean paths and structured layers — not rasterized images converted to SVG.
> - **Design taste built in.** V4's visual judgment applies to vector output too — balanced composition, cohesive color, and refined detail.
> - **Production-ready vectors.** Output works directly in professional design tools and on the web. No cleanup or path optimization needed.
> - **Strong prompt accuracy.** Supports prompts up to 10,000 characters. What you describe is what you get.
> - **Multiple aspect ratios.** Generate in 1:1, 4:3, 3:2, 16:9, 9:16, and other common ratios.
> 
> ## Use cases
> 
> - Brand assets: logos, wordmarks, monograms
> - Illustrations for web and print
> - Icon sets and graphic libraries
> - Product design elements and packaging graphics
> - Social media graphics that scale to any size
> 
> ## Licensing and commercial use
> 
> Images generated on Replicate with Recraft V4 SVG can be used commercially. See [Recraft's terms](https://www.recraft.ai/terms) for details.

