Chat completion, standard tier (12k in, 2k out)

$0.10 USDC per call · Agent infrastructure · POST /api/v1/chat-standard · Id chat-standard

OpenAI-style chat completion served by the hub's provider router (mid-size general model, up to 12000 input tokens and 2048 output tokens per call), with a signed receipt that binds the provider, model, token usage and the hashes of your messages and the reply. Supports optional strict json_schema output returned both parsed and as a string. Does not stream, call tools or functions, accept images, or use temperature or top_p (ignored); the model is chosen by this resource's tier, not by the model field; content is not stored.

What you get

One fixed-price LLM call with a verifiable record of what was asked, who answered and what it cost, for $0.10, no API key or account.

Call it

Send the JSON body below to https://agents.writerslogic.com/api/v1/chat-standard. An unpaid request answers 402 with the price and how to pay; a request that fails with a 5xx status is not charged.

curl -i -X POST https://agents.writerslogic.com/api/v1/chat-standard \
  -H 'content-type: application/json' \
  -d '{"messages":[{"role":"system","content":"Answer in one sentence."},{"role":"user","content":"What does an x402 receipt prove?"}],"max_tokens":200}'

Input

FieldTypeRequiredDescription
messagesarray<object>; max 64 itemsyesConversation, oldest first; the last message must have role user. At most 200000 characters in total. System messages are joined into the instructions.
max_tokensinteger; 1..noUpper bound on the reply in tokens; defaults to 1024. A value above the tier cap is rejected with 400.
response_formatobjectnoEither {"type":"text"} (default) or {"type":"json_schema","json_schema":{name,schema}}. The schema is always enforced strictly: root object, every property required, additionalProperties false, keywords limited to type, description, properties, required, additionalProperties, items, enum.
modelstring; length 0..200noAccepted and ignored: the hub routes by tier (the resource you paid for). Echoed as requested_model.
temperaturenumbernoAccepted and ignored.
top_pnumbernoAccepted and ignored.

Example request body

{
  "messages": [
    {
      "role": "system",
      "content": "Answer in one sentence."
    },
    {
      "role": "user",
      "content": "What does an x402 receipt prove?"
    }
  ],
  "max_tokens": 200
}

Result

The response is { "data": ..., "_provenance": ... }. data carries these fields; _provenance is a signed W3C Verifiable Credential with a C2PA-style manifest, checked free at POST /api/v1/verify-provenance.

FieldTypeRequiredDescription
idstringyes
objectstring; one of "chat.completion"yes
createdintegeryesEpoch seconds.
modelstringyesModel that served the request.
providerstringyes
requested_modelone ofyes
choicesarray<object>yes
usageobjectyes
receiptobjectyesHashes that the hub's signed envelope binds to this answer: sha256 of the JCS form of your messages, of your response_format (null in text mode), and of the reply content.
attemptsarray<object>yesProviders tried in order, with the outcome of each.
limitsobjectyes

Pay and connect

Available through: x402 (USDC on Base), MCP, RapidAPI, Apify.

Machine-readable