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. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: ShortGenius Music API
version: 1.0.0
description: Generate AI-based videos, images, and audio, and manage your ShortGenius account.
servers:
- url: https://api.shortgenius.com/v1
security:
- bearerAuth: []
tags:
- name: Music
paths:
/music/genres:
get:
operationId: getMusicGenres
summary: List music genres
description: Gets a list of all music genres available.
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/MusicGenre'
tags:
- Music
/music/genres/{id}:
get:
operationId: getMusic
summary: List music
description: Gets a list of all music tracks available for the specified genre.
parameters:
- in: path
name: id
description: The unique ID of the music genre.
schema:
type: string
description: The unique ID of the music genre.
required: true
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Song'
description: A list of music tracks in the specified genre.
'400':
description: Invalid request
content:
application/json:
schema:
type: object
properties:
message:
type:
- string
- 'null'
description: Error message describing the reason for failure.
description: An error response object.
tags:
- Music
components:
schemas:
Song:
type: object
properties:
id:
type: string
description: Unique ID of the track.
name:
type: string
preview_url:
type: string
required:
- id
- name
- preview_url
description: Metadata about a music track.
MusicGenre:
type: object
properties:
name:
type: string
description: The name of the genre (e.g., "Classical").
example: Classical
recommended_for_locales:
type: array
items:
type: string
enum:
- af-ZA
- id-ID
- ms-MY
- ca-ES
- cs-CZ
- da-DK
- de-DE
- en-US
- es-ES
- es-419
- fr-CA
- fr-FR
- hr-HR
- it-IT
- hu-HU
- nl-NL
- no-NO
- pl-PL
- pt-BR
- pt-PT
- ro-RO
- sk-SK
- fi-FI
- sv-SE
- vi-VN
- tr-TR
- el-GR
- ru-RU
- sr-SP
- uk-UA
- hy-AM
- he-IL
- ur-PK
- ar-SA
- hi-IN
- th-TH
- ko-KR
- ja-JP
- zh-CN
- zh-TW
description: The languages this genre is particularly popular in.
required:
- name
- recommended_for_locales
description: A music genre.
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: Your ShortGenius API token