{"uid":"cap_btLDN2p_bn4fRdgNn2Jos","slug":"agents-llmapi-ai-llm-api-anthropic-style-messages-endpoint-cf16fe1a","name":"LLM API Anthropic-Style Messages Endpoint","description":"Anthropic Messages API shape, returned in full as one JSON response. model must be one of the storefront models: claude-opus-5, claude-sonnet-5, gpt-5.2, gpt-5.1, gpt-5-mini, gemini-3.1-pro-preview, gemini-3.7-flash, deepseek-v4-pro, deepseek-v4-flash, grok-4.6, kimi-k2.6, glm-5.3. Set stream to false; streaming requests are rejected. Billed per exact input and output token at the model's service rates.","url":"https://agents.llmapi.ai/zc/v1/messages?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","example":{"model":"claude-sonnet-5","messages":[{"role":"user","content":"Say hello in five words."}],"max_tokens":32},"required":["model","messages","max_tokens"],"properties":{"model":{"enum":["claude-opus-5","claude-sonnet-5","gpt-5.2","gpt-5.1","gpt-5-mini","gemini-3.1-pro-preview","gemini-3.7-flash","deepseek-v4-pro","deepseek-v4-flash","grok-4.6","kimi-k2.6","glm-5.3"],"type":"string","description":"One of the storefront model ids."},"stream":{"type":"boolean","description":"Must be false or omitted on this storefront."},"messages":{"type":"array","items":{"type":"object"},"description":"Anthropic style message list."},"max_tokens":{"type":"integer","description":"Required output token ceiling."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"unknown","displayCostAsset":"USD","priceDynamic":true,"priceHint":null,"priceStatus":"unknown_unparsed","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":"unknown","summary":"price unknown","primary":{"kind":"dynamic","protocol":"mpp","network":"tempo","amountUsd":null,"per":"call","confidence":"unknown"},"accepted":[{"kind":"dynamic","protocol":"mpp","network":"tempo","amountUsd":null,"per":"call","confidence":"unknown"}]},"paymentMethods":[{"uid":"pm_yrl41_ugRneMr2O-yn6K8","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"unknown","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":"agents.llmapi.ai","brandSlug":"agents-llmapi-ai-x402","brandBaseUrl":"https://agents.llmapi.ai","brandDocsUrl":null,"whatItDoes":"Sends an Anthropic-style message request to a selected frontier LLM model and returns a non-streaming text completion.","exampleAgentPrompt":"Ask claude-sonnet-5 to summarize the following text in three bullet points, keeping the response under 200 tokens: 'Quantum computing uses quantum-mechanical phenomena such as superposition and entanglement to perform computation...'","exampleUseCases":[{"title":"On-demand LLM reasoning for agent pipeline","prompt":"Use claude-opus-5 to analyze this customer complaint and suggest a resolution in under 150 tokens: 'My order arrived damaged and customer support hasn't responded in 3 days.'"},{"title":"Frontier model comparison for content draft","prompt":"Send this prompt to gpt-5.2 and give me the response with a max of 256 tokens: 'Write a two-sentence tagline for a sustainable sneaker brand targeting Gen Z athletes.'"},{"title":"Automated code explanation task","prompt":"Query deepseek-v4-pro with the following message and cap the output at 512 tokens: 'Explain what this Python function does and identify any bugs: def fib(n): return n if n <= 1 else fib(n-1) + fib(n-2)'"}],"resultDescription":"Returns an Anthropic-style response object containing the assistant's generated message content, the model used, stop reason, and token usage counts for input and output tokens.","failureModes":["Invalid or unsupported model ID returns a validation error","Omitting required fields (model, messages, max_tokens) causes a 400 bad request","Setting stream to true is rejected by this storefront","Exceeding token limits for the selected model causes an error","Insufficient account credits results in a payment or authorization error","Malformed messages array (wrong structure) returns a schema validation error"],"whenToPreferThis":"Choose this endpoint when you need pay-per-call access to a curated set of frontier models (Claude, GPT, Gemini, DeepSeek, Grok, Kimi, GLM) using the Anthropic native messages format, without committing to a subscription. Ideal for agents that need deterministic, non-streaming completions billed by exact token usage across multiple model families through a single unified API surface.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T18:38:16.225Z","isFirstParty":false,"canonicalSlug":"agents-llmapi-ai-llm-api-anthropic-style-messages-endpoint-cf16fe1a"}