Skip to content

Story transformation

Turn a story or script into structured comic pages.

The story-to-comic workflow accepts prompt text or a signed story file, then combines it with pagination, roles, locations, and language settings.

The API creates a visual draft and structured assets; it does not replace editorial adaptation, continuity review, or rights clearance.

Convert a story example

Account, API key, usage, and billing open on LlamaGen.AI.

Verifiable request

Story brief with recurring context

cURL
curl -X POST \
  https://api.llamagen.ai/v1/comics/generations \
  -H "Authorization: Bearer $LLAMAGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "promptUrl": "https://example.com/signed/story-brief.pdf",
  "pagination": {
    "totalPages": 3,
    "panelsPerPage": 4
  },
  "comicRoles": [
    {
      "name": "Ari",
      "image": "https://example.com/ari.webp"
    }
  ],
  "comicLocations": [
    {
      "name": "Archive",
      "description": "Brutalist underground library"
    }
  ],
  "language": "English"
}'

Structured response

State your application can route

response.jsonPROCESSED
{
  "id": "gen_abc123",
  "status": "PROCESSED",
  "comics": [
    {
      "page": 0,
      "panels": [
        {
          "panel": 0,
          "caption": "Ari discovers the sealed archive map.",
          "assetUrl": "https://cdn.llamagen.ai/comics/panel-1.webp"
        }
      ]
    }
  ]
}

Output evidence

Inspect the visual result and the machine-readable state.

The visual is evidence of the output category. The JSON is what lets an application correlate the generation, render a preview, store assets, and continue the workflow.

Generated story comic representing a script-to-comic API response
Representative LlamaGen Comic API output. Exact composition varies by input and generation.

Capability and boundary facts

Facts an integration can verify.

Last verified:

Endpoint
POST /v1/comics/generations
Authentication
Bearer API key
Lifecycle
QUEUED → PROCESSING → PROCESSED or FAILED
Delivery
Poll by generation ID or use a callback URL
Story inputs
Prompt text or signed promptUrl plus references

Good fit

Use it when

  • Script visualization
  • Editorial storyboarding
  • Narrative product features

Wrong fit

Do not use it for

  • Final editorial approval
  • Rights clearance
  • Guaranteed verbatim preservation of every script line

Production limits

Plan for the boundaries.

  • 01Signed file URLs must remain accessible for the request lifecycle.
  • 02Long scripts should be scoped into clear pages, scenes, and characters before generation.
  • 03Generation is asynchronous; production interfaces must handle processing and failure states.
  • 04Outputs should be reviewed against product, brand, safety, and print requirements before delivery.
  • 05You must have the rights to prompts, photos, scripts, and reference assets submitted to the API.

Next step

Move from evidence to a real API request.

LlamaGen provides the playground, API key, usage, billing, and authoritative service documentation.

Convert a story example