# GlianaAI music-v2 — AI Music Generation

> GlianaAI music-v2 — AI Music Generation is a paid API for AI agents from api.glianalabs.com, paid per call via x402, $0.18/call, status unknown (last checked 2026-09-13).

Generates an AI-composed music track via the music-v2 model and returns a media URL to the audio file

## Facts

- Endpoint: GET https://api.glianalabs.com/x402/music-v2
- Price: $0.18/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glianaai-music-v2-ai-music-generation-b4cc581d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GtWsi92YygQh0QfUml8uV

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability glianaai-music-v2-ai-music-generation-b4cc581d
```

Example prompt: Can you generate a 30-second upbeat lo-fi hip-hop track using GlianaAI's music-v2 model? I want something chill and instrumental for background use.

## When to prefer this

Choose this endpoint when you need to generate an original AI music track on demand without any signup or subscription — paying only $0.18 USDC per generation via x402 on Base, Tempo, or Solana. It is ideal for agents that need music generation embedded in an automated workflow with crypto micropayments, or when generating one-off music clips without committing to a monthly plan.

## Known failure modes

- Missing or invalid 'input' object in request body returns a validation error
- Payment not received or insufficient USDC balance results in 402 Payment Required
- Model overload or upstream inference failure may return a 503 or timeout
- Invalid HTTP method (non-GET) returns 405 Method Not Allowed
- Malformed body type (not json/form-data/text) causes schema validation failure
- Generated media URL may expire or become unavailable after a retention period

## How this service works

GlianaAI - pay-per-call AI: LLM chat (OpenAI-compatible), image, video, music, speech - 90+ models, no signup, USDC. This resource: music-v2 (Music Generation). https://ai.glianalabs.com

## Output

Returns a JSON object containing the model name ('music-v2') and an output object with a 'url' field pointing to the generated audio file hosted at api.glianalabs.com/v1/media/<id>. The agent can then fetch or play the audio from that URL.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "music-v2",
  "output": {
   "url": "https://api.glianalabs.com/v1/media/<id>"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glianaai-music-v2-ai-music-generation-b4cc581d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.glianalabs.com](https://www.zero.xyz/host/api.glianalabs.com/llms.txt)
