Skip to main content
Prefer the maintained Python SDK or CLI. The other packages are generated from the OpenAPI spec and receive lighter maintenance.

Generate a client with your agent

For another language, give your coding agent the public OpenAPI spec and the agent-ready reference corpus. Ask it to keep LEGNEXT_API_KEY server-side and implement the complete submit → wait → persist flow.
Generation tasks are asynchronous. Poll GET /v1/job/{job_id} or use a webhook, then download outputs before their remote URLs expire.
The PHP client source exists on GitHub but is not listed here until its Composer package is publicly installable.