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
| パラメータ | 型 | 必須 | 説明 |
|---|
apiKey | string | はい | QuiverAI API key |
prompt | string | はい | A text description of the desired SVG |
model | string | はい | The model to use for SVG generation (e.g., "arrow-preview") |
instructions | string | いいえ | Style or formatting guidance for the SVG output |
references | file | いいえ | Reference images to guide SVG generation (up to 4) |
n | number | いいえ | Number of SVGs to generate (1-16, default 1) |
temperature | number | いいえ | Sampling temperature (0-2, default 1) |
top_p | number | いいえ | Nucleus sampling probability (0-1, default 1) |
max_output_tokens | number | いいえ | Maximum output tokens (1-131072) |
presence_penalty | number | いいえ | Token penalty for prior output (-2 to 2, default 0) |
| パラメータ | 型 | 説明 |
|---|
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
| パラメータ | 型 | 必須 | 説明 |
|---|
apiKey | string | はい | QuiverAI API key |
model | string | はい | The model to use for vectorization (e.g., "arrow-preview") |
image | file | はい | The raster image to vectorize into SVG |
temperature | number | いいえ | Sampling temperature (0-2, default 1) |
top_p | number | いいえ | Nucleus sampling probability (0-1, default 1) |
max_output_tokens | number | いいえ | Maximum output tokens (1-131072) |
presence_penalty | number | いいえ | Token penalty for prior output (-2 to 2, default 0) |
auto_crop | boolean | いいえ | Automatically crop the image before vectorizing |
target_size | number | いいえ | Square resize target in pixels (128-4096) |
| パラメータ | 型 | 説明 |
|---|
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
| パラメータ | 型 | 必須 | 説明 |
|---|
apiKey | string | はい | QuiverAI API key |
| パラメータ | 型 | 説明 |
|---|
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) |