Invocation
- Service ID
ai-email-drafter- Method
POST- Endpoint
/api/tools/ai-email-drafter- Legacy Endpoint
none- MCP Tool
ai_email_drafter- Price
- USD 0.01
Paid API service
Drafts emails with subject lines, body copy, personalization, and follow-up variants. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution.
ai-email-drafterPOST/api/tools/ai-email-drafternoneai_email_drafterCall the endpoint without payment to receive HTTP 402 metadata. After payment is complete, retry with X-Payment-Token, an x402 payment signature, or MCP paymentToken.
Call POST /api/tools/ai-email-drafter once to receive HTTP 402 with accepts[] requirements, or create a payment with POST /api/payments using serviceId="ai-email-drafter". Pay Base USDC with PAYMENT-SIGNATURE or pay XIAO with X402-Guarantee, then retry the same request.
{
"exampleRequest": {
"goal": "Example goal."
},
"exampleResponse": {
"model": "qwen-plus",
"provider": "aliyun-bailian",
"result": {
"summary": "Example structured result."
},
"service_id": "ai-email-drafter",
"status": "ok"
},
"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"
}
}