curl --request POST \
--url https://api.quiver.ai/v1/svgs/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "arrow-1.1",
"stream": false,
"prompt": "Generate an icon of a unicorn"
}
'{
"id": "resp_01J9AZ3XJ7D5S9ZV2Q5Z8E1A4N",
"created": 1704067200,
"data": [
{
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M12 2l8 20H4z\"/></svg>",
"mime_type": "image/svg+xml"
}
],
"credits": 1,
"usage": {
"total_tokens": 0,
"input_tokens": 0,
"output_tokens": 0
}
}Generates one or more SVGs from a prompt and optional references.
curl --request POST \
--url https://api.quiver.ai/v1/svgs/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "arrow-1.1",
"stream": false,
"prompt": "Generate an icon of a unicorn"
}
'{
"id": "resp_01J9AZ3XJ7D5S9ZV2Q5Z8E1A4N",
"created": 1704067200,
"data": [
{
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M12 2l8 20H4z\"/></svg>",
"mime_type": "image/svg+xml"
}
],
"credits": 1,
"usage": {
"total_tokens": 0,
"input_tokens": 0,
"output_tokens": 0
}
}Authentication via Bearer token API key
Model identifier to use for generation or vectorization.
1"arrow-1.1"
Primary text prompt that describes the desired SVG.
1"Generate an icon of a unicorn"
Nucleus sampling probability.
0 <= x <= 10.95
Upper bound for output token count.
1 <= x <= 1310724096
When true, emits a Server-Sent Events stream.
false
Sampling temperature.
0 <= x <= 20.4
Penalty for tokens already present in prior output.
-2 <= x <= 20.2
Number of outputs to generate.
1 <= x <= 161
Additional style or formatting guidance.
1"Use a flat monochrome style with clean geometry."
Optional reference images to guide style/composition. Accepts { url }, { base64 }, or URL string shorthand. Runtime limits are model-specific: 4 for Arrow 1.1/Arrow 1.x aliases, 16 for Arrow 1.1 Max.
16Show child attributes
When stream is false, returns application/json with the full SVG response. When stream is true, returns text/event-stream with Server-Sent Events. Each SSE message contains an event: line (generating, reasoning, draft, or content) and a data: line with a JSON payload. For n > 1, events are interleaved across outputs, each output keeps a stable data.id, and data.index indicates the output position. usage token fields are deprecated and set to 0; use credits for billing values. For streaming, credits is emitted on completed content events. The stream terminates with data: [DONE].
1"resp_01J9AZ3XJ7D5S9ZV2Q5Z8E1A4N"
x >= 01704067200
1Show child attributes
Credit cost for this request. Use this for billing instead of usage tokens.
x >= 01
Deprecated. Use credits for billing values.
Show child attributes
Was this page helpful?