{"uid":"cap_Bl5SB6LMnoN365GOdFzXf","slug":"api-zeroclick-ac-minimax-music-generation-0efdfd5b","name":"MiniMax Music Generation","description":"1) Validate the buyer input against the published input schema (model required). Ensure idempotency_key is set on retries. 2) Confirm the buyer has approved the per-request spend (default 0.05 USDC) and any additional expected costs (e.g., high-sample-rate, long-duration outputs). 3) If input includes audio_url or audio_base64, validate that the caller has rights to use that audio (for covers/remixes). Reject or escalate if rights are absent. 4) Construct a JSON POST to https://api.minimax.io/v1/music_generation following the input schema. Include the idempotency key header when available. 5) Handle payment challenges: - x402 flow: If ZeroClick returns a 402 payment-challenge, read the challenge body/header, prompt buyer authorization, then retry the exact same request with the provided payment token/authorization attached. Use the idempotency_key to avoid duplicate fulfillment. - MPP (WWW-Authenticate) flow: Read the WWW-Authenticate payment request, coordinate buyer authorization through the platform payment flow, then retry with the required Authorization/Payment header. 6) Do not retry repeatedly on payment declines; surface the payment failure to buyer with the challenge details. 7) Parse the upstream response per the output schema. Preserve trace_id and base_resp.status_code/status_msg. If output_format is \"hex\", decode hex to binary only when the downstream requires it; otherwise return the hex string. If output_format is \"url\", verify returned URLs are HTTPS and accessible. 8) For upstream 5xx or timeouts that are eligible, record a refund obligation and surface refund instructions to the buyer. 9) Log and surface the upstream trace_id for debugging and support. 10) Never call the upstream speculatively for content that can be served by local models or for requests that violate prohibited uses.\n\nUse when: When the buyer explicitly requests generation of audio artifacts (music or cover) that require the MiniMax upstream model.; When the buyer has provided required inputs and has approved the per-request charge (or is prepared to complete a payment challenge).; When a live, reproducible audio artifact is required (not just a textual description or code snippet).\n\nDo not use when: When the task can be completed without paid seller infrastructure (e.g., simple songwriting advice or music theory explanation).; When the buyer has not provided required fields or has not approved the charge/payment challenge.; For requests that clearly violate the prohibited use policy (copyright infringement, harassment, private personal data, etc.).; Do not use for generation that impersonates a living artist without documented consent or applicable legal basis.\n\nFailure modes: Buyer input fails JSON Schema validation. Return a clear 4xx explaining missing/invalid fields and do not charge.; Payment authorization fails: buyer declines, insufficient funds, or payment challenge (402/MPP) not completed. Surface challenge details and do not retry billing without explicit buyer authorization.; Upstream 4xx (client error) — not refunded by default; inspect request and surface corrective guidance.; Upstream 5xx or timeout — these are eligible for refund obligations; record and surface refund steps to buyer.; Upstream returns an unsupported response shape — treat as invalid seller response and record refund obligation.; Duplicate retries without idempotency_key may cause double charges; callers must supply idempotency_key to protect against this.\n\nPrice: 0.05 USDC per request.","url":"https://api.zeroclick.ac/x402/minimax-music-generation-ta8lzq","method":"POST","headers":{},"bodySchema":{"type":"object","title":"MiniMax Music Generation - Input Schema","$schema":"http://json-schema.org/draft-07/schema#","required":["model"],"properties":{"model":{"enum":["music-2.6","music-cover","music-2.6-free","music-cover-free"],"type":"string","description":"The MiniMax model to use. Choose a model appropriate for original music or cover generation."},"lyrics":{"type":"string","maxLength":3500,"description":"Optional: lyrics text to render or optimize. Required for vocal-generation requests when applicable. Do not include third-party private data without permission."},"prompt":{"type":"string","maxLength":2000,"description":"Natural-language description of the desired music (mood, instruments, tempo, structure). Provide explicit constraints if needed (length, sections)."},"stream":{"type":"boolean","default":false,"description":"If true, request streaming output (if upstream/model supports it)."},"audio_url":{"type":"string","format":"uri","description":"Optional: URL of an audio file to use as input (e.g., for remix or cover). When provided, the agent must verify the buyer has rights to use the file."},"audio_base64":{"type":"string","description":"Optional: base64-encoded audio payload. Prefer audio_url when the audio is large. When provided, must be properly base64-encoded and match declared format/sample rate."},"audio_setting":{"type":"object","properties":{"format":{"enum":["mp3","wav","flac","ogg"],"type":"string","description":"Container/codec for output."},"bitrate":{"type":"integer","minimum":16000,"description":"Target bitrate in bits per second (for lossy codecs). Use sensible values (e.g., 128000, 256000)."},"sample_rate":{"enum":[22050,32000,44100,48000],"type":"integer","description":"Sample rate in Hz."}},"description":"Desired encoding parameters for generated audio.","additionalProperties":false},"output_format":{"enum":["hex","url"],"type":"string","default":"hex","description":"How the service returns audio. "},"idempotency_key":{"type":"string","description":"Optional: caller-provided idempotency key to prevent duplicate billings on retries."},"is_instrumental":{"type":"boolean","default":false,"description":"Set true to request no vocals."},"cover_feature_id":{"type":"string","description":"Optional: ID of the cover feature / backing track to use when creating a cover. When present, the caller must ensure they have rights to produce the cover version."},"lyrics_optimizer":{"type":"boolean","default":false,"description":"If true, run the seller's lyrics optimizer on provided lyrics before synthesis."}},"additionalProperties":true},"responseSchema":{"type":"object","title":"MiniMax Music Generation - Output Schema","$schema":"http://json-schema.org/draft-07/schema#","required":["data","trace_id","base_resp","extra_info"],"properties":{"data":{"type":"object","required":["audio","status"],"properties":{"audio":{"type":"string","description":"Audio payload. Interpreted according to output_format: hex = hex-encoded bytes; url = a retrievable HTTPS URL to the artifact."},"status":{"type":"integer","description":"Upstream numeric status code for the audio payload (0 = success)."},"metadata":{"type":"object","description":"Opaque metadata returned by upstream (e.g., file type, codec).","additionalProperties":true}},"additionalProperties":true},"trace_id":{"type":"string","description":"Upstream request trace ID. Preserve and surface this for support and reconciliation."},"warnings":{"type":"array","items":{"type":"string"},"description":"Optional warnings from upstream (e.g., quality, license checks)."},"base_resp":{"type":"object","required":["status_code","status_msg"],"properties":{"status_msg":{"type":"string","description":"Human-readable upstream message."},"status_code":{"type":"integer","description":"Upstream overall status code (0 = success)."}},"additionalProperties":true},"extra_info":{"type":"object","required":["music_duration","music_sample_rate","music_channel","bitrate","music_size"],"properties":{"bitrate":{"type":"integer","description":"Integer bitrate in bits per second."},"music_size":{"type":"integer","description":"Size in bytes of returned audio artifact."},"music_channel":{"type":"integer","description":"Number of audio channels (1 mono, 2 stereo)."},"music_duration":{"type":"integer","description":"Duration of audio in milliseconds."},"music_sample_rate":{"type":"integer","description":"Sample rate in Hz."}},"additionalProperties":true},"analysis_info":{"type":["object","null"],"description":"Optional analysis metadata (e.g., loudness, key, segments). Can be null if upstream does not provide it.","additionalProperties":true}},"additionalProperties":true},"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"0.15","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":4,"rating":{"score":"0.98","successRate":"0.86","reviews":4,"stars":"4.9","state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.15/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.15","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.15","per":"call","confidence":"exact"},{"kind":"unknown","protocol":"mpp","network":"tempo","amountUsd":null,"per":"call","confidence":"unknown"}]},"paymentMethods":[{"uid":"pm_G6o9O_E1IJQRMse16u7Xy","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.15","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null},{"uid":"pm_KMgCsdeawoZ6guHr2JOe3","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"unknown","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":"api.zeroclick.ac","brandSlug":"api-zeroclick-ac-mpp","brandBaseUrl":"https://api.zeroclick.ac","brandDocsUrl":null,"whatItDoes":"Generates original music or cover versions from text prompts and/or lyrics using MiniMax AI models, returning audio as hex-encoded bytes or a URL","exampleAgentPrompt":"Use the MiniMax music-2.6 model to generate a 30-second upbeat electronic dance track with synthesizer leads and a driving 4/4 beat — output it as an mp3 at 128000 bitrate and 44100 Hz sample rate.","exampleUseCases":null,"resultDescription":"Returns an audio payload (hex-encoded bytes or HTTPS URL depending on output_format), along with metadata including duration in milliseconds, sample rate, channel count, bitrate, file size, a trace ID for support, and an upstream status code with message. Optional analysis metadata and warnings may also be included.","failureModes":["402 Payment Required: buyer has not approved spend; requires x402 or MPP payment flow before retrying","Invalid model enum: unsupported model name returns validation error","Missing required field: model not provided returns schema validation error","Rights violation: audio_url or audio_base64 provided without verified usage rights","Upstream MiniMax error: non-zero base_resp.status_code with status_msg describing the failure","Malformed base64: audio_base64 not properly encoded returns decode error","Idempotency key missing on retry: risk of duplicate charge or generation"],"whenToPreferThis":"Choose this endpoint when you need AI-generated music from MiniMax models specifically, especially when you want original composition from a text prompt or lyrics, or need to generate cover versions from a reference audio file. Prefer over ElevenLabs Music when MiniMax's music-2.6 or music-cover models are preferred, or when cost per call matters (default ~0.05 USDC). Use when you need fine-grained audio encoding control (format, bitrate, sample rate).","instructions":null,"reviewSummary":"MiniMax Music Generation consistently delivers full-length stereo MP3 tracks (roughly 1–4 minutes) in 60–100 seconds across diverse styles including indie-folk, K-pop, Americana, and folk ballad. Section tags like [Verse]/[Chorus] and explicit negative constraints (e.g., 'NO synths') reliably shape structure and arrangement. All four reviewed calls succeeded on the first attempt with no reliability issues, though actual per-request cost may reach 0.25 USDC with the music-2.6 model rather than the listed 0.15 USDC — callers should set max-pay accordingly.","reviewSummaryHighlights":["Detailed style prompts and explicit negative constraints effectively control instrumentation, tempo, and vocal timbre","Section tags ([Verse]/[Chorus]/[Rap]) reliably drive song structure; tempo cues also influence output duration","x402 payment flow on Base and signed download URLs work cleanly with no reported friction"],"reviewSummaryConcerns":["Actual charge can reach 0.25 USDC with music-2.6, higher than the listed price — configure max-pay budget before calling"],"reviewSummaryGeneratedAt":"2026-08-25T04:15:07.229Z","activationCount":7,"lastUsedAt":"2026-06-04T22:32:52.383Z","lastSuccessfullyRanAt":"2026-06-03T22:23:28.524Z","lastHealthCheckAt":"2026-09-14T22:32:45.743Z","isFirstParty":false}