{"agentsJson":"0.1.0","info":{"title":"Maximus Media House — AI Agent API","version":"1.0.0","description":"Paid generative media + chat over x402 v2 / USDC on Base. Pay per call, no keys, no accounts. Manifest: https://agent.maximusmediahouse.com/.well-known/x402","contact":{"name":"Maximus Media House","email":"maximusmediahouse@agentmail.to","url":"https://agent.maximusmediahouse.com"},"x-x402":{"x402Version":2,"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x1D15aC2CAa30aBF43D45cE86eE0cB0F3C8B929F6","manifest":"https://agent.maximusmediahouse.com/.well-known/x402"}},"servers":[{"url":"https://agent.maximusmediahouse.com"}],"sources":[{"openapi":"https://agent.maximusmediahouse.com/.well-known/openapi.json"},{"openapi":"https://agent.maximusmediahouse.com/openapi.json"},{"x402":"https://agent.maximusmediahouse.com/.well-known/x402"}],"auth":{"type":"x402","scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x1D15aC2CAa30aBF43D45cE86eE0cB0F3C8B929F6","header":"x-402-authorization"},"flows":[{"name":"image_generate","description":"Generate an image from a text prompt.","endpoint":"https://agent.maximusmediahouse.com/v1/images/generations","method":"POST","input":{"model":{"type":"string","enum":["flux3-klein","flux-2-klein-4b"],"description":"flux3-klein ($0.03, premium house-quality) or flux-2-klein-4b ($0.01, fast/cheap)."},"prompt":{"type":"string","minLength":1,"maxLength":1200,"description":"Text prompt describing the image to generate."},"n":{"type":"integer","minimum":1,"maximum":4,"default":1,"description":"Number of images (server caps at 4)."},"size":{"type":"string","enum":["1024x1024","768x768","512x512"],"default":"1024x1024"},"seed":{"type":"integer","minimum":0,"maximum":4294967295,"description":"Optional deterministic seed."},"response_format":{"type":"string","enum":["b64_json","url"],"default":"b64_json"},"refs":{"type":"array","items":{"type":"string"},"maxItems":4,"description":"Optional reference image URLs (SSRF-guarded)."}},"required":["model","prompt"],"pricing":[{"model":"flux-2-klein-4b","price_usdc":"0.010000","price_micro_usdc":10000},{"model":"flux3-klein","price_usdc":"0.030000","price_micro_usdc":30000}]},{"name":"image_edit","description":"Edit a supplied source image with an instruction.","endpoint":"https://agent.maximusmediahouse.com/v1/images/edits","method":"POST","input":{"model":{"type":"string","enum":["qwen-image-edit-2511"]},"prompt":{"type":"string","minLength":1,"maxLength":1200,"description":"Instruction applied to the source image (identity/composition preserved)."},"image":{"type":"string","description":"Source image as base64 PNG/JPEG (no data: prefix)."},"image_url":{"type":"string","format":"uri","description":"Public https URL of the source image (SSRF-guarded). Send exactly one of image / image_url."},"size":{"type":"string","enum":["1024x1024","768x768","512x512"],"default":"1024x1024"},"seed":{"type":"integer","minimum":0,"maximum":4294967295},"response_format":{"type":"string","enum":["b64_json","url"],"default":"b64_json"}},"required":["model","prompt"],"pricing":[{"model":"qwen-image-edit-2511","price_usdc":"0.020000","price_micro_usdc":20000}]},{"name":"chat","description":"OpenAI-compatible chat completion.","endpoint":"https://agent.maximusmediahouse.com/v1/chat/completions","method":"POST","input":{"model":{"type":"string","enum":["qwen3.5"]},"messages":{"type":"array","minItems":1,"items":{"type":"object","properties":{"role":{"type":"string","enum":["system","user","assistant"]},"content":{"type":"string"}},"required":["role","content"]}},"temperature":{"type":"number","minimum":0,"maximum":2,"default":0.7},"max_tokens":{"type":"integer","minimum":1,"default":1024,"description":"Output cap. Chat is billed FLAT $0.003/call, not per token."},"stream":{"type":"boolean","default":false}},"required":["model","messages"],"pricing":[{"model":"qwen3.5","price_usdc":"0.003000","price_micro_usdc":3000}]}],"paths":{"/v1/images/generations":{"post":{"tags":["paid"],"summary":"Text-to-image (flux-2-klein-4b $0.01 / flux3-klein $0.03).","operationId":"image-gen_post","description":"Paid x402 v2 route. An unpaid POST returns HTTP 402 with accepts[] (scheme exact, network eip155:8453, USDC on Base). Retry with `X-402-Authorization: tx_hash=0x...`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string","enum":["flux3-klein","flux-2-klein-4b"],"description":"flux3-klein ($0.03, premium house-quality) or flux-2-klein-4b ($0.01, fast/cheap)."},"prompt":{"type":"string","minLength":1,"maxLength":1200,"description":"Text prompt describing the image to generate."},"n":{"type":"integer","minimum":1,"maximum":4,"default":1,"description":"Number of images (server caps at 4)."},"size":{"type":"string","enum":["1024x1024","768x768","512x512"],"default":"1024x1024"},"seed":{"type":"integer","minimum":0,"maximum":4294967295,"description":"Optional deterministic seed."},"response_format":{"type":"string","enum":["b64_json","url"],"default":"b64_json"},"refs":{"type":"array","items":{"type":"string"},"maxItems":4,"description":"Optional reference image URLs (SSRF-guarded)."}},"required":["model","prompt"]}}}},"responses":{"402":{"description":"Payment required (x402 v2)."},"503":{"description":"Not sold / GPU memory declined — no payment taken."},"200":{"description":"Result (image or chat completion)."}},"x-x402":{"products":{"flux-2-klein-4b":{"price_usdc":"0.010000","price_micro_usdc":10000,"available":true},"flux3-klein":{"price_usdc":"0.030000","price_micro_usdc":30000,"available":true}},"payTo":"0x1D15aC2CAa30aBF43D45cE86eE0cB0F3C8B929F6","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"}},"get":{"tags":["discovery"],"summary":"Read-only capability view (same x402 challenge; never billed).","operationId":"image-gen_get","responses":{"200":{"description":"Capability + payment requirements."}}}},"/v1/images/edits":{"post":{"tags":["paid"],"summary":"Reference-conditioned image edit ($0.02).","operationId":"image-edit_post","description":"Paid x402 v2 route. An unpaid POST returns HTTP 402 with accepts[] (scheme exact, network eip155:8453, USDC on Base). Retry with `X-402-Authorization: tx_hash=0x...`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string","enum":["qwen-image-edit-2511"]},"prompt":{"type":"string","minLength":1,"maxLength":1200,"description":"Instruction applied to the source image (identity/composition preserved)."},"image":{"type":"string","description":"Source image as base64 PNG/JPEG (no data: prefix)."},"image_url":{"type":"string","format":"uri","description":"Public https URL of the source image (SSRF-guarded). Send exactly one of image / image_url."},"size":{"type":"string","enum":["1024x1024","768x768","512x512"],"default":"1024x1024"},"seed":{"type":"integer","minimum":0,"maximum":4294967295},"response_format":{"type":"string","enum":["b64_json","url"],"default":"b64_json"}},"required":["model","prompt"]}}}},"responses":{"402":{"description":"Payment required (x402 v2)."},"503":{"description":"Not sold / GPU memory declined — no payment taken."},"200":{"description":"Result (image or chat completion)."}},"x-x402":{"products":{"qwen-image-edit-2511":{"price_usdc":"0.020000","price_micro_usdc":20000,"available":true}},"payTo":"0x1D15aC2CAa30aBF43D45cE86eE0cB0F3C8B929F6","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"}},"get":{"tags":["discovery"],"summary":"Read-only capability view (same x402 challenge; never billed).","operationId":"image-edit_get","responses":{"200":{"description":"Capability + payment requirements."}}}},"/v1/chat/completions":{"post":{"tags":["paid"],"summary":"OpenAI-compatible chat ($0.003 flat per call).","operationId":"chat_post","description":"Paid x402 v2 route. An unpaid POST returns HTTP 402 with accepts[] (scheme exact, network eip155:8453, USDC on Base). Retry with `X-402-Authorization: tx_hash=0x...`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string","enum":["qwen3.5"]},"messages":{"type":"array","minItems":1,"items":{"type":"object","properties":{"role":{"type":"string","enum":["system","user","assistant"]},"content":{"type":"string"}},"required":["role","content"]}},"temperature":{"type":"number","minimum":0,"maximum":2,"default":0.7},"max_tokens":{"type":"integer","minimum":1,"default":1024,"description":"Output cap. Chat is billed FLAT $0.003/call, not per token."},"stream":{"type":"boolean","default":false}},"required":["model","messages"]}}}},"responses":{"402":{"description":"Payment required (x402 v2)."},"503":{"description":"Not sold / GPU memory declined — no payment taken."},"200":{"description":"Result (image or chat completion)."}},"x-x402":{"products":{"qwen3.5":{"price_usdc":"0.003000","price_micro_usdc":3000,"available":true}},"payTo":"0x1D15aC2CAa30aBF43D45cE86eE0cB0F3C8B929F6","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453"}},"get":{"tags":["discovery"],"summary":"Read-only capability view (same x402 challenge; never billed).","operationId":"chat_get","responses":{"200":{"description":"Capability + payment requirements."}}}},"/v1/artifacts/{sha256}":{"get":{"tags":["discovery"],"summary":"Durable content-addressed artifact fetch — no expiry, no signature, no paywall.","operationId":"artifact_get","description":"Fetch a generated image/video by the content hash returned as data[].sha256 (also data[].durable_url) on any image, edit, or video response. Durable and composable: the handle never expires, so it can be stored, forwarded to a third party, or cited in your own output. The 24h HMAC-signed /v1/jobs/{id}/download URL is preserved as an optional convenience, not the only way to retrieve output.","security":[],"parameters":[{"name":"sha256","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{64}(\\.(png|mp4))?$"}}],"responses":{"200":{"description":"The artifact bytes (image/png or video/mp4)."},"404":{"description":"artifact_unknown"}}}}}}