AMNT Draw 1.2
AMNT Draw 1.2
$0.05/run
The record
Runs1
Worked1 ยท 100%
Runs on๐๏ธ AMNT Trace 1.1
Owned byuser:ea9โฆ
Price
$0.05 per call
Runs
1
Callers
1
Success
100%
Last run
3 min ago
USDC on
BaseHederaFor machines
Send a POST. You get a payment request (HTTP 402), pay it in USDC, and get the result in the same call. No key, no account.
POST
https://www.amnt.io/api/agent/amnt/text-to-svg| Chain | Network id | Price | Pays |
|---|---|---|---|
| Base | eip155:8453 | $0.05 USDC | 0x98faโฆdbc0 (creator) |
| Hedera | hedera:mainnet | $0.05 USDC | 0.0.10774954 (creator) |
Request body (JSON)
{
"prompt": "a friendly fox mascot waving",
"style": "auto",
"aspect": "1:1",
"detail": "medium",
"background": "transparent",
"mode": "stacked",
"colors": 32,
"formats": "pdf,png,dxf"
}Response shape (JSON Schema)
{
"type": "object",
"properties": {
"svg": {
"type": "string",
"description": "The SVG document. Only <g> groups and filled <path>s: no scripts, no embedded bitmap."
},
"url": {
"type": "string",
"description": "A public link to the same SVG."
},
"files": {
"type": "object",
"description": "Links to any extra formats asked for: png, pdf, eps, dxf, icons (zip), small (simplified SVG)."
},
"width": {
"type": "integer",
"description": "Display width in pixels. The picture's own shape is kept."
},
"height": {
"type": "integer",
"description": "Display height in pixels."
},
"paths": {
"type": "integer",
"description": "Number of paths."
},
"colors": {
"type": "array",
"description": "Every fill colour used, most used first."
},
"score": {
"type": "object",
"description": "How close the SVG is to the source picture: fidelity (0-1, higher is better), edge (colour error on edges, lower is better), holes and spill (per mille, lower is better)."
},
"ms": {
"type": "integer",
"description": "Time taken."
}
}
}Input schema (JSON Schema)
{
"type": "object",
"properties": {
"prompt": {
"type": "string",
"description": "What to draw, in plain words.",
"maxLength": 2000,
"examples": [
"a friendly fox mascot waving"
]
},
"style": {
"type": "string",
"description": "Flat, icon and logo trace cleanest.",
"default": "auto",
"enum": [
"auto",
"flat",
"icon",
"logo",
"illustration",
"pixel"
]
},
"aspect": {
"type": "string",
"description": "\"auto\", a preset (1:1, 4:5, 3:4, 2:3, 9:16, 1:2, 5:4, 4:3, 3:2, 16:9, 2:1) or any W:H up to 3:1. Same price in every shape.",
"default": "1:1",
"maxLength": 12,
"examples": [
"1:1"
]
},
"detail": {
"type": "string",
"description": "How much small detail survives. Medium is clean and smooth.",
"default": "medium",
"enum": [
"low",
"medium",
"high"
]
},
"background": {
"type": "string",
"description": "Transparent removes a plain backdrop cleanly, with no white ring.",
"enum": [
"transparent",
"keep"
]
},
"mode": {
"type": "string",
"description": "Shapes",
"default": "stacked",
"enum": [
"stacked",
"cutout"
]
},
"colors": {
"type": "integer",
"description": "Cap the palette. Leave empty for automatic.",
"minimum": 2,
"maximum": 64,
"examples": [
"32"
]
},
"formats": {
"type": "string",
"description": "Any of png, pdf, eps, dxf, icons, small. Comma separated. SVG always comes back.",
"maxLength": 80,
"examples": [
"pdf,png,dxf"
]
}
},
"required": [
"prompt"
]
}curl (shows the 402 payment request)
curl -i -X POST https://www.amnt.io/api/agent/amnt/text-to-svg \
-H "Content-Type: application/json" \
-d '{"prompt":"a friendly fox mascot waving","style":"auto","aspect":"1:1","detail":"medium","background":"transparent","mode":"stacked","colors":32,"formats":"pdf,png,dxf"}'JavaScript (pays with x402)
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// A wallet holding USDC on Base.
const signer = privateKeyToAccount(process.env.PRIVATE_KEY);
const pay = wrapFetchWithPayment(fetch, registerExactEvmScheme(new x402Client(), { signer }));
const res = await pay("https://www.amnt.io/api/agent/amnt/text-to-svg", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({"prompt":"a friendly fox mascot waving","style":"auto","aspect":"1:1","detail":"medium","background":"transparent","mode":"stacked","colors":32,"formats":"pdf,png,dxf"}),
});
console.log(await res.json());Activity
Every call, on every chain. What people sent stays private.
| When | Paid with | Who | Amount | Result | Transaction |
|---|
Listed on
Only places we can prove. Bazaar listings drop after 30 days with no paid call.
Not listed anywhere yet. It gets listed after its first paid call on each chain.
โณ Waiting for a first paid call on Base, Hedera.