list_models
List media models
List the image, video and audio models with what each accepts (tasks, aspect ratios, resolutions, duration range, modes) and its price in credits. Call this before generate_media; use the exact ids and values it returns.
输入参数tasktype
Full parameter details and pricing for one media model.
输入参数modelId必填
estimate_cost
Estimate a generation cost
Approximate credits for a media generation from the live price list. The exact amount is held when you call generate_media; pass maxCredits there to make it a hard ceiling.
输入参数modelId必填durationresolution
generate_media
Generate image / video / audio
Start a generation. SPENDS CREDITS from the wallet (held now, settled to the actual cost when the job ends; refunded if it fails). Returns a taskId immediately - follow it with get_task (waitSeconds) until completed. Use only the user's own prompt text. For image-to-video etc. upload the source first (upload_source_media). Requires an API key with the "generate" scope.
输入参数modetaskratioprompt必填modelId必填durationmaxCreditsresolutionstylePresetwaitSecondscameraMotiongenerateAudio另有 3 个
get_task
Check a generation job
Status, progress and result of a job started with generate_media. With waitSeconds it waits for completion. resultUrl is a time-limited link - download or use it promptly. Polling also settles the wallet when the job ends.
输入参数taskId必填waitSeconds
cancel_task
Cancel a running job
Stop a job that is still processing and refund its hold. Requires a "generate" key.
输入参数taskId必填
retry_task
Retry a failed job
Re-run a failed or cancelled job as a new job. SPENDS CREDITS again (a fresh hold). Requires a "generate" key.
输入参数taskId必填
upload_source_media
Upload a source file
Upload an image, video or audio file (PNG, JPEG, WebP, GIF, MP4, WebM, MOV, MP3, WAV) to use as sourceImageUrl in generate_media. Send the bytes as base64 (or a local filePath when this server runs locally). Requires a "generate" key.
输入参数filePathfilenamedataBase64
list_chat_models
List chat models
The text/chat models available to chat, with the default and whether each is currently available.
无需输入参数。
Send one chat turn to a TurboMax text model and return its reply. SPENDS CREDITS (held, then settled to actual usage). Stateless: send the whole conversation in messages, or just message for a single question. Requires a "generate" key.
输入参数messagemodelIdmessagesreasoningEffort
get_wallet
Wallet balance and usage
Credit balance, credits-per-dollar, today's usage against the account limits, and recent ledger entries.
输入参数transactions
list_generations
List my generations
The account's generation history, newest first, with status, cost and result links.
输入参数limitoffsetstatus
browse_gallery
Browse the community gallery
Work other users chose to publish, with the prompt and model used. Public; anonymous.
输入参数limitoffset