Suno-Integration

Geplant

Verwenden Sie konfigurierte Suno-compatible-Routen zum Senden und Abrufen.

POST /suno/submit/{action}

Sendet eine Suno-Musik- oder Liedtextaufgabe. Das Beispiel verwendet das ausgewählte aktuelle Dokumentationsbeispiel suno_music und enthält alle Felder des Suno-Sende-DTO.

Suno-Aufgabe senden
curl https://www.token168.cc/suno/submit/music \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TOKEN168_API_KEY" \
  -d '{
    "gpt_description_prompt": "Upbeat synthwave intro",
    "prompt": "Instrumental synthwave track with a bright chorus",
    "mv": "chirp-v5.5",
    "title": "Neon API",
    "tags": "synthwave, upbeat",
    "continue_at": 0,
    "task_id": "",
    "continue_clip_id": "",
    "make_instrumental": true
  }'

POST /suno/fetch

Ruft den Status einer Suno-Aufgabe mit einem JSON-Anfragekörper ab.

Suno-Aufgabe abrufen
curl https://www.token168.cc/suno/fetch \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TOKEN168_API_KEY" \
  -d '{
    "task_id": "suno_task_123"
  }'

GET /suno/fetch/{id}

Ruft den Status einer Suno-Aufgabe anhand der Aufgaben-ID im Pfad ab.

Suno-Aufgabe nach ID abrufen
curl https://www.token168.cc/suno/fetch/suno_task_123 \
  -H "Authorization: Bearer $TOKEN168_API_KEY"