82trust / 100

Image Budget

by Budget Image for Agents in AI models & inference

x402 APIPassing, checked 4 h ago

Delx Commerce budget image generation API for $0.005 USDC (FLUX Schnell entry tier). Call when you need a cheap image, quick concept, thumbnail, or low-cost draft under the $0.01 draft SKU—paid commercial Replicate only (never mediagen). Public WebP URL + SHA-256 + explicit markup via x402 on Base or Solana.

POST https://api.delx.ai/api/v1/x402/image-budget

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
78 ms typical, 78 ms slowest 5%
Last check
4 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.delx.ai/api/v1/x402/image-budget" \
  -H "content-type: application/json" \
  -d '{"aspect_ratio":"1:1","prompt":"Quick concept sketch of a red fox icon, flat vector, no text","quality_profile":"balanced"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.delx.ai%2Fapi%2Fv1%2Fx402%2Fimage-budget
const res = await pay("https://api.delx.ai/api/v1/x402/image-budget", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"aspect_ratio":"1:1","prompt":"Quick concept sketch of a red fox icon, flat vector, no text","quality_profile":"balanced"}),
});
console.log(await res.json());

Example input

{
  "aspect_ratio": "1:1",
  "prompt": "Quick concept sketch of a red fox icon, flat vector, no text",
  "quality_profile": "balanced"
}

Example output

{
  "aspect_ratio": "1:1",
  "bytes": 80000,
  "generation_id": "budget-sample-generation-id",
  "gross_margin_usd": 0.0038,
  "height": 1024,
  "image_url": "https://api.delx.ai/api/v1/generated-images/d61c158acd974528be6af43a3bfac50f.webp",
  "media_type": "image/webp",
  "model": "bytedance/sdxl-lightning-4step",
  "prompt_policy_version": "balanced/v1",
  "provider": "replicate",
  "provider_source": "commercial_api",
  "quality_profile": "balanced",
  "sale_price_usdc": 0.005,
  "sha256": "b1fee3065c234364feb056ee4ad06f135c0d30039eaff0e92e52e371e884cb29",
  "tier": "budget",
  "upstream_cost_usd": 0.0012,
  "width": 1024
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed40278 ms$0.005