GenMagic Audio API

The Audio API from GenMagic — 2 operation(s) for audio.

GitHub OpenAPI

Operations 2

POST /api/v1/audio/speech OpenAI-compatible text-to-speech #
POST /api/v1/audio/music Original music track from a description #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/genmagic:genmagic-audio-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

genmagic-audio-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: GenMagic Audio API
  version: 1.0.0
  description: 'GenMagic is one studio for every generative AI model. Turn a single prompt into text, images, video, audio, music, or code, and route it to the best model automatically. New models the day they launch.


    OpenAI-compatible REST API plus a remote Model Context Protocol server at /api/mcp (Streamable HTTP, protocol 2025-06-18). Authenticate with an API key minted at https://genmagic.co/get-api-key; the model catalog (GET /api/v1/models) also answers without one. Billed pay-as-you-go against a prepaid USD balance; cost and remaining balance are returned in response headers.'
servers:
- url: https://genmagic.co
security:
- bearerAuth: []
tags:
- name: Audio
paths:
  /api/v1/audio/speech:
    post:
      operationId: createSpeech
      summary: OpenAI-compatible text-to-speech
      description: Turn text into spoken audio. Returns raw audio bytes; a durable hosted URL rides the X-Media-Url header. Voiced verbatim (never brand-altered).
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Success.
          headers:
            X-RateLimit-Limit:
              schema:
                type: string
              description: The key's request quota for the current rate-limit window.
            X-RateLimit-Remaining:
              schema:
                type: string
              description: Requests left for this key in the current rate-limit window.
            X-RateLimit-Reset:
              schema:
                type: string
              description: Seconds until the current rate-limit window resets.
            X-Cost-Cents:
              schema:
                type: string
              description: What this call cost, in US cents (may be fractional). Provider-authoritative when the provider reports a cost, else the metered estimate. Omitted when the cost is unknown or deliberately not disclosed (the OpenAI-compatible chat passthrough hides it).
            X-Credits-Remaining:
              schema:
                type: string
              description: The key owner's prepaid balance in US cents remaining after this call. Omitted when the balance cannot be read.
            X-Media-Url:
              schema:
                type: string
              description: A durable hosted URL for the generated audio, for sharing or later retrieval.
        '401':
          description: 'authentication_error: missing or invalid API key.'
        '402':
          description: 'insufficient_quota: credit balance would go negative.'
        '429':
          description: 'rate_limit_error: over 300 requests/minute for this key.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - input
              properties:
                input:
                  type: string
                  description: The text to speak.
                model:
                  type: string
                  description: Model id. Omit for the default.
                voice:
                  type: string
                  description: Voice name (e.g. alloy). Defaults to a neutral voice.
      tags:
      - Audio
  /api/v1/audio/music:
    post:
      operationId: createMusic
      summary: Original music track from a description
      description: GenMagic-native (OpenAI has no music endpoint). Returns raw audio bytes; a hosted URL rides X-Media-Url. Brand-steered in mood when personalization is on.
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Success.
          headers:
            X-RateLimit-Limit:
              schema:
                type: string
              description: The key's request quota for the current rate-limit window.
            X-RateLimit-Remaining:
              schema:
                type: string
              description: Requests left for this key in the current rate-limit window.
            X-RateLimit-Reset:
              schema:
                type: string
              description: Seconds until the current rate-limit window resets.
            X-Cost-Cents:
              schema:
                type: string
              description: What this call cost, in US cents (may be fractional). Provider-authoritative when the provider reports a cost, else the metered estimate. Omitted when the cost is unknown or deliberately not disclosed (the OpenAI-compatible chat passthrough hides it).
            X-Credits-Remaining:
              schema:
                type: string
              description: The key owner's prepaid balance in US cents remaining after this call. Omitted when the balance cannot be read.
            X-Media-Url:
              schema:
                type: string
              description: A durable hosted URL for the generated audio, for sharing or later retrieval.
        '401':
          description: 'authentication_error: missing or invalid API key.'
        '402':
          description: 'insufficient_quota: credit balance would go negative.'
        '429':
          description: 'rate_limit_error: over 300 requests/minute for this key.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - prompt
              properties:
                prompt:
                  type: string
                  description: Genre, mood, instruments, tempo.
                model:
                  type: string
                  description: Model id. Omit for the default.
      tags:
      - Audio
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'GenMagic API key in the form gm_live_..., sent as Authorization: Bearer <key>. Also accepted as x-api-key.'