{"uid":"cap_bKXt6nTMBXLga1eJ_VnCX","slug":"openai-gpt-4-1-nano-chat-completions-x402-usdc-234fd66d","name":"OpenAI GPT-4.1 Nano Chat Completions (x402/USDC)","description":"gpt-4.1-nano: OpenAI GPT 4.1 Nano chat completions, paid per call in USDC. Per 1M tokens in/out: Standard (default) 0.1/0.4, Fast 0.2/0.8; 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/gpt-4.1-nano/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"enum":["gpt-4.1-nano"],"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":"gpt-4.1-nano","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.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__Yb3KMoFCWQ9lJAQfmueQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs GPT-4.1 Nano chat completions via a pay-per-call x402 USDC micropayment gateway, billed at $0.10/$0.40 per 1M tokens in/out (standard tier)","exampleAgentPrompt":"Using the GPT-4.1 Nano model on the standard service tier, summarize the following support ticket in 3 bullet points, keeping the answer under 200 tokens: 'Customer reports the mobile app crashes on login after the latest update, affecting iOS 17 devices only.'","exampleUseCases":[{"title":"Cheap classification for high-volume pipelines","prompt":"Classify each of these 50 product reviews as positive, negative, or neutral using GPT-4.1 Nano on the standard tier — I want the cheapest model that can handle it, paying per call in USDC."},{"title":"Fast Q&A bot for a lightweight assistant","prompt":"Answer this user question in 2 sentences using GPT-4.1 Nano on the fast service tier, keep max_tokens at 150: 'What are the main differences between supervised and unsupervised learning?'"},{"title":"Automated code comment generation","prompt":"Use the nano GPT-4.1 model to generate a concise docstring for this Python function, standard tier, max 100 tokens: 'def calculate_discount(price, pct): return price * (1 - pct / 100)'"}],"resultDescription":"Returns a JSON chat completion object containing the assistant's reply text, token usage breakdown (prompt, completion, total tokens), finish reason (e.g. 'stop'), model name, service tier used, and a unique completion ID.","failureModes":["Payment failure if USDC balance is insufficient for the quoted call cost","Context length exceeded if messages plus max_tokens surpasses model limits","Empty/null response returned if the model produces no content (charged $0)","Invalid service_tier enum value returns a 400 error","Malformed messages array (missing role or content) causes a validation error","Rate limiting or capacity errors under high load"],"whenToPreferThis":"Choose this endpoint when you need the lowest-cost OpenAI chat model with per-call USDC micropayment billing via x402, particularly for high-volume, short-context tasks like classification, summarization, or Q&A where GPT-4.1 Nano's smaller size is sufficient. Prefer this over sibling endpoints (gpt-4o, gpt-5) when budget is the primary constraint and task complexity is low. Use the 'fast' service tier when latency matters more than cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:42:26.937Z","isFirstParty":false,"canonicalSlug":"openai-gpt-4-1-nano-chat-completions-x402-usdc-234fd66d"}