生成
generate_image
Create images from a text prompt, or edit / restyle existing images by passing them in image_urls together with an instruction. Refer to the input images in the prompt as @image1, @image2 … in the order of image_urls. Write the prompt as a full description: subject, setting, composition, lighting, style, and any text that must appear (in quotes). Ask for up to 4 images at once to give the user options. Set remove_background for a transparent PNG (logos, product cut-outs, stickers). Finished images come back as URLs in the workspace library; show them to the user. For a branded task call get_theme first and fold the brand's colors and tone into the prompt.
料金: Per image, by model. See list_models.
パラメーター
What to create, or how to change the supplied images.
Model id from list_models. Omit for the recommended default.
Images to edit or use as references (subject, style, product). Needs a model with the "edit" capability.
Required, and must be true, whenever image_urls is given: true means the user confirms they own the media or have the consent of everyone who appears or is heard in it, and that it follows the Acceptable Use Policy. Ask the user before you set it for a file they supplied; a false confirmation breaks the terms.
aspect_ratio"1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "4:5" | "5:4" | "21:9"
Shape of the image. Default 1:1.
Exact width in pixels (use with height instead of aspect_ratio).
resolution"1K" | "2K" | "4K"
Output resolution tier, for models that offer one.
Cut the subject out and return a transparent PNG.
Fix the seed to make a result reproducible.
Model-specific options. Call get_model_params to see what a model accepts.
Optional budget project id (from list_projects) to file this spend under.
Name for the result in the library. Defaults to the start of the prompt.
Tags to file the result under.
generate_video
Create a video clip. Text only gives text-to-video; add image_url to animate a still as the first frame; add end_image_url as well to interpolate between two frames; use reference_image_urls to keep a character, product or style consistent. Describe the shot like a director: subject, action, camera move, lighting, mood, and any spoken line in quotes. Video is the most expensive thing here, so agree the idea with the user first (plan in text, or make a still with generate_image and animate that). Rendering takes from half a minute to several minutes: if the response says the job is still running, tell the user and poll check_job. If it says approval is required, give the user the review_url. Refer to the inputs in the prompt as @image1, @image2 … (the start frame, the last frame, then reference_image_urls, in that order), @video1 … (reference_video_urls) and @audio1 … (reference_audio_urls).
料金: Per second, by model and resolution. See list_models.
パラメーター
Model id from list_models. Omit for the recommended default.
First frame to animate. Either an asset_id from the library (ast_…) or a public https URL.
Last frame, for first-and-last-frame interpolation. Either an asset_id from the library (ast_…) or a public https URL.
reference_image_urlsstring[]
Characters, products or style references to keep consistent.
reference_video_urlsstring[]
reference_audio_urlsstring[]
Audio to drive lip-sync or to follow, for models that take it.
Required, and must be true, whenever image_url, end_image_url, reference_image_urls, reference_video_urls or reference_audio_urls is given: true means the user confirms they own the media or have the consent of everyone who appears or is heard in it, and that it follows the Acceptable Use Policy. Ask the user before you set it for a file they supplied; a false confirmation breaks the terms.
Clip length in seconds. Allowed values depend on the model.
aspect_ratio"16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9"
resolution"360p" | "480p" | "720p" | "1080p" | "4K"
Ask for native sound (dialogue, ambience) where the model supports it.
Force the human review step for this clip even when the workspace renders automatically.
Model-specific options. Call get_model_params to see what a model accepts.
Optional budget project id (from list_projects) to file this spend under.
Name for the result in the library. Defaults to the start of the prompt.
Tags to file the result under.
generate_speech
Turn text into spoken audio: voiceovers, narration, dialogue lines. Pick a stock voice with voice_id, or pass character_id to speak in a saved Character's voice. Write the text exactly as it should be spoken; spell out numbers and abbreviations the way they should sound. Up to 5,000 characters per call, or 3,000 on the ElevenLabs models; split longer scripts and join the parts with merge_media.
料金: Per 1,000 characters, by model. See list_models.
パラメーター
Speech model id from list_models. Omit for the default.
A stock voice of the chosen model. See get_model_params for the list.
Speak in this saved Character's voice.
Language hint, e.g. en, tr, es.
Model-specific options. Call get_model_params to see what a model accepts.
Optional budget project id (from list_projects) to file this spend under.
Name for the result in the library. Defaults to the start of the prompt.
Tags to file the result under.
generate_music
Compose original music: songs with lyrics, instrumentals, background beds, jingles and stings. Describe genre, mood, tempo, instruments and how it should develop. Pass lyrics for a vocal track, or set instrumental for none. Use merge_media to lay the result under a video.
料金: Per track or per minute, by model. See list_models.
パラメーター
Style, mood, tempo, instruments, structure.
Lyrics to sing. Omit for an instrumental or to let the model write them.
Target length in seconds, for models that accept one.
Model-specific options. Call get_model_params to see what a model accepts.
Optional budget project id (from list_projects) to file this spend under.
Name for the result in the library. Defaults to the start of the prompt.
Tags to file the result under.
generate_sound_effect
Create a sound effect from a description: foley, impacts, whooshes, ambience, interface sounds. Be concrete about the source, the space and the timing ("a heavy wooden door slams in a stone hall, long reverb").
料金: Per second, by model. See list_models.
パラメーター
Model-specific options. Call get_model_params to see what a model accepts.
Optional budget project id (from list_projects) to file this spend under.
Name for the result in the library. Defaults to the start of the prompt.
Tags to file the result under.
compare_models
Run the same image prompt through 2 to 4 models at once and return the results side by side, so the user can pick the look they prefer before a larger batch. Use a shared seed to keep the comparison fair where models support it.
料金: The sum of one image from each model.
パラメーター
Model ids from list_models (category image).
aspect_ratio"1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "4:5" | "5:4" | "21:9" = "1:1"
Optional budget project id (from list_projects) to file this spend under.
render_html_image
Render HTML and CSS to a PNG. This is the right tool whenever text has to be exact and crisp: banners, social cards, quote graphics, price tags, thumbnails with headlines, simple charts. Compose a generated photo as the background and set the type in HTML on top of it. Layout is flexbox only (no CSS grid, no floats, no <script>). Use inline styles or a <style> block. Images must be https URLs or asset URLs. The Inter typeface is available in regular and bold.
料金: 1 credit
パラメーター
The markup to render. The root element should fill 100% width and height.
Optional budget project id (from list_projects) to file this spend under.
Name for the result in the library. Defaults to the start of the prompt.
Tags to file the result under.
render_html_video
Render an animated HTML composition to an MP4: title cards, lower thirds, kinetic type, animated stats, logo stings. The markup is rendered once per frame with {{tokens}} filled in. Built-in tokens: {{progress}} (0 to 1), {{time}} (seconds), {{frame}}. Declare your own animated numbers in `animate`, e.g. {"x": {"from": -400, "to": 0, "end": 0.8, "ease": "ease-out"}, "fade": {"from": 0, "to": 1, "end": 0.5}} and use them in styles: style="transform: translateX({{x}}px); opacity: {{fade}}". Static text goes in `values`. Layout is flexbox only (no CSS grid, no floats, no <script>). Use inline styles or a <style> block. Images must be https URLs or asset URLs. The Inter typeface is available in regular and bold.
料金: 2 credits per second
パラメーター
Named numeric tweens, usable as {{name}}.
Optional budget project id (from list_projects) to file this spend under.
Name for the result in the library. Defaults to the start of the prompt.
Tags to file the result under.
編集と変換
remove_background
Cut the subject out of an image and get a transparent PNG back. Video works only where list_models shows a background-removal model that handles video.
料金: Per image, or per second of video. See list_models.
パラメーター
The image or video to cut out. Either an asset_id from the library (ast_…) or a public https URL.
Required, must be true: true means the user confirms they own the media or have the consent of everyone who appears or is heard in it, and that it follows the Acceptable Use Policy. Ask the user before you set it for a file they supplied; a false confirmation breaks the terms.
Background-removal model id. Omit for the default.
Name for the result in the library.
Optional budget project id (from list_projects) to file this spend under.
upscale_image
Increase an image's resolution and sharpen its detail. Use before print, large displays, or when a generated image is too small. Different models trade faithfulness against added detail; see list_models, category image-upscale.
料金: Per image, by model. See list_models.
パラメーター
The image to upscale. Either an asset_id from the library (ast_…) or a public https URL.
Required, must be true: true means the user confirms they own the media or have the consent of everyone who appears or is heard in it, and that it follows the Acceptable Use Policy. Ask the user before you set it for a file they supplied; a false confirmation breaks the terms.
Enlargement factor from 1 to 4, where the model supports a choice.
Name for the result in the library.
Optional budget project id (from list_projects) to file this spend under.
upscale_video
Raise a video's resolution (for example 720p to 1080p or 4K) and clean up compression artifacts. Priced by the clip's length; long clips cost accordingly, so tell the user the estimate first (get_credits_balance with an estimate).
料金: Per second of video, by model. See list_models.
パラメーター
The video to upscale. Either an asset_id from the library (ast_…) or a public https URL.
Required, must be true: true means the user confirms they own the media or have the consent of everyone who appears or is heard in it, and that it follows the Acceptable Use Policy. Ask the user before you set it for a file they supplied; a false confirmation breaks the terms.
Enlargement factor, e.g. 2.
Name for the result in the library.
Optional budget project id (from list_projects) to file this spend under.
increase_frame_rate
Create in-between frames with AI to smooth choppy generated video (e.g. 24 to 60 fps). slowdown_factor works only with a model that lists it in get_model_params.
料金: Per second of video, by model. See list_models.
パラメーター
The video to process. Either an asset_id from the library (ast_…) or a public https URL.
Required, must be true: true means the user confirms they own the media or have the consent of everyone who appears or is heard in it, and that it follows the Acceptable Use Policy. Ask the user before you set it for a file they supplied; a false confirmation breaks the terms.
Name for the result in the library.
Optional budget project id (from list_projects) to file this spend under.
transcribe
読み取り専用Turn the speech in an audio or video file into text with word-level timing. Use it to find the best moments in a long recording, to write captions, or to check what a generated voiceover actually says.
料金: Per minute of audio. See list_models.
パラメーター
The audio or video file to transcribe. Either an asset_id from the library (ast_…) or a public https URL.
Required, must be true: true means the user confirms they own the media or have the consent of everyone who appears or is heard in it, and that it follows the Acceptable Use Policy. Ask the user before you set it for a file they supplied; a false confirmation breaks the terms.
Language code such as tr, en, es or sv-SE. Omit to tell Turkish from English automatically; give it for any other language.
Optional budget project id (from list_projects) to file this spend under.
trim_video
Cut a video or audio file down to a time range. Give start and either end or duration, in seconds. Use it to remove a weak opening, to pull a moment out of a longer clip, or to fit a platform's length limit.
料金: 2 credits
パラメーター
The video or audio file to trim. Either an asset_id from the library (ast_…) or a public https URL.
Required, must be true: true means the user confirms they own the media or have the consent of everyone who appears or is heard in it, and that it follows the Acceptable Use Policy. Ask the user before you set it for a file they supplied; a false confirmation breaks the terms.
Length to keep, in seconds (alternative to end).
Name for the result in the library.
Optional budget project id (from list_projects) to file this spend under.
scale_video
Change a video's dimensions. mode "crop" fills the new frame and trims the overflow evenly around the centre (use it to turn 16:9 into 9:16 for Reels and Shorts; keep the subject centred), "pad" keeps the whole picture and adds bars, "stretch" distorts to fit. Common targets: 1080x1920 vertical, 1920x1080 landscape, 1080x1080 square.
料金: 2 credits
パラメーター
The video to resize. Either an asset_id from the library (ast_…) or a public https URL.
Required, must be true: true means the user confirms they own the media or have the consent of everyone who appears or is heard in it, and that it follows the Acceptable Use Policy. Ask the user before you set it for a file they supplied; a false confirmation breaks the terms.
mode"crop" | "pad" | "stretch" = "crop"
pad_colorstring = "#000000"
Bar colour for mode "pad", as #RRGGBB.
Name for the result in the library.
Optional budget project id (from list_projects) to file this spend under.
merge_media
Three jobs in one tool. (1) Put a voiceover or music track onto a video: give `video` and `audio`; the track replaces the video's sound unless mix is true. (2) Join videos end to end into one film: give `videos` in order; they are fitted to the first clip's size. (3) Join audio clips: give `audios` in order. This is how separate shots, narration and music become a finished piece.
料金: 2 credits
パラメーター
Video to add audio to. Either an asset_id from the library (ast_…) or a public https URL.
Audio track to lay onto the video. Either an asset_id from the library (ast_…) or a public https URL.
Audio clips to join, in order.
Required, must be true: true means the user confirms they own the media or have the consent of everyone who appears or is heard in it, and that it follows the Acceptable Use Policy. Ask the user before you set it for a file they supplied; a false confirmation breaks the terms.
Keep the video's own sound and mix the new track with it.
Volume of the added track (1 = unchanged).
Name for the result in the library.
Optional budget project id (from list_projects) to file this spend under.
add_subtitles
Transcribe a video's speech and burn animated captions into the picture, in the short-form style where each word lights up as it is spoken. Most social video is watched muted, so captions are worth adding to anything with a voice. Style the type with `style`; a few big words per line reads best on phones.
料金: 6 credits per minute
パラメーター
The video to caption. Either an asset_id from the library (ast_…) or a public https URL.
Required, must be true: true means the user confirms they own the media or have the consent of everyone who appears or is heard in it, and that it follows the Acceptable Use Policy. Ask the user before you set it for a file they supplied; a false confirmation breaks the terms.
Spoken language code (tr, en, es, sv-SE…). Omit to tell Turkish from English automatically; give it for any other language.
Name for the result in the library.
Optional budget project id (from list_projects) to file this spend under.
テンプレート
create_template
Save a layout the team will reuse: a sale banner, a quote card, a product ad, a thumbnail format. Two kinds. An "html" template is HTML/CSS with {{token}} placeholders, rendered exactly (flexbox only, inline styles or a <style> block; {{width}} and {{height}} are filled in per size). A "generative" template is an image prompt with {{token}} placeholders, sent to an image model. Declare each placeholder in params with a type and description so future renders know what to pass. List the sizes the template should produce.
料金: Free
パラメーター
Markup for an html template.
Prompt for a generative template.
Image model for a generative template. Omit for the default.
Sizes to render. Default: square.
render_template
Produce finished images from a saved template. Pass 1 to 4 `variants`, each a set of parameter values (different headlines, products, colours), and the sizes to output; use size_names ["all"] for every size the template defines. Every variant is rendered at every requested size.
料金: 1 credit per html render; the model's image price per generative render.
パラメーター
One object of parameter values per variant.
Which of the template's sizes to render. Default: the first. Use ["all"] for every size.
Optional budget project id (from list_projects) to file this spend under.
update_template
Change a saved template's markup or prompt, its parameters, sizes, name or description. Only the fields you pass are changed.
料金: Free
list_templates
読み取り専用List the templates saved in this workspace with their parameters and sizes. Check here before designing a recurring format from scratch.
料金: Free
映像プロジェクト
create_film_project
Start a multi-shot film: an ad, a short story, an explainer, a trailer. A film project holds the brief, the script and an ordered shot list, and moves through three gates so money is never spent on the wrong thing: (1) the user approves the script and shot list, (2) a storyboard still is made for every shot and the user approves the storyboard, (3) each shot is generated as video and the film is assembled. Nothing in a later gate can be attached before the earlier one is approved. Keep shots short (3 to 8 seconds) and the whole film around a minute or less.
料金: Free
パラメーター
Goal, audience, tone, where it will run.
aspect_ratio"16:9" | "9:16" | "1:1" | "4:3" | "3:4" = "16:9"
Generate every shot at this same aspect ratio.
update_film_project
Edit a film project: revise the script or shot list, attach a storyboard still or a finished clip to a shot with set_shot, set narration or music, or record the user's approval of a gate. Approvals belong to the user: only pass approve together with user_confirmed=true after they have seen that stage and said yes in this conversation. Changing the script or the shot list after approval clears the approvals that depended on it.
料金: Free
パラメーター
Replaces the shot list. Pass shot_id to keep a shot and its attached media.
approve"script" | "storyboard"
Must be true with approve: the user has reviewed this stage and approved it.
Narration audio for the whole film. Either an asset_id from the library (ast_…) or a public https URL.
Music bed for the whole film. Either an asset_id from the library (ast_…) or a public https URL.
Required, and must be true, whenever set_shot.storyboard, set_shot.video, narration or music is given: true means the user confirms they own the media or have the consent of everyone who appears or is heard in it, and that it follows the Acceptable Use Policy. Ask the user before you set it for a file they supplied; a false confirmation breaks the terms.
get_film_project
読み取り専用Read a film project: script, shots with their storyboard stills and clips, approvals, and what to do next. Call this when resuming work on a film.
料金: Free
list_film_projects
読み取り専用List the film projects in this workspace with their stage and progress.
料金: Free
assemble_film
Stitch a film project's finished shots, in order, into one video at the project's aspect ratio (a clip of another shape is letterboxed). Optionally lays a narration track and a looping music bed underneath (the project's saved ones are used unless you pass others). The clips' own sound is kept and mixed in unless keep_clip_audio is false. Every shot must have its clip attached and the storyboard must be approved.
料金: 4 credits + 2 per shot
パラメーター
Narration audio. Either an asset_id from the library (ast_…) or a public https URL.
Music bed. Either an asset_id from the library (ast_…) or a public https URL.
music_volumenumber = 0.25
keep_clip_audioboolean = true
Keep the sound generated with each shot. Set false when narration should stand alone.
Required, and must be true, whenever narration or music is given: true means the user confirms they own the media or have the consent of everyone who appears or is heard in it, and that it follows the Acceptable Use Policy. Ask the user before you set it for a file they supplied; a false confirmation breaks the terms.
Optional budget project id (from list_projects) to file this spend under.
ライブラリ
search_assets
読み取り専用Find files in the workspace library: everything that was generated, uploaded or imported. Filter by type, source, tags or free text (matches name, description and prompt). Returns newest first. Use this before generating to reuse an existing image, logo or clip.
料金: Free
パラメーター
Free text matched against name, description and prompt.
type"image" | "video" | "audio" | "3d_model"
source"generated" | "uploaded" | "imported"
Only assets carrying every one of these tags.
upload_asset
Copy a file from a public URL into the workspace library so it gets a stable library URL and an asset_id that other tools accept. Works with direct links to images, video, audio and 3D models. Links to a video page on a social platform are supported only when this deployment has the importer enabled. For a file on the user's computer use import_media instead.
料金: Free
パラメーター
Public https URL of the file.
Required, must be true: true means the user confirms they own the media or have the consent of everyone who appears or is heard in it, and that it follows the Acceptable Use Policy. Ask the user before you set it for a file they supplied; a false confirmation breaks the terms.
import_media
読み取り専用Use when the user wants to bring in files from their own device (photos, a logo, a voice sample, footage). Returns a link to the upload page; give it to the user, wait for them to say they are done, then call search_assets with source "uploaded" to find the new files.
料金: Free
update_asset
Rename an asset, change its description, replace its tags or mark it as a favorite. Good tags make search_assets useful later.
料金: Free
パラメーター
Replaces the existing tags.
delete_asset
破壊的Remove an asset from the library. Only do this when the user asks for it. The file stops appearing in searches; its URL may keep working for a short time.
料金: Free
get_upload_url
For agents that hold a local file: returns a one-time URL to PUT the raw bytes to. After the PUT succeeds call confirm_upload with the upload_id to turn it into a library asset. Use this for large files instead of sending them through the conversation.
料金: Free
パラメーター
MIME type, e.g. video/mp4.
Required, must be true: true means the user confirms they own the media or have the consent of everyone who appears or is heard in it, and that it follows the Acceptable Use Policy. Ask the user before you set it for a file they supplied; a false confirmation breaks the terms.
confirm_upload
Call after the PUT to the URL from get_upload_url has succeeded. Registers the file as a library asset and returns its asset_id and library URL.
料金: Free
パラメーター
Required, must be true: true means the user confirms they own the media or have the consent of everyone who appears or is heard in it, and that it follows the Acceptable Use Policy. Ask the user before you set it for a file they supplied; a false confirmation breaks the terms.
ブランドテーマ
update_theme
Create or update a brand theme: the reusable description of how a brand looks and sounds. `data` is free-form JSON; a useful shape is { colors: {primary, secondary, accent, background, text}, fonts: {heading, body}, logos: [{url, usage}], tone: "…", do: ["…"], dont: ["…"], audience: "…" }. By default new keys are merged into the saved theme (top level only); pass merge=false to replace it. Save a theme once, then read it with get_theme before generating so everything stays on brand.
料金: Free
パラメーター
Theme name, e.g. the brand or campaign it belongs to.
Theme content: colors, fonts, logos, tone rules. Any JSON shape.
Merge into the existing theme (default) or replace it.
Make this the workspace's default theme.
get_theme
読み取り専用Read a brand theme by name, or the workspace default when no name is given. Call this at the start of any branded task and apply its colors, fonts, logos and tone rules to your prompts.
料金: Free
パラメーター
Theme name, e.g. the brand or campaign it belongs to.
list_themes
読み取り専用List the brand themes saved in this workspace, with which one is the default.
料金: Free
delete_theme
破壊的Delete a brand theme by name. Only when the user asks for it.
料金: Free
パラメーター
Theme name, e.g. the brand or campaign it belongs to.
モデル、クレジット、ジョブ
list_models
読み取り専用List the AI models available here with what each is good at, what it can do and what it costs in credits. Filter by category (image, video, speech, music, sfx, or a utility category) or by free text. Every generation tool picks a sensible default when you do not name a model; look here when the user wants a specific model, a different look, a lower price or a capability the default lacks.
料金: Free
パラメーター
category"image" | "video" | "speech" | "music" | "sfx" | "transcription" | "audio-isolation" | "background-removal" | "image-upscale" | "video-upscale" | "frame-interpolation" | "character-swap"
Free text: a model name, vendor or capability such as "edit" or "reference-to-video".
get_model_params
読み取り専用Show everything one model accepts: the standard parameters it honours with their allowed values (durations, resolutions, aspect ratios, voices) and the model-specific options that can be passed through `extras`. Call this before using a model you have not used in this conversation.
料金: Free
パラメーター
Model id from list_models.
get_credits_balance
読み取り専用Return the workspace's credit balance and plan. Pass `estimate` to price a job before running it; do this before anything expensive (video, long audio, batches) and tell the user the cost. One credit is one US cent at list price.
料金: Free
get_credits_link
読み取り専用Return a link the user can open to buy a credit pack. Offer it when the balance is too low for what they asked for. Never claim that credits were added; the user completes the purchase themselves.
料金: Free
パラメーター
product"1000" | "5000" | "10000" | "25000" | "50000" = "1000"
Pack id: the pack's price in cents.
check_job
読み取り専用Get the status and result of a job by its job_id. Use it when a generation tool answered that the job is still running or awaiting approval. It waits up to wait_seconds for the job to finish before answering, so one call is usually enough; if it is still running, tell the user and check again a little later rather than in a tight loop.
料金: Free
list_jobs
読み取り専用List the workspace's most recent jobs with their status and cost. Use it to find a job_id you lost track of, or to see what is still rendering.
料金: Free
パラメーター
status"awaiting_approval" | "queued" | "running" | "succeeded" | "failed" | "canceled"
load_image
読み取り専用Fetch an image so you can actually see it: check a generation against the brief before showing it, read text in a screenshot, compare variants, or study a reference the user uploaded. Large images are scaled down for viewing; the original is untouched.
料金: Free
パラメーター
The image to look at. Either an asset_id from the library (ast_…) or a public https URL.
list_projects
読み取り専用List the workspace's budget projects (campaigns or clients that spend is tracked against) with their budgets and what has been used. Pass a project's id as project_id to any generation tool to file that job's cost under it.
料金: Free
submit_feedback
Send feedback to the team that runs this service: a bug, a confusing result, a missing model or feature. Use it when the user asks you to report something, or when a tool behaved in a way that blocked their work.
料金: Free
パラメーター
What you were trying to do, and any job_id involved.