{"uid":"cap_ARhfE3dP113CNg5HUQHr1","slug":"aws-bedrock-agent-api-chat-completion-b6baa4ef","name":"AWS Bedrock Agent API – Chat Completion","description":"Pay-per-call Amazon Bedrock proxy on x402 and MPP.","url":"https://aws-bedrock-agent-api.vercel.app/api/chat?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","maxLength":200,"minLength":1,"description":"Azure OpenAI deployment name from GET /api/models."},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["system","user","assistant"],"type":"string","description":"Chat turn role"},"content":{"type":"string","maxLength":100000,"minLength":1,"description":"Plain-text message content"}},"additionalProperties":false},"maxItems":100,"minItems":1,"description":"Conversation so far, oldest first"},"max_tokens":{"type":"integer","maximum":16384,"minimum":1,"description":"Maximum completion tokens"},"temperature":{"type":"number","maximum":2,"minimum":0,"description":"Sampling temperature"}}},"responseSchema":{"type":"json","example":{"id":"bedrock-example","model":"amazon.nova-lite-v1:0","usage":{"total_tokens":20,"prompt_tokens":12,"completion_tokens":8},"content":"Hello — happy to help.","finish_reason":"end_turn"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.25","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.25/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_blvl__30tlIPBd2oC3zke","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.25","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Proxies chat completion requests to Amazon Bedrock models (e.g. Amazon Nova) via a pay-per-call x402/MPP payment gateway","exampleAgentPrompt":"Using the Amazon Bedrock proxy, send the conversation history to amazon.nova-lite-v1:0 with a max of 512 tokens and temperature 0.7, and give me the model's reply to my question: 'What are the top benefits of serverless computing?'","exampleUseCases":[{"title":"Answering user questions with Nova Lite","prompt":"Send this user question to amazon.nova-lite-v1:0 via Bedrock with up to 256 tokens and temperature 0.5: 'Can you explain the difference between supervised and unsupervised machine learning?'"},{"title":"Multi-turn customer support chatbot","prompt":"Continue this support conversation using amazon.nova-lite-v1:0 on Bedrock — the system prompt says 'You are a helpful support agent', the user previously asked about billing, and now they're asking 'How do I update my payment method?' Use max 300 tokens."},{"title":"Creative writing with controlled randomness","prompt":"I need Bedrock's Nova model to write a short story opening based on this prompt: 'A lighthouse keeper discovers a mysterious message in a bottle.' Use temperature 1.2 and allow up to 800 tokens."}],"resultDescription":"Returns a JSON object containing the generated text completion, the model name used, a finish reason (e.g. 'end_turn'), a response ID, and a usage breakdown showing prompt tokens, completion tokens, and total tokens consumed.","failureModes":["Payment not included or insufficient USDC — returns 402 Payment Required","Invalid or unavailable model identifier — returns 400 or 422 with error detail","Messages array is empty or malformed — returns 400 validation error","max_tokens exceeds 16384 — returns 400 validation error","temperature outside 0–2 range — returns 400 validation error","Bedrock upstream timeout or quota exceeded — returns 503 or 504","Network error reaching Vercel deployment — returns 500"],"whenToPreferThis":"Choose this endpoint when you need pay-per-call access to Amazon Bedrock models (especially Amazon Nova) without managing AWS IAM credentials or infrastructure, and when your agent workflow supports x402 or MPP micropayment protocols. It is especially suitable for agents making sporadic or low-volume inference calls where a monthly subscription is wasteful. Prefer alternatives if you need streaming responses, function calling, or models not available on Bedrock.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T06:42:34.489Z","isFirstParty":false,"canonicalSlug":"aws-bedrock-agent-api-chat-completion-b6baa4ef"}