Seedance 2.0 15% OFF | Create in Video Generator →

Recraft 20B SVG

recraft-ai /

Recraft-20B SVG generates fast, affordable SVG vector images ideal for scalable graphics and icons. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

text-to-image
Input
If enabled, the output will be encoded into a BASE64 string instead of a URL. This property is only available through the API.

Idle

$0.044per run·~22 / $1

ExamplesView all

Oil-painted round icon of a forest elf girl, golden border, painterly brushwork, fantasy RPG UI design, decorative look

Young woman waking up in the morning sunlight, lying in bed with tousled hair, warm backlight, intimate and natural moment, realistic skin tones and fabric texture

Father holding his baby in a sunlit park, candid emotion, detailed facial features, colorful autumn background, bokeh effect, Leica look

Man with a starry night sky in place of his face, wearing a suit, standing in a desert with melting clocks, inspired by Dali

A woman with butterflies emerging from her hair, floating in a weightless dreamscape

Woodcut-style portrait of a medieval knight, traditional linocut textures, strong black-and-white contrast, intricate lines, vintage book illustration

Traditional wood engraving of a woman in profile, botanical background, fine linework, 19th-century style, monochrome, rustic tone

Flat icon of a cyberpunk girl with pink hair and VR goggles, simple shapes, high contrast, modern UI design, clean vector look

Minimalist avatar icon of a samurai, red sun in background, stylized silhouette, vector-friendly, app design aesthetic

a minimalist glass perfume bottle with a golden cap

Related Models

README

Recraft 20B SVG

Generate scalable vector graphics (SVG) from text descriptions with Recraft 20B. This specialized model creates clean, production-ready vector illustrations across a wide range of styles — perfect for icons, logos, UI elements, and print-ready graphics that scale infinitely.

Why It Looks Great

  • True vector output: Generates SVG files that scale to any size without quality loss.
  • Extensive style library: 12+ specialized illustration styles from icons to detailed engravings.
  • Production-ready: Clean paths and optimized output for immediate use.
  • Icon specialization: Dedicated icon style for UI/UX and app design.
  • Prompt Enhancer: Built-in tool to refine your descriptions automatically.
  • Flexible aspect ratios: Multiple format options for any use case.

Parameters

ParameterRequiredDescription
promptYesText description of the vector graphic you want to generate.
aspect_ratioNoOutput format: 1:1, 16:9, 9:16, 4:3, 3:4, etc. Default: 1:1.
styleNoVector style preset (see Style Guide below). Default: icon.

How to Use

  1. Write your prompt — describe the vector graphic you want to create.
  2. Use Prompt Enhancer (optional) — click to automatically enrich your description.
  3. Set aspect ratio — choose the format that fits your use case.
  4. Choose style — select from the extensive style library.
  5. Run — click the button to generate.
  6. Download — save your SVG file.

Pricing

Flat rate per image generation.

OutputCost
Per SVG$0.044

Style Guide

StyleDescriptionBest For
iconClean, simple iconographyApp icons, UI elements, symbols
vector_illustrationGeneral vector artworkVersatile illustrations
vector_illustration/cartoonCartoon-style vectorsFun, playful graphics
vector_illustration/doodle_line_artHand-drawn doodle aestheticCasual, sketchy designs
vector_illustration/engravingClassic engraving styleVintage, premium designs
vector_illustration/flat_2Modern flat designUI, infographics, web
vector_illustration/kawaiiCute Japanese styleStickers, cute characters
vector_illustration/line_artClean line-based artMinimalist illustrations
vector_illustration/line_circuitCircuit board aestheticTech, electronics themes
vector_illustration/linocutBlock print styleArtistic, textured look
vector_illustration/seamlessTileable patternsBackgrounds, textures

Best Use Cases

  • Icon Design — Create app icons, UI elements, and symbol sets.
  • Logo Creation — Generate scalable logo concepts and brand marks.
  • UI/UX Assets — Produce vector elements for interfaces and apps.
  • Print Graphics — Create illustrations that print at any size.
  • Pattern Design — Generate seamless tileable patterns.
  • Game UI — Design RPG icons, badges, and decorative elements.

