Api Endpoint

Treza

Music generation: describe a track, get an original piece back in the same response. Google Lyria 3: a 30-second clip ($0.06) or a full song ($0.12). No account or API key: the payment is the only credential.

Open interactive test console

Offering

Provider
www.trezalabs.com
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Creative
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://www.trezalabs.com/api/x402/music
MIME type
Not provided
First seen
2026-10-16T01:50:24.663Z
Last seen
Tags
Music, music-generation, text-to-music, audio, lyria

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.06 USDC
Atomic price: 60000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.06 USDC
Atomic price: 60000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "60000",
    "payTo": "0xaE393a9CD728F7397F50f6f8C88096a0F3D2b42C"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "60000",
    "payTo": "EX4MyYWHc7NKBGuytmMpxixM7ovSWYLNy5acN2mFfoGd"
  }
]

Observed health

Status
Healthy
Latest latency
1343 ms
Average latency
1191 ms
HTTP status
204
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "additionalProperties": false,
  "properties": {
    "body": {
      "additionalProperties": false,
      "properties": {
        "async": {
          "default": false,
          "description": "true: answer at once, status running with a statusUrl.",
          "type": "boolean"
        },
        "model": {
          "default": "lyria-3-clip",
          "description": "lyria-3-clip: A 30-second piece: a bed for a short video, a sting, a loop. $0.06 lyria-3-pro: A full-length song with structure (intro, development, ending). $0.12",
          "enum": [
            "lyria-3-clip",
            "lyria-3-pro"
          ],
          "type": "string"
        },
        "prompt": {
          "description": "Genre, mood, instruments, tempo.",
          "maxLength": 2000,
          "type": "string"
        }
      },
      "required": [
        "prompt"
      ],
      "type": "object"
    },
    "bodyType": {
      "enum": [
        "json",
        "form-data",
        "text"
      ],
      "type": "string"
    },
    "method": {
      "enum": [
        "POST"
      ],
      "type": "string"
    },
    "type": {
      "const": "http",
      "type": "string"
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "type": "object"
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "additionalProperties": false,
          "properties": {
            "async": {
              "default": false,
              "description": "true: answer at once, status running with a statusUrl.",
              "type": "boolean"
            },
            "model": {
              "default": "lyria-3-clip",
              "description": "lyria-3-clip: A 30-second piece: a bed for a short video, a sting, a loop. $0.06 lyria-3-pro: A full-length song with structure (intro, development, ending). $0.12",
              "enum": [
                "lyria-3-clip",
                "lyria-3-pro"
              ],
              "type": "string"
            },
            "prompt": {
              "description": "Genre, mood, instruments, tempo.",
              "maxLength": 2000,
              "type": "string"
            }
          },
          "required": [
            "prompt"
          ],
          "type": "object"
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        },
        "method": {
          "enum": [
            "POST"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}