## Basic model info

Model name: recraft-ai/recraft-v4.1-svg
Model description: Generate production-ready SVG vector images from text prompts. Recraft V4.1'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/3apg2eabnnrmw0cy33pb1wb2d8)

#### Input

```json
{
  "size": "1024x1024",
  "prompt": "A cross-section diagram of an impossible underground city built inside a giant geode \u2014 the outer shell is raw volcanic rock with visible mineral strata, and inside, crystalline amethyst formations become the architecture: spires are natural quartz clusters, bridges are thin selenite slabs, streets follow the growth lines of the crystals. Tiny silhouetted figures walk through the caverns. Illuminated from within by bioluminescent moss. Flat vector illustration, intricate linework, color palette of deep indigo, lavender, pale gold, and electric violet. Isometric cross-section view, like a naturalist's diagram crossed with a fantasy city map.",
  "aspect_ratio": "Not set"
}
```

#### Output

```json
"https://replicate.delivery/xezq/Yojjj0uae9QMOyh5l1ZoygOogsmOLvwkfssNguzfGLH3WfPaB/tmpm1rs65pr.svg"
```


## Model readme

> ## Overview
> 
> Recraft V4.1 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.1 SVG brings the same design taste and prompt accuracy as the raster V4.1 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.1 Pro SVG](https://replicate.com/recraft-ai/recraft-v4.1-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.1'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.
> - **Strong prompt accuracy.** Supports prompts up to 10,000 characters.
> - **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
> 
> ## Licensing and commercial use
> 
> Images generated on Replicate with Recraft V4.1 SVG can be used commercially. See [Recraft's terms](https://www.recraft.ai/terms) for details.

