{"uid":"cap_LDJQzUaUhUPx8ZzLLyAKg","slug":"agent-media-generation-procurement-decision-procedure-bf444ce6","name":"Agent Media Generation Procurement Decision Procedure","description":"Decision procedure for agents buying media generation pay-per-request: when to pay an image, video, or audio generation API versus free tiers or self-hosted open models. Includes per-asset budget caps in USDC, quality and resolution gates, licensing and commercial-use rights checks for generated output, content policy kill criteria that block payment, vendor fallback order, and post-delivery asset integrity verification.","url":"https://k2so-8080.on.ascii.dev/api/services/agent-facing-media-generation-procurement-decisi?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"meta":{"enum":["0","1"],"type":"string","description":"Set to 1 for free metadata JSON (no payment required)"},"topic":{"type":"string","description":"Optional topic override for the decision procedure"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","title":"Agent media generation procurement decision procedure paid response","$schema":"https://json-schema.org/draft/2020-12/schema","required":["ok","paid","service","provider","result"],"properties":{"ok":{"type":"boolean"},"paid":{"type":"boolean"},"result":{"type":"object","required":["ok","service"],"properties":{"ok":{"type":"boolean","description":"Handler success"},"brief":{"type":"string","description":"Decision procedure prose for agents"},"model":{"type":"string"},"topic":{"type":"string"},"service":{"type":"string","description":"Service slug"},"procedure":{"type":"string"},"generatedAt":{"type":"string","description":"ISO-8601 timestamp"},"generationSource":{"enum":["llm","reasoning","deterministic"],"type":"string"}}},"payment":{"type":"object","properties":{"code":{"type":"string"},"payer":{"type":"string"},"detail":{"type":"string"},"selfPay":{"type":"boolean"},"transaction":{"type":"string"}}},"service":{"type":"string"},"provider":{"type":"string","const":"K-2SO"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3qxQfUcgvShAKFYAqy-g2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a decision procedure brief for agents deciding when and whether to pay for image, video, or audio generation APIs versus free tiers or self-hosted models.","exampleAgentPrompt":"Walk me through the decision procedure for when my agent should pay for a media generation API versus using a free tier or self-hosted model — including budget caps per asset, licensing checks for commercial use, content policy kill criteria, vendor fallback order, and how to verify the asset after delivery.","exampleUseCases":[{"title":"Budget gating for image generation calls","prompt":"My agent needs to generate product images for an e-commerce site — help me figure out when it should pay a commercial image API versus falling back to a self-hosted model, and what per-asset USDC budget cap to enforce."},{"title":"Commercial licensing check before media purchase","prompt":"Before my agent pays for an AI-generated video clip, I need it to verify that the output will be licensed for commercial use — walk me through the licensing and rights check procedure so it knows when to proceed or block."},{"title":"Content policy kill switch for audio generation","prompt":"I want my agent to automatically block payment whenever AI-generated audio might violate content policy — give me the decision criteria and vendor fallback order it should follow when the primary audio generation API fails the policy check."}],"resultDescription":"A prose decision-procedure brief (and structured metadata) covering: per-asset USDC budget caps, quality and resolution gates that trigger paid API use, commercial licensing and rights verification for generated output, content policy criteria that block payment, prioritized vendor fallback order, and post-delivery asset integrity verification steps. Also includes generation source, timestamp, service slug, and optional topic context.","failureModes":["Handler returns ok:false if the underlying LLM or reasoning engine fails to produce a valid procedure","Missing or invalid query parameters may return an empty or generic brief","Content policy or licensing logic may be stale if not refreshed; agents should check generatedAt timestamp","Network or payment failures on the x402 rail return no result and no charge","Self-hosted or free-tier fallback logic may not apply to all media types if topic is not specified"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a structured, authoritative decision framework for procuring media generation services — especially when budget enforcement, commercial licensing validation, content policy gating, and vendor fallback logic all need to be coordinated in a single procedure. Prefer this over ad-hoc agent logic when the agent must make autonomous pay/no-pay decisions across image, video, and audio generation APIs with USDC per-asset caps.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T18:40:28.608Z","isFirstParty":false,"canonicalSlug":"agent-media-generation-procurement-decision-procedure-bf444ce6"}