{
  "x402Version": 2,
  "id": 40274,
  "slug": "40274",
  "resource": "https://api.havenagent.ai/x402/api/v1/music",
  "description": "Generate a music track. Poll statusUrl, download at resultUrl. SFW only.",
  "type": "http",
  "serviceName": "haven-media",
  "resourceType": "Media",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xa8f73f2fDFDa46f6591759458614BC2883529d77",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "100000",
      "amountUsd": 0.1,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "aiDisclosure": {
            "properties": {
              "aiGenerated": {
                "type": "boolean"
              },
              "embeddedIn": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "statement": {
                "type": "string"
              },
              "termsUrl": {
                "type": "string"
              }
            },
            "required": [
              "aiGenerated",
              "statement",
              "termsUrl"
            ],
            "type": "object"
          },
          "etaSeconds": {
            "type": "number"
          },
          "jobId": {
            "type": "string"
          },
          "kind": {
            "enum": [
              "music",
              "music_premium",
              "image_generate",
              "image_edit",
              "image_upscale",
              "image_restore",
              "video",
              "video_sound",
              "world",
              "phone_call"
            ],
            "type": "string"
          },
          "pollBudgetSeconds": {
            "type": "number"
          },
          "resultUrl": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "statusUrl": {
            "type": "string"
          }
        },
        "required": [
          "jobId",
          "status",
          "statusUrl",
          "resultUrl",
          "etaSeconds",
          "pollBudgetSeconds"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "durationSeconds": 20,
            "prompt": "warm lo-fi piano loop with vinyl crackle, relaxed tempo"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "etaSeconds": 60,
            "jobId": "00000000-0000-0000-0000-000000000000",
            "kind": "music",
            "pollBudgetSeconds": 900,
            "resultUrl": "https://api.havenagent.ai/x402/api/v1/music/jobs/00000000-0000-0000-0000-000000000000/result",
            "status": "queued",
            "statusUrl": "https://api.havenagent.ai/x402/api/v1/music/jobs/00000000-0000-0000-0000-000000000000"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "durationSeconds": {
                    "default": 20,
                    "maximum": 60,
                    "minimum": 1,
                    "type": "number"
                  },
                  "lyrics": {
                    "maxLength": 5000,
                    "type": "string"
                  },
                  "prompt": {
                    "maxLength": 2000,
                    "minLength": 1,
                    "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": {
                "properties": {
                  "aiDisclosure": {
                    "properties": {
                      "aiGenerated": {
                        "type": "boolean"
                      },
                      "embeddedIn": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      },
                      "statement": {
                        "type": "string"
                      },
                      "termsUrl": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "aiGenerated",
                      "statement",
                      "termsUrl"
                    ],
                    "type": "object"
                  },
                  "etaSeconds": {
                    "type": "number"
                  },
                  "jobId": {
                    "type": "string"
                  },
                  "kind": {
                    "enum": [
                      "music",
                      "music_premium",
                      "image_generate",
                      "image_edit",
                      "image_upscale",
                      "image_restore",
                      "video",
                      "video_sound",
                      "world",
                      "phone_call"
                    ],
                    "type": "string"
                  },
                  "pollBudgetSeconds": {
                    "type": "number"
                  },
                  "resultUrl": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "statusUrl": {
                    "type": "string"
                  }
                },
                "required": [
                  "jobId",
                  "status",
                  "statusUrl",
                  "resultUrl",
                  "etaSeconds",
                  "pollBudgetSeconds"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "api.havenagent.ai",
  "lastUpdated": "2026-09-15T06:29:40.054Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-15T06:29:39.716Z"
  },
  "metadata": {
    "serviceName": "haven-media",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "durationSeconds": 20,
              "prompt": "warm lo-fi piano loop with vinyl crackle, relaxed tempo"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "etaSeconds": 60,
              "jobId": "00000000-0000-0000-0000-000000000000",
              "kind": "music",
              "pollBudgetSeconds": 900,
              "resultUrl": "https://api.havenagent.ai/x402/api/v1/music/jobs/00000000-0000-0000-0000-000000000000/result",
              "status": "queued",
              "statusUrl": "https://api.havenagent.ai/x402/api/v1/music/jobs/00000000-0000-0000-0000-000000000000"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "durationSeconds": {
                      "default": 20,
                      "maximum": 60,
                      "minimum": 1,
                      "type": "number"
                    },
                    "lyrics": {
                      "maxLength": 5000,
                      "type": "string"
                    },
                    "prompt": {
                      "maxLength": 2000,
                      "minLength": 1,
                      "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": {
                  "properties": {
                    "aiDisclosure": {
                      "properties": {
                        "aiGenerated": {
                          "type": "boolean"
                        },
                        "embeddedIn": {
                          "type": "string"
                        },
                        "label": {
                          "type": "string"
                        },
                        "statement": {
                          "type": "string"
                        },
                        "termsUrl": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "aiGenerated",
                        "statement",
                        "termsUrl"
                      ],
                      "type": "object"
                    },
                    "etaSeconds": {
                      "type": "number"
                    },
                    "jobId": {
                      "type": "string"
                    },
                    "kind": {
                      "enum": [
                        "music",
                        "music_premium",
                        "image_generate",
                        "image_edit",
                        "image_upscale",
                        "image_restore",
                        "video",
                        "video_sound",
                        "world",
                        "phone_call"
                      ],
                      "type": "string"
                    },
                    "pollBudgetSeconds": {
                      "type": "number"
                    },
                    "resultUrl": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "statusUrl": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "jobId",
                    "status",
                    "statusUrl",
                    "resultUrl",
                    "etaSeconds",
                    "pollBudgetSeconds"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.havenagent.ai",
    "manifest_name": "api.havenagent.ai",
    "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": {
      "aiDisclosure": {
        "aiGenerated": true,
        "embeddedIn": "string",
        "label": "string",
        "statement": "string",
        "termsUrl": "string"
      },
      "etaSeconds": 0,
      "jobId": "string",
      "kind": "music",
      "pollBudgetSeconds": 0,
      "resultUrl": "string",
      "status": "string",
      "statusUrl": "string"
    },
    "type": "string"
  }
}