import { QuiverAI } from "@quiverai/sdk";const client = new QuiverAI({ bearerAuth: process.env["QUIVERAI_API_KEY"],});const logo = await client.createSVGs.generateSVG({ model: "arrow-1.1", prompt: "A logo for the next AI design startup", instructions: "Use clean geometry, balanced spacing, and production-ready SVG structure.",});console.log(logo);
Use HTTP directly from any language.
curl --request POST \ --url https://api.quiver.ai/v1/svgs/generations \ --header 'Authorization: Bearer <QUIVERAI_API_KEY>' \ --header 'Content-Type: application/json' \ --data '{ "model": "arrow-1.1", "prompt": "A logo for the next AI design startup", "instructions": "Use clean geometry, balanced spacing, and production-ready SVG structure.", "n": 1, "stream": false}'
A successful non-streaming response returns request metadata, one or more SVG payloads, and
the request credit debit:
The deprecated usage token fields may still appear for compatibility, but use credits
and pricing_credits for billing behavior.Failures return a JSON error payload:
401 Unauthorized: API key missing or invalid, or the organization could not be
resolved for billing. Machine-readable codes include invalid_api_key and
unauthorized.
402 Payment Required: insufficient credits.
403 Forbidden: frozen accounts use the account_frozen code.
429 Too Many Requests: back off and retry. The default limit is 20 requests per
60 seconds per organization on SVG generation/vectorization endpoints. Respect
Retry-After and X-RateLimit-* headers.
Billing model:
Debits use pricing credits in your balance; amounts are per model (see each
model’s pricing_credits from GET /v1/models).
Generations debit n × svg_generate credits on success (n defaults to 1).
Vectorizations debit svg_vectorize credits per successful request.
To choose from models available to your organization, call GET /v1/models. Arrow 1.1 is the
default recommendation for most integrations. Use Arrow 1.1 Max when higher output fidelity is
worth the additional cost and runtime, especially for dense illustrations, technical diagrams, and
other detail-sensitive SVGs.