Ngram
ngramNgram creates AI-generated videos and images, manages rendering jobs, and delivers completion events through webhooks.
Acciones disponibles (14)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Cancel VideoNGRAM_CANCEL_VIDEOAcciónIrreversibly request cancellation of an in-progress Ngram video render. Confirm the target video before calling. Ngram states that cancellation does not refund work already completed.
NGRAM_CANCEL_VIDEOAcciónIrreversibly request cancellation of an in-progress Ngram video render. Confirm the target video before calling. Ngram states that cancellation does not refund work already completed.
Parámetros de entrada
video_idstringObligatorioID of the in-progress Ngram video to cancel, beginning with vid_. Cancellation is irreversible and may not refund work already completed.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Webhook SubscriptionNGRAM_CREATE_WEBHOOK_SUBSCRIPTIONAcciónSubscribe a public HTTPS endpoint to all account-wide Ngram video completion or failure events of one type. The response includes a signing secret that is shown only at creation and must be retained to verify webhook signatures.
NGRAM_CREATE_WEBHOOK_SUBSCRIPTIONAcciónSubscribe a public HTTPS endpoint to all account-wide Ngram video completion or failure events of one type. The response includes a signing secret that is shown only at creation and must be retained to verify webhook signatures.
Parámetros de entrada
event_typestringObligatorioenumAccount-wide Ngram video event to deliver.
video.completedvideo.failedtarget_urlstringObligatoriouriPublic HTTPS callback URL that will receive matching account-wide events.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Webhook SubscriptionNGRAM_DELETE_WEBHOOK_SUBSCRIPTIONAcciónDelete an Ngram webhook subscription by ID. The operation is idempotent: a missing subscription returns deleted=false rather than an error.
NGRAM_DELETE_WEBHOOK_SUBSCRIPTIONAcciónDelete an Ngram webhook subscription by ID. The operation is idempotent: a missing subscription returns deleted=false rather than an error.
Parámetros de entrada
subscription_idstringObligatorioNgram webhook subscription ID beginning with sub_, returned by webhook subscription creation or listing.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Generate ImageNGRAM_GENERATE_IMAGEAcciónSpend Ngram credits to start one image generation job from a prompt, optionally using one to four public HTTPS reference images for transformation. Inspect NGRAM_GET_CREDITS and NGRAM_GET_RENDER_OPTIONS first, then deliberately set confirm_credit_spend=true and reuse the same idempotency_key for retries. Exact cost has not been live-verified.
NGRAM_GENERATE_IMAGEAcciónSpend Ngram credits to start one image generation job from a prompt, optionally using one to four public HTTPS reference images for transformation. Inspect NGRAM_GET_CREDITS and NGRAM_GET_RENDER_OPTIONS first, then deliberately set confirm_credit_spend=true and reuse the same idempotency_key for retries. Exact cost has not been live-verified.
Parámetros de entrada
promptstringObligatorioDescription of the image to generate or the changes to make to reference images, from 1 to 6000 characters.
model_idstringImage model ID from NGRAM_GET_RENDER_OPTIONS.
style_idstringImage style ID from NGRAM_GET_RENDER_OPTIONS. Supported only for text-only generation without reference_image_urls.
template_idstringImage template ID from NGRAM_GET_RENDER_OPTIONS. Supported only for text-only generation without reference_image_urls.
aspect_ratiostringImage aspect ratio from NGRAM_GET_RENDER_OPTIONS.
idempotency_keystringObligatorioStable unique key for this intended image job. Reuse it when retrying the same request to reduce duplicate jobs or charges.
confirm_credit_spendbooleanObligatorioMust be true to explicitly confirm that this call may consume Ngram credits. It is validated locally and is never sent to Ngram.
reference_image_urlsstring[]One to four public HTTPS source-image URLs to transform. Omit this field to generate an image from text only.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Generate VideoNGRAM_GENERATE_VIDEOAcciónSpend Ngram credits to start one asynchronous video render from text or a public URL. Inspect NGRAM_GET_CREDITS and NGRAM_GET_RENDER_OPTIONS first, then deliberately set confirm_credit_spend=true and supply a stable idempotency_key. Exact per-render cost has not been live-verified.
NGRAM_GENERATE_VIDEOAcciónSpend Ngram credits to start one asynchronous video render from text or a public URL. Inspect NGRAM_GET_CREDITS and NGRAM_GET_RENDER_OPTIONS first, then deliberately set confirm_credit_spend=true and supply a stable idempotency_key. Exact per-render cost has not been live-verified.
Parámetros de entrada
promptstringSource text or instructions. Required and non-blank when source_type is text; optional creative direction when source_type is url.
durationintegerRequested duration in seconds from NGRAM_GET_RENDER_OPTIONS.
scenariostringScenario name from NGRAM_GET_RENDER_OPTIONS.
style_idstringVideo style ID from NGRAM_GET_RENDER_OPTIONS.
voice_idstringVoice ID from NGRAM_GET_RENDER_OPTIONS.
image_urlsstring[]Optional public HTTP(S) image URLs to use as visual source material.
story_flowstringOptional narrative-flow guidance, up to 1024 characters.
source_typestringObligatorioenumWhether to create the video from supplied text or instructions, or from research of a public webpage URL. Choose text when supplying prompt, or url when supplying website_url.
texturlwebsite_urlstringuriPublic HTTP(S) webpage, article, product, or documentation URL. Required when source_type is url and not allowed for text mode.
aspect_ratiostringSupported video aspect ratio from NGRAM_GET_RENDER_OPTIONS.
energy_levelstringOptional energy or pacing direction for the generated video.
video_formatstringVideo format from NGRAM_GET_RENDER_OPTIONS.
deep_researchbooleanWhether Ngram should perform deeper source research before rendering. Omit to use the provider default.
animation_modestringAnimation mode from NGRAM_GET_RENDER_OPTIONS.
idempotency_keystringObligatorioStable unique key for this intended render. Reuse it for retries of the same render to prevent duplicate jobs or credit charges.
video_type_profilestringVideo type profile name from NGRAM_GET_RENDER_OPTIONS.
confirm_credit_spendbooleanObligatorioMust be true to explicitly confirm that this call may consume Ngram credits. It is validated locally and is never sent to Ngram.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get AccountNGRAM_GET_ACCOUNTAcciónReturn the authenticated Ngram account identity, including its id, email, and name.
NGRAM_GET_ACCOUNTAcciónReturn the authenticated Ngram account identity, including its id, email, and name.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get CreditsNGRAM_GET_CREDITSAcciónReturn the connected account's plan and available, reserved, and effective credits. Use effective credits as the spendable balance before generation.
NGRAM_GET_CREDITSAcciónReturn the connected account's plan and available, reserved, and effective credits. Use effective credits as the spendable balance before generation.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get ImageNGRAM_GET_IMAGEAcciónReturn an image job's current status and generated output by its UUID.
NGRAM_GET_IMAGEAcciónReturn an image job's current status and generated output by its UUID.
Parámetros de entrada
image_idstringObligatoriouuidUUID of the Ngram image job returned by image generation or listing.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Render OptionsNGRAM_GET_RENDER_OPTIONSAcciónReturn Ngram's live catalog of supported video and image capabilities, voices, styles, formats, durations, models, templates, and other generation options. Use this before generation instead of assuming catalog values.
NGRAM_GET_RENDER_OPTIONSAcciónReturn Ngram's live catalog of supported video and image capabilities, voices, styles, formats, durations, models, templates, and other generation options. Use this before generation instead of assuming catalog values.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get VideoNGRAM_GET_VIDEOAcciónReturn a video's render status, progress, output URL, or failure information by video ID.
NGRAM_GET_VIDEOAcciónReturn a video's render status, progress, output URL, or failure information by video ID.
Parámetros de entrada
video_idstringObligatorioNgram video ID beginning with vid_, returned by video creation or listing.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Brand KitsNGRAM_LIST_BRAND_KITSAcciónReturn the brand kits available to the connected account for use in generation requests.
NGRAM_LIST_BRAND_KITSAcciónReturn the brand kits available to the connected account for use in generation requests.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List ImagesNGRAM_LIST_IMAGESAcciónReturn up to 100 account image jobs matching an optional status and created-at upper bound. Ngram does not expose a continuation token.
NGRAM_LIST_IMAGESAcciónReturn up to 100 account image jobs matching an optional status and created-at upper bound. Ngram does not expose a continuation token.
Parámetros de entrada
limitintegerMaximum image jobs to return, from 1 to 100.
beforestringdate-timeOnly return image jobs before this ISO-8601 temporal boundary; inclusivity is not verified.
statusstringenumOnly return image jobs in this generation state.
processingcompletedfailed
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List VideosNGRAM_LIST_VIDEOSAcciónReturn up to 100 account videos matching an optional render status and created-at lower bound. This is one bounded response; Ngram provides no continuation token.
NGRAM_LIST_VIDEOSAcciónReturn up to 100 account videos matching an optional render status and created-at lower bound. This is one bounded response; Ngram provides no continuation token.
Parámetros de entrada
limitintegerMaximum videos to return, from 1 to 100.
sincestringdate-timeOnly return videos at or after this ISO 8601 temporal boundary. The provider's exact boundary inclusivity is not documented.
statusstringenumOnly return videos in this render state.
processingcompletedfailed
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Webhook SubscriptionsNGRAM_LIST_WEBHOOK_SUBSCRIPTIONSAcciónReturn the account's video completion and failure webhook subscriptions. Signing secrets are not returned by this list endpoint.
NGRAM_LIST_WEBHOOK_SUBSCRIPTIONSAcciónReturn the account's video completion and failure webhook subscriptions. Signing secrets are not returned by this list endpoint.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not