Suno API
activeFull-featured AI music generation platform. Supports text-to-music, extend tracks, upload audio covers, generate cover images, and timestamped lyrics. 7 API endpoints.
Quick Start
Send a request to the Suno API:
curl -X POST https://apiin.one/api/v1/audio/music \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "chirp-v4-5",
"prompt": "A cheerful pop song about summer days, with catchy melody and upbeat rhythm",
"style": "pop, upbeat",
"make_instrumental": false,
"title": "Summer Days"
}'API Endpoint
/api/v1/audio/musicHeaders
| Header | Type | Required | Description |
|---|---|---|---|
Authorization | string | Required | Bearer YOUR_API_KEY |
Content-Type | string | Required | application/json |
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Required | Model identifier: "suno" |
prompt | string | Optional | Music description (inspiration mode) or lyrics (custom mode). Max 5000 chars. |
gpt_description_prompt | string | Optional | Text description for inspiration mode. Max 400 chars for v4. |
model | string | Optional | Model: chirp-v4-0 (5cr), chirp-v4-5 (10cr), chirp-v4-5-plus (10cr), chirp-v5 (12cr) (Default: chirp-v3-5) |
style | string | Optional | Music style/genre (custom mode). Max 1000 chars. |
title | string | Optional | Track title. Max 80–100 chars. |
make_instrumental | boolean | Optional | Generate instrumental only (no vocals) (Default: false) |
gender | string | Optional | Preferred vocal gender: "male" or "female" |
style_weight | number | Optional | Style adherence strength (0–1) |
weirdness_constraint | number | Optional | Creative deviation control (0–1) |
audio_weight | number | Optional | Audio feature balance (0–1) |
callback_url | string | Optional | Webhook URL for result notification |
Available Endpoints
8 endpoints available for this model. All endpoints use the same API key.
Example Request
{
"model": "chirp-v4-5",
"prompt": "A cheerful pop song about summer days, with catchy melody and upbeat rhythm",
"style": "pop, upbeat",
"make_instrumental": false,
"title": "Summer Days"
}Example Response
Successful task creation response.
{
"code": 200,
"message": "success",
"data": {
"task_id": "gen2abc123def456bksv",
"status": "IN_PROGRESS"
}
}Check Task Status
For asynchronous tasks, poll the status endpoint to check when your task is complete:
/api/v1/tasks/{task_id}curl https://apiin.one/api/v1/tasks/task_abc123 \
-H "Authorization: Bearer aio_your_key"Use Cases
- ✓Generate original music from text prompts or custom lyrics
- ✓Extend existing tracks with new content or different styles
- ✓Upload audio files and create AI cover versions
- ✓Generate album cover images for tracks
- ✓Get word-level timestamped lyrics for karaoke/player UIs
- ✓Build AI-powered music creation tools and apps
API Tester
Test the Suno API directly from your browser:
Error Codes
{
"error": {
"code": 400,
"message": "Invalid parameters",
"type": "invalid_request"
}
}Frequently Asked Questions
How much does the Suno API cost?
Credits depend on model and endpoint: chirp-v4 = 5cr, chirp-v4.5 = 10cr, chirp-v5 = 12cr. Upload-cover = 8–12cr. Cover images = 1cr. Timestamped lyrics = 2cr.
What API endpoints are available?
7 endpoints: /v2/generate (create music), /v2/extend (extend tracks), /v2/feed (poll status), /v2/cover/generate+status (cover images), /v2/upload-cover/generate+status (audio covers), /v2/timestamped-lyrics (word-level lyrics).
Can I extend an existing song?
Yes. Use /v2/extend with a completed task ID. Supports inherit mode (seamless continuation) or custom mode (change style/lyrics).
Can I upload my own audio and create a cover?
Yes. Use /v2/upload-cover/generate to upload audio (max 8 min) and generate an AI cover with new vocals, style, and lyrics.
What model versions are available?
chirp-v4-0, chirp-v4-5, chirp-v4-5-plus, chirp-v4-5-all, and chirp-v5. Each version offers different quality tiers and pricing.
Do I need a separate Suno account?
No. API in One handles all provider authentication. You only need one API in One key.
Why Use Suno Through API in One?
Ready to use Suno?
Get Your API Key →