# Omnicall MusicGen Text-to-Music API

> Omnicall MusicGen Text-to-Music API is a paid API for AI agents from omnicall.gocreativeai.com, paid per call via x402, $0.08/call, status unknown (last checked 2026-09-15).

Generates a royalty-free instrumental audio track URL from a text prompt using MusicGen, billed per call in USDC

## Facts

- Endpoint: GET https://omnicall.gocreativeai.com/v1/ai/music/:var1
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/omnicall-musicgen-text-to-music-api-77604245
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BE50uciAVTUj6LW4l9jSm

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 omnicall-musicgen-text-to-music-api-77604245
```

Example prompt: Generate a royalty-free instrumental background track for a relaxing nature documentary — something calm, orchestral, and cinematic — using the MusicGen API.

## When to prefer this

Choose this endpoint when an agent needs to generate a royalty-free instrumental audio track on-demand from a natural language description without managing API keys. Ideal for media bots, content creators, and creative agents that need pay-per-call music generation with no subscription overhead. Best suited when MusicGen-style instrumental output is acceptable and the agent can pay $0.03 USDC per call via Base or Solana.

## Known failure modes

- Invalid or missing 'input' query parameter returns an error
- Vague or unsupported prompt may produce unexpected audio styles
- Payment failure (insufficient USDC balance) returns HTTP 402 and blocks generation
- Network timeout during model inference if generation takes too long
- Rate limiting or capacity issues may return 5xx errors

## How this service works

Text-to-music — short royalty-free instrumental track generated from a prompt (MusicGen). Pay-per-call USDC, no API key. For content, media, and creative agents.

## Output

Returns a URL pointing to a generated royalty-free instrumental audio file that matches the text prompt description, synthesized by MusicGen. The agent receives a direct link to the audio track ready for playback or download.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "input"
     ],
     "properties": {
      "input": {
       "type": "string",
       "description": "endpoint argument"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/omnicall-musicgen-text-to-music-api-77604245/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from omnicall.gocreativeai.com](https://www.zero.xyz/host/omnicall.gocreativeai.com/llms.txt)
