{
  "x402Version": 2,
  "id": 26900,
  "slug": "26900",
  "resource": "https://www.trezalabs.com/api/x402/music",
  "description": "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.",
  "type": "http",
  "serviceName": "Treza",
  "resourceType": "Blockchain Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xaE393a9CD728F7397F50f6f8C88096a0F3D2b42C",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "60000",
      "amountUsd": 0.06,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "EX4MyYWHc7NKBGuytmMpxixM7ovSWYLNy5acN2mFfoGd",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "60000",
      "amountUsd": 0.06,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "model": "lyria-3-clip",
            "prompt": "warm lo-fi hip hop, soft piano chords, vinyl crackle, relaxed 80 bpm groove"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "audio": "https://www.trezalabs.com/api/media/generated/x402_music/1a2b3c4d.mp3?s=...&c=...",
            "model": "lyria-3-clip",
            "paidUsd": 0.06,
            "runId": "2026-09-23T18:04:11.000Z#1a2b3c4d",
            "status": "success",
            "statusUrl": "https://www.trezalabs.com/api/x402/music?runId=...&token=...",
            "transaction": "0x..."
          },
          "type": "json"
        }
      },
      "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"
      }
    }
  },
  "tags": [
    "music",
    "music-generation",
    "text-to-music",
    "audio",
    "lyria",
    "bazaar"
  ],
  "sourceHost": "www.trezalabs.com",
  "lastUpdated": "2026-10-12T07:39:52.268Z",
  "quality": {
    "calls30d": 12,
    "uniquePayers30d": 6,
    "lastCalledAt": "2026-10-12T07:39:51.707Z"
  },
  "metadata": {
    "serviceName": "Treza",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "model": "lyria-3-clip",
              "prompt": "warm lo-fi hip hop, soft piano chords, vinyl crackle, relaxed 80 bpm groove"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "audio": "https://www.trezalabs.com/api/media/generated/x402_music/1a2b3c4d.mp3?s=...&c=...",
              "model": "lyria-3-clip",
              "paidUsd": 0.06,
              "runId": "2026-09-23T18:04:11.000Z#1a2b3c4d",
              "status": "success",
              "statusUrl": "https://www.trezalabs.com/api/x402/music?runId=...&token=...",
              "transaction": "0x..."
            },
            "type": "json"
          }
        },
        "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"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "www.trezalabs.com",
    "manifest_name": "www.trezalabs.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}