Generate and vectorize SVGs
Generate SVG images from text prompts or vectorize raster images into SVGs using QuiverAI. Supports reference images, style instructions, and multiple output generation.
Generate SVG images from text prompts using QuiverAI
| Parámetro | Tipo | Obligatorio | Descripción |
|---|
apiKey | string | Sí | QuiverAI API key |
prompt | string | Sí | A text description of the desired SVG |
model | string | Sí | The model to use for SVG generation (e.g., "arrow-preview") |
instructions | string | No | Style or formatting guidance for the SVG output |
references | file | No | Reference images to guide SVG generation (up to 4) |
n | number | No | Number of SVGs to generate (1-16, default 1) |
temperature | number | No | Sampling temperature (0-2, default 1) |
top_p | number | No | Nucleus sampling probability (0-1, default 1) |
max_output_tokens | number | No | Maximum output tokens (1-131072) |
presence_penalty | number | No | Token penalty for prior output (-2 to 2, default 0) |
| Parámetro | Tipo | Descripción |
|---|
success | boolean | Whether the SVG generation succeeded |
output | object | Generated SVG output |
↳ file | file | First generated SVG file |
↳ files | json | All generated SVG files (when n > 1) |
↳ svgContent | string | Raw SVG markup content of the first result |
↳ id | string | Generation request ID |
↳ usage | json | Token usage statistics |
↳ totalTokens | number | Total tokens used |
↳ inputTokens | number | Input tokens used |
↳ outputTokens | number | Output tokens used |
Convert raster images into vector SVG format using QuiverAI
| Parámetro | Tipo | Obligatorio | Descripción |
|---|
apiKey | string | Sí | QuiverAI API key |
model | string | Sí | The model to use for vectorization (e.g., "arrow-preview") |
image | file | Sí | The raster image to vectorize into SVG |
temperature | number | No | Sampling temperature (0-2, default 1) |
top_p | number | No | Nucleus sampling probability (0-1, default 1) |
max_output_tokens | number | No | Maximum output tokens (1-131072) |
presence_penalty | number | No | Token penalty for prior output (-2 to 2, default 0) |
auto_crop | boolean | No | Automatically crop the image before vectorizing |
target_size | number | No | Square resize target in pixels (128-4096) |
| Parámetro | Tipo | Descripción |
|---|
success | boolean | Whether the vectorization succeeded |
output | object | Vectorized SVG output |
↳ file | file | Generated SVG file |
↳ svgContent | string | Raw SVG markup content |
↳ id | string | Vectorization request ID |
↳ usage | json | Token usage statistics |
↳ totalTokens | number | Total tokens used |
↳ inputTokens | number | Input tokens used |
↳ outputTokens | number | Output tokens used |
List all available QuiverAI models
| Parámetro | Tipo | Obligatorio | Descripción |
|---|
apiKey | string | Sí | QuiverAI API key |
| Parámetro | Tipo | Descripción |
|---|
success | boolean | Whether the request succeeded |
output | object | Available models |
↳ models | json | List of available QuiverAI models |
↳ id | string | Model identifier |
↳ name | string | Human-readable model name |
↳ description | string | Model capabilities summary |
↳ created | number | Unix timestamp of creation |
↳ ownedBy | string | Organization that owns the model |
↳ inputModalities | json | Supported input types (text, image, svg) |
↳ outputModalities | json | Supported output types (text, image, svg) |
↳ contextLength | number | Maximum context window |
↳ maxOutputLength | number | Maximum generation length |
↳ supportedOperations | json | Available operations (svg_generate, svg_edit, svg_animate, svg_vectorize, chat_completions) |
↳ supportedSamplingParameters | json | Supported sampling parameters (temperature, top_p, top_k, repetition_penalty, presence_penalty, stop) |