Skip to content
Fourohtwo

Edit an SVG

api.hivemindos.app/v1/x402/svg-studio/svgs.edit

Edit an SVG: changes an SVG as instructed, from inline markup or a URL. Use when an agent must change colours, shapes or text in an existing SVG without redrawing it. $0.78 this call, in USDC on Base; you pay only if it succeeds. HivemindOS SuperAgent API.

BaseUnchecked
POSThttps://api.hivemindos.app/v1/x402/svg-studio/svgs.edit

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.hivemindos.app/v1/x402/svg-studio/svgs.edit", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"prompt":"Make the circle red","svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\"><circle cx=\"50\" cy=\"50\" r=\"40\" fill=\"blue\"/></svg>"}),
});
console.log(await res.json());

Example input

{
  "prompt": "Make the circle red",
  "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\"><circle cx=\"50\" cy=\"50\" r=\"40\" fill=\"blue\"/></svg>"
}

More from HivemindOSProvider status