Pricing
Compare models →Flat rate per image generation.
| Output | Cost |
|---|---|
| Per SVG | $0.044 |
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | The positive prompt for the generation. |
aspect_ratio | string | The aspect ratio of the generated image. Defaults to 1:1.1:116:99:164:33:4"1:1" |
style | string | Style of the generated image.vector_illustrationvector_illustration/cartoonvector_illustration/doodle_line_artvector_illustration/engravingvector_illustration/flat_2vector_illustration/kawaiivector_illustration/line_artvector_illustration/line_circuitvector_illustration/linocutvector_illustration/seamlessiconicon/broken_lineicon/colored_outlineicon/colored_shapesicon/colored_shapes_gradienticon/doodle_fillicon/doodle_offset_fillicon/offset_fillicon/outlineicon/outline_gradienticon/uneven_fill"vector_illustration" |
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
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text description of the vector graphic you want to generate. |
| aspect_ratio | No | Output format: 1:1, 16:9, 9:16, 4:3, 3:4, etc. Default: 1:1. |
| style | No | Vector style preset (see Style Guide below). Default: icon. |
How to Use
- Write your prompt — describe the vector graphic you want to create.
- Use Prompt Enhancer (optional) — click to automatically enrich your description.
- Set aspect ratio — choose the format that fits your use case.
- Choose style — select from the extensive style library.
- Run — click the button to generate.
- Download — save your SVG file.
Pricing
Flat rate per image generation.
| Output | Cost |
|---|---|
| Per SVG | $0.044 |
Style Guide
| Style | Description | Best For |
|---|---|---|
| icon | Clean, simple iconography | App icons, UI elements, symbols |
| vector_illustration | General vector artwork | Versatile illustrations |
| vector_illustration/cartoon | Cartoon-style vectors | Fun, playful graphics |
| vector_illustration/doodle_line_art | Hand-drawn doodle aesthetic | Casual, sketchy designs |
| vector_illustration/engraving | Classic engraving style | Vintage, premium designs |
| vector_illustration/flat_2 | Modern flat design | UI, infographics, web |
| vector_illustration/kawaii | Cute Japanese style | Stickers, cute characters |
| vector_illustration/line_art | Clean line-based art | Minimalist illustrations |
| vector_illustration/line_circuit | Circuit board aesthetic | Tech, electronics themes |
| vector_illustration/linocut | Block print style | Artistic, textured look |
| vector_illustration/seamless | Tileable patterns | Backgrounds, 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.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Recraft 20B SVG Text-to-Image API example
The catalog lists POST https://api.opensi.com.ai/api/v3/recraft-ai/recraft-20b-svg for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"aspect_ratio": "1:1",
"style": "vector_illustration"
}Recraft 20B SVG Text-to-Image 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 OpenSIAI. 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 OpenSIAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates Python, JavaScript, and cURL examples for submitting requests and polling results. Full request/response shape is documented at /docs/docs-api/recraft-ai/recraft-20b-svg.
How much does Recraft 20b Svg cost per run or per second?
Recraft 20b Svg starts at $0.044 per run or per second. 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, style. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at /docs/docs-api/recraft-ai/recraft-20b-svg.
How long does Recraft 20b Svg take to generate?
Reported generation time on OpenSIAI is around 9 seconds per request. This is an estimate, not a latency guarantee; queue time and input settings can change the total wait. 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). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.
