LyricsFarm
Developer API · v1

Lyrics generation with constraints you can inspect.

Generate original lyrics—not audio—with language, genre, mood, structure, rhyme, meter, Writer DNA, and deterministic quality reports.

NDJSON
Streaming
Hashed
API keys
OpenAPI
Schema

Generate lyrics

POST /api/lyrics/generate
curl -X POST https://pixelforgehub.pro/api/lyrics/generate \
  -H "X-API-Key: lf_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "brief": {
      "language": "en",
      "genre": "Indie",
      "moods": ["Bittersweet", "Intimate"],
      "structure": "modern-pop",
      "bpm": 104,
      "energy": 6,
      "vocal": "Close-mic expressive lead",
      "perspective": "first-person",
      "explicitness": "clean",
      "variationCount": 1
    },
    "options": {
      "theme": "Leaving on the last train after choosing ambition over love",
      "rhymeScheme": "ABAB",
      "syllableTarget": 8,
      "linesPerSection": 4
    }
  }'

Stream while the model writes

Add "stream": true. A repair attempt emits a new reset event, so clients can replace the failed preview cleanly.

// Set stream: true and read one JSON object per line.
{"type":"reset","variation":1,"attempt":1,"message":"Writing the draft"}
{"type":"token","delta":"TITLE: Last Train\n"}
{"type":"result","drafts":[...],"model":"...","elapsedMs":4280}

Copilot

POST /api/lyrics/copilot

Rewrite, shorten, intensify, rhyme, or continue a selected passage.

Machine-readable spec

GET /api/lyrics/openapi

OpenAPI 3.1 schema for tooling and SDK generation.

Sign in to create and revoke developer keys. Sign in