Skip to content

LlamaGenAI/llamagen-node

Repository files navigation

LlamaGen Node SDK

LlamaGen Node SDK is an official LlamaGen SDK for the LlamaGen API. It includes helpers for the latest LlamaGen comic api and animation api workflows.

Use it to create comic image generations, continue comic stories, update panels, inspect usage, upload source assets, query generated panels, and create animation generations.

Installation

npm i @llamagen/llamagen-node

Quick start

import { LlamaGenClient } from '@llamagen/llamagen-node';

const client = new LlamaGenClient({ apiKey: process.env.LLAMAGEN_API_KEY });
const created = await client.comic.create({
  prompt: 'american comic illustration, bold outlines, a detective in New York',
  preset: 'neutral',
  size: '1024x1024',
});
const result = await client.comic.waitForCompletion(created.id);

const animation = await client.animation.create({
  prompt: 'cinematic camera move across a finished comic panel',
});

Supported API areas

  • Comic API: create jobs, retrieve jobs, wait for completion where the language client supports polling, continue writing, update panels, usage, uploads, and query panels.
  • Animation API: create and retrieve animation generation jobs.
  • Shared API behavior: bearer-token authentication, configurable base URL, request timeouts, and consistent API errors.

Documentation

Development

npm install
npm test

Search keywords

comic api, animation api, LlamaGen API, @llamagen/llamagen-node

About

Official Node.js library for the LlamaGen API, including comic api and animation api support.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors