Skip to main content
Generate one or more SVGs from a text prompt and optional reference images via POST /v1/svgs/generations. The flagship model is Arrow (arrow-preview), purpose-built for high-quality SVG generation.

Examples

Elegant calligraphic script
Japanese crane illustration
Heraldic lion crest

Calligraphy

Prompt: “Elegant calligraphic script in a flowing hand-lettered style, single continuous stroke”
import { QuiverAI } from "@quiverai/sdk";

const client = new QuiverAI({
  bearerAuth: process.env["QUIVERAI_API_KEY"],
});

const result = await client.createSVGs.generateSVG({
  model: "arrow-preview",
  prompt: "Elegant calligraphic script in a flowing hand-lettered style, single continuous stroke",
});

Illustration

Prompt: “Japanese crane in traditional woodblock illustration style with warm earth tones”
const result = await client.createSVGs.generateSVG({
  model: "arrow-preview",
  prompt: "Japanese crane in traditional woodblock illustration style with warm earth tones",
  instructions: "Use a warm muted palette with detailed feather work",
});
Prompt: “Heraldic lion crest with ornate medieval style details and gold gradient accents”
const result = await client.createSVGs.generateSVG({
  model: "arrow-preview",
  prompt: "Heraldic lion crest with ornate medieval style details and gold gradient accents",
});

Writing prompts

Include these elements for the best results:
  • Subject: What is in the image? Be specific. (e.g., “a logo for an eco-friendly coffee company”)
  • Style: What is the overall aesthetic? (e.g., “line art”, “hand drawn”, “duotone”, “flat monochrome icon”)
  • Color palette: Which colors should be used? (e.g., “background: #e9edc9 and logo in #fb8500”)
  • Composition: Include framing details like “centered icon” or “wide horizontal logo”.
  • Text integration: Clearly state what text should appear and how. (e.g., “The headline ‘URBAN EXPLORER’ in bold white sans-serif at the top”)
You can also use the instructions parameter to provide separate style or formatting guidance without mixing it into the prompt.

Parameters

ParameterTypeDefaultDescription
modelstringRequired. Model identifier (e.g., arrow-preview).
promptstringRequired. Text description of the desired SVG.
instructionsstringAdditional style or formatting guidance, separate from the prompt.
referencesarrayUp to 4 reference images (by URL or base64) to guide generation.
ninteger1Number of outputs to generate (1—16).
streambooleanfalseWhen true, returns a Server-Sent Events stream with progressive rendering phases (reasoning, draft, content).
temperaturenumber1Controls randomness (0—2). Lower values produce more deterministic output; higher values increase variety.
top_pnumber1Nucleus sampling (0—1). Limits token selection to the smallest set whose cumulative probability exceeds this value. Lower values make output more focused.
presence_penaltynumber0Penalizes tokens already present in prior output (-2 to 2). Positive values encourage the model to explore new patterns.
max_output_tokensintegerUpper bound for output token count (1—131072).