Text to SVG skill
Describe a subject, style, colors and composition, and generate a native SVG vector image.
Use it in the browser
Write a prompt in the Text to SVG workspace, preview the vector result and download it.
Open Text to SVGCall it from your agent
Pass a description to generate_svg_from_text. 30 credits per job.
MCP toolgenerate_svg_from_text
Connects with OAuth to your existing ImageToLayers account. No separate API key.
MCP setup guideBefore and after
One written prompt and the SVG generated from it.
A friendly orange fox riding a vintage bicycle, simple flat vector illustration, bold clean geometric shapes, dark navy outlines, orange, cream and teal color palette, centered composition, playful modern editorial style, balanced negative space, clean professional vector artwork, no text, no lettering, no photorealism
Sample from the ImageToLayers library. The same prompt can produce a different result.
What this skill does
Native vector output
A completed job returns an SVG file rather than a raster image.
Pick a canvas shape
square, landscape, portrait, wide or tall.
Guide the palette
Send up to five hex colors to steer the result.
No source image
The tool needs only a written description.
Tool parameters
The inputs the MCP tool accepts.
promptstring (3–1500)RequiredWhat to draw, including subject, style, colors and composition. Screened against the content policy.
canvasenumOptionalCanvas shape of the generated image.
Allowed values:
square, landscape, portrait, wide, tallDefault:
squarepreferred_colorsstring[] (≤5, #rrggbb)OptionalUp to five hex colors, such as #214e34, to guide the palette.
request_idstring (1–200)RequiredA unique ID you choose for this request. Reusing it returns the original job.
How an agent runs it
- 1
Describe the image
The agent calls generate_svg_from_text with a prompt and a request_id.
- 2
Receive a job ID
The tool screens the prompt, checks credits and starts an asynchronous job.
- 3
Poll and download
The agent calls get_job until the job completes, then downloads the SVG.
Example tool call
{
"name": "generate_svg_from_text",
"arguments": {
"prompt": "A friendly orange fox riding a vintage bicycle, flat vector illustration",
"canvas": "square",
"preferred_colors": [
"#e8742c",
"#1f7a74"
],
"request_id": "svg-2026-001"
}
}Connects with OAuth to your existing ImageToLayers account. No separate API key. MCP setup guide
Related skills
Image to layers
Split a flat image into separate subject, background and object layers.
View skillExtend image
Grow a picture beyond its borders to reach a new aspect ratio.
View skillFrequently asked questions
Is the output a real SVG?
Yes. A completed job returns an SVG file with the image/svg+xml type.
Can I set exact colors?
preferred_colors guides the palette but does not guarantee that only those colors appear.
How long can the prompt be?
Between 3 and 1500 characters.
Can this tool vectorize an existing picture?
No. generate_svg_from_text creates a new image from text only.
How much does one job cost?
30 credits per SVG generation.
How do I get the result from an agent call?
The tool returns a job_id straight away. Poll get_job with that ID until the status is completed or failed. Completed jobs include time-limited download links; call get_job again if a link has expired.
Do I need a separate account or API key for agents?
No. Your MCP client connects with OAuth to your existing ImageToLayers account.
What happens if a request is retried?
Send the same request_id. You get the original job back instead of a second charge.
AI-generated and AI-edited results may vary. Review important visual details before publishing or using outputs in production.
Turn a sentence into a vector
Generate it in the browser, or hand the task to your agent.