Generation API
All personal-key generation endpoints at a glance.
Read as Markdown ↗Base URL
https://wegen.artAuthenticate using Authorization: Bearer $LETSGEN_API_KEY. Send JSON with Content-Type: application/json except for the raw-media and multipart voice uploads.
Endpoints
| Method | Path | Scope | Reference |
|---|---|---|---|
| GET | /api/generate/models | read | Discover models |
| POST | /api/generate/image | generate | Images |
| POST | /api/generate/video | generate | Videos |
| POST | /api/generate/audio | generate | Audio |
| GET / HEAD | /api/generate/tasks/{id} | read | Tasks |
| POST | /api/generate/assets | generate | Upload assets |
| GET | /api/generate/voices | read | Voices |
| POST | /api/generate/voices | generate | Voices |
| POST | /api/generate/text/v1/chat/completions | generate | Text and streaming |
| POST | /api/generate/extract/video | generate | Video extraction |
Image, video, audio, text, and extraction submissions require Idempotency-Key. Asset and voice uploads are explicit mutations and do not implement generation idempotency. Avoid automatically repeating an upload after an ambiguous response.
Machine-readable reference
Download OpenAPI 3.1 for API tooling. Agents can use llms.txt, the full Markdown reference, or Read as Markdown on any page. Schemas describe the public envelope; model-specific parameters are validated by the generation service.
There is no public webhook registration, cancellation endpoint, model-detail endpoint, or caller-supplied provider routing in this API. Poll media tasks; consume text as JSON or SSE.