Skip to content

Repository files navigation

LlamaGen Go SDK

LlamaGen Go 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

go get github.com/LlamaGenAI/llamagen-go

Quick start

client := llamagen.NewClient(llamagen.WithAPIKey(os.Getenv("LLAMAGEN_API_KEY")))
job, err := client.Comic.Create(context.Background(), llamagen.Params{
    "prompt": "american comic illustration, bold outlines",
    "size": "1024x1024",
})
if err != nil { log.Fatal(err) }
result, err := client.Comic.WaitForCompletion(context.Background(), job.ID, 2*time.Second)

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

go test ./...

Search keywords

comic api, animation api, LlamaGen API, github.com/LlamaGenAI/llamagen-go

About

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

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages