Generate media with AI
Starts generating an image or a sound effect from a text prompt with the same AI generators the editor's media panels use. Generation is asynchronous: the response is a generation whose id is the private library item the result is saved as. Poll GET /v1/library/generations/{id} every few seconds (images usually take 30-90 seconds, sound effects 10-30) until status is completed, then pass item.sourceId anywhere a source is accepted — POST /v1/videos/{id}/clips/{clipId}/overlays for an image overlay, POST /v1/videos/{id}/clips/{clipId}/layouts with media for b-roll, POST /v1/videos/{id}/clips/{clipId}/sound-effects for a sound effect. The finished item also appears in GET /v1/library?scope=private. Each generation counts against the caller's weekly AI generation allowance, which depends on the plan; exceeding it answers 403 with the reset time.
Request
- Base URL: https://api.tella.com
- URL: https://api.tella.com/v1/library/generations
- Auth: HTTP bearer
Request body
Example request
{
"model": "flare",
"prompt": "A watercolor illustration of a lighthouse at dawn",
"referenceSourceId": "su_abc123def456",
"type": "image"
}Response
Accepted
Example response
{
"generation": {
"id": "mi_abc123def456",
"item": {
"category": "Everyday",
"durationMs": 4200,
"id": "media_abc123def456",
"name": "Intro camera take",
"presetId": "cha-ching",
"scope": "private",
"sourceId": "su_abc123def456",
"type": "video"
},
"prompt": "A watercolor illustration of a lighthouse at dawn",
"status": "completed",
"type": "image"
},
"limit": 20,
"remaining": 19,
"resetAt": 1760000000000
}Changes
No recorded changes to this operation across all 1 revision of this API.