{"uid":"cap_kYl0bGAzTIQ6R1hRytu9f","slug":"mekler-ai-batch-llm-completions-f4028c91","name":"Mekler AI Batch LLM Completions","description":"Compare exact prices across eight models: GPT-6 Luna, GPT-6.1 Sol, Ministral 3B/8B/14B, Nemotron 3 Nano and Qwen3 Next/Coder Next. Review a recommendation and supported model/effort alternatives, then accept one quote or use automatic selection. Generate text or JSON with one USDC payment and no supplier account. Recover private results after completion. Recommendations use task rules, not a quality guarantee. No tools, browsing or streaming.","url":"https://api.mekler.ai/v1/compute/inference/generate-completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"tasks":{"type":"array","items":{"type":"object","required":["messages"],"properties":{"task":{"enum":["auto","extract","classify","summarize","translate","write","code","analyze","plan"],"default":"auto"},"model":{"enum":["auto","gpt-6-luna","gpt-6.1-sol","ministral-3-3b","ministral-3-8b","ministral-3-14b","nemotron-3-nano","qwen3-next","qwen3-coder-next","gemma-4-e2b"],"default":"auto"},"contract":{"type":"object","required":["kind"],"properties":{"kind":{"enum":["extract_fields","classify"]},"fields":{"type":"object","maxProperties":3,"minProperties":1,"additionalProperties":{"type":"string"}},"labels":{"type":"object","maxProperties":3,"minProperties":2,"additionalProperties":{"type":"string"}}},"additionalProperties":false},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["system","user","assistant"]},"content":{"type":"string","maxLength":16000,"minLength":1}},"additionalProperties":false},"maxItems":16,"minItems":1},"priority":{"enum":["balanced","economy","quality","speed"],"default":"balanced"},"response_format":{"enum":["text","json_object"],"default":"text"},"max_output_tokens":{"type":"integer","default":1000,"maximum":4096,"minimum":32}},"additionalProperties":false},"maxItems":20,"minItems":1},"max_price_usdc":{"type":"string","pattern":"^(?:0(?:\\.[0-9]{1,6})?|1(?:\\.0{1,6})?)$","maxLength":8,"minLength":1},"idempotency_key":{"type":"string","pattern":"^[A-Za-z0-9_-]{22,128}$","maxLength":128,"minLength":1}}},"responseSchema":{"type":"json","example":{"plan":{"models":[{"index":0,"model":"gpt-6-luna","reason":"bounded_general_task"}],"version":"inference-v4-purchase","price_micros":2796},"retry":"Recover with the original proof or private token. Do not pay again.","state":"complete","job_id":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","receipt":{"network":"eip155:8453","finalized":true,"transaction":"0xcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc","price_micros":2796},"results":[{"index":0,"model":"gpt-6-luna","usage":{"total_tokens":25,"prompt_tokens":18,"completion_tokens":7},"content":"The meeting starts at noon.","finish_reason":"stop","provider_model":"gpt-6-luna","reported_model":"gpt-6-luna"}],"expires_at":1794528000,"recovery_token":"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002796","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002796/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002796","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002796","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8MVK7TCIQstOXc3prAaaA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002796","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generate text or JSON completions for 1–20 independent tasks using GPT-6 Luna or GPT-6.1 Sol, with transparent pricing and async job recovery via x402 micropayment.","exampleAgentPrompt":"Run these 3 tasks for me using auto model selection: summarize this article, classify this review as positive/negative/neutral, and translate this sentence to French — keep total spend under $0.05 and return JSON for the classification.","exampleUseCases":[{"title":"Batch classify customer reviews","prompt":"I have 15 customer reviews I need classified as positive, negative, or neutral — run them all at once using auto model selection with JSON output for each, and cap the total spend at $0.10."},{"title":"Multi-language document translation","prompt":"Translate these 8 short product descriptions from English to Spanish, French, and German — use the economy priority setting and let the system pick the best model for each translation task."},{"title":"Parallel code and analysis generation","prompt":"I need GPT-6.1 Sol to write a Python function to parse JSON dates, and GPT-6 Luna to summarize this technical spec document — run both tasks together and send me the results when done."}],"resultDescription":"Returns a job object with: the pre-execution plan (model chosen per task, reasoning, total price in micros), state (complete/pending), job ID, recovery token, blockchain receipt of the x402 payment, and per-task results including completion text, token usage (prompt/completion/total), finish reason, and the actual model used. Results are stored and recoverable via the original proof or recovery token.","failureModes":["max_price_usdc too low for the planned task cost — request rejected before payment","malformed messages array (missing role or content) — 400 validation error","task array exceeds 20 items — schema validation failure","model or task enum value not recognized — validation error","job still pending when polled — return recovery token and retry","content refusal by underlying model — that item is uncharged","output truncated at max_output_tokens — finish_reason is length","network or payment settlement failure — retry with original proof, do not repay"],"whenToPreferThis":"Choose this endpoint when you need to run multiple independent LLM inference tasks in a single atomic call with upfront cost transparency, especially when you want to mix task types (summarize, classify, translate, code) or model tiers (Luna vs Sol) in one batch. Ideal for agentic workflows where result recovery and idempotency matter. Prefer over direct OpenAI API calls when you want x402 micropayment-based billing, no streaming overhead, and async job storage. Not suitable for tool-use, web browsing, real-time streaming, or tasks requiring more than 20 parallel completions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T06:34:43.918Z","isFirstParty":false,"canonicalSlug":"mekler-ai-batch-llm-completions-f4028c91"}