{"uid":"cap_Dy33qDUH77vxBbSzWgqny","slug":"aile-ai-model-exchange-inference-endpoint-6e1f46f2","name":"Aile AI Model Exchange - Inference Endpoint","description":"Rent trusted AI models priced per token; lend idle subscriptions and API keys. A live, metered market that settles every call in USDC on Solana.","url":"https://api.aile.sh/v1/responses?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input","model"],"properties":{"input":{"type":"string","description":"The prompt text. Arrays of content parts are also accepted."},"model":{"type":"string","description":"A catalogued model id, namespaced by its provider — e.g. `claude/claude-sonnet-5`, `codex/gpt-5.5`, `openrouter/deepseek/deepseek-v4-flash`. GET /v1/models lists what is servable right now."},"stream":{"type":"boolean","description":"SSE token stream when true. Not available on the x402 path."},"max_output_tokens":{"type":"integer","description":"THE PRICE IS QUOTED AGAINST THIS."}}},"responseSchema":{"id":"resp_…","model":"codex/gpt-5.5","usage":{"input_tokens":28,"output_tokens":16},"object":"response","output_text":"…"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.020493","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.020493/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.020493","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.020493","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_H0ElfPuI_UgeyiLcMUL_h","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.020493","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Sends a prompt to a catalogued AI model (e.g. Claude, GPT, DeepSeek) via Aile's pay-per-token marketplace, settling payment in USDC on Solana.","exampleAgentPrompt":"Using Aile's AI exchange, send this prompt to claude/claude-sonnet-5 with a max of 500 output tokens and tell me what it says: 'Summarize the key differences between REST and GraphQL APIs in three bullet points.'","exampleUseCases":[{"title":"Crypto-native LLM access for devs","prompt":"I don't have an Anthropic subscription — use Aile to send my prompt to claude/claude-sonnet-5 with up to 300 output tokens: 'Write a Python function that reverses a linked list.'"},{"title":"Cost-controlled AI content generation","prompt":"Run this marketing copy prompt through openrouter/deepseek/deepseek-v4-flash on Aile, cap it at 200 output tokens: 'Write three catchy taglines for a sustainable coffee brand called Morning Bloom.'"},{"title":"Multi-model comparison via single API","prompt":"Query codex/gpt-5.5 on Aile with max 400 output tokens and this prompt: 'Explain how transformer attention mechanisms work to a 10-year-old.' I want to compare the output to what I got from Claude."}],"resultDescription":"Returns a JSON object with a response ID, the model used, the generated output text, and token usage counts (input and output tokens consumed), enabling cost tracking per call.","failureModes":["Insufficient USDC balance or failed x402 payment — call rejected before inference","Invalid or uncatalogued model ID — 400 error; use GET /v1/models to list available models","Prompt too long for the requested max_output_tokens budget — token limit exceeded error","Model temporarily unavailable on the exchange — no idle supply listed","Rate limiting if too many concurrent calls are submitted"],"whenToPreferThis":"Choose this endpoint when you need pay-as-you-go access to premium AI models (Claude, GPT-5, DeepSeek) without committing to vendor subscriptions, want USDC on-chain settlement for crypto-native workflows, or need a single unified API to route prompts across multiple model providers at live market prices.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T04:40:54.455Z","isFirstParty":false,"canonicalSlug":"aile-ai-model-exchange-inference-endpoint-6e1f46f2"}