{"schemaVersion":"server402.catalog.search.v1","generatedAt":"2026-07-21T21:25:19Z","generatedAtBeijing":"2026-07-22 05:25:19 CST","timezone":"Asia/Shanghai","query":"ai-code-explainer","filters":{"limit":10},"total":43,"services":[{"id":"ai-code-explainer","canonicalId":"ai-code-explainer","name":"AI Code Explainer","displayName":"AI Code Explainer","description":"Explains code behavior, data flow, edge cases, and refactoring opportunities. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","descriptionForModel":"Explains code behavior, data flow, edge cases, and refactoring opportunities. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","category":"ai-models","keywords":["ai-code-explainer","AI Code Explainer","bailian","qwen","dashscope","llm","ai model","ai agent","paid ai api","code-explanation","developer-tools","debugging","refactoring","semantic:code-explainer","intent:explain-code","output:explanation"],"useCases":["Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API.","Use this service when an AI agent needs explains code behavior, data flow, edge cases, and refactoring opportunities.","Return machine-readable JSON for downstream automation."],"limitations":["Does not browse live web data; provide source context explicitly.","Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server."],"tags":["paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","code-explanation","developer-tools","debugging","refactoring","semantic:code-explainer","intent:explain-code","output:explanation"],"method":"POST","endpoint":"/api/tools/ai-code-explainer","endpointAliases":["/api/tools/ai-code-explainer"],"inputTypes":["object","string"],"outputTypes":["object","string"],"inputSchema":{"additionalProperties":true,"properties":{"code":{"description":"Required input field code.","type":"string"},"context":{"description":"Optional supporting context, source text, constraints, or background.","type":"string"},"language":{"description":"Optional output language or locale.","type":"string"}},"required":["code"],"type":"object"},"outputSchema":{"additionalProperties":true,"properties":{"model":{"type":"string"},"provider":{"type":"string"},"result":{"additionalProperties":true,"type":"object"},"service_id":{"type":"string"},"status":{"type":"string"},"upstream_id":{"type":"string"},"upstream_request_id":{"type":"string"},"usage":{"additionalProperties":true,"type":"object"}},"required":["status","service_id","result"],"type":"object"},"exampleRequest":{"code":"func add(a, b int) int { return a + b }"},"exampleResponse":{"model":"qwen-plus","provider":"aliyun-bailian","result":{"summary":"Example structured result."},"service_id":"ai-code-explainer","status":"ok"},"pricing":{"amountCents":0,"amountMicros":5000,"currency":"USD","policyId":"bailian-qwen-light","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"payment":{"providerId":"x402-base-usdc","provider":"x402_facilitator"},"quality":{"qualityScore":43,"healthStatus":"","latencyMs":11,"successRate":1,"callCount":3,"executionCount":3,"successCount":3,"errorCount":0,"paymentRequireds":0,"lastCallAt":"2026-07-21T21:18:59Z"},"discovery":{"toolName":"ai_code_explainer","searchText":"ai-code-explainer AI Code Explainer Explains code behavior, data flow, edge cases, and refactoring opportunities. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution. Explains code behavior, data flow, edge cases, and refactoring opportunities. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution. ai-models object string object string paid x402 usdc base bailian qwen llm ai-model model-service code-explanation developer-tools debugging refactoring semantic:code-explainer intent:explain-code output:explanation ai-code-explainer AI Code Explainer bailian qwen dashscope llm ai model ai agent paid ai api code-explanation developer-tools debugging refactoring semantic:code-explainer intent:explain-code output:explanation Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API. Use this service when an AI agent needs explains code behavior, data flow, edge cases, and refactoring opportunities. Return machine-readable JSON for downstream automation. Does not browse live web data; provide source context explicitly. Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server. /api/tools/ai-code-explainer","aliases":["AI Code Explainer","ai-models","paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","code-explanation","developer-tools","debugging","refactoring","semantic:code-explainer","intent:explain-code","output:explanation","ai-code-explainer","dashscope","ai model","ai agent","paid ai api","ai_code_explainer","/api/tools/ai-code-explainer"],"localeHints":["en"],"useCases":["Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API.","Use this service when an AI agent needs explains code behavior, data flow, edge cases, and refactoring opportunities.","Return machine-readable JSON for downstream automation."],"limitations":["Does not browse live web data; provide source context explicitly.","Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server."],"paymentFlow":{"type":"http-402","createPayment":{"method":"POST","url":"/api/payments","bodySchema":{"properties":{"providerId":{"type":"string"},"serviceId":{"description":"Use the canonical service id from the catalog. Legacy internal ids remain accepted for backward compatibility.","type":"string"}},"required":["serviceId"],"type":"object"},"responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"verifyPayment":{"method":"GET","url":"/api/payments/{paymentId}","responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"token":{"header":"X-Payment-Token","mcpArgument":"paymentToken","httpUsage":"Send the paid token in the X-Payment-Token request header when calling /api/tools/*.","mcpUsage":"Pass the paid token as the paymentToken argument when calling the MCP tool."},"requiredResponse":{"status":402,"contentType":"application/json","headers":{"PAYMENT-REQUIRED":"base64/json x402PaymentRequired","PAYMENT-SIGNATURE":"base64/json x402 Base USDC payment payload","X-Payment-Required":"true","X-Payment-Token":"payment.token","X402-Guarantee":"base64url/json Xiao Coin escrow guarantee"},"bodySchema":{"properties":{"accepts":{"items":{"type":"object"},"type":"array"},"error":{"type":"string"},"extensions":{"type":"object"},"payment":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"},"paymentFlow":{"type":"object"},"resource":{"type":"object"},"retry":{"type":"object"},"type":{"const":"payment_required","type":"string"},"x402Version":{"type":"integer"}},"required":["type","error","payment","paymentFlow","retry"],"type":"object"},"x402Version":2,"x402Header":"PAYMENT-REQUIRED","paymentAsset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","paymentNetwork":"eip155:8453"},"retry":{"when":"Retry after paying one accepts[] requirement with Base USDC x402, Xiao Coin AI wallet escrow, or after payment.status is paid and the legacy token has remaining calls.","http":["Preferred x402 flow: call the paid /api/tools/* endpoint once and read accepts[] from the HTTP 402 response body or PAYMENT-REQUIRED header.","Pay one accepts[] requirement with an x402-compatible wallet/facilitator on network eip155:8453 using Base USDC.","Retry the exact same request with PAYMENT-SIGNATURE set to the base64 JSON x402 payment payload.","XIAO flow: pay the accepts[] requirement where asset=XIAO with the AI wallet, then retry the exact same request with X402-Guarantee set to the base64url guarantee JSON.","Legacy token flow: POST /api/payments with serviceId, complete/verify payment, then retry with X-Payment-Token set to payment.token."],"mcp":["Call the tool without paymentToken to receive payment_required structuredContent.","Preferred x402 clients should pay the accepts[] requirement and call the underlying HTTP endpoint with PAYMENT-SIGNATURE.","XIAO-capable agents should pay the XIAO accepts[] requirement through the AI wallet and call the underlying HTTP endpoint with X402-Guarantee.","Legacy MCP clients can complete or verify payment.paymentId, then call the same MCP tool again with paymentToken set to payment.token."],"examples":{"http402":["curl -i https://example.com/api/tools/timestamp","Read accepts[0].network=eip155:8453, accepts[0].asset=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, accepts[0].amount, and accepts[0].payTo.","curl -H 'PAYMENT-SIGNATURE: \u003cbase64-json-x402-payment-payload\u003e' https://example.com/api/tools/timestamp"],"legacyToken":["curl -X POST https://example.com/api/payments -H 'Content-Type: application/json' -d '{\"serviceId\":\"timestamp\"}'","curl -H 'X-Payment-Token: \u003cpayment.token\u003e' https://example.com/api/tools/timestamp"],"mcp":["Call tool timestamp with no paymentToken.","After payment is complete, call timestamp again with paymentToken=\u003cpayment.token\u003e."],"xiao":["curl -i https://example.com/api/tools/timestamp","Read the accepts[] entry with asset=XIAO, create an AI wallet guarantee for merchant_id=aivps.lat and merchant_order_id=payment.paymentId.","curl -H 'X402-Guarantee: \u003cbase64url-guarantee-json\u003e' https://example.com/api/tools/timestamp"]},"failures":["payment required","payment token expired","payment token has no remaining calls","api key required","api key is not allowed to call this service"]}},"paymentHint":"Call POST /api/tools/ai-code-explainer once to receive HTTP 402 with accepts[] requirements, or create a payment with POST /api/payments using serviceId=\"ai-code-explainer\". Pay Base USDC with PAYMENT-SIGNATURE or pay XIAO with X402-Guarantee, then retry the same request.","retryHint":"If the service returns HTTP 402, pay one accepts[] requirement, then retry with PAYMENT-SIGNATURE for Base USDC, X402-Guarantee for Xiao Coin, or X-Payment-Token: payment.token for legacy token flow.","requiredState":"published, enabled"},"complexity":"moderate","typicalResponseTime":"3s","cacheable":false,"idempotent":true,"outputFormat":"json","requiredContext":["task input","bailian-api-key"],"errorExamples":[{"input":{},"error":"code is required","statusCode":400}],"sla":{"uptime":"99.5%","maxLatency":"45000ms"},"matchScore":275,"matchTerms":["ai code explainer","ai","code","explainer"],"why":"Matched ai code explainer, ai, code, explainer for \"AI Code Explainer\". Price is USD 0.005 per policy bailian-qwen-light.","whyMatched":"Matched ai code explainer, ai, code, explainer for \"AI Code Explainer\". Price is USD 0.005 per policy bailian-qwen-light."},{"id":"ai-code-reviewer","canonicalId":"ai-code-reviewer","name":"AI Code Reviewer","displayName":"AI Code Reviewer","description":"Reviews code or diffs for bugs, regressions, security risks, and missing tests. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","descriptionForModel":"Reviews code or diffs for bugs, regressions, security risks, and missing tests. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","category":"ai-models","keywords":["ai-code-reviewer","AI Code Reviewer","bailian","qwen","dashscope","llm","ai model","ai agent","paid ai api","code-review","software-engineering","bugs","security","tests","semantic:code-review","intent:review-code","output:findings"],"useCases":["Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API.","Use this service when an AI agent needs reviews code or diffs for bugs, regressions, security risks, and missing tests.","Return machine-readable JSON for downstream automation."],"limitations":["Does not browse live web data; provide source context explicitly.","Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server."],"tags":["paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","code-review","software-engineering","bugs","security","tests","semantic:code-review","intent:review-code","output:findings"],"method":"POST","endpoint":"/api/tools/ai-code-reviewer","endpointAliases":["/api/tools/ai-code-reviewer"],"inputTypes":["object","string"],"outputTypes":["object","string"],"inputSchema":{"additionalProperties":true,"properties":{"code":{"description":"Required input field code.","type":"string"},"context":{"description":"Optional supporting context, source text, constraints, or background.","type":"string"},"language":{"description":"Optional output language or locale.","type":"string"}},"required":["code"],"type":"object"},"outputSchema":{"additionalProperties":true,"properties":{"model":{"type":"string"},"provider":{"type":"string"},"result":{"additionalProperties":true,"type":"object"},"service_id":{"type":"string"},"status":{"type":"string"},"upstream_id":{"type":"string"},"upstream_request_id":{"type":"string"},"usage":{"additionalProperties":true,"type":"object"}},"required":["status","service_id","result"],"type":"object"},"exampleRequest":{"code":"func add(a, b int) int { return a + b }"},"exampleResponse":{"model":"qwen-plus","provider":"aliyun-bailian","result":{"summary":"Example structured result."},"service_id":"ai-code-reviewer","status":"ok"},"pricing":{"amountCents":2,"amountMicros":20000,"currency":"USD","policyId":"bailian-qwen-premium","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"payment":{"providerId":"x402-base-usdc","provider":"x402_facilitator"},"quality":{"qualityScore":43,"healthStatus":"","latencyMs":16,"successRate":1,"callCount":3,"executionCount":3,"successCount":3,"errorCount":0,"paymentRequireds":0,"lastCallAt":"2026-07-21T21:19:27Z"},"discovery":{"toolName":"ai_code_reviewer","searchText":"ai-code-reviewer AI Code Reviewer Reviews code or diffs for bugs, regressions, security risks, and missing tests. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution. Reviews code or diffs for bugs, regressions, security risks, and missing tests. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution. ai-models object string object string paid x402 usdc base bailian qwen llm ai-model model-service code-review software-engineering bugs security tests semantic:code-review intent:review-code output:findings ai-code-reviewer AI Code Reviewer bailian qwen dashscope llm ai model ai agent paid ai api code-review software-engineering bugs security tests semantic:code-review intent:review-code output:findings Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API. Use this service when an AI agent needs reviews code or diffs for bugs, regressions, security risks, and missing tests. Return machine-readable JSON for downstream automation. Does not browse live web data; provide source context explicitly. Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server. /api/tools/ai-code-reviewer","aliases":["AI Code Reviewer","ai-models","paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","code-review","software-engineering","bugs","security","tests","semantic:code-review","intent:review-code","output:findings","ai-code-reviewer","dashscope","ai model","ai agent","paid ai api","ai_code_reviewer","/api/tools/ai-code-reviewer"],"localeHints":["en"],"useCases":["Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API.","Use this service when an AI agent needs reviews code or diffs for bugs, regressions, security risks, and missing tests.","Return machine-readable JSON for downstream automation."],"limitations":["Does not browse live web data; provide source context explicitly.","Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server."],"paymentFlow":{"type":"http-402","createPayment":{"method":"POST","url":"/api/payments","bodySchema":{"properties":{"providerId":{"type":"string"},"serviceId":{"description":"Use the canonical service id from the catalog. Legacy internal ids remain accepted for backward compatibility.","type":"string"}},"required":["serviceId"],"type":"object"},"responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"verifyPayment":{"method":"GET","url":"/api/payments/{paymentId}","responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"token":{"header":"X-Payment-Token","mcpArgument":"paymentToken","httpUsage":"Send the paid token in the X-Payment-Token request header when calling /api/tools/*.","mcpUsage":"Pass the paid token as the paymentToken argument when calling the MCP tool."},"requiredResponse":{"status":402,"contentType":"application/json","headers":{"PAYMENT-REQUIRED":"base64/json x402PaymentRequired","PAYMENT-SIGNATURE":"base64/json x402 Base USDC payment payload","X-Payment-Required":"true","X-Payment-Token":"payment.token","X402-Guarantee":"base64url/json Xiao Coin escrow guarantee"},"bodySchema":{"properties":{"accepts":{"items":{"type":"object"},"type":"array"},"error":{"type":"string"},"extensions":{"type":"object"},"payment":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"},"paymentFlow":{"type":"object"},"resource":{"type":"object"},"retry":{"type":"object"},"type":{"const":"payment_required","type":"string"},"x402Version":{"type":"integer"}},"required":["type","error","payment","paymentFlow","retry"],"type":"object"},"x402Version":2,"x402Header":"PAYMENT-REQUIRED","paymentAsset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","paymentNetwork":"eip155:8453"},"retry":{"when":"Retry after paying one accepts[] requirement with Base USDC x402, Xiao Coin AI wallet escrow, or after payment.status is paid and the legacy token has remaining calls.","http":["Preferred x402 flow: call the paid /api/tools/* endpoint once and read accepts[] from the HTTP 402 response body or PAYMENT-REQUIRED header.","Pay one accepts[] requirement with an x402-compatible wallet/facilitator on network eip155:8453 using Base USDC.","Retry the exact same request with PAYMENT-SIGNATURE set to the base64 JSON x402 payment payload.","XIAO flow: pay the accepts[] requirement where asset=XIAO with the AI wallet, then retry the exact same request with X402-Guarantee set to the base64url guarantee JSON.","Legacy token flow: POST /api/payments with serviceId, complete/verify payment, then retry with X-Payment-Token set to payment.token."],"mcp":["Call the tool without paymentToken to receive payment_required structuredContent.","Preferred x402 clients should pay the accepts[] requirement and call the underlying HTTP endpoint with PAYMENT-SIGNATURE.","XIAO-capable agents should pay the XIAO accepts[] requirement through the AI wallet and call the underlying HTTP endpoint with X402-Guarantee.","Legacy MCP clients can complete or verify payment.paymentId, then call the same MCP tool again with paymentToken set to payment.token."],"examples":{"http402":["curl -i https://example.com/api/tools/timestamp","Read accepts[0].network=eip155:8453, accepts[0].asset=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, accepts[0].amount, and accepts[0].payTo.","curl -H 'PAYMENT-SIGNATURE: \u003cbase64-json-x402-payment-payload\u003e' https://example.com/api/tools/timestamp"],"legacyToken":["curl -X POST https://example.com/api/payments -H 'Content-Type: application/json' -d '{\"serviceId\":\"timestamp\"}'","curl -H 'X-Payment-Token: \u003cpayment.token\u003e' https://example.com/api/tools/timestamp"],"mcp":["Call tool timestamp with no paymentToken.","After payment is complete, call timestamp again with paymentToken=\u003cpayment.token\u003e."],"xiao":["curl -i https://example.com/api/tools/timestamp","Read the accepts[] entry with asset=XIAO, create an AI wallet guarantee for merchant_id=aivps.lat and merchant_order_id=payment.paymentId.","curl -H 'X402-Guarantee: \u003cbase64url-guarantee-json\u003e' https://example.com/api/tools/timestamp"]},"failures":["payment required","payment token expired","payment token has no remaining calls","api key required","api key is not allowed to call this service"]}},"paymentHint":"Call POST /api/tools/ai-code-reviewer once to receive HTTP 402 with accepts[] requirements, or create a payment with POST /api/payments using serviceId=\"ai-code-reviewer\". Pay Base USDC with PAYMENT-SIGNATURE or pay XIAO with X402-Guarantee, then retry the same request.","retryHint":"If the service returns HTTP 402, pay one accepts[] requirement, then retry with PAYMENT-SIGNATURE for Base USDC, X402-Guarantee for Xiao Coin, or X-Payment-Token: payment.token for legacy token flow.","requiredState":"published, enabled"},"complexity":"complex","typicalResponseTime":"3s","cacheable":false,"idempotent":true,"outputFormat":"json","requiredContext":["task input","bailian-api-key"],"errorExamples":[{"input":{},"error":"code is required","statusCode":400}],"sla":{"uptime":"99.5%","maxLatency":"45000ms"},"matchScore":93,"matchTerms":["ai","code"],"why":"Matched ai, code for \"AI Code Reviewer\". Price is USD 0.02 per policy bailian-qwen-premium.","whyMatched":"Matched ai, code for \"AI Code Reviewer\". Price is USD 0.02 per policy bailian-qwen-premium."},{"id":"ai-test-case-generator","canonicalId":"ai-test-case-generator","name":"AI Test Case Generator","displayName":"AI Test Case Generator","description":"Generates focused test cases, edge cases, fixtures, and verification steps from requirements or code. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","descriptionForModel":"Generates focused test cases, edge cases, fixtures, and verification steps from requirements or code. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","category":"ai-models","keywords":["ai-test-case-generator","AI Test Case Generator","bailian","qwen","dashscope","llm","ai model","ai agent","paid ai api","testing","qa","test-cases","edge-cases","software-engineering","semantic:test-generation","intent:generate-tests","output:test-cases"],"useCases":["Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API.","Use this service when an AI agent needs generates focused test cases, edge cases, fixtures, and verification steps from requirements or code.","Return machine-readable JSON for downstream automation."],"limitations":["Does not browse live web data; provide source context explicitly.","Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server."],"tags":["paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","testing","qa","test-cases","edge-cases","software-engineering","semantic:test-generation","intent:generate-tests","output:test-cases"],"method":"POST","endpoint":"/api/tools/ai-test-case-generator","endpointAliases":["/api/tools/ai-test-case-generator"],"inputTypes":["object","string"],"outputTypes":["object","string"],"inputSchema":{"additionalProperties":true,"properties":{"context":{"description":"Optional supporting context, source text, constraints, or background.","type":"string"},"language":{"description":"Optional output language or locale.","type":"string"},"subject":{"description":"Required input field subject.","type":"string"}},"required":["subject"],"type":"object"},"outputSchema":{"additionalProperties":true,"properties":{"model":{"type":"string"},"provider":{"type":"string"},"result":{"additionalProperties":true,"type":"object"},"service_id":{"type":"string"},"status":{"type":"string"},"upstream_id":{"type":"string"},"upstream_request_id":{"type":"string"},"usage":{"additionalProperties":true,"type":"object"}},"required":["status","service_id","result"],"type":"object"},"exampleRequest":{"subject":"Example subject."},"exampleResponse":{"model":"qwen-plus","provider":"aliyun-bailian","result":{"summary":"Example structured result."},"service_id":"ai-test-case-generator","status":"ok"},"pricing":{"amountCents":1,"amountMicros":10000,"currency":"USD","policyId":"bailian-qwen-standard","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"payment":{"providerId":"x402-base-usdc","provider":"x402_facilitator"},"quality":{"qualityScore":43,"healthStatus":"","latencyMs":25,"successRate":1,"callCount":3,"executionCount":3,"successCount":3,"errorCount":0,"paymentRequireds":0,"lastCallAt":"2026-07-21T21:21:22Z"},"discovery":{"toolName":"ai_test_case_generator","searchText":"ai-test-case-generator AI Test Case Generator Generates focused test cases, edge cases, fixtures, and verification steps from requirements or code. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution. Generates focused test cases, edge cases, fixtures, and verification steps from requirements or code. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution. ai-models object string object string paid x402 usdc base bailian qwen llm ai-model model-service testing qa test-cases edge-cases software-engineering semantic:test-generation intent:generate-tests output:test-cases ai-test-case-generator AI Test Case Generator bailian qwen dashscope llm ai model ai agent paid ai api testing qa test-cases edge-cases software-engineering semantic:test-generation intent:generate-tests output:test-cases Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API. Use this service when an AI agent needs generates focused test cases, edge cases, fixtures, and verification steps from requirements or code. Return machine-readable JSON for downstream automation. Does not browse live web data; provide source context explicitly. Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server. /api/tools/ai-test-case-generator","aliases":["AI Test Case Generator","ai-models","paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","testing","qa","test-cases","edge-cases","software-engineering","semantic:test-generation","intent:generate-tests","output:test-cases","ai-test-case-generator","dashscope","ai model","ai agent","paid ai api","ai_test_case_generator","/api/tools/ai-test-case-generator"],"localeHints":["en"],"useCases":["Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API.","Use this service when an AI agent needs generates focused test cases, edge cases, fixtures, and verification steps from requirements or code.","Return machine-readable JSON for downstream automation."],"limitations":["Does not browse live web data; provide source context explicitly.","Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server."],"paymentFlow":{"type":"http-402","createPayment":{"method":"POST","url":"/api/payments","bodySchema":{"properties":{"providerId":{"type":"string"},"serviceId":{"description":"Use the canonical service id from the catalog. Legacy internal ids remain accepted for backward compatibility.","type":"string"}},"required":["serviceId"],"type":"object"},"responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"verifyPayment":{"method":"GET","url":"/api/payments/{paymentId}","responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"token":{"header":"X-Payment-Token","mcpArgument":"paymentToken","httpUsage":"Send the paid token in the X-Payment-Token request header when calling /api/tools/*.","mcpUsage":"Pass the paid token as the paymentToken argument when calling the MCP tool."},"requiredResponse":{"status":402,"contentType":"application/json","headers":{"PAYMENT-REQUIRED":"base64/json x402PaymentRequired","PAYMENT-SIGNATURE":"base64/json x402 Base USDC payment payload","X-Payment-Required":"true","X-Payment-Token":"payment.token","X402-Guarantee":"base64url/json Xiao Coin escrow guarantee"},"bodySchema":{"properties":{"accepts":{"items":{"type":"object"},"type":"array"},"error":{"type":"string"},"extensions":{"type":"object"},"payment":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"},"paymentFlow":{"type":"object"},"resource":{"type":"object"},"retry":{"type":"object"},"type":{"const":"payment_required","type":"string"},"x402Version":{"type":"integer"}},"required":["type","error","payment","paymentFlow","retry"],"type":"object"},"x402Version":2,"x402Header":"PAYMENT-REQUIRED","paymentAsset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","paymentNetwork":"eip155:8453"},"retry":{"when":"Retry after paying one accepts[] requirement with Base USDC x402, Xiao Coin AI wallet escrow, or after payment.status is paid and the legacy token has remaining calls.","http":["Preferred x402 flow: call the paid /api/tools/* endpoint once and read accepts[] from the HTTP 402 response body or PAYMENT-REQUIRED header.","Pay one accepts[] requirement with an x402-compatible wallet/facilitator on network eip155:8453 using Base USDC.","Retry the exact same request with PAYMENT-SIGNATURE set to the base64 JSON x402 payment payload.","XIAO flow: pay the accepts[] requirement where asset=XIAO with the AI wallet, then retry the exact same request with X402-Guarantee set to the base64url guarantee JSON.","Legacy token flow: POST /api/payments with serviceId, complete/verify payment, then retry with X-Payment-Token set to payment.token."],"mcp":["Call the tool without paymentToken to receive payment_required structuredContent.","Preferred x402 clients should pay the accepts[] requirement and call the underlying HTTP endpoint with PAYMENT-SIGNATURE.","XIAO-capable agents should pay the XIAO accepts[] requirement through the AI wallet and call the underlying HTTP endpoint with X402-Guarantee.","Legacy MCP clients can complete or verify payment.paymentId, then call the same MCP tool again with paymentToken set to payment.token."],"examples":{"http402":["curl -i https://example.com/api/tools/timestamp","Read accepts[0].network=eip155:8453, accepts[0].asset=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, accepts[0].amount, and accepts[0].payTo.","curl -H 'PAYMENT-SIGNATURE: \u003cbase64-json-x402-payment-payload\u003e' https://example.com/api/tools/timestamp"],"legacyToken":["curl -X POST https://example.com/api/payments -H 'Content-Type: application/json' -d '{\"serviceId\":\"timestamp\"}'","curl -H 'X-Payment-Token: \u003cpayment.token\u003e' https://example.com/api/tools/timestamp"],"mcp":["Call tool timestamp with no paymentToken.","After payment is complete, call timestamp again with paymentToken=\u003cpayment.token\u003e."],"xiao":["curl -i https://example.com/api/tools/timestamp","Read the accepts[] entry with asset=XIAO, create an AI wallet guarantee for merchant_id=aivps.lat and merchant_order_id=payment.paymentId.","curl -H 'X402-Guarantee: \u003cbase64url-guarantee-json\u003e' https://example.com/api/tools/timestamp"]},"failures":["payment required","payment token expired","payment token has no remaining calls","api key required","api key is not allowed to call this service"]}},"paymentHint":"Call POST /api/tools/ai-test-case-generator once to receive HTTP 402 with accepts[] requirements, or create a payment with POST /api/payments using serviceId=\"ai-test-case-generator\". Pay Base USDC with PAYMENT-SIGNATURE or pay XIAO with X402-Guarantee, then retry the same request.","retryHint":"If the service returns HTTP 402, pay one accepts[] requirement, then retry with PAYMENT-SIGNATURE for Base USDC, X402-Guarantee for Xiao Coin, or X-Payment-Token: payment.token for legacy token flow.","requiredState":"published, enabled"},"complexity":"moderate","typicalResponseTime":"3s","cacheable":false,"idempotent":true,"outputFormat":"json","requiredContext":["task input","bailian-api-key"],"errorExamples":[{"input":{},"error":"subject is required","statusCode":400}],"sla":{"uptime":"99.5%","maxLatency":"45000ms"},"matchScore":61,"matchTerms":["ai","code"],"why":"Matched ai, code for \"AI Test Case Generator\". Price is USD 0.01 per policy bailian-qwen-standard.","whyMatched":"Matched ai, code for \"AI Test Case Generator\". Price is USD 0.01 per policy bailian-qwen-standard."},{"id":"ai-task-planner","canonicalId":"ai-task-planner","name":"AI Task Planner","displayName":"AI Task Planner","description":"Turns a goal, constraints, and available context into an execution plan for AI agents. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","descriptionForModel":"Turns a goal, constraints, and available context into an execution plan for AI agents. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","category":"ai-models","keywords":["ai-task-planner","AI Task Planner","bailian","qwen","dashscope","llm","ai model","ai agent","paid ai api","planning","agent-workflow","task-decomposition","next-actions","semantic:task-planning","intent:agent-plan","output:steps"],"useCases":["Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API.","Use this service when an AI agent needs turns a goal, constraints, and available context into an execution plan for ai agents.","Return machine-readable JSON for downstream automation."],"limitations":["Does not browse live web data; provide source context explicitly.","Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server."],"tags":["paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","planning","agent-workflow","task-decomposition","next-actions","semantic:task-planning","intent:agent-plan","output:steps"],"method":"POST","endpoint":"/api/tools/ai-task-planner","endpointAliases":["/api/tools/ai-task-planner"],"inputTypes":["object","string"],"outputTypes":["object","string"],"inputSchema":{"additionalProperties":true,"properties":{"context":{"description":"Optional supporting context, source text, constraints, or background.","type":"string"},"goal":{"description":"Required input field goal.","type":"string"},"language":{"description":"Optional output language or locale.","type":"string"}},"required":["goal"],"type":"object"},"outputSchema":{"additionalProperties":true,"properties":{"model":{"type":"string"},"provider":{"type":"string"},"result":{"additionalProperties":true,"type":"object"},"service_id":{"type":"string"},"status":{"type":"string"},"upstream_id":{"type":"string"},"upstream_request_id":{"type":"string"},"usage":{"additionalProperties":true,"type":"object"}},"required":["status","service_id","result"],"type":"object"},"exampleRequest":{"goal":"Example goal."},"exampleResponse":{"model":"qwen-plus","provider":"aliyun-bailian","result":{"summary":"Example structured result."},"service_id":"ai-task-planner","status":"ok"},"pricing":{"amountCents":1,"amountMicros":10000,"currency":"USD","policyId":"bailian-qwen-standard","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"payment":{"providerId":"x402-base-usdc","provider":"x402_facilitator"},"quality":{"qualityScore":43,"healthStatus":"","latencyMs":14,"successRate":1,"callCount":3,"executionCount":3,"successCount":3,"errorCount":0,"paymentRequireds":0,"lastCallAt":"2026-07-21T21:19:11Z"},"discovery":{"toolName":"ai_task_planner","searchText":"ai-task-planner AI Task Planner Turns a goal, constraints, and available context into an execution plan for AI agents. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution. Turns a goal, constraints, and available context into an execution plan for AI agents. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution. ai-models object string object string paid x402 usdc base bailian qwen llm ai-model model-service planning agent-workflow task-decomposition next-actions semantic:task-planning intent:agent-plan output:steps ai-task-planner AI Task Planner bailian qwen dashscope llm ai model ai agent paid ai api planning agent-workflow task-decomposition next-actions semantic:task-planning intent:agent-plan output:steps Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API. Use this service when an AI agent needs turns a goal, constraints, and available context into an execution plan for ai agents. Return machine-readable JSON for downstream automation. Does not browse live web data; provide source context explicitly. Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server. /api/tools/ai-task-planner","aliases":["AI Task Planner","ai-models","paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","planning","agent-workflow","task-decomposition","next-actions","semantic:task-planning","intent:agent-plan","output:steps","ai-task-planner","dashscope","ai model","ai agent","paid ai api","ai_task_planner","/api/tools/ai-task-planner"],"localeHints":["en"],"useCases":["Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API.","Use this service when an AI agent needs turns a goal, constraints, and available context into an execution plan for ai agents.","Return machine-readable JSON for downstream automation."],"limitations":["Does not browse live web data; provide source context explicitly.","Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server."],"paymentFlow":{"type":"http-402","createPayment":{"method":"POST","url":"/api/payments","bodySchema":{"properties":{"providerId":{"type":"string"},"serviceId":{"description":"Use the canonical service id from the catalog. Legacy internal ids remain accepted for backward compatibility.","type":"string"}},"required":["serviceId"],"type":"object"},"responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"verifyPayment":{"method":"GET","url":"/api/payments/{paymentId}","responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"token":{"header":"X-Payment-Token","mcpArgument":"paymentToken","httpUsage":"Send the paid token in the X-Payment-Token request header when calling /api/tools/*.","mcpUsage":"Pass the paid token as the paymentToken argument when calling the MCP tool."},"requiredResponse":{"status":402,"contentType":"application/json","headers":{"PAYMENT-REQUIRED":"base64/json x402PaymentRequired","PAYMENT-SIGNATURE":"base64/json x402 Base USDC payment payload","X-Payment-Required":"true","X-Payment-Token":"payment.token","X402-Guarantee":"base64url/json Xiao Coin escrow guarantee"},"bodySchema":{"properties":{"accepts":{"items":{"type":"object"},"type":"array"},"error":{"type":"string"},"extensions":{"type":"object"},"payment":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"},"paymentFlow":{"type":"object"},"resource":{"type":"object"},"retry":{"type":"object"},"type":{"const":"payment_required","type":"string"},"x402Version":{"type":"integer"}},"required":["type","error","payment","paymentFlow","retry"],"type":"object"},"x402Version":2,"x402Header":"PAYMENT-REQUIRED","paymentAsset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","paymentNetwork":"eip155:8453"},"retry":{"when":"Retry after paying one accepts[] requirement with Base USDC x402, Xiao Coin AI wallet escrow, or after payment.status is paid and the legacy token has remaining calls.","http":["Preferred x402 flow: call the paid /api/tools/* endpoint once and read accepts[] from the HTTP 402 response body or PAYMENT-REQUIRED header.","Pay one accepts[] requirement with an x402-compatible wallet/facilitator on network eip155:8453 using Base USDC.","Retry the exact same request with PAYMENT-SIGNATURE set to the base64 JSON x402 payment payload.","XIAO flow: pay the accepts[] requirement where asset=XIAO with the AI wallet, then retry the exact same request with X402-Guarantee set to the base64url guarantee JSON.","Legacy token flow: POST /api/payments with serviceId, complete/verify payment, then retry with X-Payment-Token set to payment.token."],"mcp":["Call the tool without paymentToken to receive payment_required structuredContent.","Preferred x402 clients should pay the accepts[] requirement and call the underlying HTTP endpoint with PAYMENT-SIGNATURE.","XIAO-capable agents should pay the XIAO accepts[] requirement through the AI wallet and call the underlying HTTP endpoint with X402-Guarantee.","Legacy MCP clients can complete or verify payment.paymentId, then call the same MCP tool again with paymentToken set to payment.token."],"examples":{"http402":["curl -i https://example.com/api/tools/timestamp","Read accepts[0].network=eip155:8453, accepts[0].asset=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, accepts[0].amount, and accepts[0].payTo.","curl -H 'PAYMENT-SIGNATURE: \u003cbase64-json-x402-payment-payload\u003e' https://example.com/api/tools/timestamp"],"legacyToken":["curl -X POST https://example.com/api/payments -H 'Content-Type: application/json' -d '{\"serviceId\":\"timestamp\"}'","curl -H 'X-Payment-Token: \u003cpayment.token\u003e' https://example.com/api/tools/timestamp"],"mcp":["Call tool timestamp with no paymentToken.","After payment is complete, call timestamp again with paymentToken=\u003cpayment.token\u003e."],"xiao":["curl -i https://example.com/api/tools/timestamp","Read the accepts[] entry with asset=XIAO, create an AI wallet guarantee for merchant_id=aivps.lat and merchant_order_id=payment.paymentId.","curl -H 'X402-Guarantee: \u003cbase64url-guarantee-json\u003e' https://example.com/api/tools/timestamp"]},"failures":["payment required","payment token expired","payment token has no remaining calls","api key required","api key is not allowed to call this service"]}},"paymentHint":"Call POST /api/tools/ai-task-planner once to receive HTTP 402 with accepts[] requirements, or create a payment with POST /api/payments using serviceId=\"ai-task-planner\". Pay Base USDC with PAYMENT-SIGNATURE or pay XIAO with X402-Guarantee, then retry the same request.","retryHint":"If the service returns HTTP 402, pay one accepts[] requirement, then retry with PAYMENT-SIGNATURE for Base USDC, X402-Guarantee for Xiao Coin, or X-Payment-Token: payment.token for legacy token flow.","requiredState":"published, enabled"},"complexity":"moderate","typicalResponseTime":"3s","cacheable":false,"idempotent":true,"outputFormat":"json","requiredContext":["task input","bailian-api-key"],"errorExamples":[{"input":{},"error":"goal is required","statusCode":400}],"sla":{"uptime":"99.5%","maxLatency":"45000ms"},"matchScore":54,"matchTerms":["ai"],"why":"Matched ai for \"AI Task Planner\". Price is USD 0.01 per policy bailian-qwen-standard.","whyMatched":"Matched ai for \"AI Task Planner\". Price is USD 0.01 per policy bailian-qwen-standard."},{"id":"ai-api-contract-designer","canonicalId":"ai-api-contract-designer","name":"AI API Contract Designer","displayName":"AI API Contract Designer","description":"Designs JSON input/output schemas and invocation guidance for a desired AI/Agent service. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","descriptionForModel":"Designs JSON input/output schemas and invocation guidance for a desired AI/Agent service. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","category":"ai-models","keywords":["ai-api-contract-designer","AI API Contract Designer","bailian","qwen","dashscope","llm","ai model","ai agent","paid ai api","api-design","json-schema","service-contract","agent-tools","schema-generation","semantic:api-contract","intent:tool-design","output:schemas"],"useCases":["Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API.","Use this service when an AI agent needs designs json input/output schemas and invocation guidance for a desired ai/agent service.","Return machine-readable JSON for downstream automation."],"limitations":["Does not browse live web data; provide source context explicitly.","Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server."],"tags":["paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","api-design","json-schema","service-contract","agent-tools","schema-generation","semantic:api-contract","intent:tool-design","output:schemas"],"method":"POST","endpoint":"/api/tools/ai-api-contract-designer","endpointAliases":["/api/tools/ai-api-contract-designer"],"inputTypes":["object","string"],"outputTypes":["object","string"],"inputSchema":{"additionalProperties":true,"properties":{"context":{"description":"Optional supporting context, source text, constraints, or background.","type":"string"},"language":{"description":"Optional output language or locale.","type":"string"},"service_goal":{"description":"Required input field service_goal.","type":"string"}},"required":["service_goal"],"type":"object"},"outputSchema":{"additionalProperties":true,"properties":{"model":{"type":"string"},"provider":{"type":"string"},"result":{"additionalProperties":true,"type":"object"},"service_id":{"type":"string"},"status":{"type":"string"},"upstream_id":{"type":"string"},"upstream_request_id":{"type":"string"},"usage":{"additionalProperties":true,"type":"object"}},"required":["status","service_id","result"],"type":"object"},"exampleRequest":{"service_goal":"Example service goal."},"exampleResponse":{"model":"qwen-plus","provider":"aliyun-bailian","result":{"summary":"Example structured result."},"service_id":"ai-api-contract-designer","status":"ok"},"pricing":{"amountCents":1,"amountMicros":10000,"currency":"USD","policyId":"bailian-qwen-standard","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"payment":{"providerId":"x402-base-usdc","provider":"x402_facilitator"},"quality":{"qualityScore":43,"healthStatus":"","latencyMs":18,"successRate":1,"callCount":3,"executionCount":3,"successCount":3,"errorCount":0,"paymentRequireds":0,"lastCallAt":"2026-07-21T21:20:35Z"},"discovery":{"toolName":"ai_api_contract_designer","searchText":"ai-api-contract-designer AI API Contract Designer Designs JSON input/output schemas and invocation guidance for a desired AI/Agent service. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution. Designs JSON input/output schemas and invocation guidance for a desired AI/Agent service. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution. ai-models object string object string paid x402 usdc base bailian qwen llm ai-model model-service api-design json-schema service-contract agent-tools schema-generation semantic:api-contract intent:tool-design output:schemas ai-api-contract-designer AI API Contract Designer bailian qwen dashscope llm ai model ai agent paid ai api api-design json-schema service-contract agent-tools schema-generation semantic:api-contract intent:tool-design output:schemas Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API. Use this service when an AI agent needs designs json input/output schemas and invocation guidance for a desired ai/agent service. Return machine-readable JSON for downstream automation. Does not browse live web data; provide source context explicitly. Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server. /api/tools/ai-api-contract-designer","aliases":["AI API Contract Designer","ai-models","paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","api-design","json-schema","service-contract","agent-tools","schema-generation","semantic:api-contract","intent:tool-design","output:schemas","ai-api-contract-designer","dashscope","ai model","ai agent","paid ai api","ai_api_contract_designer","/api/tools/ai-api-contract-designer"],"localeHints":["en"],"useCases":["Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API.","Use this service when an AI agent needs designs json input/output schemas and invocation guidance for a desired ai/agent service.","Return machine-readable JSON for downstream automation."],"limitations":["Does not browse live web data; provide source context explicitly.","Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server."],"paymentFlow":{"type":"http-402","createPayment":{"method":"POST","url":"/api/payments","bodySchema":{"properties":{"providerId":{"type":"string"},"serviceId":{"description":"Use the canonical service id from the catalog. Legacy internal ids remain accepted for backward compatibility.","type":"string"}},"required":["serviceId"],"type":"object"},"responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"verifyPayment":{"method":"GET","url":"/api/payments/{paymentId}","responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"token":{"header":"X-Payment-Token","mcpArgument":"paymentToken","httpUsage":"Send the paid token in the X-Payment-Token request header when calling /api/tools/*.","mcpUsage":"Pass the paid token as the paymentToken argument when calling the MCP tool."},"requiredResponse":{"status":402,"contentType":"application/json","headers":{"PAYMENT-REQUIRED":"base64/json x402PaymentRequired","PAYMENT-SIGNATURE":"base64/json x402 Base USDC payment payload","X-Payment-Required":"true","X-Payment-Token":"payment.token","X402-Guarantee":"base64url/json Xiao Coin escrow guarantee"},"bodySchema":{"properties":{"accepts":{"items":{"type":"object"},"type":"array"},"error":{"type":"string"},"extensions":{"type":"object"},"payment":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"},"paymentFlow":{"type":"object"},"resource":{"type":"object"},"retry":{"type":"object"},"type":{"const":"payment_required","type":"string"},"x402Version":{"type":"integer"}},"required":["type","error","payment","paymentFlow","retry"],"type":"object"},"x402Version":2,"x402Header":"PAYMENT-REQUIRED","paymentAsset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","paymentNetwork":"eip155:8453"},"retry":{"when":"Retry after paying one accepts[] requirement with Base USDC x402, Xiao Coin AI wallet escrow, or after payment.status is paid and the legacy token has remaining calls.","http":["Preferred x402 flow: call the paid /api/tools/* endpoint once and read accepts[] from the HTTP 402 response body or PAYMENT-REQUIRED header.","Pay one accepts[] requirement with an x402-compatible wallet/facilitator on network eip155:8453 using Base USDC.","Retry the exact same request with PAYMENT-SIGNATURE set to the base64 JSON x402 payment payload.","XIAO flow: pay the accepts[] requirement where asset=XIAO with the AI wallet, then retry the exact same request with X402-Guarantee set to the base64url guarantee JSON.","Legacy token flow: POST /api/payments with serviceId, complete/verify payment, then retry with X-Payment-Token set to payment.token."],"mcp":["Call the tool without paymentToken to receive payment_required structuredContent.","Preferred x402 clients should pay the accepts[] requirement and call the underlying HTTP endpoint with PAYMENT-SIGNATURE.","XIAO-capable agents should pay the XIAO accepts[] requirement through the AI wallet and call the underlying HTTP endpoint with X402-Guarantee.","Legacy MCP clients can complete or verify payment.paymentId, then call the same MCP tool again with paymentToken set to payment.token."],"examples":{"http402":["curl -i https://example.com/api/tools/timestamp","Read accepts[0].network=eip155:8453, accepts[0].asset=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, accepts[0].amount, and accepts[0].payTo.","curl -H 'PAYMENT-SIGNATURE: \u003cbase64-json-x402-payment-payload\u003e' https://example.com/api/tools/timestamp"],"legacyToken":["curl -X POST https://example.com/api/payments -H 'Content-Type: application/json' -d '{\"serviceId\":\"timestamp\"}'","curl -H 'X-Payment-Token: \u003cpayment.token\u003e' https://example.com/api/tools/timestamp"],"mcp":["Call tool timestamp with no paymentToken.","After payment is complete, call timestamp again with paymentToken=\u003cpayment.token\u003e."],"xiao":["curl -i https://example.com/api/tools/timestamp","Read the accepts[] entry with asset=XIAO, create an AI wallet guarantee for merchant_id=aivps.lat and merchant_order_id=payment.paymentId.","curl -H 'X402-Guarantee: \u003cbase64url-guarantee-json\u003e' https://example.com/api/tools/timestamp"]},"failures":["payment required","payment token expired","payment token has no remaining calls","api key required","api key is not allowed to call this service"]}},"paymentHint":"Call POST /api/tools/ai-api-contract-designer once to receive HTTP 402 with accepts[] requirements, or create a payment with POST /api/payments using serviceId=\"ai-api-contract-designer\". Pay Base USDC with PAYMENT-SIGNATURE or pay XIAO with X402-Guarantee, then retry the same request.","retryHint":"If the service returns HTTP 402, pay one accepts[] requirement, then retry with PAYMENT-SIGNATURE for Base USDC, X402-Guarantee for Xiao Coin, or X-Payment-Token: payment.token for legacy token flow.","requiredState":"published, enabled"},"complexity":"moderate","typicalResponseTime":"3s","cacheable":false,"idempotent":true,"outputFormat":"json","requiredContext":["task input","bailian-api-key"],"errorExamples":[{"input":{},"error":"service_goal is required","statusCode":400}],"sla":{"uptime":"99.5%","maxLatency":"45000ms"},"matchScore":54,"matchTerms":["ai"],"why":"Matched ai for \"AI API Contract Designer\". Price is USD 0.01 per policy bailian-qwen-standard.","whyMatched":"Matched ai for \"AI API Contract Designer\". Price is USD 0.01 per policy bailian-qwen-standard."},{"id":"text-to-video","canonicalId":"text-to-video","name":"Text To Video","displayName":"Text to Video AI Generator","description":"Use this paid x402 service whenever the user asks to create, make, generate, synthesize, render, produce, storyboard, or turn text, a script, a scene, a prompt, an idea, a product brief, an ad concept, or Chinese 文生视频/文本生成视频/文字生成视频 into a video. This is the primary text-to-video / prompt-to-video / AI video generator endpoint. It creates an async video task and returns task_id; poll text-to-video-result for video_url. Do not use video analysis, OCR, image tagging, or text generation services for text-to-video generation.","descriptionForModel":"Use this paid x402 service whenever the user asks to create, make, generate, synthesize, render, produce, storyboard, or turn text, a script, a scene, a prompt, an idea, a product brief, an ad concept, or Chinese 文生视频/文本生成视频/文字生成视频 into a video. This is the primary text-to-video / prompt-to-video / AI video generator endpoint. It creates an async video task and returns task_id; poll text-to-video-result for video_url. Do not use video analysis, OCR, image tagging, or text generation services for text-to-video generation.","category":"video-generation","keywords":["text-to-video","ai text to video","text to video","text2video","t2v","prompt to video","prompt-to-video","prompt2video","script to video","story to video","scene to video","idea to video","generate video","generate a video","create video","create a video","make video","make a video","render video","synthesize video","video synthesis","video generation","video generator","ai video","ai video generator","ai generated video","generative video","short video generator","social video generator","marketing video generator","ad video generator","product video generator","ecommerce video","explainer video","cinematic video","storyboard video","b-roll video","wan","wan2.7","wan 2.7","wanx","tongyi wanxiang","dashscope","bailian","model studio","文生视频","文本生成视频","文字生成视频","文字转视频","文本转视频","提示词生成视频","提示词转视频","脚本生成视频","故事生成视频","场景生成视频","生成视频","创建视频","制作视频","视频生成","AI视频","AI视频生成","AI生成视频","视频生成器","短视频生成","广告视频生成","营销视频生成","商品视频生成","产品视频生成","电商视频","分镜视频","影视级视频","通义万相","万相","百炼","百炼文生视频"],"useCases":["Generate a short video from a natural-language text prompt, scene description, script, storyboard, product brief, or ad concept.","Create AI video, marketing clips, social video, ecommerce product demos, cinematic b-roll, training clips, explainer scenes, and storyboards from prompt text.","Call this service first for text-to-video, then call text-to-video-result with the returned task_id to retrieve status and video_url."],"limitations":["Creates an asynchronous provider task; call text-to-video-result to poll for completion and the temporary video_url.","Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server.","Generated video URLs are provider-hosted temporary links and should be downloaded or copied to persistent storage if needed.","Input and output are subject to provider content moderation."],"tags":["paid","x402","usdc","base","ai-video","video-generation","text-to-video","prompt-to-video","t2v","wan","dashscope","bailian","semantic:text-to-video","intent:generate-video","output:task-id","output:video-url"],"method":"POST","endpoint":"/api/tools/text-to-video","endpointAliases":["/api/tools/ai-text-to-video","/api/tools/ai-video-generator","/api/tools/text-to-video-api","/api/tools/prompt-to-video","/api/tools/video-generation","/api/tools/video-generator","/api/tools/create-video","/api/tools/generate-video","/api/tools/wan-text-to-video","/api/tools/bailian-text-to-video","/api/tools/text-to-video"],"inputTypes":["object","string","integer","boolean"],"outputTypes":["object","string"],"inputSchema":{"additionalProperties":true,"properties":{"aspect_ratio":{"description":"Alias for ratio.","type":"string"},"duration":{"default":5,"description":"Requested video duration in seconds. Defaults to 5.","type":"integer"},"model":{"default":"wan2.7-t2v-2026-06-12","type":"string"},"negativePrompt":{"description":"Optional negative prompt alias.","type":"string"},"negative_prompt":{"description":"Optional negative prompt.","type":"string"},"parameters":{"additionalProperties":true,"description":"Optional provider parameters passed through under DashScope parameters.","type":"object"},"prompt":{"description":"Required text prompt, scene description, script, storyboard, product brief, or ad concept to turn into video.","type":"string"},"promptExtend":{"description":"Alias for prompt_extend.","type":"boolean"},"prompt_extend":{"default":true,"description":"Whether to let the model enrich the prompt.","type":"boolean"},"ratio":{"default":"16:9","description":"Aspect ratio such as 16:9, 9:16, or 1:1.","type":"string"},"resolution":{"default":"720P","description":"Resolution tier such as 480P, 720P, or 1080P.","type":"string"},"seed":{"description":"Optional deterministic seed.","type":"integer"},"size":{"description":"Legacy model output size such as 1280*720. Wan 2.7 generally uses resolution plus ratio.","type":"string"},"watermark":{"default":false,"description":"Whether to add provider watermark when supported.","type":"boolean"}},"required":["prompt"],"type":"object"},"outputSchema":{"additionalProperties":true,"properties":{"model":{"type":"string"},"poll":{"additionalProperties":true,"type":"object"},"provider":{"type":"string"},"result":{"additionalProperties":true,"type":"object"},"result_endpoint":{"type":"string"},"service_id":{"type":"string"},"status":{"type":"string"},"task_id":{"type":"string"},"task_status":{"type":"string"},"upstream_request_id":{"type":"string"},"usage":{"additionalProperties":true,"type":"object"},"video_url":{"type":"string"}},"required":["status","service_id","task_id","task_status"],"type":"object"},"exampleRequest":{"duration":5,"prompt":"Create a 5 second cinematic product video of a matte black smart watch on a clean desk, slow camera push-in, soft morning light.","prompt_extend":true,"ratio":"16:9","resolution":"720P","watermark":false},"exampleResponse":{"model":"wan2.7-t2v-2026-06-12","poll":{"endpoint":"/api/tools/text-to-video-result","method":"POST","request":{"task_id":"0385dc79-5ff8-4d82-bcb6-example"}},"provider":"aliyun-bailian","result_endpoint":"/api/tools/text-to-video-result","service_id":"text-to-video","status":"accepted","task_id":"0385dc79-5ff8-4d82-bcb6-example","task_status":"PENDING","upstream_request_id":"4909100c-7b5a-9f92-bfe5-example"},"pricing":{"amountCents":20,"amountMicros":200000,"currency":"USD","policyId":"bailian-wan-text-to-video","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"payment":{"providerId":"x402-base-usdc","provider":"x402_facilitator"},"quality":{"qualityScore":46,"healthStatus":"","latencyMs":18,"successRate":1,"callCount":6,"executionCount":6,"successCount":6,"errorCount":0,"paymentRequireds":0,"lastCallAt":"2026-07-21T21:21:47Z"},"discovery":{"toolName":"text_to_video","searchText":"text-to-video Text To Video Use this paid x402 service whenever the user asks to create, make, generate, synthesize, render, produce, storyboard, or turn text, a script, a scene, a prompt, an idea, a product brief, an ad concept, or Chinese 文生视频/文本生成视频/文字生成视频 into a video. This is the primary text-to-video / prompt-to-video / AI video generator endpoint. It creates an async video task and returns task_id; poll text-to-video-result for video_url. Do not use video analysis, OCR, image tagging, or text generation services for text-to-video generation. Use this paid x402 service whenever the user asks to create, make, generate, synthesize, render, produce, storyboard, or turn text, a script, a scene, a prompt, an idea, a product brief, an ad concept, or Chinese 文生视频/文本生成视频/文字生成视频 into a video. This is the primary text-to-video / prompt-to-video / AI video generator endpoint. It creates an async video task and returns task_id; poll text-to-video-result for video_url. Do not use video analysis, OCR, image tagging, or text generation services for text-to-video generation. video-generation object string integer boolean object string paid x402 usdc base ai-video video-generation text-to-video prompt-to-video t2v wan dashscope bailian semantic:text-to-video intent:generate-video output:task-id output:video-url text-to-video ai text to video text to video text2video t2v prompt to video prompt-to-video prompt2video script to video story to video scene to video idea to video generate video generate a video create video create a video make video make a video render video synthesize video video synthesis video generation video generator ai video ai video generator ai generated video generative video short video generator social video generator marketing video generator ad video generator product video generator ecommerce video explainer video cinematic video storyboard video b-roll video wan wan2.7 wan 2.7 wanx tongyi wanxiang dashscope bailian model studio 文生视频 文本生成视频 文字生成视频 文字转视频 文本转视频 提示词生成视频 提示词转视频 脚本生成视频 故事生成视频 场景生成视频 生成视频 创建视频 制作视频 视频生成 AI视频 AI视频生成 AI生成视频 视频生成器 短视频生成 广告视频生成 营销视频生成 商品视频生成 产品视频生成 电商视频 分镜视频 影视级视频 通义万相 万相 百炼 百炼文生视频 Generate a short video from a natural-language text prompt, scene description, script, storyboard, product brief, or ad concept. Create AI video, marketing clips, social video, ecommerce product demos, cinematic b-roll, training clips, explainer scenes, and storyboards from prompt text. Call this service first for text-to-video, then call text-to-video-result with the returned task_id to retrieve status and video_url. Creates an asynchronous provider task; call text-to-video-result to poll for completion and the temporary video_url. Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server. Generated video URLs are provider-hosted temporary links and should be downloaded or copied to persistent storage if needed. Input and output are subject to provider content moderation. /api/tools/text-to-video","aliases":["Text To Video","video-generation","Text to Video AI Generator","paid","x402","usdc","base","ai-video","text-to-video","prompt-to-video","t2v","wan","dashscope","bailian","semantic:text-to-video","intent:generate-video","output:task-id","output:video-url","ai text to video","text to video","text2video","prompt to video","prompt2video","script to video","story to video","scene to video","idea to video","generate video","generate a video","create video","create a video","make video","make a video","render video","synthesize video","video synthesis","video generation","video generator","ai video","ai video generator","ai generated video","generative video","short video generator","social video generator","marketing video generator","ad video generator","product video generator","ecommerce video","explainer video","cinematic video","storyboard video","b-roll video","wan2.7","wan 2.7","wanx","tongyi wanxiang","model studio","文生视频","文本生成视频","文字生成视频","文字转视频","文本转视频","提示词生成视频","提示词转视频","脚本生成视频","故事生成视频","场景生成视频","生成视频","创建视频","制作视频","视频生成","AI视频","AI视频生成","AI生成视频","视频生成器","短视频生成","广告视频生成","营销视频生成","商品视频生成","产品视频生成","电商视频","分镜视频","影视级视频","通义万相","万相","百炼","百炼文生视频","text_to_video","/api/tools/text-to-video"],"localeHints":["en","zh"],"useCases":["Generate a short video from a natural-language text prompt, scene description, script, storyboard, product brief, or ad concept.","Create AI video, marketing clips, social video, ecommerce product demos, cinematic b-roll, training clips, explainer scenes, and storyboards from prompt text.","Call this service first for text-to-video, then call text-to-video-result with the returned task_id to retrieve status and video_url."],"limitations":["Creates an asynchronous provider task; call text-to-video-result to poll for completion and the temporary video_url.","Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server.","Generated video URLs are provider-hosted temporary links and should be downloaded or copied to persistent storage if needed.","Input and output are subject to provider content moderation."],"paymentFlow":{"type":"http-402","createPayment":{"method":"POST","url":"/api/payments","bodySchema":{"properties":{"providerId":{"type":"string"},"serviceId":{"description":"Use the canonical service id from the catalog. Legacy internal ids remain accepted for backward compatibility.","type":"string"}},"required":["serviceId"],"type":"object"},"responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"verifyPayment":{"method":"GET","url":"/api/payments/{paymentId}","responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"token":{"header":"X-Payment-Token","mcpArgument":"paymentToken","httpUsage":"Send the paid token in the X-Payment-Token request header when calling /api/tools/*.","mcpUsage":"Pass the paid token as the paymentToken argument when calling the MCP tool."},"requiredResponse":{"status":402,"contentType":"application/json","headers":{"PAYMENT-REQUIRED":"base64/json x402PaymentRequired","PAYMENT-SIGNATURE":"base64/json x402 Base USDC payment payload","X-Payment-Required":"true","X-Payment-Token":"payment.token","X402-Guarantee":"base64url/json Xiao Coin escrow guarantee"},"bodySchema":{"properties":{"accepts":{"items":{"type":"object"},"type":"array"},"error":{"type":"string"},"extensions":{"type":"object"},"payment":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"},"paymentFlow":{"type":"object"},"resource":{"type":"object"},"retry":{"type":"object"},"type":{"const":"payment_required","type":"string"},"x402Version":{"type":"integer"}},"required":["type","error","payment","paymentFlow","retry"],"type":"object"},"x402Version":2,"x402Header":"PAYMENT-REQUIRED","paymentAsset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","paymentNetwork":"eip155:8453"},"retry":{"when":"Retry after paying one accepts[] requirement with Base USDC x402, Xiao Coin AI wallet escrow, or after payment.status is paid and the legacy token has remaining calls.","http":["Preferred x402 flow: call the paid /api/tools/* endpoint once and read accepts[] from the HTTP 402 response body or PAYMENT-REQUIRED header.","Pay one accepts[] requirement with an x402-compatible wallet/facilitator on network eip155:8453 using Base USDC.","Retry the exact same request with PAYMENT-SIGNATURE set to the base64 JSON x402 payment payload.","XIAO flow: pay the accepts[] requirement where asset=XIAO with the AI wallet, then retry the exact same request with X402-Guarantee set to the base64url guarantee JSON.","Legacy token flow: POST /api/payments with serviceId, complete/verify payment, then retry with X-Payment-Token set to payment.token."],"mcp":["Call the tool without paymentToken to receive payment_required structuredContent.","Preferred x402 clients should pay the accepts[] requirement and call the underlying HTTP endpoint with PAYMENT-SIGNATURE.","XIAO-capable agents should pay the XIAO accepts[] requirement through the AI wallet and call the underlying HTTP endpoint with X402-Guarantee.","Legacy MCP clients can complete or verify payment.paymentId, then call the same MCP tool again with paymentToken set to payment.token."],"examples":{"http402":["curl -i https://example.com/api/tools/timestamp","Read accepts[0].network=eip155:8453, accepts[0].asset=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, accepts[0].amount, and accepts[0].payTo.","curl -H 'PAYMENT-SIGNATURE: \u003cbase64-json-x402-payment-payload\u003e' https://example.com/api/tools/timestamp"],"legacyToken":["curl -X POST https://example.com/api/payments -H 'Content-Type: application/json' -d '{\"serviceId\":\"timestamp\"}'","curl -H 'X-Payment-Token: \u003cpayment.token\u003e' https://example.com/api/tools/timestamp"],"mcp":["Call tool timestamp with no paymentToken.","After payment is complete, call timestamp again with paymentToken=\u003cpayment.token\u003e."],"xiao":["curl -i https://example.com/api/tools/timestamp","Read the accepts[] entry with asset=XIAO, create an AI wallet guarantee for merchant_id=aivps.lat and merchant_order_id=payment.paymentId.","curl -H 'X402-Guarantee: \u003cbase64url-guarantee-json\u003e' https://example.com/api/tools/timestamp"]},"failures":["payment required","payment token expired","payment token has no remaining calls","api key required","api key is not allowed to call this service"]}},"paymentHint":"Call POST /api/tools/text-to-video once to receive HTTP 402 with accepts[] requirements, or create a payment with POST /api/payments using serviceId=\"text-to-video\". Pay Base USDC with PAYMENT-SIGNATURE or pay XIAO with X402-Guarantee, then retry the same request.","retryHint":"If the service returns HTTP 402, pay one accepts[] requirement, then retry with PAYMENT-SIGNATURE for Base USDC, X402-Guarantee for Xiao Coin, or X-Payment-Token: payment.token for legacy token flow.","requiredState":"published, enabled"},"complexity":"complex","typicalResponseTime":"1s submit; generation usually completes asynchronously","cacheable":false,"idempotent":false,"outputFormat":"json","relatedServices":["text-to-video-result"],"requiredContext":["prompt","bailian-api-key","dashscope-api-key"],"inputExamples":[{"duration":5,"prompt":"Create a 5 second cinematic product video of a matte black smart watch on a clean desk, slow camera push-in, soft morning light.","prompt_extend":true,"ratio":"16:9","resolution":"720P","watermark":false},{"duration":5,"prompt":"文生视频：生成一段竖屏短视频，画面是咖啡店新品拿铁的广告，镜头从杯口拉近到品牌 logo，温暖自然光。","ratio":"9:16","resolution":"720P"},{"duration":10,"prompt":"Turn this storyboard into video: Shot 1, wide city skyline at dusk. Shot 2, close-up of a delivery robot crossing the street. Shot 3, product reveal on a clean white table.","ratio":"16:9","resolution":"720P"}],"errorExamples":[{"input":{},"error":"prompt is required","statusCode":400}],"sla":{"uptime":"99.0%","maxLatency":"60000ms","rateLimit":"provider async generation queue limits apply"},"matchScore":51,"matchTerms":["ai","explainer"],"why":"Matched ai, explainer for \"Text To Video\". Price is USD 0.2 per policy bailian-wan-text-to-video.","whyMatched":"Matched ai, explainer for \"Text To Video\". Price is USD 0.2 per policy bailian-wan-text-to-video."},{"id":"ai-regex-generator","canonicalId":"ai-regex-generator","name":"AI Regex Generator","displayName":"AI Regex Generator","description":"Generates regular expressions with examples, edge cases, and implementation notes. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","descriptionForModel":"Generates regular expressions with examples, edge cases, and implementation notes. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","category":"ai-models","keywords":["ai-regex-generator","AI Regex Generator","bailian","qwen","dashscope","llm","ai model","ai agent","paid ai api","regex","pattern-matching","validation","developer-tools","semantic:regex-generator","intent:generate-regex","output:regex"],"useCases":["Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API.","Use this service when an AI agent needs generates regular expressions with examples, edge cases, and implementation notes.","Return machine-readable JSON for downstream automation."],"limitations":["Does not browse live web data; provide source context explicitly.","Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server."],"tags":["paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","regex","pattern-matching","validation","developer-tools","semantic:regex-generator","intent:generate-regex","output:regex"],"method":"POST","endpoint":"/api/tools/ai-regex-generator","endpointAliases":["/api/tools/ai-regex-generator"],"inputTypes":["object","string","array"],"outputTypes":["object","string"],"inputSchema":{"additionalProperties":true,"properties":{"context":{"description":"Optional supporting context, source text, constraints, or background.","type":"string"},"language":{"description":"Optional output language or locale.","type":"string"},"match_examples":{"description":"Required input field match_examples.","items":{"type":"string"},"type":"array"}},"required":["match_examples"],"type":"object"},"outputSchema":{"additionalProperties":true,"properties":{"model":{"type":"string"},"provider":{"type":"string"},"result":{"additionalProperties":true,"type":"object"},"service_id":{"type":"string"},"status":{"type":"string"},"upstream_id":{"type":"string"},"upstream_request_id":{"type":"string"},"usage":{"additionalProperties":true,"type":"object"}},"required":["status","service_id","result"],"type":"object"},"exampleRequest":{"match_examples":["INV-2026-001","ORD-402"]},"exampleResponse":{"model":"qwen-plus","provider":"aliyun-bailian","result":{"summary":"Example structured result."},"service_id":"ai-regex-generator","status":"ok"},"pricing":{"amountCents":0,"amountMicros":5000,"currency":"USD","policyId":"bailian-qwen-light","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"payment":{"providerId":"x402-base-usdc","provider":"x402_facilitator"},"quality":{"qualityScore":43,"healthStatus":"","latencyMs":15,"successRate":1,"callCount":3,"executionCount":3,"successCount":3,"errorCount":0,"paymentRequireds":0,"lastCallAt":"2026-07-21T21:22:51Z"},"discovery":{"toolName":"ai_regex_generator","searchText":"ai-regex-generator AI Regex Generator Generates regular expressions with examples, edge cases, and implementation notes. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution. Generates regular expressions with examples, edge cases, and implementation notes. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution. ai-models object string array object string paid x402 usdc base bailian qwen llm ai-model model-service regex pattern-matching validation developer-tools semantic:regex-generator intent:generate-regex output:regex ai-regex-generator AI Regex Generator bailian qwen dashscope llm ai model ai agent paid ai api regex pattern-matching validation developer-tools semantic:regex-generator intent:generate-regex output:regex Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API. Use this service when an AI agent needs generates regular expressions with examples, edge cases, and implementation notes. Return machine-readable JSON for downstream automation. Does not browse live web data; provide source context explicitly. Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server. /api/tools/ai-regex-generator","aliases":["AI Regex Generator","ai-models","paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","regex","pattern-matching","validation","developer-tools","semantic:regex-generator","intent:generate-regex","output:regex","ai-regex-generator","dashscope","ai model","ai agent","paid ai api","ai_regex_generator","/api/tools/ai-regex-generator"],"localeHints":["en"],"useCases":["Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API.","Use this service when an AI agent needs generates regular expressions with examples, edge cases, and implementation notes.","Return machine-readable JSON for downstream automation."],"limitations":["Does not browse live web data; provide source context explicitly.","Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server."],"paymentFlow":{"type":"http-402","createPayment":{"method":"POST","url":"/api/payments","bodySchema":{"properties":{"providerId":{"type":"string"},"serviceId":{"description":"Use the canonical service id from the catalog. Legacy internal ids remain accepted for backward compatibility.","type":"string"}},"required":["serviceId"],"type":"object"},"responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"verifyPayment":{"method":"GET","url":"/api/payments/{paymentId}","responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"token":{"header":"X-Payment-Token","mcpArgument":"paymentToken","httpUsage":"Send the paid token in the X-Payment-Token request header when calling /api/tools/*.","mcpUsage":"Pass the paid token as the paymentToken argument when calling the MCP tool."},"requiredResponse":{"status":402,"contentType":"application/json","headers":{"PAYMENT-REQUIRED":"base64/json x402PaymentRequired","PAYMENT-SIGNATURE":"base64/json x402 Base USDC payment payload","X-Payment-Required":"true","X-Payment-Token":"payment.token","X402-Guarantee":"base64url/json Xiao Coin escrow guarantee"},"bodySchema":{"properties":{"accepts":{"items":{"type":"object"},"type":"array"},"error":{"type":"string"},"extensions":{"type":"object"},"payment":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"},"paymentFlow":{"type":"object"},"resource":{"type":"object"},"retry":{"type":"object"},"type":{"const":"payment_required","type":"string"},"x402Version":{"type":"integer"}},"required":["type","error","payment","paymentFlow","retry"],"type":"object"},"x402Version":2,"x402Header":"PAYMENT-REQUIRED","paymentAsset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","paymentNetwork":"eip155:8453"},"retry":{"when":"Retry after paying one accepts[] requirement with Base USDC x402, Xiao Coin AI wallet escrow, or after payment.status is paid and the legacy token has remaining calls.","http":["Preferred x402 flow: call the paid /api/tools/* endpoint once and read accepts[] from the HTTP 402 response body or PAYMENT-REQUIRED header.","Pay one accepts[] requirement with an x402-compatible wallet/facilitator on network eip155:8453 using Base USDC.","Retry the exact same request with PAYMENT-SIGNATURE set to the base64 JSON x402 payment payload.","XIAO flow: pay the accepts[] requirement where asset=XIAO with the AI wallet, then retry the exact same request with X402-Guarantee set to the base64url guarantee JSON.","Legacy token flow: POST /api/payments with serviceId, complete/verify payment, then retry with X-Payment-Token set to payment.token."],"mcp":["Call the tool without paymentToken to receive payment_required structuredContent.","Preferred x402 clients should pay the accepts[] requirement and call the underlying HTTP endpoint with PAYMENT-SIGNATURE.","XIAO-capable agents should pay the XIAO accepts[] requirement through the AI wallet and call the underlying HTTP endpoint with X402-Guarantee.","Legacy MCP clients can complete or verify payment.paymentId, then call the same MCP tool again with paymentToken set to payment.token."],"examples":{"http402":["curl -i https://example.com/api/tools/timestamp","Read accepts[0].network=eip155:8453, accepts[0].asset=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, accepts[0].amount, and accepts[0].payTo.","curl -H 'PAYMENT-SIGNATURE: \u003cbase64-json-x402-payment-payload\u003e' https://example.com/api/tools/timestamp"],"legacyToken":["curl -X POST https://example.com/api/payments -H 'Content-Type: application/json' -d '{\"serviceId\":\"timestamp\"}'","curl -H 'X-Payment-Token: \u003cpayment.token\u003e' https://example.com/api/tools/timestamp"],"mcp":["Call tool timestamp with no paymentToken.","After payment is complete, call timestamp again with paymentToken=\u003cpayment.token\u003e."],"xiao":["curl -i https://example.com/api/tools/timestamp","Read the accepts[] entry with asset=XIAO, create an AI wallet guarantee for merchant_id=aivps.lat and merchant_order_id=payment.paymentId.","curl -H 'X402-Guarantee: \u003cbase64url-guarantee-json\u003e' https://example.com/api/tools/timestamp"]},"failures":["payment required","payment token expired","payment token has no remaining calls","api key required","api key is not allowed to call this service"]}},"paymentHint":"Call POST /api/tools/ai-regex-generator once to receive HTTP 402 with accepts[] requirements, or create a payment with POST /api/payments using serviceId=\"ai-regex-generator\". Pay Base USDC with PAYMENT-SIGNATURE or pay XIAO with X402-Guarantee, then retry the same request.","retryHint":"If the service returns HTTP 402, pay one accepts[] requirement, then retry with PAYMENT-SIGNATURE for Base USDC, X402-Guarantee for Xiao Coin, or X-Payment-Token: payment.token for legacy token flow.","requiredState":"published, enabled"},"complexity":"moderate","typicalResponseTime":"3s","cacheable":false,"idempotent":true,"outputFormat":"json","requiredContext":["task input","bailian-api-key"],"errorExamples":[{"input":{},"error":"match_examples is required","statusCode":400}],"sla":{"uptime":"99.5%","maxLatency":"45000ms"},"matchScore":44,"matchTerms":["ai"],"why":"Matched ai for \"AI Regex Generator\". Price is USD 0.005 per policy bailian-qwen-light.","whyMatched":"Matched ai for \"AI Regex Generator\". Price is USD 0.005 per policy bailian-qwen-light."},{"id":"ai-intent-classifier","canonicalId":"ai-intent-classifier","name":"AI Intent Classifier","displayName":"AI Intent Classifier","description":"Classifies user text into intents, entities, urgency, routing hints, and next actions. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","descriptionForModel":"Classifies user text into intents, entities, urgency, routing hints, and next actions. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","category":"ai-models","keywords":["ai-intent-classifier","AI Intent Classifier","bailian","qwen","dashscope","llm","ai model","ai agent","paid ai api","classification","routing","intent","entities","sentiment","support","semantic:intent-classification","output:labels"],"useCases":["Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API.","Use this service when an AI agent needs classifies user text into intents, entities, urgency, routing hints, and next actions.","Return machine-readable JSON for downstream automation."],"limitations":["Does not browse live web data; provide source context explicitly.","Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server."],"tags":["paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","classification","routing","intent","entities","sentiment","support","semantic:intent-classification","output:labels"],"method":"POST","endpoint":"/api/tools/ai-intent-classifier","endpointAliases":["/api/tools/ai-intent-classifier"],"inputTypes":["object","string"],"outputTypes":["object","string"],"inputSchema":{"additionalProperties":true,"properties":{"context":{"description":"Optional supporting context, source text, constraints, or background.","type":"string"},"language":{"description":"Optional output language or locale.","type":"string"},"text":{"description":"Required input field text.","type":"string"}},"required":["text"],"type":"object"},"outputSchema":{"additionalProperties":true,"properties":{"model":{"type":"string"},"provider":{"type":"string"},"result":{"additionalProperties":true,"type":"object"},"service_id":{"type":"string"},"status":{"type":"string"},"upstream_id":{"type":"string"},"upstream_request_id":{"type":"string"},"usage":{"additionalProperties":true,"type":"object"}},"required":["status","service_id","result"],"type":"object"},"exampleRequest":{"text":"The customer asked for an OCR API with HTTP 402 payment support."},"exampleResponse":{"model":"qwen-plus","provider":"aliyun-bailian","result":{"summary":"Example structured result."},"service_id":"ai-intent-classifier","status":"ok"},"pricing":{"amountCents":0,"amountMicros":5000,"currency":"USD","policyId":"bailian-qwen-light","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"payment":{"providerId":"x402-base-usdc","provider":"x402_facilitator"},"quality":{"qualityScore":43,"healthStatus":"","latencyMs":17,"successRate":1,"callCount":3,"executionCount":3,"successCount":3,"errorCount":0,"paymentRequireds":0,"lastCallAt":"2026-07-21T21:18:58Z"},"discovery":{"toolName":"ai_intent_classifier","searchText":"ai-intent-classifier AI Intent Classifier Classifies user text into intents, entities, urgency, routing hints, and next actions. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution. Classifies user text into intents, entities, urgency, routing hints, and next actions. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution. ai-models object string object string paid x402 usdc base bailian qwen llm ai-model model-service classification routing intent entities sentiment support semantic:intent-classification output:labels ai-intent-classifier AI Intent Classifier bailian qwen dashscope llm ai model ai agent paid ai api classification routing intent entities sentiment support semantic:intent-classification output:labels Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API. Use this service when an AI agent needs classifies user text into intents, entities, urgency, routing hints, and next actions. Return machine-readable JSON for downstream automation. Does not browse live web data; provide source context explicitly. Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server. /api/tools/ai-intent-classifier","aliases":["AI Intent Classifier","ai-models","paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","classification","routing","intent","entities","sentiment","support","semantic:intent-classification","output:labels","ai-intent-classifier","dashscope","ai model","ai agent","paid ai api","ai_intent_classifier","/api/tools/ai-intent-classifier"],"localeHints":["en"],"useCases":["Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API.","Use this service when an AI agent needs classifies user text into intents, entities, urgency, routing hints, and next actions.","Return machine-readable JSON for downstream automation."],"limitations":["Does not browse live web data; provide source context explicitly.","Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server."],"paymentFlow":{"type":"http-402","createPayment":{"method":"POST","url":"/api/payments","bodySchema":{"properties":{"providerId":{"type":"string"},"serviceId":{"description":"Use the canonical service id from the catalog. Legacy internal ids remain accepted for backward compatibility.","type":"string"}},"required":["serviceId"],"type":"object"},"responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"verifyPayment":{"method":"GET","url":"/api/payments/{paymentId}","responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"token":{"header":"X-Payment-Token","mcpArgument":"paymentToken","httpUsage":"Send the paid token in the X-Payment-Token request header when calling /api/tools/*.","mcpUsage":"Pass the paid token as the paymentToken argument when calling the MCP tool."},"requiredResponse":{"status":402,"contentType":"application/json","headers":{"PAYMENT-REQUIRED":"base64/json x402PaymentRequired","PAYMENT-SIGNATURE":"base64/json x402 Base USDC payment payload","X-Payment-Required":"true","X-Payment-Token":"payment.token","X402-Guarantee":"base64url/json Xiao Coin escrow guarantee"},"bodySchema":{"properties":{"accepts":{"items":{"type":"object"},"type":"array"},"error":{"type":"string"},"extensions":{"type":"object"},"payment":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"},"paymentFlow":{"type":"object"},"resource":{"type":"object"},"retry":{"type":"object"},"type":{"const":"payment_required","type":"string"},"x402Version":{"type":"integer"}},"required":["type","error","payment","paymentFlow","retry"],"type":"object"},"x402Version":2,"x402Header":"PAYMENT-REQUIRED","paymentAsset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","paymentNetwork":"eip155:8453"},"retry":{"when":"Retry after paying one accepts[] requirement with Base USDC x402, Xiao Coin AI wallet escrow, or after payment.status is paid and the legacy token has remaining calls.","http":["Preferred x402 flow: call the paid /api/tools/* endpoint once and read accepts[] from the HTTP 402 response body or PAYMENT-REQUIRED header.","Pay one accepts[] requirement with an x402-compatible wallet/facilitator on network eip155:8453 using Base USDC.","Retry the exact same request with PAYMENT-SIGNATURE set to the base64 JSON x402 payment payload.","XIAO flow: pay the accepts[] requirement where asset=XIAO with the AI wallet, then retry the exact same request with X402-Guarantee set to the base64url guarantee JSON.","Legacy token flow: POST /api/payments with serviceId, complete/verify payment, then retry with X-Payment-Token set to payment.token."],"mcp":["Call the tool without paymentToken to receive payment_required structuredContent.","Preferred x402 clients should pay the accepts[] requirement and call the underlying HTTP endpoint with PAYMENT-SIGNATURE.","XIAO-capable agents should pay the XIAO accepts[] requirement through the AI wallet and call the underlying HTTP endpoint with X402-Guarantee.","Legacy MCP clients can complete or verify payment.paymentId, then call the same MCP tool again with paymentToken set to payment.token."],"examples":{"http402":["curl -i https://example.com/api/tools/timestamp","Read accepts[0].network=eip155:8453, accepts[0].asset=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, accepts[0].amount, and accepts[0].payTo.","curl -H 'PAYMENT-SIGNATURE: \u003cbase64-json-x402-payment-payload\u003e' https://example.com/api/tools/timestamp"],"legacyToken":["curl -X POST https://example.com/api/payments -H 'Content-Type: application/json' -d '{\"serviceId\":\"timestamp\"}'","curl -H 'X-Payment-Token: \u003cpayment.token\u003e' https://example.com/api/tools/timestamp"],"mcp":["Call tool timestamp with no paymentToken.","After payment is complete, call timestamp again with paymentToken=\u003cpayment.token\u003e."],"xiao":["curl -i https://example.com/api/tools/timestamp","Read the accepts[] entry with asset=XIAO, create an AI wallet guarantee for merchant_id=aivps.lat and merchant_order_id=payment.paymentId.","curl -H 'X402-Guarantee: \u003cbase64url-guarantee-json\u003e' https://example.com/api/tools/timestamp"]},"failures":["payment required","payment token expired","payment token has no remaining calls","api key required","api key is not allowed to call this service"]}},"paymentHint":"Call POST /api/tools/ai-intent-classifier once to receive HTTP 402 with accepts[] requirements, or create a payment with POST /api/payments using serviceId=\"ai-intent-classifier\". Pay Base USDC with PAYMENT-SIGNATURE or pay XIAO with X402-Guarantee, then retry the same request.","retryHint":"If the service returns HTTP 402, pay one accepts[] requirement, then retry with PAYMENT-SIGNATURE for Base USDC, X402-Guarantee for Xiao Coin, or X-Payment-Token: payment.token for legacy token flow.","requiredState":"published, enabled"},"complexity":"moderate","typicalResponseTime":"3s","cacheable":false,"idempotent":true,"outputFormat":"json","requiredContext":["task input","bailian-api-key"],"errorExamples":[{"input":{},"error":"text is required","statusCode":400}],"sla":{"uptime":"99.5%","maxLatency":"45000ms"},"matchScore":44,"matchTerms":["ai"],"why":"Matched ai for \"AI Intent Classifier\". Price is USD 0.005 per policy bailian-qwen-light.","whyMatched":"Matched ai for \"AI Intent Classifier\". Price is USD 0.005 per policy bailian-qwen-light."},{"id":"ai-general-answer","canonicalId":"ai-general-answer","name":"AI General Answer","displayName":"AI General Answer","description":"Answers a supplied question with concise reasoning, assumptions, caveats, and next steps. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","descriptionForModel":"Answers a supplied question with concise reasoning, assumptions, caveats, and next steps. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","category":"ai-models","keywords":["ai-general-answer","AI General Answer","bailian","qwen","dashscope","llm","ai model","ai agent","paid ai api","question-answering","qa","reasoning","assistant","semantic:general-answer","intent:answer-question","output:answer"],"useCases":["Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API.","Use this service when an AI agent needs answers a supplied question with concise reasoning, assumptions, caveats, and next steps.","Return machine-readable JSON for downstream automation."],"limitations":["Does not browse live web data; provide source context explicitly.","Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server."],"tags":["paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","question-answering","qa","reasoning","assistant","semantic:general-answer","intent:answer-question","output:answer"],"method":"POST","endpoint":"/api/tools/ai-general-answer","endpointAliases":["/api/tools/ai-general-answer"],"inputTypes":["object","string"],"outputTypes":["object","string"],"inputSchema":{"additionalProperties":true,"properties":{"context":{"description":"Optional supporting context, source text, constraints, or background.","type":"string"},"language":{"description":"Optional output language or locale.","type":"string"},"question":{"description":"Required input field question.","type":"string"}},"required":["question"],"type":"object"},"outputSchema":{"additionalProperties":true,"properties":{"model":{"type":"string"},"provider":{"type":"string"},"result":{"additionalProperties":true,"type":"object"},"service_id":{"type":"string"},"status":{"type":"string"},"upstream_id":{"type":"string"},"upstream_request_id":{"type":"string"},"usage":{"additionalProperties":true,"type":"object"}},"required":["status","service_id","result"],"type":"object"},"exampleRequest":{"question":"What is the best next step?"},"exampleResponse":{"model":"qwen-plus","provider":"aliyun-bailian","result":{"summary":"Example structured result."},"service_id":"ai-general-answer","status":"ok"},"pricing":{"amountCents":0,"amountMicros":5000,"currency":"USD","policyId":"bailian-qwen-light","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"payment":{"providerId":"x402-base-usdc","provider":"x402_facilitator"},"quality":{"qualityScore":43,"healthStatus":"","latencyMs":19,"successRate":1,"callCount":3,"executionCount":3,"successCount":3,"errorCount":0,"paymentRequireds":0,"lastCallAt":"2026-07-21T21:19:07Z"},"discovery":{"toolName":"ai_general_answer","searchText":"ai-general-answer AI General Answer Answers a supplied question with concise reasoning, assumptions, caveats, and next steps. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution. Answers a supplied question with concise reasoning, assumptions, caveats, and next steps. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution. ai-models object string object string paid x402 usdc base bailian qwen llm ai-model model-service question-answering qa reasoning assistant semantic:general-answer intent:answer-question output:answer ai-general-answer AI General Answer bailian qwen dashscope llm ai model ai agent paid ai api question-answering qa reasoning assistant semantic:general-answer intent:answer-question output:answer Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API. Use this service when an AI agent needs answers a supplied question with concise reasoning, assumptions, caveats, and next steps. Return machine-readable JSON for downstream automation. Does not browse live web data; provide source context explicitly. Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server. /api/tools/ai-general-answer","aliases":["AI General Answer","ai-models","paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","question-answering","qa","reasoning","assistant","semantic:general-answer","intent:answer-question","output:answer","ai-general-answer","dashscope","ai model","ai agent","paid ai api","ai_general_answer","/api/tools/ai-general-answer"],"localeHints":["en"],"useCases":["Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API.","Use this service when an AI agent needs answers a supplied question with concise reasoning, assumptions, caveats, and next steps.","Return machine-readable JSON for downstream automation."],"limitations":["Does not browse live web data; provide source context explicitly.","Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server."],"paymentFlow":{"type":"http-402","createPayment":{"method":"POST","url":"/api/payments","bodySchema":{"properties":{"providerId":{"type":"string"},"serviceId":{"description":"Use the canonical service id from the catalog. Legacy internal ids remain accepted for backward compatibility.","type":"string"}},"required":["serviceId"],"type":"object"},"responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"verifyPayment":{"method":"GET","url":"/api/payments/{paymentId}","responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"token":{"header":"X-Payment-Token","mcpArgument":"paymentToken","httpUsage":"Send the paid token in the X-Payment-Token request header when calling /api/tools/*.","mcpUsage":"Pass the paid token as the paymentToken argument when calling the MCP tool."},"requiredResponse":{"status":402,"contentType":"application/json","headers":{"PAYMENT-REQUIRED":"base64/json x402PaymentRequired","PAYMENT-SIGNATURE":"base64/json x402 Base USDC payment payload","X-Payment-Required":"true","X-Payment-Token":"payment.token","X402-Guarantee":"base64url/json Xiao Coin escrow guarantee"},"bodySchema":{"properties":{"accepts":{"items":{"type":"object"},"type":"array"},"error":{"type":"string"},"extensions":{"type":"object"},"payment":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"},"paymentFlow":{"type":"object"},"resource":{"type":"object"},"retry":{"type":"object"},"type":{"const":"payment_required","type":"string"},"x402Version":{"type":"integer"}},"required":["type","error","payment","paymentFlow","retry"],"type":"object"},"x402Version":2,"x402Header":"PAYMENT-REQUIRED","paymentAsset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","paymentNetwork":"eip155:8453"},"retry":{"when":"Retry after paying one accepts[] requirement with Base USDC x402, Xiao Coin AI wallet escrow, or after payment.status is paid and the legacy token has remaining calls.","http":["Preferred x402 flow: call the paid /api/tools/* endpoint once and read accepts[] from the HTTP 402 response body or PAYMENT-REQUIRED header.","Pay one accepts[] requirement with an x402-compatible wallet/facilitator on network eip155:8453 using Base USDC.","Retry the exact same request with PAYMENT-SIGNATURE set to the base64 JSON x402 payment payload.","XIAO flow: pay the accepts[] requirement where asset=XIAO with the AI wallet, then retry the exact same request with X402-Guarantee set to the base64url guarantee JSON.","Legacy token flow: POST /api/payments with serviceId, complete/verify payment, then retry with X-Payment-Token set to payment.token."],"mcp":["Call the tool without paymentToken to receive payment_required structuredContent.","Preferred x402 clients should pay the accepts[] requirement and call the underlying HTTP endpoint with PAYMENT-SIGNATURE.","XIAO-capable agents should pay the XIAO accepts[] requirement through the AI wallet and call the underlying HTTP endpoint with X402-Guarantee.","Legacy MCP clients can complete or verify payment.paymentId, then call the same MCP tool again with paymentToken set to payment.token."],"examples":{"http402":["curl -i https://example.com/api/tools/timestamp","Read accepts[0].network=eip155:8453, accepts[0].asset=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, accepts[0].amount, and accepts[0].payTo.","curl -H 'PAYMENT-SIGNATURE: \u003cbase64-json-x402-payment-payload\u003e' https://example.com/api/tools/timestamp"],"legacyToken":["curl -X POST https://example.com/api/payments -H 'Content-Type: application/json' -d '{\"serviceId\":\"timestamp\"}'","curl -H 'X-Payment-Token: \u003cpayment.token\u003e' https://example.com/api/tools/timestamp"],"mcp":["Call tool timestamp with no paymentToken.","After payment is complete, call timestamp again with paymentToken=\u003cpayment.token\u003e."],"xiao":["curl -i https://example.com/api/tools/timestamp","Read the accepts[] entry with asset=XIAO, create an AI wallet guarantee for merchant_id=aivps.lat and merchant_order_id=payment.paymentId.","curl -H 'X402-Guarantee: \u003cbase64url-guarantee-json\u003e' https://example.com/api/tools/timestamp"]},"failures":["payment required","payment token expired","payment token has no remaining calls","api key required","api key is not allowed to call this service"]}},"paymentHint":"Call POST /api/tools/ai-general-answer once to receive HTTP 402 with accepts[] requirements, or create a payment with POST /api/payments using serviceId=\"ai-general-answer\". Pay Base USDC with PAYMENT-SIGNATURE or pay XIAO with X402-Guarantee, then retry the same request.","retryHint":"If the service returns HTTP 402, pay one accepts[] requirement, then retry with PAYMENT-SIGNATURE for Base USDC, X402-Guarantee for Xiao Coin, or X-Payment-Token: payment.token for legacy token flow.","requiredState":"published, enabled"},"complexity":"moderate","typicalResponseTime":"3s","cacheable":false,"idempotent":true,"outputFormat":"json","requiredContext":["task input","bailian-api-key"],"errorExamples":[{"input":{},"error":"question is required","statusCode":400}],"sla":{"uptime":"99.5%","maxLatency":"45000ms"},"matchScore":44,"matchTerms":["ai"],"why":"Matched ai for \"AI General Answer\". Price is USD 0.005 per policy bailian-qwen-light.","whyMatched":"Matched ai for \"AI General Answer\". Price is USD 0.005 per policy bailian-qwen-light."},{"id":"ai-json-repair","canonicalId":"ai-json-repair","name":"AI JSON Repair","displayName":"AI JSON Repair","description":"Repairs malformed JSON-like text and reports corrections, validation errors, and normalized output. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","descriptionForModel":"Repairs malformed JSON-like text and reports corrections, validation errors, and normalized output. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","category":"ai-models","keywords":["ai-json-repair","AI JSON Repair","bailian","qwen","dashscope","llm","ai model","ai agent","paid ai api","json","json-repair","validation","normalization","developer-tools","semantic:json-repair","intent:fix-json","output:valid-json"],"useCases":["Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API.","Use this service when an AI agent needs repairs malformed json-like text and reports corrections, validation errors, and normalized output.","Return machine-readable JSON for downstream automation."],"limitations":["Does not browse live web data; provide source context explicitly.","Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server."],"tags":["paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","json","json-repair","validation","normalization","developer-tools","semantic:json-repair","intent:fix-json","output:valid-json"],"method":"POST","endpoint":"/api/tools/ai-json-repair","endpointAliases":["/api/tools/ai-json-repair"],"inputTypes":["object","string"],"outputTypes":["object","string"],"inputSchema":{"additionalProperties":true,"properties":{"context":{"description":"Optional supporting context, source text, constraints, or background.","type":"string"},"language":{"description":"Optional output language or locale.","type":"string"},"raw":{"description":"Required input field raw.","type":"string"}},"required":["raw"],"type":"object"},"outputSchema":{"additionalProperties":true,"properties":{"model":{"type":"string"},"provider":{"type":"string"},"result":{"additionalProperties":true,"type":"object"},"service_id":{"type":"string"},"status":{"type":"string"},"upstream_id":{"type":"string"},"upstream_request_id":{"type":"string"},"usage":{"additionalProperties":true,"type":"object"}},"required":["status","service_id","result"],"type":"object"},"exampleRequest":{"raw":"Example raw."},"exampleResponse":{"model":"qwen-plus","provider":"aliyun-bailian","result":{"summary":"Example structured result."},"service_id":"ai-json-repair","status":"ok"},"pricing":{"amountCents":0,"amountMicros":5000,"currency":"USD","policyId":"bailian-qwen-light","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"payment":{"providerId":"x402-base-usdc","provider":"x402_facilitator"},"quality":{"qualityScore":42,"healthStatus":"","latencyMs":11,"successRate":1,"callCount":2,"executionCount":2,"successCount":2,"errorCount":0,"paymentRequireds":0,"lastCallAt":"2026-07-21T17:53:28Z"},"discovery":{"toolName":"ai_json_repair","searchText":"ai-json-repair AI JSON Repair Repairs malformed JSON-like text and reports corrections, validation errors, and normalized output. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution. Repairs malformed JSON-like text and reports corrections, validation errors, and normalized output. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution. ai-models object string object string paid x402 usdc base bailian qwen llm ai-model model-service json json-repair validation normalization developer-tools semantic:json-repair intent:fix-json output:valid-json ai-json-repair AI JSON Repair bailian qwen dashscope llm ai model ai agent paid ai api json json-repair validation normalization developer-tools semantic:json-repair intent:fix-json output:valid-json Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API. Use this service when an AI agent needs repairs malformed json-like text and reports corrections, validation errors, and normalized output. Return machine-readable JSON for downstream automation. Does not browse live web data; provide source context explicitly. Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server. /api/tools/ai-json-repair","aliases":["AI JSON Repair","ai-models","paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","json","json-repair","validation","normalization","developer-tools","semantic:json-repair","intent:fix-json","output:valid-json","ai-json-repair","dashscope","ai model","ai agent","paid ai api","ai_json_repair","/api/tools/ai-json-repair"],"localeHints":["en"],"useCases":["Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API.","Use this service when an AI agent needs repairs malformed json-like text and reports corrections, validation errors, and normalized output.","Return machine-readable JSON for downstream automation."],"limitations":["Does not browse live web data; provide source context explicitly.","Requires BAILIAN_API_KEY or DASHSCOPE_API_KEY on the server."],"paymentFlow":{"type":"http-402","createPayment":{"method":"POST","url":"/api/payments","bodySchema":{"properties":{"providerId":{"type":"string"},"serviceId":{"description":"Use the canonical service id from the catalog. Legacy internal ids remain accepted for backward compatibility.","type":"string"}},"required":["serviceId"],"type":"object"},"responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"verifyPayment":{"method":"GET","url":"/api/payments/{paymentId}","responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"token":{"header":"X-Payment-Token","mcpArgument":"paymentToken","httpUsage":"Send the paid token in the X-Payment-Token request header when calling /api/tools/*.","mcpUsage":"Pass the paid token as the paymentToken argument when calling the MCP tool."},"requiredResponse":{"status":402,"contentType":"application/json","headers":{"PAYMENT-REQUIRED":"base64/json x402PaymentRequired","PAYMENT-SIGNATURE":"base64/json x402 Base USDC payment payload","X-Payment-Required":"true","X-Payment-Token":"payment.token","X402-Guarantee":"base64url/json Xiao Coin escrow guarantee"},"bodySchema":{"properties":{"accepts":{"items":{"type":"object"},"type":"array"},"error":{"type":"string"},"extensions":{"type":"object"},"payment":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"},"paymentFlow":{"type":"object"},"resource":{"type":"object"},"retry":{"type":"object"},"type":{"const":"payment_required","type":"string"},"x402Version":{"type":"integer"}},"required":["type","error","payment","paymentFlow","retry"],"type":"object"},"x402Version":2,"x402Header":"PAYMENT-REQUIRED","paymentAsset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","paymentNetwork":"eip155:8453"},"retry":{"when":"Retry after paying one accepts[] requirement with Base USDC x402, Xiao Coin AI wallet escrow, or after payment.status is paid and the legacy token has remaining calls.","http":["Preferred x402 flow: call the paid /api/tools/* endpoint once and read accepts[] from the HTTP 402 response body or PAYMENT-REQUIRED header.","Pay one accepts[] requirement with an x402-compatible wallet/facilitator on network eip155:8453 using Base USDC.","Retry the exact same request with PAYMENT-SIGNATURE set to the base64 JSON x402 payment payload.","XIAO flow: pay the accepts[] requirement where asset=XIAO with the AI wallet, then retry the exact same request with X402-Guarantee set to the base64url guarantee JSON.","Legacy token flow: POST /api/payments with serviceId, complete/verify payment, then retry with X-Payment-Token set to payment.token."],"mcp":["Call the tool without paymentToken to receive payment_required structuredContent.","Preferred x402 clients should pay the accepts[] requirement and call the underlying HTTP endpoint with PAYMENT-SIGNATURE.","XIAO-capable agents should pay the XIAO accepts[] requirement through the AI wallet and call the underlying HTTP endpoint with X402-Guarantee.","Legacy MCP clients can complete or verify payment.paymentId, then call the same MCP tool again with paymentToken set to payment.token."],"examples":{"http402":["curl -i https://example.com/api/tools/timestamp","Read accepts[0].network=eip155:8453, accepts[0].asset=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, accepts[0].amount, and accepts[0].payTo.","curl -H 'PAYMENT-SIGNATURE: \u003cbase64-json-x402-payment-payload\u003e' https://example.com/api/tools/timestamp"],"legacyToken":["curl -X POST https://example.com/api/payments -H 'Content-Type: application/json' -d '{\"serviceId\":\"timestamp\"}'","curl -H 'X-Payment-Token: \u003cpayment.token\u003e' https://example.com/api/tools/timestamp"],"mcp":["Call tool timestamp with no paymentToken.","After payment is complete, call timestamp again with paymentToken=\u003cpayment.token\u003e."],"xiao":["curl -i https://example.com/api/tools/timestamp","Read the accepts[] entry with asset=XIAO, create an AI wallet guarantee for merchant_id=aivps.lat and merchant_order_id=payment.paymentId.","curl -H 'X402-Guarantee: \u003cbase64url-guarantee-json\u003e' https://example.com/api/tools/timestamp"]},"failures":["payment required","payment token expired","payment token has no remaining calls","api key required","api key is not allowed to call this service"]}},"paymentHint":"Call POST /api/tools/ai-json-repair once to receive HTTP 402 with accepts[] requirements, or create a payment with POST /api/payments using serviceId=\"ai-json-repair\". Pay Base USDC with PAYMENT-SIGNATURE or pay XIAO with X402-Guarantee, then retry the same request.","retryHint":"If the service returns HTTP 402, pay one accepts[] requirement, then retry with PAYMENT-SIGNATURE for Base USDC, X402-Guarantee for Xiao Coin, or X-Payment-Token: payment.token for legacy token flow.","requiredState":"published, enabled"},"complexity":"moderate","typicalResponseTime":"3s","cacheable":false,"idempotent":true,"outputFormat":"json","requiredContext":["task input","bailian-api-key"],"errorExamples":[{"input":{},"error":"raw is required","statusCode":400}],"sla":{"uptime":"99.5%","maxLatency":"45000ms"},"matchScore":44,"matchTerms":["ai"],"why":"Matched ai for \"AI JSON Repair\". Price is USD 0.005 per policy bailian-qwen-light.","whyMatched":"Matched ai for \"AI JSON Repair\". Price is USD 0.005 per policy bailian-qwen-light."}],"agents":[{"id":"ai-code-explainer","name":"AI Code Explainer","description":"Explains code behavior, data flow, edge cases, and refactoring opportunities. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","endpoint":"/api/tools/ai-code-explainer","method":"POST","auth_type":"api_key + x402_facilitator http_402","billing_method":"per_call","pricing":{"amountCents":0,"amountMicros":5000,"currency":"USD","policyId":"bailian-qwen-light","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"input_schema":{"additionalProperties":true,"properties":{"code":{"description":"Required input field code.","type":"string"},"context":{"description":"Optional supporting context, source text, constraints, or background.","type":"string"},"language":{"description":"Optional output language or locale.","type":"string"}},"required":["code"],"type":"object"},"output_schema":{"additionalProperties":true,"properties":{"model":{"type":"string"},"provider":{"type":"string"},"result":{"additionalProperties":true,"type":"object"},"service_id":{"type":"string"},"status":{"type":"string"},"upstream_id":{"type":"string"},"upstream_request_id":{"type":"string"},"usage":{"additionalProperties":true,"type":"object"}},"required":["status","service_id","result"],"type":"object"},"tags":["paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","code-explanation","developer-tools","debugging","refactoring","semantic:code-explainer","intent:explain-code","output:explanation"],"category":"ai-models"},{"id":"ai-code-reviewer","name":"AI Code Reviewer","description":"Reviews code or diffs for bugs, regressions, security risks, and missing tests. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","endpoint":"/api/tools/ai-code-reviewer","method":"POST","auth_type":"api_key + x402_facilitator http_402","billing_method":"per_call","pricing":{"amountCents":2,"amountMicros":20000,"currency":"USD","policyId":"bailian-qwen-premium","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"input_schema":{"additionalProperties":true,"properties":{"code":{"description":"Required input field code.","type":"string"},"context":{"description":"Optional supporting context, source text, constraints, or background.","type":"string"},"language":{"description":"Optional output language or locale.","type":"string"}},"required":["code"],"type":"object"},"output_schema":{"additionalProperties":true,"properties":{"model":{"type":"string"},"provider":{"type":"string"},"result":{"additionalProperties":true,"type":"object"},"service_id":{"type":"string"},"status":{"type":"string"},"upstream_id":{"type":"string"},"upstream_request_id":{"type":"string"},"usage":{"additionalProperties":true,"type":"object"}},"required":["status","service_id","result"],"type":"object"},"tags":["paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","code-review","software-engineering","bugs","security","tests","semantic:code-review","intent:review-code","output:findings"],"category":"ai-models"},{"id":"ai-test-case-generator","name":"AI Test Case Generator","description":"Generates focused test cases, edge cases, fixtures, and verification steps from requirements or code. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","endpoint":"/api/tools/ai-test-case-generator","method":"POST","auth_type":"api_key + x402_facilitator http_402","billing_method":"per_call","pricing":{"amountCents":1,"amountMicros":10000,"currency":"USD","policyId":"bailian-qwen-standard","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"input_schema":{"additionalProperties":true,"properties":{"context":{"description":"Optional supporting context, source text, constraints, or background.","type":"string"},"language":{"description":"Optional output language or locale.","type":"string"},"subject":{"description":"Required input field subject.","type":"string"}},"required":["subject"],"type":"object"},"output_schema":{"additionalProperties":true,"properties":{"model":{"type":"string"},"provider":{"type":"string"},"result":{"additionalProperties":true,"type":"object"},"service_id":{"type":"string"},"status":{"type":"string"},"upstream_id":{"type":"string"},"upstream_request_id":{"type":"string"},"usage":{"additionalProperties":true,"type":"object"}},"required":["status","service_id","result"],"type":"object"},"tags":["paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","testing","qa","test-cases","edge-cases","software-engineering","semantic:test-generation","intent:generate-tests","output:test-cases"],"category":"ai-models"},{"id":"ai-task-planner","name":"AI Task Planner","description":"Turns a goal, constraints, and available context into an execution plan for AI agents. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","endpoint":"/api/tools/ai-task-planner","method":"POST","auth_type":"api_key + x402_facilitator http_402","billing_method":"per_call","pricing":{"amountCents":1,"amountMicros":10000,"currency":"USD","policyId":"bailian-qwen-standard","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"input_schema":{"additionalProperties":true,"properties":{"context":{"description":"Optional supporting context, source text, constraints, or background.","type":"string"},"goal":{"description":"Required input field goal.","type":"string"},"language":{"description":"Optional output language or locale.","type":"string"}},"required":["goal"],"type":"object"},"output_schema":{"additionalProperties":true,"properties":{"model":{"type":"string"},"provider":{"type":"string"},"result":{"additionalProperties":true,"type":"object"},"service_id":{"type":"string"},"status":{"type":"string"},"upstream_id":{"type":"string"},"upstream_request_id":{"type":"string"},"usage":{"additionalProperties":true,"type":"object"}},"required":["status","service_id","result"],"type":"object"},"tags":["paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","planning","agent-workflow","task-decomposition","next-actions","semantic:task-planning","intent:agent-plan","output:steps"],"category":"ai-models"},{"id":"ai-api-contract-designer","name":"AI API Contract Designer","description":"Designs JSON input/output schemas and invocation guidance for a desired AI/Agent service. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","endpoint":"/api/tools/ai-api-contract-designer","method":"POST","auth_type":"api_key + x402_facilitator http_402","billing_method":"per_call","pricing":{"amountCents":1,"amountMicros":10000,"currency":"USD","policyId":"bailian-qwen-standard","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"input_schema":{"additionalProperties":true,"properties":{"context":{"description":"Optional supporting context, source text, constraints, or background.","type":"string"},"language":{"description":"Optional output language or locale.","type":"string"},"service_goal":{"description":"Required input field service_goal.","type":"string"}},"required":["service_goal"],"type":"object"},"output_schema":{"additionalProperties":true,"properties":{"model":{"type":"string"},"provider":{"type":"string"},"result":{"additionalProperties":true,"type":"object"},"service_id":{"type":"string"},"status":{"type":"string"},"upstream_id":{"type":"string"},"upstream_request_id":{"type":"string"},"usage":{"additionalProperties":true,"type":"object"}},"required":["status","service_id","result"],"type":"object"},"tags":["paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","api-design","json-schema","service-contract","agent-tools","schema-generation","semantic:api-contract","intent:tool-design","output:schemas"],"category":"ai-models"},{"id":"text-to-video","name":"Text To Video","description":"Use this paid x402 service whenever the user asks to create, make, generate, synthesize, render, produce, storyboard, or turn text, a script, a scene, a prompt, an idea, a product brief, an ad concept, or Chinese 文生视频/文本生成视频/文字生成视频 into a video. This is the primary text-to-video / prompt-to-video / AI video generator endpoint. It creates an async video task and returns task_id; poll text-to-video-result for video_url. Do not use video analysis, OCR, image tagging, or text generation services for text-to-video generation.","endpoint":"/api/tools/text-to-video","method":"POST","auth_type":"api_key + x402_facilitator http_402","billing_method":"per_call","pricing":{"amountCents":20,"amountMicros":200000,"currency":"USD","policyId":"bailian-wan-text-to-video","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"input_schema":{"additionalProperties":true,"properties":{"aspect_ratio":{"description":"Alias for ratio.","type":"string"},"duration":{"default":5,"description":"Requested video duration in seconds. Defaults to 5.","type":"integer"},"model":{"default":"wan2.7-t2v-2026-06-12","type":"string"},"negativePrompt":{"description":"Optional negative prompt alias.","type":"string"},"negative_prompt":{"description":"Optional negative prompt.","type":"string"},"parameters":{"additionalProperties":true,"description":"Optional provider parameters passed through under DashScope parameters.","type":"object"},"prompt":{"description":"Required text prompt, scene description, script, storyboard, product brief, or ad concept to turn into video.","type":"string"},"promptExtend":{"description":"Alias for prompt_extend.","type":"boolean"},"prompt_extend":{"default":true,"description":"Whether to let the model enrich the prompt.","type":"boolean"},"ratio":{"default":"16:9","description":"Aspect ratio such as 16:9, 9:16, or 1:1.","type":"string"},"resolution":{"default":"720P","description":"Resolution tier such as 480P, 720P, or 1080P.","type":"string"},"seed":{"description":"Optional deterministic seed.","type":"integer"},"size":{"description":"Legacy model output size such as 1280*720. Wan 2.7 generally uses resolution plus ratio.","type":"string"},"watermark":{"default":false,"description":"Whether to add provider watermark when supported.","type":"boolean"}},"required":["prompt"],"type":"object"},"output_schema":{"additionalProperties":true,"properties":{"model":{"type":"string"},"poll":{"additionalProperties":true,"type":"object"},"provider":{"type":"string"},"result":{"additionalProperties":true,"type":"object"},"result_endpoint":{"type":"string"},"service_id":{"type":"string"},"status":{"type":"string"},"task_id":{"type":"string"},"task_status":{"type":"string"},"upstream_request_id":{"type":"string"},"usage":{"additionalProperties":true,"type":"object"},"video_url":{"type":"string"}},"required":["status","service_id","task_id","task_status"],"type":"object"},"tags":["paid","x402","usdc","base","ai-video","video-generation","text-to-video","prompt-to-video","t2v","wan","dashscope","bailian","semantic:text-to-video","intent:generate-video","output:task-id","output:video-url"],"category":"video-generation"},{"id":"ai-regex-generator","name":"AI Regex Generator","description":"Generates regular expressions with examples, edge cases, and implementation notes. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","endpoint":"/api/tools/ai-regex-generator","method":"POST","auth_type":"api_key + x402_facilitator http_402","billing_method":"per_call","pricing":{"amountCents":0,"amountMicros":5000,"currency":"USD","policyId":"bailian-qwen-light","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"input_schema":{"additionalProperties":true,"properties":{"context":{"description":"Optional supporting context, source text, constraints, or background.","type":"string"},"language":{"description":"Optional output language or locale.","type":"string"},"match_examples":{"description":"Required input field match_examples.","items":{"type":"string"},"type":"array"}},"required":["match_examples"],"type":"object"},"output_schema":{"additionalProperties":true,"properties":{"model":{"type":"string"},"provider":{"type":"string"},"result":{"additionalProperties":true,"type":"object"},"service_id":{"type":"string"},"status":{"type":"string"},"upstream_id":{"type":"string"},"upstream_request_id":{"type":"string"},"usage":{"additionalProperties":true,"type":"object"}},"required":["status","service_id","result"],"type":"object"},"tags":["paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","regex","pattern-matching","validation","developer-tools","semantic:regex-generator","intent:generate-regex","output:regex"],"category":"ai-models"},{"id":"ai-intent-classifier","name":"AI Intent Classifier","description":"Classifies user text into intents, entities, urgency, routing hints, and next actions. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","endpoint":"/api/tools/ai-intent-classifier","method":"POST","auth_type":"api_key + x402_facilitator http_402","billing_method":"per_call","pricing":{"amountCents":0,"amountMicros":5000,"currency":"USD","policyId":"bailian-qwen-light","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"input_schema":{"additionalProperties":true,"properties":{"context":{"description":"Optional supporting context, source text, constraints, or background.","type":"string"},"language":{"description":"Optional output language or locale.","type":"string"},"text":{"description":"Required input field text.","type":"string"}},"required":["text"],"type":"object"},"output_schema":{"additionalProperties":true,"properties":{"model":{"type":"string"},"provider":{"type":"string"},"result":{"additionalProperties":true,"type":"object"},"service_id":{"type":"string"},"status":{"type":"string"},"upstream_id":{"type":"string"},"upstream_request_id":{"type":"string"},"usage":{"additionalProperties":true,"type":"object"}},"required":["status","service_id","result"],"type":"object"},"tags":["paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","classification","routing","intent","entities","sentiment","support","semantic:intent-classification","output:labels"],"category":"ai-models"},{"id":"ai-general-answer","name":"AI General Answer","description":"Answers a supplied question with concise reasoning, assumptions, caveats, and next steps. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","endpoint":"/api/tools/ai-general-answer","method":"POST","auth_type":"api_key + x402_facilitator http_402","billing_method":"per_call","pricing":{"amountCents":0,"amountMicros":5000,"currency":"USD","policyId":"bailian-qwen-light","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"input_schema":{"additionalProperties":true,"properties":{"context":{"description":"Optional supporting context, source text, constraints, or background.","type":"string"},"language":{"description":"Optional output language or locale.","type":"string"},"question":{"description":"Required input field question.","type":"string"}},"required":["question"],"type":"object"},"output_schema":{"additionalProperties":true,"properties":{"model":{"type":"string"},"provider":{"type":"string"},"result":{"additionalProperties":true,"type":"object"},"service_id":{"type":"string"},"status":{"type":"string"},"upstream_id":{"type":"string"},"upstream_request_id":{"type":"string"},"usage":{"additionalProperties":true,"type":"object"}},"required":["status","service_id","result"],"type":"object"},"tags":["paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","question-answering","qa","reasoning","assistant","semantic:general-answer","intent:answer-question","output:answer"],"category":"ai-models"},{"id":"ai-json-repair","name":"AI JSON Repair","description":"Repairs malformed JSON-like text and reports corrections, validation errors, and normalized output. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.","endpoint":"/api/tools/ai-json-repair","method":"POST","auth_type":"api_key + x402_facilitator http_402","billing_method":"per_call","pricing":{"amountCents":0,"amountMicros":5000,"currency":"USD","policyId":"bailian-qwen-light","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"input_schema":{"additionalProperties":true,"properties":{"context":{"description":"Optional supporting context, source text, constraints, or background.","type":"string"},"language":{"description":"Optional output language or locale.","type":"string"},"raw":{"description":"Required input field raw.","type":"string"}},"required":["raw"],"type":"object"},"output_schema":{"additionalProperties":true,"properties":{"model":{"type":"string"},"provider":{"type":"string"},"result":{"additionalProperties":true,"type":"object"},"service_id":{"type":"string"},"status":{"type":"string"},"upstream_id":{"type":"string"},"upstream_request_id":{"type":"string"},"usage":{"additionalProperties":true,"type":"object"}},"required":["status","service_id","result"],"type":"object"},"tags":["paid","x402","usdc","base","bailian","qwen","llm","ai-model","model-service","json","json-repair","validation","normalization","developer-tools","semantic:json-repair","intent:fix-json","output:valid-json"],"category":"ai-models"}],"demandCapture":{"queryRecorded":true,"demandBearing":true,"status":"published-and-planned-candidates","recommendedAction":"compare-published-services-and-request-missing-fit","message":"Published services and planned API candidates both matched. Prefer a published callable service when it fits; otherwise request early access for the planned candidate that better matches the task.","matchedPlannedServices":[{"id":"code-search-api","name":"Code Search API","category":"开发工具","availability":"可新增","status":"planned / early-access","servicePage":"https://x402vip.com/services/code-search-api","llmsText":"https://x402vip.com/services/code-search-api/llms.txt","requestAccessUrl":"https://x402vip.com/api/planned-services/request-access","candidateApiPaths":["https://x402vip.com/api/code-search","https://x402vip.com/api/code/search","https://x402vip.com/api/tools/code-search","https://x402vip.com/api/tools/code-search-api"],"keywords":["code-search-api","code-search","code search","Code Search API","Code Search","Search Code","code","search code","code search api","search api code","code find","find code","code lookup","lookup code","code 检索","检索 code","code 搜索","搜索 code","source code","source code search","search source code","source code search api","search api source code","source code find","find source code","source code lookup","lookup source code","source code 检索","检索 source code","source code 搜索","搜索 source code","代码","代码 search","search 代码","代码 search api","search api 代码","代码 find","find 代码","代码 lookup","lookup 代码","代码 检索","检索 代码","代码 搜索","搜索 代码"],"matchRank":1,"matchReason":"Search query matched this planned demand candidate; request-access and candidate path visits are aggregated for launch prioritization."},{"id":"code-extraction-api","name":"Code Extraction API","category":"开发工具","availability":"可新增","status":"planned / early-access","servicePage":"https://x402vip.com/services/code-extraction-api","llmsText":"https://x402vip.com/services/code-extraction-api/llms.txt","requestAccessUrl":"https://x402vip.com/api/planned-services/request-access","candidateApiPaths":["https://x402vip.com/api/code-extraction","https://x402vip.com/api/code/extraction","https://x402vip.com/api/tools/code-extraction","https://x402vip.com/api/tools/code-extraction-api"],"keywords":["code-extraction-api","code-extraction","code extraction","Code Extraction API","Code Extraction","Extraction Code","code","extraction code","code extract","extract code","code data extraction","data extraction code","code 提取","提取 code","code 抽取","抽取 code","source code","source code extraction","extraction source code","source code extract","extract source code","source code data extraction","data extraction source code","source code 提取","提取 source code","source code 抽取","抽取 source code","代码","代码 extraction","extraction 代码","代码 extract","extract 代码","代码 data extraction","data extraction 代码","代码 提取","提取 代码","代码 抽取","抽取 代码"],"matchRank":2,"matchReason":"Search query matched this planned demand candidate; request-access and candidate path visits are aggregated for launch prioritization."},{"id":"code-parsing-api","name":"Code Parsing API","category":"开发工具","availability":"可新增","status":"planned / early-access","servicePage":"https://x402vip.com/services/code-parsing-api","llmsText":"https://x402vip.com/services/code-parsing-api/llms.txt","requestAccessUrl":"https://x402vip.com/api/planned-services/request-access","candidateApiPaths":["https://x402vip.com/api/code-parsing","https://x402vip.com/api/code/parsing","https://x402vip.com/api/tools/code-parsing","https://x402vip.com/api/tools/code-parsing-api"],"keywords":["code-parsing-api","code-parsing","code parsing","Code Parsing API","Code Parsing","Parsing Code","code","parsing code","code parse","parse code","code parser","parser code","code structured parsing","structured parsing code","code 解析","解析 code","source code","source code parsing","parsing source code","source code parse","parse source code","source code parser","parser source code","source code structured parsing","structured parsing source code","source code 解析","解析 source code","代码","代码 parsing","parsing 代码","代码 parse","parse 代码","代码 parser","parser 代码","代码 structured parsing","structured parsing 代码","代码 解析","解析 代码"],"matchRank":3,"matchReason":"Search query matched this planned demand candidate; request-access and candidate path visits are aggregated for launch prioritization."},{"id":"code-summarization-api","name":"Code Summarization API","category":"开发工具","availability":"可新增","status":"planned / early-access","servicePage":"https://x402vip.com/services/code-summarization-api","llmsText":"https://x402vip.com/services/code-summarization-api/llms.txt","requestAccessUrl":"https://x402vip.com/api/planned-services/request-access","candidateApiPaths":["https://x402vip.com/api/code-summarization","https://x402vip.com/api/code/summarization","https://x402vip.com/api/tools/code-summarization","https://x402vip.com/api/tools/code-summarization-api"],"keywords":["code-summarization-api","code-summarization","code summarization","Code Summarization API","Code Summarization","Summarization Code","code","summarization code","code summarize","summarize code","code summary","summary code","code 摘要","摘要 code","code 总结","总结 code","source code","source code summarization","summarization source code","source code summarize","summarize source code","source code summary","summary source code","source code 摘要","摘要 source code","source code 总结","总结 source code","代码","代码 summarization","summarization 代码","代码 summarize","summarize 代码","代码 summary","summary 代码","代码 摘要","摘要 代码","代码 总结","总结 代码"],"matchRank":4,"matchReason":"Search query matched this planned demand candidate; request-access and candidate path visits are aggregated for launch prioritization."}],"requestAccessUrl":"https://x402vip.com/api/planned-services/request-access","requestAccessBody":{"query":"ai-code-explainer","serviceId":"code-search-api","task":"Describe the exact input data, desired output schema, freshness, volume, budget, and whether a published service failed to fit.","useCase":"AI/Agent searched for: ai-code-explainer"},"plannedCatalogUrl":"https://x402vip.com/api/demand-capture","notes":["Every non-admin /api/catalog/search?q=... request is appended to natural_traffic.jsonl and aggregated in /api/admin/demand-intents.","Submitting requestAccessBody adds a stronger commercial/early-access signal than search alone.","Planned API candidates are not callable yet; use /api/catalog services for currently callable paid APIs."]},"nextActions":["Inspect services[].inputSchema, services[].outputSchema, services[].pricing, and services[].discovery.paymentFlow.","Call the selected /api/tools/* endpoint once without payment to receive HTTP 402 payment requirements, then retry after payment.","If services are missing or too broad, inspect demandCapture.matchedPlannedServices.","POST demandCapture.requestAccessBody to demandCapture.requestAccessUrl to record a stronger early-access demand signal."],"payment":{"paymentHeader":"X-Payment-Token","createPayment":"/api/payments","verifyPayment":"/api/payments/{paymentId}","token":{"header":"X-Payment-Token","mcpArgument":"paymentToken","httpUsage":"Send the paid token in the X-Payment-Token request header when calling /api/tools/*.","mcpUsage":"Pass the paid token as the paymentToken argument when calling the MCP tool."},"requiredResponse":{"status":402,"contentType":"application/json","headers":{"PAYMENT-REQUIRED":"base64/json x402PaymentRequired","PAYMENT-SIGNATURE":"base64/json x402 Base USDC payment payload","X-Payment-Required":"true","X-Payment-Token":"payment.token","X402-Guarantee":"base64url/json Xiao Coin escrow guarantee"},"bodySchema":{"properties":{"accepts":{"items":{"type":"object"},"type":"array"},"error":{"type":"string"},"extensions":{"type":"object"},"payment":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"},"paymentFlow":{"type":"object"},"resource":{"type":"object"},"retry":{"type":"object"},"type":{"const":"payment_required","type":"string"},"x402Version":{"type":"integer"}},"required":["type","error","payment","paymentFlow","retry"],"type":"object"},"x402Version":2,"x402Header":"PAYMENT-REQUIRED","paymentAsset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","paymentNetwork":"eip155:8453"},"retry":{"when":"Retry after paying one accepts[] requirement with Base USDC x402, Xiao Coin AI wallet escrow, or after payment.status is paid and the legacy token has remaining calls.","http":["Preferred x402 flow: call the paid /api/tools/* endpoint once and read accepts[] from the HTTP 402 response body or PAYMENT-REQUIRED header.","Pay one accepts[] requirement with an x402-compatible wallet/facilitator on network eip155:8453 using Base USDC.","Retry the exact same request with PAYMENT-SIGNATURE set to the base64 JSON x402 payment payload.","XIAO flow: pay the accepts[] requirement where asset=XIAO with the AI wallet, then retry the exact same request with X402-Guarantee set to the base64url guarantee JSON.","Legacy token flow: POST /api/payments with serviceId, complete/verify payment, then retry with X-Payment-Token set to payment.token."],"mcp":["Call the tool without paymentToken to receive payment_required structuredContent.","Preferred x402 clients should pay the accepts[] requirement and call the underlying HTTP endpoint with PAYMENT-SIGNATURE.","XIAO-capable agents should pay the XIAO accepts[] requirement through the AI wallet and call the underlying HTTP endpoint with X402-Guarantee.","Legacy MCP clients can complete or verify payment.paymentId, then call the same MCP tool again with paymentToken set to payment.token."],"examples":{"http402":["curl -i https://example.com/api/tools/timestamp","Read accepts[0].network=eip155:8453, accepts[0].asset=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, accepts[0].amount, and accepts[0].payTo.","curl -H 'PAYMENT-SIGNATURE: \u003cbase64-json-x402-payment-payload\u003e' https://example.com/api/tools/timestamp"],"legacyToken":["curl -X POST https://example.com/api/payments -H 'Content-Type: application/json' -d '{\"serviceId\":\"timestamp\"}'","curl -H 'X-Payment-Token: \u003cpayment.token\u003e' https://example.com/api/tools/timestamp"],"mcp":["Call tool timestamp with no paymentToken.","After payment is complete, call timestamp again with paymentToken=\u003cpayment.token\u003e."],"xiao":["curl -i https://example.com/api/tools/timestamp","Read the accepts[] entry with asset=XIAO, create an AI wallet guarantee for merchant_id=aivps.lat and merchant_order_id=payment.paymentId.","curl -H 'X402-Guarantee: \u003cbase64url-guarantee-json\u003e' https://example.com/api/tools/timestamp"]},"failures":["payment required","payment token expired","payment token has no remaining calls","api key required","api key is not allowed to call this service"]},"flow":{"type":"http-402","createPayment":{"method":"POST","url":"/api/payments","bodySchema":{"properties":{"providerId":{"type":"string"},"serviceId":{"description":"Use the canonical service id from the catalog. Legacy internal ids remain accepted for backward compatibility.","type":"string"}},"required":["serviceId"],"type":"object"},"responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"verifyPayment":{"method":"GET","url":"/api/payments/{paymentId}","responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"token":{"header":"X-Payment-Token","mcpArgument":"paymentToken","httpUsage":"Send the paid token in the X-Payment-Token request header when calling /api/tools/*.","mcpUsage":"Pass the paid token as the paymentToken argument when calling the MCP tool."},"requiredResponse":{"status":402,"contentType":"application/json","headers":{"PAYMENT-REQUIRED":"base64/json x402PaymentRequired","PAYMENT-SIGNATURE":"base64/json x402 Base USDC payment payload","X-Payment-Required":"true","X-Payment-Token":"payment.token","X402-Guarantee":"base64url/json Xiao Coin escrow guarantee"},"bodySchema":{"properties":{"accepts":{"items":{"type":"object"},"type":"array"},"error":{"type":"string"},"extensions":{"type":"object"},"payment":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"},"paymentFlow":{"type":"object"},"resource":{"type":"object"},"retry":{"type":"object"},"type":{"const":"payment_required","type":"string"},"x402Version":{"type":"integer"}},"required":["type","error","payment","paymentFlow","retry"],"type":"object"},"x402Version":2,"x402Header":"PAYMENT-REQUIRED","paymentAsset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","paymentNetwork":"eip155:8453"},"retry":{"when":"Retry after paying one accepts[] requirement with Base USDC x402, Xiao Coin AI wallet escrow, or after payment.status is paid and the legacy token has remaining calls.","http":["Preferred x402 flow: call the paid /api/tools/* endpoint once and read accepts[] from the HTTP 402 response body or PAYMENT-REQUIRED header.","Pay one accepts[] requirement with an x402-compatible wallet/facilitator on network eip155:8453 using Base USDC.","Retry the exact same request with PAYMENT-SIGNATURE set to the base64 JSON x402 payment payload.","XIAO flow: pay the accepts[] requirement where asset=XIAO with the AI wallet, then retry the exact same request with X402-Guarantee set to the base64url guarantee JSON.","Legacy token flow: POST /api/payments with serviceId, complete/verify payment, then retry with X-Payment-Token set to payment.token."],"mcp":["Call the tool without paymentToken to receive payment_required structuredContent.","Preferred x402 clients should pay the accepts[] requirement and call the underlying HTTP endpoint with PAYMENT-SIGNATURE.","XIAO-capable agents should pay the XIAO accepts[] requirement through the AI wallet and call the underlying HTTP endpoint with X402-Guarantee.","Legacy MCP clients can complete or verify payment.paymentId, then call the same MCP tool again with paymentToken set to payment.token."],"examples":{"http402":["curl -i https://example.com/api/tools/timestamp","Read accepts[0].network=eip155:8453, accepts[0].asset=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, accepts[0].amount, and accepts[0].payTo.","curl -H 'PAYMENT-SIGNATURE: \u003cbase64-json-x402-payment-payload\u003e' https://example.com/api/tools/timestamp"],"legacyToken":["curl -X POST https://example.com/api/payments -H 'Content-Type: application/json' -d '{\"serviceId\":\"timestamp\"}'","curl -H 'X-Payment-Token: \u003cpayment.token\u003e' https://example.com/api/tools/timestamp"],"mcp":["Call tool timestamp with no paymentToken.","After payment is complete, call timestamp again with paymentToken=\u003cpayment.token\u003e."],"xiao":["curl -i https://example.com/api/tools/timestamp","Read the accepts[] entry with asset=XIAO, create an AI wallet guarantee for merchant_id=aivps.lat and merchant_order_id=payment.paymentId.","curl -H 'X402-Guarantee: \u003cbase64url-guarantee-json\u003e' https://example.com/api/tools/timestamp"]},"failures":["payment required","payment token expired","payment token has no remaining calls","api key required","api key is not allowed to call this service"]}}}}
