Skip to main content

recraft/20b-svg/text-to-image

Generates one SVG icon or illustration from a short prompt in one of 21 Recraft styles, in about 11 seconds.

From $0.053/image

Workbench

Input

Text to image
33/1000
One subject reads best, especially for icons: a coffee cup with steam, a mountain with a rising sun. Add colours in words if you want them. Up to 1,000 characters. at least 1 characters · at most 1000 characters
Ten icon styles (outline, colored_outline, colored_shapes, doodle_fill and more) and eleven illustration styles (cartoon, kawaii, line_art, engraving, linocut, seamless and more). Default vector_illustration. The style does not change the price.
1:1 (default) for icons; 16:9, 9:16, 4:3 or 3:4 for banners and scenes. It sets the SVG canvas shape at no extra cost.
Safety checkerOff

SpicyAPI does not run a safety checker on this model. Your prompt and media go to the model as written, and the model itself decides what comes back.

Checking your account before enabling submission and pricing.

Output

Ready for a new run
coffee-cup-iconExample result

Missing the model you need?

Tell us what to add and where you would use it. Requests go to the people who decide what gets onboarded next.

RECRAFT 20B SVG API

Recraft 20B SVG API at a glance

Fast, low-cost SVG icons and illustrations in 21 named styles.

Styles
21
Ten icon looks and eleven illustration looks.
Per SVG
~11 s
Every one of our test runs finished in about 11 seconds.
Ratios
5
1:1, 16:9, 9:16, 4:3 and 3:4.

Results

What you can make with Recraft 20B SVG

  • Rendered previews of two Recraft 20B SVG icons: a coffee cup in a coloured-outline style and a mountain with a rising sun in a plain outline style.

    Icon styles

    Same model, two icon looks

    Left: a coffee cup in icon/colored_outline, 14 paths with a brown outline and soft fills. Right: a mountain-and-sun travel icon in icon/outline, 13 paths of pure line. Keeping one style across a set gives matching icons.

More clips made with Recraft 20B SVG

  • Rendered preview of the coffee-cup icon SVG.
  • Rendered preview of the mountain and sun outline icon SVG.
  • Rendered preview of a kawaii cat reading a book, in 4:3.

Before you run it

What to know before you run Recraft 20B SVG

Text to image
Style is chosen from the fixed list of 21; there is no colour-count or palette setting, so name colours in the prompt. Lettering is weaker than in Recraft V4 Vector or Ideogram Vector.
Text to image
Icons can include extra decoration you did not ask for, such as a leaf badge on a cup; describe the icon plainly and regenerate if needed.
All modes
Check that a generated icon does not resemble an existing brand logo before publishing it.

Use cases

What to build with the Recraft 20B SVG API

  • App and website icon sets

    Generate icons for menus, features and empty states in one style, then recolour them to match your interface.

  • Quick blog and social graphics

    Make a cartoon or kawaii spot illustration for a post or newsletter in seconds.

  • Craft and print projects

    Use line art, engraving or linocut styles for stickers, stamps, cutting machines and printed cards.

Prompts

Recraft 20B SVG prompt examples you can copy

Paste one into the playground as it is, then change one thing at a time.

  • Text to image

    One object and the word icon

    a mountain peak with a rising sun, outdoor travel app icon

    Why it works. A single subject plus the phrase app icon, with style set to icon/outline, gave a clean line icon of 13 paths.

    Try this prompt
  • Text to image

    Let the style carry the look

    a cute cat reading a book under a desk lamp

    Why it works. The prompt only describes the scene; the kawaii illustration style supplied the round eyes, thick outline and soft colours.

    Try this prompt

Pricing

Recraft 20B SVG API pricing

One image starts at $0.053.

The playground shows the exact price for your settings before you run. Failed or timed-out tasks are usually not charged. Some models charge for content refusals as stated on their model page; check those billing terms before submitting.

See every price tier

Get started

How to use the Recraft 20B SVG API in three steps

  1. Step 1

    Pick a style

    Choose an icon/* style for UI icons or a vector_illustration/* style for scenes; the default is vector_illustration.

  2. Step 2

    Describe one subject

    Icons work best with a single object, for example a coffee cup with steam or a mountain with a rising sun.

  3. Step 3

    Collect the SVG

    Poll the task, download the .svg and drop it into your design tool or codebase.

Parameter reference and code samples are in the API and Readme tabs at the top of this page.

Why SpicyAPI

Why run Recraft 20B SVG on SpicyAPI

  • No filter from us

    We add no content filter of our own. What the model renders is what you get back.

  • Tested, not guessed

    Content labels come from real generations we ran and checked, with the test date on the page.

  • Pay per result, in dollars

    No subscription and no credits. Failed or timed-out tasks are usually not charged. Some models charge for content refusals as stated on their model page; check those billing terms before submitting.

  • One key for every model

    One API key and balance cover image, video, audio and chat models, so you can explore more models from the same account.

FAQ

Recraft 20B SVG API FAQ

About Recraft 20B SVG

Recraft 20B SVG is built for volume: pick a style, describe the object and get a matching SVG icon or illustration in seconds, priced per file.

All Recraft models2

Related models and next tasks