apimodels
v0.12.0Chat, image, video, speech, music and media models with one account — local (npx) or hosted.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_balance
Show the apimodels account balance (USD) for the configured API key. Check it before submitting a batch of generations, and tell the user if the balance looks too low for what they asked for.
list_models
List the model ids available on apimodels.app, grouped by type with the endpoint each one uses. Every id listed is callable. Tool per endpoint: /v1/chat/completions → chat; /v1/images/generations → generate_image; /v1/video/generations → generate_video; /v1/audio/generations → text_to_speech (minimax-speech-*, fish-*, kling-tts), generate_audio (music, sound effects, dialogue, dubbing, isolation) or transcribe_audio (speech to text: nemotron-3.5-transcribe); /v1/tts/stream (eleven-tts-*) → text_to_speech; /v1/embeddings → embed; /v1/media/extract → extract_media; /v1/systemone (j…
chat
Chat / text completion with any LLM on apimodels.app (GPT-6.1, Claude, Gemini, GLM, DeepSeek, Qwen, …). Returns the assistant reply text.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | The user message / prompt. |
max_tokens | integer | Optional max output tokens. |
model | string | Model id, e.g. gpt-6.1-sol, gpt-6.2-sol, gpt-6.2-astra, gpt-6-sol, claude-opus-5-5, claude-fable-5-2, claude-sonnet-5-5 (Claude Sonnet 5.5, fast and strong at coding and agent work, $1.20 / $6 per 1M… |
system | string | Optional system prompt. |
generate_image
Generate an image from a text prompt, or edit / combine input images. Returns the URL(s) of the generated image(s), valid 30 days, plus a downscaled preview when the client can show tool-result images to you. Images take about 50 s (9 in 10 within 90 s); if the task is still running when wait_seconds is up you get a task id — call get_task with it, do not resubmit. If you cannot see the image in the result, call review_image with the returned URL to get a written critique and a revised prompt, then generate again. Roughly $0.025 per image on the default model; gpt-image-2-lite is $0.01. gpt-…
| Parameter | Type | Description |
|---|---|---|
aspect_ratio | string | Optional aspect ratio, e.g. 1:1, 16:9, 9:16. |
background | string | "transparent": a transparent background (gpt-image family), or with doubao-seedream-5-0-flash / -pro keep the transparency of ONE input PNG passed as image_url. "opaque": force an opaque background   |
extra | object | Optional model-specific parameters passed through as-is, e.g. {"seed": 42} or {"scale": 4, "face_enhance": true} for real-esrgan. See the model page on apimodels.app/docs. Keys set by the fields above… |
frame_count | integer | GIF only: number of frames, 2–16 (default 9). |
frame_duration_ms | integer | GIF only: milliseconds per frame, 20–2000 (default 200). |
image_url | string | Optional input image for edits. Accepts a public https:// URL, a LOCAL FILE PATH, a localhost URL, a data: URI or an asset:// reference — local sources are uploaded for you automatically. |
image_urls | array | Several input / reference images (up to 16 on gpt-image-2.6, fewer on most models — e.g. 3 on flux-2-klein-4b). Same accepted forms as image_url. Use this to combine subjects or keep a character con… |
layer_decomposition | boolean | Split the image in image_url into a flattened base plus up to 16 transparent PNG layers (text blocks, subjects, props), each returned with a name and its box in the original. prompt is optional. Bille… |
markup_image_url | string | Optional markup image for gpt-image-2.6 edits: a transparent PNG with only circles, arrows or notes drawn on it, the same size as the first input image; the model edits the first input accordingly. |
mask_url | string | Optional edit mask: white = change, black = keep, same size as the first input image (gpt-image family). Not with gif output, and not together with markup_image_url. |
model | string | Image model id, e.g. gpt-image-2, gpt-image-2.6-flare (GIF / SVG output, markup-image edits, up to 16 references), gpt-image-2.6-sunburst (highest fidelity), gpt-image-2.5-flare, flux-2-klein-4b ($0.0… |
n | integer | Optional number of images to generate in one call (models that support it; billed per image). |
output_format | string | Optional output format. gif = animated GIF and svg = vector, both on gpt-image-2.6 only. If omitted, opaque images are delivered as JPEG. |
prompt | string | Text description of the image to generate (or the edit to make). Required, except with layer_decomposition where it is optional. |
quality | string | Optional quality tier, e.g. low / medium / high (gpt-image family, Grok Imagine). Higher costs more. |
reasoning_effort | string | gpt-image-2.6 only: how much the model plans before drawing. |
resolution | string | Optional resolution tier, e.g. 1K, 2K, 4K. |
return_image | boolean | Attach a downscaled preview (max 1024px JPEG) of the result so you can look at it. Set false to save context when you only need the URL. |
size | string | Optional exact pixel size "WIDTHxHEIGHT", e.g. 1024x1024 or 1536x1024 (models that take exact sizes, such as the gpt-image family). For a GIF this is the size of each frame. |
wait_seconds | integer | How long to wait for the image before returning a task id instead (seconds, 0–900). Default 50: Codex aborts tool calls at 60 s unless tool_timeout_sec is raised. In Claude Code / Claude Desktop you… |
review_image
Have a vision model look at an image and critique it against a brief. Returns what matches, what is wrong (garbled text, composition, colors, artifacts) and a revised prompt. Use it after generate_image to check the result and decide whether to regenerate — this works in every MCP client, including ones that do not pass tool-result images to you. Costs one small vision chat call (well under $0.01 on the default model).
| Parameter | Type | Description |
|---|---|---|
brief * | string | What the image is supposed to show — usually the prompt it was generated from, plus any requirements the user stated (exact text, aspect ratio, style). |
image_url * | string | The image to review: a URL returned by generate_image, any public https:// URL, a LOCAL FILE PATH, a localhost URL, or a data: URI. |
model | string | Vision-capable chat model that does the looking. gpt-5.6-luna (default, lowest price) or claude-sonnet-5 for a more careful read. |
generate_video
Generate or process a video: text-to-video, image-to-video, first + last frame, multi-reference, lip sync and talking avatars (image or video + audio), motion transfer (image + driving video), upscaling and subtitle removal (video in). Submits the job and waits up to wait_seconds: returns the video URL(s) (valid 30 days) if it finishes in time, otherwise a task id — then call get_task with that id; never resubmit a running task. Video takes a median 2.5 minutes and 9 in 10 finish within 8 minutes, so expect one or two get_task calls. Video is the most expensive modality here — the default…
| Parameter | Type | Description |
|---|---|---|
aspect_ratio | string | Optional aspect ratio, e.g. 16:9, 9:16, 1:1. |
audio_url | string | Input audio for talking avatars and lip sync (kling-avatar, kling-lip-sync, omnihuman-2.0, digital-human, ai-lipsync). Same accepted forms as image_url; local audio up to 10 MB. |
duration | number | string | Optional duration in seconds, e.g. 5 or 10. |
extra | object | Optional model-specific parameters passed through as-is, e.g. {"mode": "pro"}, {"text": "…", "voice_id": "…"} for kling-lip-sync-tts, erase settings for subtitle-erase, {"keyframes": [...]}. See t… |
generate_audio | boolean | Optional: ask models that can add sound (e.g. Seedance, Veo) to generate audio — or set false for a silent clip. |
image_url | string | Optional first frame (image-to-video: the clip starts from it) or the subject image for avatars and motion transfer. Accepts a public https:// URL, a LOCAL FILE PATH, a localhost URL, a data: URI or a… |
image_urls | array | Several input images for models that take more than one (e.g. omnihuman-2.0, multi-image references). Same accepted forms as image_url. |
last_frame_url | string | Optional last frame for first + last frame models (e.g. v3.1-fast-start-end, seedance). Same accepted forms as image_url. |
model | string | Video model id. Generation: seedance-2.0-fast, seedance-2.0, seedance-2.0-mini, seedance-2.5, seedance-2.5-flash, wan-3.0-video, minimax-h3, minimax-h3-lite (from $0.01/s, up to 768p), ltx-2.5-fast, l… |
negative_prompt | string | Optional: what to avoid (models that support it). |
prompt | string | Text description of the video. Required by generation models; optional for processing models (video-upscale, flashvsr, subtitle-erase, lip sync with audio). |
reference_audio_urls | array | Seedance 2.x reference audio (voice, music, sound). |
reference_image_urls | array | Seedance 2.x / Kling Omni reference images (characters, products, style), up to 9 on Seedance. asset:// references from upload_asset are accepted for a fixed real person. |
reference_video_urls | array | Seedance 2.x reference videos (camera move, motion, edit target). |
resolution | string | Optional resolution, e.g. 480p, 720p, 1080p. |
seed | integer | Optional random seed for repeatable results (models that support it). |
video_url | string | Input video for lip sync, motion transfer (driving video), upscaling, subtitle removal or video edits. Same accepted forms as image_url; local videos up to 100 MB are uploaded for you. |
wait_seconds | integer | How long to wait for the video before returning a task id instead (seconds, 0–900). Default 50: Codex aborts tool calls at 60 s unless tool_timeout_sec is raised. In Claude Code / Claude Desktop you… |
get_task
Check on, or wait for, an image / video / audio / transcription task that generate_image, generate_video, text_to_speech, generate_audio or transcribe_audio handed back as "still running". Returns the result URL(s) once it has finished (with an image preview for image tasks; for a transcription task the full text, audio duration and transcript_url), a failure message if it failed, or "still running" again — in which case call get_task once more. Waits up to wait_seconds before answering, so one call usually suffices for a task that is nearly done. Task ids also appear at https://apimodels.ap…
| Parameter | Type | Description |
|---|---|---|
task_id * | string | The task id from the "STILL RUNNING" message (or from the apimodels console). |
return_image | boolean | For image tasks, attach a downscaled preview of the result. Set false to save context. |
wait_seconds | integer | How long to wait for the task before returning a task id instead (seconds, 0–900). Default 50: Codex aborts tool calls at 60 s unless tool_timeout_sec is raised. In Claude Code / Claude Desktop you… |
text_to_speech
Convert text to speech. Returns the audio file URL (valid 30 days). MiniMax (default, about $0.004 for a short line, $0.04 per 1000 characters), ElevenLabs eleven-tts-v3 / v4 / flash / turbo / multilingual (most natural, 70+ languages), Fish fish-s2.1-pro / fish-drama-3 (voice cloning library, expressive drama voices) and kling-tts. Find voices with list_voices.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to speak. |
extra | object | Optional model-specific parameters passed through as-is, e.g. {"voice_settings": {"stability": 0.4}} for ElevenLabs, {"audio_setting": {...}} or {"language_boost": "Chinese"} for MiniMax. |
language_code | string | Optional ISO 639-1 language hint for ElevenLabs, e.g. en, zh, ja. |
model | string | TTS model id: minimax-speech-02-turbo (fast), minimax-speech-02-hd, minimax-speech-2.6-hd, minimax-speech-2.8-hd / -turbo; eleven-tts-v3, eleven-tts-v4, eleven-tts-v4-turbo, eleven-tts-flash, eleven-t… |
save_to | string | Local server only, ElevenLabs only: also write the audio to this file path (e.g. ~/Desktop/line.mp3). |
speed | number | Optional speaking rate, about 0.5–2 (1 = normal). |
voice_id | string | Voice id from list_voices. MiniMax default English_Trustworthy_Man (others: English_Graceful_Lady, Serene_Woman, male-qn-qingse, female-tianmei). ElevenLabs default voice if omitted. Fish: pass the vo… |
wait_seconds | integer | How long to wait for the audio before returning a task id instead (seconds, 0–900). Default 50: Codex aborts tool calls at 60 s unless tool_timeout_sec is raised. In Claude Code / Claude Desktop you… |
list_voices
Search the voices for text_to_speech: the library of 12,000+ MiniMax, ElevenLabs and Fish voices (name, language, gender, preview URL), the Kling voices for kling-tts (provider "kling"), or your own cloned voices (mine: true). Free. Pass the returned id as voice_id.
| Parameter | Type | Description |
|---|---|---|
gender | string | e.g. male, female. |
language | string | ISO 639-1 language code, e.g. en, zh, ja, es. |
mine | boolean | List only your own voices: ElevenLabs and Fish clones from clone_voice, and Kling custom voices made on apimodels.app. MiniMax clones are not listable — keep the voice_id clone_voice returned. |
page | integer | Page number (default 1). |
page_size | integer | Results per page (default 20, max 100). |
provider | string | Only voices for this TTS family (minimax-speech-*, eleven-tts-*, fish-*, kling-tts). Kling voices come from their own list (language filter only). |
q | string | Free-text search on name / description, e.g. "warm narrator" or "news". |
clone_voice
Clone a voice from an audio sample (clean speech, ideally 10 s – 3 min, one speaker) and get a voice id for text_to_speech. minimax ($1.41; use the id with minimax-speech-* models), elevenlabs (free, up to 10 voices, each kept 24 hours), fish (first 20 voices free, then $1 each; use the id with fish-* models). Only clone a voice with the speaker's consent.
| Parameter | Type | Description |
|---|---|---|
provider * | string | |
sample * | string | The audio sample: public https:// URL, LOCAL FILE PATH, localhost URL or data: URI (local files up to 10 MB are uploaded for you). mp3, wav or m4a; Fish also takes opus. |
description | string | fish only: a short description of the voice. |
name | string | Display name. Required for elevenlabs and fish. |
voice_id | string | minimax only: your own id for the voice, 8–256 characters, starting with a letter (letters, digits, - and _). Generated if omitted. |
delete_voice
Delete a voice you cloned (elevenlabs or fish). Frees the slot; text_to_speech with that id stops working. MiniMax clones cannot be deleted through the API. Cannot be undone — confirm with the user first.
| Parameter | Type | Description |
|---|---|---|
provider * | string | |
voice_id * | string | The id from clone_voice or list_voices (mine: true). |
generate_audio
Music, sound effects and audio processing on /v1/audio/generations: suno-v5 (songs with vocals or instrumental, from a description or your own lyrics), eleven-sfx-v3 and kling-sound-effects (sound effects from text), kling-video-to-audio (soundtrack for a video), eleven-dialogue (multi-speaker dialogue), eleven-dubbing (translate the speech in an audio / video file), eleven-isolator (strip background noise and music, keep the voice). For plain text-to-speech use text_to_speech; to turn speech into text use transcribe_audio. Returns the audio URL(s), valid 30 days; long jobs (music, dubbing) ha…
| Parameter | Type | Description |
|---|---|---|
model * | string | suno-v5, eleven-sfx-v3, kling-sound-effects, kling-video-to-audio, eleven-dialogue, eleven-dubbing or eleven-isolator. Call list_models for the full audio list. |
audio_url | string | eleven-isolator: the audio to clean. Public URL, LOCAL FILE PATH, localhost URL or data: URI (local files up to 10 MB are uploaded for you). |
duration_seconds | number | Sound effects: length in seconds (eleven-sfx-v3). |
extra | object | Optional model-specific parameters passed through as-is, e.g. {"continue_clip_id": "…", "continue_at": 30} to extend a Suno song, {"num_speakers": 2} for dubbing, {"prompt_influence": 0.5} for sound… |
inputs | array | eleven-dialogue: the lines in order, each { text, voice_id } (voices from list_voices provider "elevenlabs"). |
instrumental | boolean | suno-v5: true for no vocals. |
lyrics | string | suno-v5: your own lyrics (use write_lyrics to draft them). Leave out for lyrics written by the model. |
prompt | string | suno-v5: what the song should be about and sound like (the model writes the lyrics); with your own lyrics it is used as the style when tags is empty. Sound effects: describe the sound, e.g. "glass sha… |
source_lang | string | eleven-dubbing: source language code (optional, detected if omitted). |
source_url | string | eleven-dubbing: the audio or video whose speech to translate. Same accepted forms. |
tags | string | suno-v5: style tags, e.g. "lo-fi hip hop, mellow, female vocals". |
target_lang | string | eleven-dubbing: target language code, e.g. es, ja, zh. |
title | string | suno-v5: song title. |
video_url | string | kling-video-to-audio: the video to add sound to. Same accepted forms; local videos up to 100 MB. |
wait_seconds | integer | How long to wait for the audio before returning a task id instead (seconds, 0–900). Default 50: Codex aborts tool calls at 60 s unless tool_timeout_sec is raised. In Claude Code / Claude Desktop you… |
transcribe_audio
Speech to text: transcribe an audio file, or the audio track of a video, with nemotron-3.5-transcribe. Returns the full text, the audio duration and a transcript_url (the complete result as JSON, kept 30 days). With timestamps: true that JSON also has word-level start / end times and speaker labels (up to 8 speakers). With target_language the speech is translated instead of transcribed. $0.0025 per audio minute ($0.15 per hour), billed by the second; timestamps, speaker labels and translation cost nothing extra; failed jobs, and files whose length cannot be read, are not billed. Limits: up to…
| Parameter | Type | Description |
|---|---|---|
audio_url * | string | The audio (or video with an audio track) to transcribe: a public https:// URL that downloads directly, a LOCAL FILE PATH, a localhost URL or a data: URI — local sources are uploaded for you (audio u… |
model | string | Speech-to-text model id. nemotron-3.5-transcribe is the only one for now. |
target_language | string | Translate the speech into this language instead of transcribing it. Only translation to or from English is guaranteed. Cannot be combined with timestamps: true. |
timestamps | boolean | true: the JSON at transcript_url also carries word-level start / end times and speaker labels (up to 8 speakers). Default false. Cannot be combined with target_language. |
wait_seconds | integer | How long to wait for the transcript before returning a task id instead (seconds, 0–900). Default 50: Codex aborts tool calls at 60 s unless tool_timeout_sec is raised. In Claude Code / Claude Deskto… |
write_lyrics
Draft song lyrics (with a title and style tags) from a theme or a few keywords, to pass to generate_audio with model suno-v5. Free.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Theme or keywords, e.g. "a summer road trip with old friends, upbeat". |
embed
Turn text into embedding vectors (OpenAI-compatible /v1/embeddings) for semantic search, clustering or deduplication. Returns one vector per input. text-embedding-3-small: $0.018 per 1M tokens, 1536 dimensions; text-embedding-3-large: $0.059 per 1M tokens, 3072 dimensions.
| Parameter | Type | Description |
|---|---|---|
input * | One string, or a list of up to 256 strings. | |
dimensions | integer | Optional: shorten the vectors to this many dimensions. |
model | string |
extract_media
Get the direct media links behind a social-media post or page (YouTube, TikTok, Instagram, Facebook, X, Xiaohongshu, Bilibili, Weibo, Douyin and 1000+ other sites; short links work): video / image / audio URLs plus caption and author. op "post" ($0.004) reads one post; "playlist" ($0.02 a page) lists a profile, channel, playlist or topic, with next_cursor for the next page; "subtitles" ($0.004) returns YouTube / Bilibili subtitles; "youtube_download" ($0.012) returns a temporary download link (up to 1080p, valid about an hour). Only process media the user has the right to use. Failed calls are…
| Parameter | Type | Description |
|---|---|---|
url * | string | The post, profile, channel or video page URL. |
cursor | string | playlist only: the next_cursor from the previous page. |
op | string |
jev_decide
Jev (TypeSafe System One): a decision model, not a chat model. Give it a state (text or JSON) and typed questions; it returns an answer with probabilities for each — use it to classify, route, score or check a claim with calibrated confidence. Question types: "choice" (instructions + criteria: {option: description}), "score" (instructions, scored on a scale) and "noul" (instructions = a statement; returns the probability it is true). $0.05 per 1M input tokens, output free.
| Parameter | Type | Description |
|---|---|---|
questions * | object | Questions keyed by your own ids, e.g. {"queue": {"type": "choice", "instructions": "Which queue?", "criteria": {"billing": "Payments and refunds", "bug": "Something is broken"}}, "urgent": {"type": "n… |
state * | What to decide about: text, or a JSON object / array. |
upload_asset
Upload an image, video or audio file to your asset library and get an asset:// reference to pass to video models (reference_image_urls, image_url, reference_video_urls, …), e.g. to keep the same real person or product across many Seedance clips. $0.01 per asset. Seedance already accepts plain image URLs (and retries rejected real-person images through the library automatically), so register an asset only to reuse a subject. Use only with consented subjects.
| Parameter | Type | Description |
|---|---|---|
source * | string | The file: public https:// URL, LOCAL FILE PATH, localhost URL or data: URI (local files are uploaded for you: images and audio up to 10 MB, video up to 100 MB). |
asset_type | string | Detected from the file extension when omitted. |
group_id | integer | Optional asset group id (list_assets shows them). Default: a group named "mcp", created on first use. |
name | string | Optional name, to find it again with list_assets. |
list_assets
List the asset groups and assets in your library (for the API key in use), with id, asset:// reference, type, name and status. Free.
| Parameter | Type | Description |
|---|---|---|
group_id | integer | Only this group. |
name | string | Filter by name (partial match). |
page | integer | |
page_size | integer | Default 20, max 100. |
get_asset
Look up one asset: its status (Processing → Active, or Failed), asset:// reference, and a signed preview URL valid 12 hours. Free.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset id from upload_asset or list_assets. |
delete_asset
Delete one asset from the library. Tasks that already used it are unaffected, but the asset:// reference stops working for new tasks. Cannot be undone — confirm with the user first.
| Parameter | Type | Description |
|---|---|---|
id * | string | Asset id from upload_asset or list_assets. |