{
  "format": "delx/intent-card/v1",
  "id": "text-to-speech-api",
  "intent": "turn text into a short speech clip",
  "title": "Text-to-speech API without an API key",
  "description": "Synthesize up to 500 characters for $0.001 and receive a durable WAV URL with a SHA-256 receipt.",
  "keywords": [
    "text to speech API",
    "TTS API",
    "voice generation API",
    "x402 speech"
  ],
  "updated_at": "2026-07-30",
  "canonical_url": "https://commerce.delx.ai/intents/text-to-speech-api",
  "machine_url": "https://commerce.delx.ai/intents/text-to-speech-api.json",
  "recommendation": {
    "tool_name": "generate_speech",
    "service_name": "Delx Kokoro Speech",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/speech",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "minLength": 1,
          "maxLength": 500,
          "description": "Text to synthesize into a short speech clip."
        },
        "input": {
          "type": "string",
          "minLength": 1,
          "maxLength": 500,
          "description": "OpenAI-compatible alias for `text`."
        },
        "model": {
          "type": "string",
          "enum": [
            "kokoro",
            "kokoro-82m",
            "tts-1"
          ],
          "default": "kokoro",
          "description": "`tts-1` is accepted as a compatibility alias; delivery uses Kokoro 82M."
        },
        "voice": {
          "type": "string",
          "enum": [
            "af_bella",
            "af_nicole",
            "af_sarah",
            "am_fenrir",
            "am_michael",
            "bf_emma",
            "bm_george",
            "ff_siwis",
            "hf_alpha",
            "hm_omega",
            "alloy",
            "echo",
            "fable",
            "onyx",
            "nova",
            "shimmer"
          ],
          "default": "af_bella"
        },
        "response_format": {
          "type": "string",
          "enum": [
            "wav"
          ],
          "default": "wav",
          "description": "The hosted result is currently delivered as WAV."
        },
        "speed": {
          "type": "number",
          "minimum": 0.5,
          "maximum": 2,
          "default": 1
        }
      },
      "anyOf": [
        {
          "required": [
            "text"
          ]
        },
        {
          "required": [
            "input"
          ]
        }
      ],
      "additionalProperties": false
    },
    "example_input": {
      "input": "Your agent task is complete.",
      "model": "tts-1",
      "voice": "alloy",
      "response_format": "wav",
      "speed": 1
    },
    "example_output": {
      "generation_id": "0de6f22023df47f4a96c260bd980257a",
      "audio_url": "https://api.delx.ai/api/v1/generated-audio/0de6f22023df47f4a96c260bd980257a.wav",
      "model": "jaaari/kokoro-82m",
      "provider": "replicate",
      "voice": "af_bella",
      "speed": 1,
      "prompt_policy_version": "raw/v1",
      "media_type": "audio/wav",
      "bytes": 48128,
      "sha256": "cb45a6e6fa30b28b791a6256f9f522f13fc9c6de5b407030bd853cab62523d63",
      "sale_price_usdc": 0.001
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/speech -m POST -H 'x-delx-source: intent-card-text-to-speech-api' --max-amount 0.001 -b '{\"input\":\"Your agent task is complete.\",\"model\":\"tts-1\",\"voice\":\"alloy\",\"response_format\":\"wav\",\"speed\":1}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-text-to-speech-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/speech"
  }
}