Example Prompts

  • "Oil-painted round icon of a forest elf girl, golden border, painterly brushwork, fantasy RPG UI design, decorative look"
  • "minimalist coffee cup icon, single color, simple shapes, app icon style"
  • "vintage engraving of a sailing ship, detailed linework, nautical theme"
  • "kawaii cat face sticker, cute expression, pastel colors, round design"
  • "seamless geometric pattern, art deco style, gold and black"
  • "flat illustration of a mountain landscape, modern minimal style, travel poster"

Pro Tips for Best Results

  • Use the icon style for clean, simple graphics suitable for apps and UI.
  • For detailed artwork, try engraving or line_art styles.
  • Use seamless style for backgrounds and tileable patterns.
  • Describe border styles and framing for RPG/game UI elements.
  • Include color preferences in your prompt for better control.
  • SVG output can be edited in tools like Illustrator, Figma, or Inkscape.

Notes

  • Output is true SVG format — infinitely scalable vector graphics.
  • SVG files can be further edited in any vector graphics software.
  • Processing time may vary based on complexity.
  • Some styles work better for certain subjects — experiment to find the best match.
Accessibility:This website uses AI models provided by third parties.

Recraft 20b Svg API — Quick start

Grab a WaveSpeedAI API key, then call POST https://api.wavespeed.ai/api/v3/recraft-ai/recraft-20b-svg with your input as JSON. The endpoint returns a prediction id; poll the prediction endpoint until status flips to completed, then read the output URL from data.outputs[0]. Examples for Recraft 20b Svg below.

HTTP example
# Submit the prediction
curl -X POST "https://api.wavespeed.ai/api/v3/recraft-ai/recraft-20b-svg" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY" \
  -d '{
    "prompt": "A cinematic shot of a city at sunset, soft golden light",
    "aspect_ratio": "1:1",
    "style": "vector_illustration",
    "enable_base64_output": false
}'

# Response includes a prediction id. Poll for the result:
curl -X GET "https://api.wavespeed.ai/api/v3/predictions/{request_id}/result" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY"

# When status is "completed", read the output from data.outputs[0].
Node.js example
// npm install wavespeed
const WaveSpeed = require('wavespeed');

const client = new WaveSpeed(); // reads WAVESPEED_API_KEY from env

const result = await client.run("recraft-ai/recraft-20b-svg", {
        "prompt": "A cinematic shot of a city at sunset, soft golden light",
        "aspect_ratio": "1:1",
        "style": "vector_illustration",
        "enable_base64_output": false
});

console.log(result.outputs[0]); // → URL of the generated output
Python example
# pip install wavespeed
import wavespeed

output = wavespeed.run(
    "recraft-ai/recraft-20b-svg",
    {
    "prompt": "A cinematic shot of a city at sunset, soft golden light",
    "aspect_ratio": "1:1",
    "style": "vector_illustration",
    "enable_base64_output": false
}
)

print(output["outputs"][0])  # → URL of the generated output

Recraft 20b Svg API — Frequently asked questions

What is the Recraft 20b Svg API?

Recraft 20b Svg is a Recraft model for image generation, exposed as a REST API on WaveSpeedAI. Recraft-20B SVG generates fast, affordable SVG vector images ideal for scalable graphics and icons. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.

How do I call the Recraft 20b Svg API?

POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your WaveSpeedAI API key in the Authorization header. Submission returns a prediction ID; poll the prediction endpoint until status flips to "completed", then read the output URL from the result. The playground generates a ready-to-paste code sample in Python, JavaScript, or cURL for whatever inputs you've set. Full request/response shape is documented at https://wavespeed.ai/docs/docs-api/recraft-ai/recraft-ai-recraft-20b-svg.

How much does Recraft 20b Svg cost per run?

Recraft 20b Svg starts at $0.044 per run. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.

What inputs does Recraft 20b Svg accept?

Key inputs: `prompt`, `aspect_ratio`, `enable_base64_output`, `style`. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at https://wavespeed.ai/docs/docs-api/recraft-ai/recraft-ai-recraft-20b-svg.

How long does Recraft 20b Svg take to generate?

Average end-to-end generation time on WaveSpeedAI is around 13 seconds per request — measured across recent runs. Queue time scales with global demand; live status is visible in the prediction record.

Can I use Recraft 20b Svg outputs commercially?

Commercial usage rights depend on the model's license, set by its provider (Recraft). The license summary appears on the model card above; see WaveSpeedAI's Terms of Service for platform-level conditions.