Oblique Markets · Paid Rewrite

by Oblique Markets

POSTBaseSolana

$0.005

per call · USD Coin on Base

Use when an agent needs rewrite. Returns Rewrite text per a natural-language instruction (tone, formality, simplification, shortening) — deterministic flash-model rewriting with hard input/output caps. $0.005.

Endpoint

POST https://api.oblique.markets/api/v1/paid/rewrite

11

Calls / 30d

5

Unique payers / 30d

Sep 8

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://api.oblique.markets/api/v1/paid/rewrite", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "instruction": "How to rewrite it, e.g. \"make it formal\", \"shorten to two se",
    "text": "Text to rewrite; truncated to 8,000 characters"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://api.oblique.markets/api/v1/paid/rewrite" \
  -H "Content-Type: application/json" \
  -d '{"instruction":"How to rewrite it, e.g. \"make it formal\", \"shorten to two se","text":"Text to rewrite; truncated to 8,000 characters"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "instruction": "make it formal",
  "model": "inclusionai/ling-3.0-flash",
  "text_rewritten": "Dear Ms. Alvarez, I am writing to request a brief extension on the Q3 deliverable. The integration testing surfaced two issues that require an additional three business days to resolve."
}

Payment details

Pay to0x970007590acc5c938cd51345b17af51b1b40d3ab
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from Oblique Markets & similar services