Edit SVG

Edits an input SVG from inline SVG markup or a remote/base64 SVG source.

post/v1/svgs/edits

Request

  • Base URL
    https://api.quiver.ai
  • Auth
    HTTP bearer

Headers

x-trace-idstring

Optional client-supplied trace identifier. The API echoes this value in X-Trace-ID and includes it in request logs for client-side correlation.

Example:trace_01J9AZ3XJ7D5S9ZV2Q5Z8E1A4N

Request body

OR

Example request

{
  "max_review_steps": 2,
  "prompt": "Make the mark bolder and simplify the star points.",
  "reasoning_effort": "medium",
  "reference_images": [
    {
      "url": "https://example.com/uploads/reference1.png"
    }
  ],
  "settings": {
    "max_output_tokens": 4096,
    "orchestrator_max_output_tokens": 4096,
    "shallow_max_output_tokens": 2048,
    "temperature": 0.4
  },
  "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M12 2l8 20H4z\"/></svg>"
}

Response

When stream is false, returns application/json with the edited SVG. When stream is true, returns Server-Sent Events ending with data: [DONE]. Token-priced models report measured totals in usage and omit credits. Fixed-credit models retain compatibility token totals of 0 and report credits.

createdinteger required
creditsinteger

Credit cost for fixed-credit models. Omitted for token-priced models, whose measured totals are returned in usage.

idstring required

Example response

{
  "created": 1704067200,
  "credits": 1,
  "data": [
    {
      "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M12 2l8 20H4z\"/></svg>"
    }
  ],
  "id": "resp_01J9AZ3XJ7D5S9ZV2Q5Z8E1A4N"
}

Changes

    • breaking

      added subschema #2 subschema #3 subschema #4 subschema #5 to the response body oneOf list for the response status (media type: text/event-stream)

    • info

      removed subschema #2 subschema #3 subschema #4 subschema #5 from the response body oneOf list for the response status (media type: text/event-stream)

    • breaking

      removed subschema #1 subschema #2 from the request body oneOf list

    • info

      added subschema #1 subschema #2 to the request body oneOf list