Generate text or JSON completions for one to 20 independent tasks
Generate text or JSON completions for one to 20 independent tasks. Choose GPT-6 Luna or GPT-6.1 Sol, or let task-based rules select each model. Review the selected models and total price before payment. Receive a private asynchronous job and recover stored re…
by api.mekler.ai · discovered, not yet claimed by its owner · updated 2026-10-13
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
Generate text or JSON completions for one to 20 independent tasks. Choose GPT-6 Luna or GPT-6.1 Sol, or let task-based rules select each model. Review the selected models and total price before payment. Receive a private asynchronous job and recover stored results after completion. No tools, browsing or streaming.
Tags: inference · models · routing · bazaar
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-10-13
{
"max_price_usdc": "0.005",
"tasks": [
{
"max_output_tokens": 64,
"messages": [
{
"content": "Summarize: the meeting starts at noon.",
"role": "user"
}
],
"task": "summarize"
}
]
}{
"expires_at": 1794528000,
"job_id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"plan": {
"models": [
{
"index": 0,
"input_token_allowance": 326,
"max_output_tokens": 64,
"model": "gpt-6-luna",
"provider_model": "gpt-6-luna",
"reason": "bounded_general_task",
"reasoning_effort": "none",
"response_format": "text"
}
],
"output_policy": "Complete text or JSON object; refusals, truncation and any failed item are uncharged.",
"price_micros": 5000,
"processing": "OpenAI direct API; store=false; standard processing",
"version": "inference-v2-openai"
},
"receipt": {
"finalized": true,
"network": "eip155:8453",
"price_micros": 5000,
"transaction": "0xcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
},
"recovery_token": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"results": [
{
"content": "The meeting starts at noon.",
"finish_reason": "stop",
"index": 0,
"model": "gpt-6-luna",
"provider_model": "gpt-6-luna",
"reported_model": "gpt-6-luna",
"usage": {
"completion_tokens": 7,
"prompt_tokens": 18,
"total_tokens": 25
}
}
],
"retry": "Recover with the original proof or private token. Do not pay again.",
"state": "complete"
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/57516.jsonfor the price and payment options. - Pay. Call
GET https://api.mekler.ai/v1/compute/inference/generate-completions. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Solana, Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.005 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Solana, Base
- Demand
- 2 calls · 2 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Solana solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp | USDC | $0.005 | 9mMDrHabSf73MPn1ANdANSmsNw2wKiqE7JZ7eD6EUSRc | 120s |
| exact | Base eip155:8453 | USDC | $0.005 | 0xF6c6E2e530bb311c14a49C1a07C720fc232c07c5 | 120s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "9mMDrHabSf73MPn1ANdANSmsNw2wKiqE7JZ7eD6EUSRc",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "5000",
"amountUsd": 0.005,
"maxTimeoutSeconds": 120
},
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xF6c6E2e530bb311c14a49C1a07C720fc232c07c5",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"amountUsd": 0.005,
"maxTimeoutSeconds": 120
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"additionalProperties": false,
"properties": {
"expires_at": {
"type": "integer"
},
"job_id": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"plan": {
"required": [
"version",
"models",
"price_micros"
],
"type": "object"
},
"receipt": {
"required": [
"network",
"transaction",
"price_micros",
"finalized"
],
"type": "object"
},
"recovery_token": {
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"results": {
"items": {
"required": [
"index",
"model",
"content",
"finish_reason",
"usage"
],
"type": "object"
},
"maxItems": 20,
"minItems": 1,
"type": "array"
},
"retry": {
"maxLength": 256,
"minLength": 1,
"type": "string"
},
"state": {
"const": "complete"
}
},
"required": [
"job_id",
"state",
"plan",
"recovery_token",
"expires_at",
"retry",
"results",
"receipt"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"expires_at": 0,
"job_id": "string",
"plan": {},
"receipt": {},
"recovery_token": "string",
"results": [
{}
],
"retry": "string",
"state": null
},
"type": "string"
}Examples
curl -X POST 'https://api.mekler.ai/v1/compute/inference/generate-completions' -H 'Content-Type: application/json' --data '{"max_price_usdc":"0.005","tasks":[{"max_output_tokens":64,"messages":[{"content":"Summarize: the meeting starts at noon.","role":"user"}],"task":"summarize"}]}'
# -> 402 Payment Required; read PAYMENT-REQUIRED
# retry the identical request with PAYMENT-SIGNATUREconst res = await fetch("https://api.mekler.ai/v1/compute/inference/generate-completions", {
"method": "POST",
"headers": {
"content-type": "application/json"
},
"body": "{\"max_price_usdc\":\"0.005\",\"tasks\":[{\"max_output_tokens\":64,\"messages\":[{\"content\":\"Summarize: the meeting starts at noon.\",\"role\":\"user\"}],\"task\":\"summarize\"}]}"
});
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}import httpx
import json
res = httpx.request("POST", "https://api.mekler.ai/v1/compute/inference/generate-completions", json=json.loads("{\"max_price_usdc\":\"0.005\",\"tasks\":[{\"max_output_tokens\":64,\"messages\":[{\"content\":\"Summarize: the meeting starts at noon.\",\"role\":\"user\"}],\"task\":\"summarize\"}]}"))
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- api.mekler.ai
- Endpoint
- https://api.mekler.ai/v1/compute/inference/generate-completions
- Machine-readable
/resources/57516.json