Recraft AI's image vectorizer — converts a raster image into a clean SVG vector with editable paths
Recraft Vectorize API OpenAI-compatible
Base URL
https://api.lumenfall.ai/openai/v1
Model
recraft-vectorize
Code Examples
Parameter Reference
Required
Supported
Not available
Media Inputs
| Parameter | Type | Description | Modes |
|---|---|---|---|
image
|
file | Required. Input raster image to vectorize to SVG |
Vec
|
Output & Format
| Parameter | Type | Description | Modes |
|---|---|---|---|
response_format
|
string |
How to return the image
url
b64_json
Default:
"url" |
Vec
|
output_format
|
string |
Output image format
png
jpeg
gif
webp
avif
Gateway converts to requested format if provider doesn't support it natively.
|
Vec
|
output_compression
|
integer | Compression level for lossy formats (JPEG, WebP, AVIF) |
Vec
|
n
|
integer |
Number of images to generate
Default:
1Gateway generates multiple images in parallel even if provider only supports 1.
|
Vec
|
Parameter Normalization
How we handle parameters across different providers
Not every provider speaks the same language. When you send a parameter, we handle it in one of four ways depending on what the model supports:
| Behavior | What happens | Example |
|---|---|---|
passthrough |
Sent as-is to the provider | style, quality |
renamed |
Same value, mapped to the field name the provider expects | prompt |
converted |
Transformed to the provider's native format | size |
emulated |
Works even if the provider has no concept of it | n, response_format |
Parameters we don't recognize pass straight through to the upstream API, so provider-specific options still work.