Generation, status, reference sheets, transcription, models, media, avatars, voices and Kling elements endpoints.
Base URL https://app.contenthero.ai/api/v1. All endpoints take a bearer API key. The tables on this page are generated from the route contract: the Scope column is the scope the key needs (None means any valid key), and the fields under a route are its query, body and, where declared, its answer.
Generation
POST /studio/generate takes a contentType (image, video or audio) and a modelId; the model registry decides which other fields apply. It smart-waits, then answers the asset or an outputId to poll. Pass getCost: true to preview the cost only. A long post transcription answers 202 with status: "running": ask again with the same post to follow it, free.A generation reference (start frame, image input, audio) accepts a raw URL or a ContentHero output-id token <uuid>-<N>.
Method
Path
Scope
Purpose
POST
/studio/generate
studio:generate
Generate an image, a video or audio (speech, music, sound effects), or run an upscale, background removal, layer separation or lip-sync. contentType picks the family and the model registry entry for modelId decides what else is accepted. Waits for a short job and answers a pending outputId for a long one.
GET
/studio/generate/{outputId}
studio:generate
Poll one generation by its outputId: its status, and its files once it has finished. Reading never starts or finishes work.
POST
/studio/reference-sheet
studio:generate
Generate a reference sheet: a typed panel layout drawn from a source image.
POST
/studio/audio/edit
studio:generate
Edit existing audio: isolate a voice, enhance speech or split stems. The registry names the model that performs the operation.
POST
/studio/transcribe
studio:generate
Transcribe speech to text from an audio file (audioUrl), a public video page (videoUrl) or a tracked post (contentId). Not free: pass getCost first to price it.
POST /studio/generate
Body
Field
Type
Required
Description
modelId
string
Yes
The model id, as list_models names it.
aspectRatio
string
Validated per model.
audioEnabled
boolean
Generate audio, on a model that supports it.
avatarId
string
File the result onto this avatar as a new look (images only).
background
string
Background handling declared by the model, subject to output format compatibility.
compositionPlan
object
Music only, instead of prompt: the song section by section. Its length is the sum of its chunks, so durationSeconds is not sent with it.
contentType
image | video | audio
The medium this call asks for. When given, a model of another medium is refused.
duration
number
Clip length in seconds. Model-dependent.
durationSeconds
number
Length in seconds, for music and sound effects.
frameCount
integer or string
GIF frame count declared by the model. Available only for GIF output.
frameDurationMs
integer
GIF frame duration in milliseconds, subject to the model limits.
frameSize
string
GIF frame size from the model declared presets, subject to its sprite sheet limits.
getCost
boolean
Return the credit cost estimate instead of generating (nothing runs, nothing is charged).
keepInputLength
boolean
Video edit only: keep the input video’s full length instead of a set duration.
The work this call asks for, in the registry’s words. When given, a model that does other work is refused.
negativePrompt
string
What to avoid, on a model that supports it.
numGenerations
integer
Number of variations (video models).
numImages
integer
Number of images (image models).
outputFormat
string
Output format declared by the model, subject to its input and background restrictions.
outputId
string
The caller’s own id for this run, a UUID. A retry with the same id returns the job already started.
parameters
object
Model-specific parameters passed to the provider.
placement
object or object
Where the asset lands, interpreted against the project’s type. VIDEO TIMELINE: append to the end, at a time, at the playhead, replacing an existing clip, or filling a time range (omitted places it at the playhead when known, else appends). CANVAS DESIGN: a layer on a slide (slideId / slideIndex, default the focused slide; fit contain|cover|none; a nine-point anchor; and design-pixel x/y/width/height).
playheadFrame
number
The current playhead frame, for playhead-relative timeline placement.
projectId
string
The project to place the result on. Omit for a standalone library output.
prompt
string
The text prompt.
promptInfluence
number
How literally a sound effect follows its prompt (0 to 1).
quality
string
Quality mode, for models that expose it separately. Validated per model.
references
object
resolution
string
Validated per model.
seed
number
A seed, on a model that supports one.
storeForInpainting
boolean
Music only: keep the song with the provider so a later compositionPlan can reuse stretches of it, which is how one section is edited.
text
string
The words to speak, for a speech model.
upgradeFromOutputId
string
Upgrade a completed draft output owned by the caller. The model must declare draftUpgrade. Shot settings are inherited and cannot change.
upgradeSlot
integer
The output slot of the source draft. Omitted selects the first output.
upscaleFactor
string
Upscale factor, for an upscale model. Validated per model.
voiceId
string
The voice id, for a speech model.
voiceName
string
The voice name, for display only.
voiceSettings
object
Voice delivery dials, for a speech model that declares them.
withTimestamps
boolean
Music only: also return the sung words with their start and end times, and save them as the song’s transcript.
POST /studio/reference-sheet
Body
Field
Type
Required
Description
sheetType
string
Yes
One of the sheet types listed by get_model(‘reference-sheets’).
aspectRatio
string
The sheet’s aspect ratio, one the sheet’s image model offers (get_model lists them). Omitted uses the sheet type’s default.
avatarId
string
Optional avatar id from list_avatars. Associate the sheet with that avatar, so a character sheet built for an avatar stays filed against it.
getCost
boolean
Return the credit cost estimate instead of generating (nothing runs, nothing is charged).
numImages
integer
Number of sheet variations (1-4). Defaults to 1.
outputId
string
The caller’s own id for this run, a UUID. A retry with the same id returns the job already started.
panelCount
integer
How many panels the sheet holds, a whole number within the range get_model(‘reference-sheets’) reports. Omitted uses the sheet type’s default.
prompt
string
Describe the subject or how you will use the sheet. Required when no referenceImages are given (text-only sheets); otherwise optional context (the source image leads).
referenceImages
string[]
Source images the sheet is built from: each a URL or a previous output id (e.g. “<id>” or “<id>-2”) to chain from an earlier generation.
sheetName
string
Optional name for the sheet.
POST /studio/audio/edit
Body
Field
Type
Required
Description
clipIds
string[]
IN-PLACE mode: enhance or split the audio of these clips on projectId. Omit with inPlace:true to edit every audible clip on the timeline.
durationSeconds
number
File mode: the source audio length in seconds, required for getCost and for enhancement pricing when the source is not a stored ContentHero asset. In-place mode ignores it: the cost comes from the clips.
getCost
boolean
Return the credit cost estimate instead of running (nothing runs, nothing is charged).
inPlace
boolean
IN-PLACE mode for the whole timeline, without naming clips. Implied when clipIds is given.
modelId
string
Instead of operation: an audio model that takes one audio file and returns audio (it resolves to the operation it performs). list_models (contentType audio) names them; get_model gives one model’s inputs and whether it finishes at once or is polled with get_status.
operation
isolate | enhance | split
isolate: voice isolation. enhance: loudness leveling and noise cleanup. split: vocals, drums, bass and other as four files, or four tracks in in-place mode. The server picks the model that performs it. Omitted: enhance in in-place mode, else isolate.
outputId
string
FILE mode: the caller’s own id for this run, a UUID. A retry with the same id returns the job already started.
placement
object
Where the clip lands: append to the end, at a time, at the playhead, replacing an existing clip, or filling a time range. Omitted places it at the playhead when known, else appends.
playheadFrame
number
The current playhead frame, for playhead-relative placement.
projectId
string
The editor project: where to PLACE the result in file mode, or which timeline to edit in in-place mode. Omit for a standalone library output.
sourceUrl
string
FILE mode: the audio file to process, as a URL or a previous output id. Omit in in-place mode, where the sources come from the clips.
POST /studio/transcribe
Body
Field
Type
Required
Description
audioUrl
string
Public URL of the audio file to transcribe. Pass one of audioUrl, videoUrl or contentId.
contentId
string
The tracked post whose video to transcribe: its id or short id, its link, or the platform’s own id for it. Its video must be downloaded first with analyze_content kind video. Pass one of audioUrl, videoUrl or contentId.
diarize
boolean
Label each speaker (diarization), for an audio file.
getCost
boolean
Return the credit cost estimate instead of transcribing (nothing runs, nothing is charged).
languageCode
string
ISO language hint for an audio file. Auto-detected when omitted; a post’s language is always detected.
slide
integer
Which slide of a carousel post, by the position get_content reports for it: an image slide returns its image, a video slide its frames. Only with contentId.
videoUrl
string
Link to a public video page (YouTube, Instagram, TikTok, X) whose spoken words to transcribe. Pass one of audioUrl, videoUrl or contentId.
Models
Method
Path
Scope
Purpose
GET
/models
None
The live model catalog, resolved from the registry: the authoritative list of valid modelId values and what each accepts.
GET
/models/{id}
None
The full request shape of one model, so a generation can be built from its real parameters.
GET /models
Query
Field
Type
Required
Description
contentType
image | video | audio
Filter to one content type.
Media
GET /download/{id} answers 404 when the id names nothing of yours and 409 when the file is not made yet. Each link it returns is a save link that names the file, needs no sign-in and does not expire. It never spends.
Method
Path
Scope
Purpose
GET
/media
None
List the files in your library, or the stock catalog with source=stock, a page at a time.
GET
/media/{token}
None
One media item in detail, by its short id or full id (a generation adds -N for one variation).
PATCH
/media/{token}
library:write
Rename or describe a stored file you own. A generated output or a stock item has nothing to set and is refused.
GET
/media/search
None
Semantic search over your library (creations, uploads, licensed stock, brand assets), ranked, with matched scene timestamps.
POST
/media/batch
None
Resolve a mixed batch of media references (URLs or media ids) to vision-ready URLs and light metadata.
GET
/download/{id}
None
Save links for a file of yours or a project export, by media id or export id: { files: [{ mediaId?, name, url }] }.
GET /media
Query
Field
Type
Required
Description
archived
boolean
Only archived files.
collection
photos | videos | gifs | stickers | sounds
Stock only, and required with it. Which part of the stock catalog to read: ‘photos’, ‘videos’, ‘gifs’, ‘stickers’ or ‘sounds’.
contentType
string[]
Only these media types.
cursor
string
The previous page’s cursor.
favorited
boolean
Only favorited files.
limit
integer
How many to return.
order
asc | desc
The sort direction.
orientation
landscape | portrait | square
Stock photos and videos only. Narrow the results to one shape: ‘landscape’, ‘portrait’ or ‘square’. Omit it to read every shape.
origin
creation | sheet | look
Creations only. Narrow to one kind of generation: ‘creation’ (normal generations), ‘sheet’ (reference sheets), or ‘look’. The same word an item’s origin says. Omit to list all.
query
string
Stock only. Describe what to find. Omit it to read the collection’s featured items.
smallCopies
boolean
Link each image’s small copy instead of the file itself, where the library keeps one: for drawing images small, as code that shows many at once does. Never for downloading or delivering a file, or showing it large.
sort
createdAt | fileName | sizeBytes
The field to sort by.
source
all | creations | uploads | exports | stock
Which media to read: ‘all’ (the default, every file the account keeps), ‘creations’ (studio generations), ‘uploads’ (files the user uploaded), ‘exports’ (renders of their projects), or ‘stock’ (the stock catalog, which is not part of ‘all’).
status
completed
A listed file exists once its generation completed, so this is the only value.
Response
Field
Type
Required
Description
media
object[]
Yes
nextCursor
string or null
Yes
GET /media/{token}
Query
Field
Type
Required
Description
source
creations | uploads | exports | stock | files
Narrow the lookup to one library: creations (a studio output), uploads (an editor upload), stock (a used stock item), or files (any stored file the Library shows).
PATCH /media/{token}
Body
Field
Type
Required
Description
description
string
A description of the file, in your own words.
name
string
The new name for the file.
GET /media/search
Query
Field
Type
Required
Description
query
string
Yes
A natural-language description of the media to find, describing its visible or audible content.
cursor
string
The previous page’s cursor.
kinds
string[]
Restrict results to these media kinds. Omit to search all kinds.
limit
integer
How many to return.
smallCopies
boolean
Link each image’s small copy instead of the file itself, where the library keeps one: for drawing images small, as code that shows many at once does. Never for downloading or delivering a file, or showing it large.
Response
Field
Type
Required
Description
nextCursor
string or null
Yes
results
object[]
Yes
emptyReason
object
POST /media/batch
Body
Field
Type
Required
Description
items
value[]
Yes
The media to resolve.
Response
Field
Type
Required
Description
items
object[]
Yes
Avatars, voices and Kling elements
Method
Path
Scope
Purpose
GET
/avatars
None
List your avatars.
POST
/avatars
studio:generate
Create an avatar. It runs a generation and charges credits, which is why it needs the generate scope.
GET
/avatars/{avatarId}
None
One avatar in full, including its looks.
PATCH
/avatars/{avatarId}
studio:write
Update an avatar, and add or remove its looks through ops.
DELETE
/avatars/{avatarId}
studio:write
Delete an avatar (a soft delete).
POST
/avatars/{avatarId}/looks
studio:write
File images you already own onto an avatar as looks. To generate a new look, call POST /studio/generate with avatarId.
POST
/avatars/{avatarId}/sheets
studio:write
Attach images you already own to an avatar as sheets. Each answer carries the sheet as the sheets list returns it.
DELETE
/avatars/{avatarId}/looks/{lookId}
studio:write
Remove one look from an avatar. The image goes to the trash and is recoverable for 30 days.
GET
/voices
None
List your saved voices, favorites first, then most recently used.
GET
/voices/{voiceId}
None
One saved voice in full.
GET
/kling-elements
None
List your Kling elements: named reference groups you can address in a prompt as @name.
POST
/kling-elements
studio:write
Create a Kling element from a name, a description and two to four images or one video.
GET
/kling-elements/{id}
None
One Kling element.
PATCH
/kling-elements/{id}
studio:write
Change a Kling element’s name, description or category.
DELETE
/kling-elements/{id}
studio:write
Delete a Kling element.
GET /avatars
Query
Field
Type
Required
Description
cursor
string
The previous page’s cursor.
limit
integer
How many to return.
POST /avatars
Body
Field
Type
Required
Description
age
string
Apparent age, e.g. ’20s’, ‘35’, ‘middle-aged’. Required: the prompt writer describes the character from these traits.
defaultVoiceId
string
A voiceId from list_voices, used as this avatar’s default voice.
description
string
Free-text description of the character. The strongest single input when no reference photos are given.
ethnicity
string
Optional ethnicity, for a more specific likeness.
gender
string
Gender presentation. Required, same reason as age.
getCost
boolean
Return the credit cost estimate instead of creating (nothing runs, nothing is charged).
lookOutputId
string
A caller-minted id for the first look.
name
string
Avatar name, at least 3 characters.
niche
string[]
Content niches this character is for, e.g. [“fitness”,“nutrition”].
referenceImageUrls
string[]
Photos of a REAL PERSON to anchor identity to: each a URL or a previous output id. Only use photos of someone who has agreed to being cloned.
style
string
Visual style hint for the portrait, e.g. “editorial”, “cinematic”. Not stored on the avatar.
PATCH /avatars/{avatarId}
Body
Field
Type
Required
Description
afterId
string
Place it immediately after this item of the same list.
beforeId
string
Place it immediately before this item of the same list.
defaultLookId
string
A look id from get_avatar. Becomes the avatar’s default look AND its profile photo.
defaultVoiceId
string or null
A voiceId from list_voices, or null to clear it.
description
string
What the avatar is, in words. An empty string clears it.
name
string
New name, at least 3 characters.
ops
value[]
Look and sheet changes, applied in order before the field updates. NOT a transaction: a failure part-way leaves earlier ops applied.
position
top | bottom
Place it at an end of the list instead of beside an item. Name neighbors or a position, not both.
POST /avatars/{avatarId}/looks
Body
Field
Type
Required
Description
imageUrl
string
One image to add as a look.
imageUrls
string[]
Images to add as looks.
items
object[]
Looks to add, when the caller names their own ids or names. Wins over imageUrls and imageUrl.
POST /avatars/{avatarId}/sheets
Body
Field
Type
Required
Description
imageUrl
string
One image to attach as a sheet.
imageUrls
string[]
Images to attach as sheets.
items
object[]
Sheets to add. Wins over imageUrls and imageUrl.
GET /voices
Query
Field
Type
Required
Description
cursor
string
The previous page’s cursor.
favorited
boolean
Only favorited voices.
limit
integer
How many to return.
GET /kling-elements
Query
Field
Type
Required
Description
cursor
string
The previous page’s cursor.
limit
integer
How many to return.
POST /kling-elements
Body
Field
Type
Required
Description
description
string
Yes
What the Kling element represents (required).
name
string
Yes
Referenced in the prompt as @name.
category
auto | character | location | prop
Kind of entity (default ‘auto’).
images
string[]
2-4 image URLs or output-id tokens.
video
string
A single video URL or output-id token (alternative to images).
PATCH /kling-elements/{id}
Body
Field
Type
Required
Description
category
auto | character | location | prop
What kind of Kling element this is. ‘auto’ lets the server classify it from the image.
description
string
What this Kling element is, in words. This is what makes it findable later.
name
string
Rename the Kling element.
See the Generate guide for the workflow, chaining, and cost preflight.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"ContentHero","description":"Create, edit, schedule, and publish content from your AI assistant. Generate images, video, and voiceovers, plan your content calendar, and draft on-brand copy, from hooks and scripts to captions and ads, grounded in what already performs for you.","colors":{"primary":"#d4af37","light":"#e0c25a","dark":"#b89a30"},"logo":{"light":"https://mintcdn.com/contenthero/k4OiX1Sa6r0RKHqA/logo/light.svg?fit=max\u0026auto=format\u0026n=k4OiX1Sa6r0RKHqA\u0026q=85\u0026s=504e91b0415e02ca2679249bcda5f07f","dark":"https://mintcdn.com/contenthero/k4OiX1Sa6r0RKHqA/logo/dark.svg?fit=max\u0026auto=format\u0026n=k4OiX1Sa6r0RKHqA\u0026q=85\u0026s=46f7e067bfcc6ecc9ada76312a822a6f"},"favicon":"https://mintcdn.com/contenthero/k4OiX1Sa6r0RKHqA/favicon.svg?fit=max\u0026auto=format\u0026n=k4OiX1Sa6r0RKHqA\u0026q=85\u0026s=6508bbfd99dd3c47d8e4b1c57702cad0","navbar":{"links":[{"href":"https://app.contenthero.ai","label":"App"},{"href":"https://github.com/contenthero-ai/skills","label":"Skills"}],"primary":{"type":"button","label":"Get an API key","href":"https://app.contenthero.ai"}},"footer":{"socials":{"github":"https://github.com/contenthero-ai"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","grok"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"contenthero","hasAudioNarration":false,"actualSubdomain":"contenthero","customDomains":["docs.contenthero.ai"],"gitSource":{"type":"github","owner":"contenthero-ai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b099a29a6ac4123050f6ea9","clientVersion":"0.0.4344","searchFilterCounts":[{"language":"default","tag":"MCP","count":27},{"language":"default","tag":"Set up your host","count":17},{"language":"default","tag":"API Reference","count":16},{"language":"default","tag":"Cookbook","count":12},{"language":"default","tag":"Guides","count":10},{"language":"default","tag":"CLI","count":10},{"language":"default","tag":"Tool reference","count":8},{"language":"default","tag":"Skills","count":5},{"language":"default","tag":"Building with ContentHero","count":4},{"language":"default","tag":"Get Started","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/generate","slug":"/api-reference/generate","pageMetadata":{"title":"Generate","description":"Generation, status, reference sheets, transcription, models, media, avatars, voices and Kling elements endpoints.","href":"/api-reference/generate"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Generation, status, reference sheets, transcription, models, media, avatars, voices and Kling elements endpoints.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,Heading,Table}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Base URL `,_jsx(_components.code,{children:`https://app.contenthero.ai/api/v1`}),`. All endpoints take a bearer API key. The tables on this page are generated from the route contract: the Scope column is the scope the key needs (`,_jsx(_components.code,{children:`None`}),` means any valid key), and the fields under a route are its query, body and, where declared, its answer.`]}),`\n`,_jsx(Heading,{level:`2`,id:`generation`,children:`Generation`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`POST /studio/generate`}),` takes a `,_jsx(_components.code,{children:`contentType`}),` (`,_jsx(_components.code,{children:`image`}),`, `,_jsx(_components.code,{children:`video`}),` or `,_jsx(_components.code,{children:`audio`}),`) and a `,_jsx(_components.code,{children:`modelId`}),`; the model registry decides which other fields apply. It smart-waits, then answers the asset or an `,_jsx(_components.code,{children:`outputId`}),` to poll. Pass `,_jsx(_components.code,{children:`getCost: true`}),` to preview the cost only. A long post transcription answers `,_jsx(_components.code,{children:`202`}),` with `,_jsx(_components.code,{children:`status: \"running\"`}),`: ask again with the same post to follow it, free.`]}),`\n`,_jsxs(_components.p,{children:[`A generation reference (start frame, image input, audio) accepts a raw URL or a ContentHero output-id token `,_jsx(_components.code,{children:`\u003cuuid>-\u003cN>`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method`}),_jsx(_components.th,{children:`Path`}),_jsx(_components.th,{children:`Scope`}),_jsx(_components.th,{children:`Purpose`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/studio/generate`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`studio:generate`})}),_jsxs(_components.td,{children:[`Generate an image, a video or audio (speech, music, sound effects), or run an upscale, background removal, layer separation or lip-sync. `,_jsx(_components.code,{children:`contentType`}),` picks the family and the model registry entry for `,_jsx(_components.code,{children:`modelId`}),` decides what else is accepted. Waits for a short job and answers a pending `,_jsx(_components.code,{children:`outputId`}),` for a long one.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/studio/generate/{outputId}`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`studio:generate`})}),_jsxs(_components.td,{children:[`Poll one generation by its `,_jsx(_components.code,{children:`outputId`}),`: its status, and its files once it has finished. Reading never starts or finishes work.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/studio/reference-sheet`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`studio:generate`})}),_jsx(_components.td,{children:`Generate a reference sheet: a typed panel layout drawn from a source image.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/studio/audio/edit`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`studio:generate`})}),_jsx(_components.td,{children:`Edit existing audio: isolate a voice, enhance speech or split stems. The registry names the model that performs the operation.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/studio/transcribe`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`studio:generate`})}),_jsxs(_components.td,{children:[`Transcribe speech to text from an audio file (`,_jsx(_components.code,{children:`audioUrl`}),`), a public video page (`,_jsx(_components.code,{children:`videoUrl`}),`) or a tracked post (`,_jsx(_components.code,{children:`contentId`}),`). Not free: pass `,_jsx(_components.code,{children:`getCost`}),` first to price it.`]})]})]})]}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`POST /studio/generate`,id:`post-studio-generate`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`modelId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`The model id, as list_models names it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`aspectRatio`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Validated per model.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`audioEnabled`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Generate audio, on a model that supports it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`avatarId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`File the result onto this avatar as a new look (images only).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`background`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Background handling declared by the model, subject to output format compatibility.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`compositionPlan`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Music only, instead of prompt: the song section by section. Its length is the sum of its chunks, so durationSeconds is not sent with it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`contentType`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`image`}),` | `,_jsx(_components.code,{children:`video`}),` | `,_jsx(_components.code,{children:`audio`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The medium this call asks for. When given, a model of another medium is refused.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`duration`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Clip length in seconds. Model-dependent.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`durationSeconds`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Length in seconds, for music and sound effects.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`frameCount`})}),_jsx(_components.td,{children:`integer or string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`GIF frame count declared by the model. Available only for GIF output.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`frameDurationMs`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`GIF frame duration in milliseconds, subject to the model limits.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`frameSize`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`GIF frame size from the model declared presets, subject to its sprite sheet limits.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`getCost`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Return the credit cost estimate instead of generating (nothing runs, nothing is charged).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`keepInputLength`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Video edit only: keep the input video’s full length instead of a set duration.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`kind`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`generate`}),` | `,_jsx(_components.code,{children:`upscale`}),` | `,_jsx(_components.code,{children:`lip-sync`}),` | `,_jsx(_components.code,{children:`voice`}),` | `,_jsx(_components.code,{children:`background-removal`}),` | `,_jsx(_components.code,{children:`enhance`}),` | `,_jsx(_components.code,{children:`layer-separation`}),` | `,_jsx(_components.code,{children:`stem-separation`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The work this call asks for, in the registry’s words. When given, a model that does other work is refused.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`negativePrompt`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`What to avoid, on a model that supports it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`numGenerations`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Number of variations (video models).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`numImages`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Number of images (image models).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`outputFormat`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Output format declared by the model, subject to its input and background restrictions.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`outputId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The caller’s own id for this run, a UUID. A retry with the same id returns the job already started.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`parameters`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Model-specific parameters passed to the provider.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`placement`})}),_jsx(_components.td,{children:`object or object`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Where the asset lands, interpreted against the project’s type. VIDEO TIMELINE: append to the end, at a time, at the playhead, replacing an existing clip, or filling a time range (omitted places it at the playhead when known, else appends). CANVAS DESIGN: a layer on a slide (slideId / slideIndex, default the focused slide; fit contain|cover|none; a nine-point anchor; and design-pixel x/y/width/height).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`playheadFrame`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The current playhead frame, for playhead-relative timeline placement.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`projectId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The project to place the result on. Omit for a standalone library output.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`prompt`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The text prompt.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`promptInfluence`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`How literally a sound effect follows its prompt (0 to 1).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`quality`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Quality mode, for models that expose it separately. Validated per model.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`references`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{}),_jsx(_components.td,{})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`resolution`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Validated per model.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`seed`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`A seed, on a model that supports one.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`storeForInpainting`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Music only: keep the song with the provider so a later compositionPlan can reuse stretches of it, which is how one section is edited.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`text`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The words to speak, for a speech model.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`upgradeFromOutputId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Upgrade a completed draft output owned by the caller. The model must declare draftUpgrade. Shot settings are inherited and cannot change.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`upgradeSlot`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The output slot of the source draft. Omitted selects the first output.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`upscaleFactor`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Upscale factor, for an upscale model. Validated per model.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`voiceId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The voice id, for a speech model.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`voiceName`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The voice name, for display only.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`voiceSettings`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Voice delivery dials, for a speech model that declares them.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`withTimestamps`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Music only: also return the sung words with their start and end times, and save them as the song’s transcript.`})]})]})]})]}),_jsxs(Accordion,{title:`POST /studio/reference-sheet`,id:`post-studio-reference-sheet`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sheetType`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`One of the sheet types listed by get_model(‘reference-sheets’).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`aspectRatio`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The sheet’s aspect ratio, one the sheet’s image model offers (get_model lists them). Omitted uses the sheet type’s default.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`avatarId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Optional avatar id from list_avatars. Associate the sheet with that avatar, so a character sheet built for an avatar stays filed against it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`getCost`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Return the credit cost estimate instead of generating (nothing runs, nothing is charged).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`numImages`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Number of sheet variations (1-4). Defaults to 1.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`outputId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The caller’s own id for this run, a UUID. A retry with the same id returns the job already started.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`panelCount`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`How many panels the sheet holds, a whole number within the range get_model(‘reference-sheets’) reports. Omitted uses the sheet type’s default.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`prompt`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Describe the subject or how you will use the sheet. Required when no referenceImages are given (text-only sheets); otherwise optional context (the source image leads).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`referenceImages`})}),_jsx(_components.td,{children:`string[]`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Source images the sheet is built from: each a URL or a previous output id (e.g. “\u003cid>” or “\u003cid>-2”) to chain from an earlier generation.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sheetName`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Optional name for the sheet.`})]})]})]})]}),_jsxs(Accordion,{title:`POST /studio/audio/edit`,id:`post-studio-audio-edit`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`clipIds`})}),_jsx(_components.td,{children:`string[]`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`IN-PLACE mode: enhance or split the audio of these clips on projectId. Omit with inPlace:true to edit every audible clip on the timeline.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`durationSeconds`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`File mode: the source audio length in seconds, required for getCost and for enhancement pricing when the source is not a stored ContentHero asset. In-place mode ignores it: the cost comes from the clips.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`getCost`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Return the credit cost estimate instead of running (nothing runs, nothing is charged).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`inPlace`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`IN-PLACE mode for the whole timeline, without naming clips. Implied when clipIds is given.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`modelId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Instead of operation: an audio model that takes one audio file and returns audio (it resolves to the operation it performs). list_models (contentType audio) names them; get_model gives one model’s inputs and whether it finishes at once or is polled with get_status.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`operation`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`isolate`}),` | `,_jsx(_components.code,{children:`enhance`}),` | `,_jsx(_components.code,{children:`split`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`isolate: voice isolation. enhance: loudness leveling and noise cleanup. split: vocals, drums, bass and other as four files, or four tracks in in-place mode. The server picks the model that performs it. Omitted: enhance in in-place mode, else isolate.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`outputId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`FILE mode: the caller’s own id for this run, a UUID. A retry with the same id returns the job already started.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`placement`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Where the clip lands: append to the end, at a time, at the playhead, replacing an existing clip, or filling a time range. Omitted places it at the playhead when known, else appends.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`playheadFrame`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The current playhead frame, for playhead-relative placement.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`projectId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The editor project: where to PLACE the result in file mode, or which timeline to edit in in-place mode. Omit for a standalone library output.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sourceUrl`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`FILE mode: the audio file to process, as a URL or a previous output id. Omit in in-place mode, where the sources come from the clips.`})]})]})]})]}),_jsxs(Accordion,{title:`POST /studio/transcribe`,id:`post-studio-transcribe`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`audioUrl`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Public URL of the audio file to transcribe. Pass one of audioUrl, videoUrl or contentId.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`contentId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The tracked post whose video to transcribe: its id or short id, its link, or the platform’s own id for it. Its video must be downloaded first with analyze_content kind video. Pass one of audioUrl, videoUrl or contentId.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`diarize`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Label each speaker (diarization), for an audio file.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`getCost`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Return the credit cost estimate instead of transcribing (nothing runs, nothing is charged).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`languageCode`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`ISO language hint for an audio file. Auto-detected when omitted; a post’s language is always detected.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`slide`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Which slide of a carousel post, by the position get_content reports for it: an image slide returns its image, a video slide its frames. Only with contentId.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`videoUrl`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Link to a public video page (YouTube, Instagram, TikTok, X) whose spoken words to transcribe. Pass one of audioUrl, videoUrl or contentId.`})]})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`models`,children:`Models`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method`}),_jsx(_components.th,{children:`Path`}),_jsx(_components.th,{children:`Scope`}),_jsx(_components.th,{children:`Purpose`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/models`})}),_jsx(_components.td,{children:`None`}),_jsxs(_components.td,{children:[`The live model catalog, resolved from the registry: the authoritative list of valid `,_jsx(_components.code,{children:`modelId`}),` values and what each accepts.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/models/{id}`})}),_jsx(_components.td,{children:`None`}),_jsx(_components.td,{children:`The full request shape of one model, so a generation can be built from its real parameters.`})]})]})]}),`\n`,_jsx(AccordionGroup,{children:_jsxs(Accordion,{title:`GET /models`,id:`get-models`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Query`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`contentType`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`image`}),` | `,_jsx(_components.code,{children:`video`}),` | `,_jsx(_components.code,{children:`audio`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Filter to one content type.`})]})})]})]})}),`\n`,_jsx(Heading,{level:`2`,id:`media`,children:`Media`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`GET /download/{id}`}),` answers `,_jsx(_components.code,{children:`404`}),` when the id names nothing of yours and `,_jsx(_components.code,{children:`409`}),` when the file is not made yet. Each link it returns is a save link that names the file, needs no sign-in and does not expire. It never spends.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method`}),_jsx(_components.th,{children:`Path`}),_jsx(_components.th,{children:`Scope`}),_jsx(_components.th,{children:`Purpose`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/media`})}),_jsx(_components.td,{children:`None`}),_jsxs(_components.td,{children:[`List the files in your library, or the stock catalog with `,_jsx(_components.code,{children:`source=stock`}),`, a page at a time.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/media/{token}`})}),_jsx(_components.td,{children:`None`}),_jsxs(_components.td,{children:[`One media item in detail, by its short id or full id (a generation adds `,_jsx(_components.code,{children:`-N`}),` for one variation).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PATCH`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/media/{token}`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`library:write`})}),_jsx(_components.td,{children:`Rename or describe a stored file you own. A generated output or a stock item has nothing to set and is refused.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/media/search`})}),_jsx(_components.td,{children:`None`}),_jsx(_components.td,{children:`Semantic search over your library (creations, uploads, licensed stock, brand assets), ranked, with matched scene timestamps.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/media/batch`})}),_jsx(_components.td,{children:`None`}),_jsx(_components.td,{children:`Resolve a mixed batch of media references (URLs or media ids) to vision-ready URLs and light metadata.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/download/{id}`})}),_jsx(_components.td,{children:`None`}),_jsxs(_components.td,{children:[`Save links for a file of yours or a project export, by media id or export id: `,_jsx(_components.code,{children:`{ files: [{ mediaId?, name, url }] }`}),`.`]})]})]})]}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`GET /media`,id:`get-media`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Query`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`archived`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Only archived files.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`collection`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`photos`}),` | `,_jsx(_components.code,{children:`videos`}),` | `,_jsx(_components.code,{children:`gifs`}),` | `,_jsx(_components.code,{children:`stickers`}),` | `,_jsx(_components.code,{children:`sounds`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Stock only, and required with it. Which part of the stock catalog to read: ‘photos’, ‘videos’, ‘gifs’, ‘stickers’ or ‘sounds’.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`contentType`})}),_jsx(_components.td,{children:`string[]`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Only these media types.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cursor`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The previous page’s cursor.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`favorited`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Only favorited files.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`limit`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`How many to return.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`order`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`asc`}),` | `,_jsx(_components.code,{children:`desc`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The sort direction.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`orientation`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`landscape`}),` | `,_jsx(_components.code,{children:`portrait`}),` | `,_jsx(_components.code,{children:`square`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Stock photos and videos only. Narrow the results to one shape: ‘landscape’, ‘portrait’ or ‘square’. Omit it to read every shape.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`origin`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`creation`}),` | `,_jsx(_components.code,{children:`sheet`}),` | `,_jsx(_components.code,{children:`look`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Creations only. Narrow to one kind of generation: ‘creation’ (normal generations), ‘sheet’ (reference sheets), or ‘look’. The same word an item’s origin says. Omit to list all.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`query`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Stock only. Describe what to find. Omit it to read the collection’s featured items.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`smallCopies`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Link each image’s small copy instead of the file itself, where the library keeps one: for drawing images small, as code that shows many at once does. Never for downloading or delivering a file, or showing it large.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sort`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`createdAt`}),` | `,_jsx(_components.code,{children:`fileName`}),` | `,_jsx(_components.code,{children:`sizeBytes`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The field to sort by.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`source`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`all`}),` | `,_jsx(_components.code,{children:`creations`}),` | `,_jsx(_components.code,{children:`uploads`}),` | `,_jsx(_components.code,{children:`exports`}),` | `,_jsx(_components.code,{children:`stock`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Which media to read: ‘all’ (the default, every file the account keeps), ‘creations’ (studio generations), ‘uploads’ (files the user uploaded), ‘exports’ (renders of their projects), or ‘stock’ (the stock catalog, which is not part of ‘all’).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`status`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`completed`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`A listed file exists once its generation completed, so this is the only value.`})]})]})]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Response`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`media`})}),_jsx(_components.td,{children:`object[]`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`nextCursor`})}),_jsx(_components.td,{children:`string or null`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{})]})]})]})]}),_jsxs(Accordion,{title:`GET /media/{token}`,id:`get-media-token`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Query`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`source`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`creations`}),` | `,_jsx(_components.code,{children:`uploads`}),` | `,_jsx(_components.code,{children:`exports`}),` | `,_jsx(_components.code,{children:`stock`}),` | `,_jsx(_components.code,{children:`files`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Narrow the lookup to one library: creations (a studio output), uploads (an editor upload), stock (a used stock item), or files (any stored file the Library shows).`})]})})]})]}),_jsxs(Accordion,{title:`PATCH /media/{token}`,id:`patch-media-token`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`A description of the file, in your own words.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The new name for the file.`})]})]})]})]}),_jsxs(Accordion,{title:`GET /media/search`,id:`get-media-search`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Query`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`query`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`A natural-language description of the media to find, describing its visible or audible content.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cursor`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The previous page’s cursor.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`kinds`})}),_jsx(_components.td,{children:`string[]`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Restrict results to these media kinds. Omit to search all kinds.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`limit`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`How many to return.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`smallCopies`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Link each image’s small copy instead of the file itself, where the library keeps one: for drawing images small, as code that shows many at once does. Never for downloading or delivering a file, or showing it large.`})]})]})]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Response`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`nextCursor`})}),_jsx(_components.td,{children:`string or null`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`results`})}),_jsx(_components.td,{children:`object[]`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`emptyReason`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{}),_jsx(_components.td,{})]})]})]})]}),_jsxs(Accordion,{title:`POST /media/batch`,id:`post-media-batch`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`items`})}),_jsx(_components.td,{children:`value[]`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`The media to resolve.`})]})})]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Response`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`items`})}),_jsx(_components.td,{children:`object[]`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{})]})})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`avatars-voices-and-kling-elements`,children:`Avatars, voices and Kling elements`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method`}),_jsx(_components.th,{children:`Path`}),_jsx(_components.th,{children:`Scope`}),_jsx(_components.th,{children:`Purpose`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/avatars`})}),_jsx(_components.td,{children:`None`}),_jsx(_components.td,{children:`List your avatars.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/avatars`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`studio:generate`})}),_jsx(_components.td,{children:`Create an avatar. It runs a generation and charges credits, which is why it needs the generate scope.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/avatars/{avatarId}`})}),_jsx(_components.td,{children:`None`}),_jsx(_components.td,{children:`One avatar in full, including its looks.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PATCH`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/avatars/{avatarId}`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`studio:write`})}),_jsxs(_components.td,{children:[`Update an avatar, and add or remove its looks through `,_jsx(_components.code,{children:`ops`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DELETE`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/avatars/{avatarId}`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`studio:write`})}),_jsx(_components.td,{children:`Delete an avatar (a soft delete).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/avatars/{avatarId}/looks`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`studio:write`})}),_jsxs(_components.td,{children:[`File images you already own onto an avatar as looks. To generate a new look, call `,_jsx(_components.code,{children:`POST /studio/generate`}),` with `,_jsx(_components.code,{children:`avatarId`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/avatars/{avatarId}/sheets`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`studio:write`})}),_jsx(_components.td,{children:`Attach images you already own to an avatar as sheets. Each answer carries the sheet as the sheets list returns it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DELETE`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/avatars/{avatarId}/looks/{lookId}`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`studio:write`})}),_jsx(_components.td,{children:`Remove one look from an avatar. The image goes to the trash and is recoverable for 30 days.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/voices`})}),_jsx(_components.td,{children:`None`}),_jsx(_components.td,{children:`List your saved voices, favorites first, then most recently used.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/voices/{voiceId}`})}),_jsx(_components.td,{children:`None`}),_jsx(_components.td,{children:`One saved voice in full.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/kling-elements`})}),_jsx(_components.td,{children:`None`}),_jsxs(_components.td,{children:[`List your Kling elements: named reference groups you can address in a prompt as `,_jsx(_components.code,{children:`@name`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/kling-elements`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`studio:write`})}),_jsx(_components.td,{children:`Create a Kling element from a name, a description and two to four images or one video.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/kling-elements/{id}`})}),_jsx(_components.td,{children:`None`}),_jsx(_components.td,{children:`One Kling element.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PATCH`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/kling-elements/{id}`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`studio:write`})}),_jsx(_components.td,{children:`Change a Kling element’s name, description or category.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DELETE`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/kling-elements/{id}`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`studio:write`})}),_jsx(_components.td,{children:`Delete a Kling element.`})]})]})]}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`GET /avatars`,id:`get-avatars`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Query`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cursor`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The previous page’s cursor.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`limit`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`How many to return.`})]})]})]})]}),_jsxs(Accordion,{title:`POST /avatars`,id:`post-avatars`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`age`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Apparent age, e.g. ’20s’, ‘35’, ‘middle-aged’. Required: the prompt writer describes the character from these traits.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`defaultVoiceId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`A voiceId from list_voices, used as this avatar’s default voice.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Free-text description of the character. The strongest single input when no reference photos are given.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ethnicity`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Optional ethnicity, for a more specific likeness.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`gender`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Gender presentation. Required, same reason as age.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`getCost`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Return the credit cost estimate instead of creating (nothing runs, nothing is charged).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lookOutputId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`A caller-minted id for the first look.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Avatar name, at least 3 characters.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`niche`})}),_jsx(_components.td,{children:`string[]`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Content niches this character is for, e.g. [“fitness”,“nutrition”].`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`referenceImageUrls`})}),_jsx(_components.td,{children:`string[]`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Photos of a REAL PERSON to anchor identity to: each a URL or a previous output id. Only use photos of someone who has agreed to being cloned.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`style`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Visual style hint for the portrait, e.g. “editorial”, “cinematic”. Not stored on the avatar.`})]})]})]})]}),_jsxs(Accordion,{title:`PATCH /avatars/{avatarId}`,id:`patch-avatars-avatarid`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`afterId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Place it immediately after this item of the same list.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`beforeId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Place it immediately before this item of the same list.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`defaultLookId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`A look id from get_avatar. Becomes the avatar’s default look AND its profile photo.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`defaultVoiceId`})}),_jsx(_components.td,{children:`string or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`A voiceId from list_voices, or null to clear it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`What the avatar is, in words. An empty string clears it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`New name, at least 3 characters.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ops`})}),_jsx(_components.td,{children:`value[]`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Look and sheet changes, applied in order before the field updates. NOT a transaction: a failure part-way leaves earlier ops applied.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`position`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`top`}),` | `,_jsx(_components.code,{children:`bottom`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Place it at an end of the list instead of beside an item. Name neighbors or a position, not both.`})]})]})]})]}),_jsxs(Accordion,{title:`POST /avatars/{avatarId}/looks`,id:`post-avatars-avatarid-looks`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`imageUrl`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`One image to add as a look.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`imageUrls`})}),_jsx(_components.td,{children:`string[]`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Images to add as looks.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`items`})}),_jsx(_components.td,{children:`object[]`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Looks to add, when the caller names their own ids or names. Wins over imageUrls and imageUrl.`})]})]})]})]}),_jsxs(Accordion,{title:`POST /avatars/{avatarId}/sheets`,id:`post-avatars-avatarid-sheets`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`imageUrl`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`One image to attach as a sheet.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`imageUrls`})}),_jsx(_components.td,{children:`string[]`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Images to attach as sheets.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`items`})}),_jsx(_components.td,{children:`object[]`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Sheets to add. Wins over imageUrls and imageUrl.`})]})]})]})]}),_jsxs(Accordion,{title:`GET /voices`,id:`get-voices`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Query`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cursor`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The previous page’s cursor.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`favorited`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Only favorited voices.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`limit`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`How many to return.`})]})]})]})]}),_jsxs(Accordion,{title:`GET /kling-elements`,id:`get-kling-elements`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Query`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cursor`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The previous page’s cursor.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`limit`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`How many to return.`})]})]})]})]}),_jsxs(Accordion,{title:`POST /kling-elements`,id:`post-kling-elements`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`What the Kling element represents (required).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Referenced in the prompt as @name.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`category`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`auto`}),` | `,_jsx(_components.code,{children:`character`}),` | `,_jsx(_components.code,{children:`location`}),` | `,_jsx(_components.code,{children:`prop`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Kind of entity (default ‘auto’).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`images`})}),_jsx(_components.td,{children:`string[]`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`2-4 image URLs or output-id tokens.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`video`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`A single video URL or output-id token (alternative to images).`})]})]})]})]}),_jsxs(Accordion,{title:`PATCH /kling-elements/{id}`,id:`patch-kling-elements-id`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`category`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`auto`}),` | `,_jsx(_components.code,{children:`character`}),` | `,_jsx(_components.code,{children:`location`}),` | `,_jsx(_components.code,{children:`prop`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`What kind of Kling element this is. ‘auto’ lets the server classify it from the image.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`What this Kling element is, in words. This is what makes it findable later.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Rename the Kling element.`})]})]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`See the `,_jsx(_components.a,{href:`/guides/generate`,children:`Generate guide`}),` for the workflow, chaining, and cost preflight.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Generate","description":"Generation, status, reference sheets, transcription, models, media, avatars, voices and Kling elements endpoints.","href":"/api-reference/generate"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Generation","slug":"generation","depth":2,"children":[]},{"title":"Models","slug":"models","depth":2,"children":[]},{"title":"Media","slug":"media","depth":2,"children":[]},{"title":"Avatars, voices and Kling elements","slug":"avatars-voices-and-kling-elements","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"contenthero","siteName":"ContentHero","title":"Generate - ContentHero","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-27T14:56:43.818Z","originalFileLocation":"api-reference/generate.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Generation, status, reference sheets, transcription, models, media, avatars, voices and Kling elements endpoints.\">\u003cmeta data-mint-head name=\"application-name\" content=\"ContentHero\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/contenthero/_Ux406lHXXT7Cq-T/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/contenthero/_Ux406lHXXT7Cq-T/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/contenthero/_Ux406lHXXT7Cq-T/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/contenthero/_Ux406lHXXT7Cq-T/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/contenthero/_Ux406lHXXT7Cq-T/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/contenthero/_Ux406lHXXT7Cq-T/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/contenthero/_Ux406lHXXT7Cq-T/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/contenthero/_Ux406lHXXT7Cq-T/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/contenthero/_Ux406lHXXT7Cq-T/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Generate - ContentHero\">\u003cmeta data-mint-head property=\"og:description\" content=\"Generation, status, reference sheets, transcription, models, media, avatars, voices and Kling elements endpoints.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ContentHero\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.contenthero.ai/api-reference/generate\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://contenthero.mintlify.site/_mintlify/api/og/v2?division=API+Reference\u0026amp;title=Generate\u0026amp;description=Generation%2C+status%2C+reference+sheets%2C+transcription%2C+models%2C+media%2C+avatars%2C+voices+and+Kling+elements+endpoints.\u0026amp;theme=5b5669ac4d0e6c81971d3e53\u0026amp;signature=d990b2481e4d45316f5faf7cce8cfd53e4b2e078f4c2f8c8ebc17bd2223ba7f2\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Generate - ContentHero\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Generation, status, reference sheets, transcription, models, media, avatars, voices and Kling elements endpoints.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://contenthero.mintlify.site/_mintlify/api/og/v2?division=API+Reference\u0026amp;title=Generate\u0026amp;description=Generation%2C+status%2C+reference+sheets%2C+transcription%2C+models%2C+media%2C+avatars%2C+voices+and+Kling+elements+endpoints.\u0026amp;theme=5b5669ac4d0e6c81971d3e53\u0026amp;signature=d990b2481e4d45316f5faf7cce8cfd53e4b2e078f4c2f8c8ebc17bd2223ba7f2\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/contenthero/_Ux406lHXXT7Cq-T/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ContentHero\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#d4af37\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.contenthero.ai/api-reference/generate\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/generate.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.contenthero.ai/#organization\",\"name\":\"ContentHero\",\"url\":\"https://docs.contenthero.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/contenthero/k4OiX1Sa6r0RKHqA/logo/light.svg?fit=max\u0026auto=format\u0026n=k4OiX1Sa6r0RKHqA\u0026q=85\u0026s=504e91b0415e02ca2679249bcda5f07f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.contenthero.ai#website\",\"name\":\"ContentHero\",\"url\":\"https://docs.contenthero.ai\",\"publisher\":{\"@id\":\"https://docs.contenthero.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.contenthero.ai/api-reference/generate#webpage\",\"url\":\"https://docs.contenthero.ai/api-reference/generate\",\"name\":\"Generate\",\"description\":\"Generation, status, reference sheets, transcription, models, media, avatars, voices and Kling elements endpoints.\",\"dateModified\":\"2026-11-27T14:56:43.818Z\",\"isPartOf\":{\"@id\":\"https://docs.contenthero.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.contenthero.ai/api-reference/generate#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.contenthero.ai/api-reference/generate#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://docs.contenthero.ai/api-reference/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Generate\",\"item\":\"https://docs.contenthero.ai/api-reference/generate\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.contenthero.ai/api-reference/generate#article\",\"headline\":\"Generate\",\"name\":\"Generate\",\"description\":\"Generation, status, reference sheets, transcription, models, media, avatars, voices and Kling elements endpoints.\",\"url\":\"https://docs.contenthero.ai/api-reference/generate\",\"mainEntityOfPage\":{\"@id\":\"https://docs.contenthero.ai/api-reference/generate#webpage\"},\"dateModified\":\"2026-11-27T14:56:43.818Z\",\"publisher\":{\"@id\":\"https://docs.contenthero.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.contenthero.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ContentHero\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ContentHero\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/generate.md","siteName":"ContentHero","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"MCP","pages":[{"title":"MCP","href":"/mcp/overview"}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/cli/overview"}]},{"tab":"Skills","pages":[{"title":"Skills","href":"/skills/overview"}]},{"tab":"Cookbook","pages":[{"title":"Cookbook","href":"/cookbook/overview"}]},{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"API Reference","description":"The /api/v1 REST surface, the TypeScript SDK, and how the transports relate.","href":"/api-reference/overview"},{"title":"Generate","href":"/api-reference/generate"},{"title":"Library","description":"Uploads, imports, library folders, and the favorite, archive and share endpoints.","href":"/api-reference/library"},{"title":"Pipeline","href":"/api-reference/pipeline"},{"title":"Brand","href":"/api-reference/brand"},{"title":"Inspiration","href":"/api-reference/inspiration"},{"title":"Editor","href":"/api-reference/editor"},{"title":"Account","href":"/api-reference/account"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Generate - ContentHero","deploymentId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","buildId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","dynamics":[],"chunks":[]}