{"uid":"cap_jx8MRUxSRnp21QUfezjBr","slug":"openai-chat-latest-via-mm-family-x402-37cb9798","name":"OpenAI chat-latest via mm.family (x402)","description":"chat-latest: OpenAI Chat Latest chat completions, paid per call in USDC. Per 1M tokens in/out: Standard (default) 5.0/30.0; pick with service_tier. Plus $0.0005 (Base) or $0.0005 (Solana) per call; the quote charges input plus 10% of max_tokens. Empty answers are free. Rates: https://openai.mm.family/x402/pricing","url":"https://openai.mm.family/x402/v1/models/chat-latest/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"enum":["chat-latest"],"type":"string"},"tools":{"type":"array"},"stream":{"type":"boolean"},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"integer"},"service_tier":{"enum":["flex","default","standard","auto","fast","priority"],"type":"string"},"response_format":{"type":"object"},"reasoning_effort":{"type":"string"}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl-x","model":"chat-latest","usage":{"total_tokens":9,"prompt_tokens":8,"completion_tokens":1},"object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Hello","refusal":null},"finish_reason":"stop"}],"service_tier":"default"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002068","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.002068/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002068","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002068","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Uw4Hoy30r_7NiphOQSQK6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002068","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Sends a chat completion request to the latest OpenAI chat model, billed per call in USDC via x402 micropayment protocol","exampleAgentPrompt":"Using the chat-latest model with standard service tier and up to 500 output tokens, send this conversation to OpenAI and get a response: system says 'You are a helpful assistant', user says 'Explain quantum entanglement in two sentences'.","exampleUseCases":[{"title":"LLM-powered customer support bot","prompt":"I'm building a support bot — take this conversation thread where the user is asking about a billing issue and generate a helpful assistant reply using chat-latest on standard tier, limiting the response to 300 tokens."},{"title":"Agentic reasoning step with tool use","prompt":"Run a chat completion with chat-latest using my list of tool definitions and this message history so the model can decide which tool to call next — use the default service tier and allow up to 1000 tokens."},{"title":"Cost-sensitive batch summarization","prompt":"Summarize this long article into three bullet points using chat-latest on the flex tier to keep costs low — here's the article text as the user message, and cap the response at 200 tokens."}],"resultDescription":"Returns an OpenAI-format chat completion JSON object containing the assistant's message content, role, finish reason (e.g. 'stop'), token usage breakdown (prompt, completion, total), model name, completion ID, and the service_tier used. Empty completions are returned free of charge.","failureModes":["Insufficient USDC balance or x402 payment failure — request rejected before inference","max_tokens set too high relative to available balance — quote rejection","Invalid or missing messages array — 400 validation error","Unsupported service_tier value — enum validation error","Rate limiting at the upstream OpenAI layer — 429 or 503 response","Streaming not supported in all client configurations — stream flag may cause issues"],"whenToPreferThis":"Choose this endpoint when you need OpenAI chat completions billed per-call in USDC via x402 micropayment without managing an OpenAI API key or subscription. It is ideal for agents that pay per inference, multi-tenant systems where each call is independently billed, or when you want to dynamically select service tiers (flex for cost savings, priority for speed). Prefer over direct OpenAI API when operating in a crypto-native or x402-enabled payment context.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:41:46.941Z","isFirstParty":false,"canonicalSlug":"openai-chat-latest-via-mm-family-x402-37cb9798"}