apimodels

v0.12.0
io.github.stimQQ/apimodels-mcp Checked 4 days ago Published 8 hours ago

Chat, 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.

ParameterTypeDescription
prompt *stringThe user message / prompt.
max_tokensintegerOptional max output tokens.
modelstringModel 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…
systemstringOptional 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-…

ParameterTypeDescription
aspect_ratiostringOptional aspect ratio, e.g. 1:1, 16:9, 9:16.
backgroundstring"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  
extraobjectOptional 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_countintegerGIF only: number of frames, 2–16 (default 9).
frame_duration_msintegerGIF only: milliseconds per frame, 20–2000 (default 200).
image_urlstringOptional 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_urlsarraySeveral 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_decompositionbooleanSplit 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_urlstringOptional 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_urlstringOptional 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.
modelstringImage 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…
nintegerOptional number of images to generate in one call (models that support it; billed per image).
output_formatstringOptional output format. gif = animated GIF and svg = vector, both on gpt-image-2.6 only. If omitted, opaque images are delivered as JPEG.
promptstringText description of the image to generate (or the edit to make). Required, except with layer_decomposition where it is optional.
qualitystringOptional quality tier, e.g. low / medium / high (gpt-image family, Grok Imagine). Higher costs more.
reasoning_effortstringgpt-image-2.6 only: how much the model plans before drawing.
resolutionstringOptional resolution tier, e.g. 1K, 2K, 4K.
return_imagebooleanAttach 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.
sizestringOptional 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_secondsintegerHow 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).

ParameterTypeDescription
brief *stringWhat 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 *stringThe image to review: a URL returned by generate_image, any public https:// URL, a LOCAL FILE PATH, a localhost URL, or a data: URI.
modelstringVision-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…

ParameterTypeDescription
aspect_ratiostringOptional aspect ratio, e.g. 16:9, 9:16, 1:1.
audio_urlstringInput 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.
durationnumber | stringOptional duration in seconds, e.g. 5 or 10.
extraobjectOptional 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_audiobooleanOptional: ask models that can add sound (e.g. Seedance, Veo) to generate audio — or set false for a silent clip.
image_urlstringOptional 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_urlsarraySeveral 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_urlstringOptional last frame for first + last frame models (e.g. v3.1-fast-start-end, seedance). Same accepted forms as image_url.
modelstringVideo 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_promptstringOptional: what to avoid (models that support it).
promptstringText description of the video. Required by generation models; optional for processing models (video-upscale, flashvsr, subtitle-erase, lip sync with audio).
reference_audio_urlsarraySeedance 2.x reference audio (voice, music, sound).
reference_image_urlsarraySeedance 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_urlsarraySeedance 2.x reference videos (camera move, motion, edit target).
resolutionstringOptional resolution, e.g. 480p, 720p, 1080p.
seedintegerOptional random seed for repeatable results (models that support it).
video_urlstringInput 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_secondsintegerHow 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…

ParameterTypeDescription
task_id *stringThe task id from the "STILL RUNNING" message (or from the apimodels console).
return_imagebooleanFor image tasks, attach a downscaled preview of the result. Set false to save context.
wait_secondsintegerHow 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.

ParameterTypeDescription
text *stringThe text to speak.
extraobjectOptional 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_codestringOptional ISO 639-1 language hint for ElevenLabs, e.g. en, zh, ja.
modelstringTTS 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_tostringLocal server only, ElevenLabs only: also write the audio to this file path (e.g. ~/Desktop/line.mp3).
speednumberOptional speaking rate, about 0.5–2 (1 = normal).
voice_idstringVoice 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_secondsintegerHow 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.

ParameterTypeDescription
genderstringe.g. male, female.
languagestringISO 639-1 language code, e.g. en, zh, ja, es.
minebooleanList 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.
pageintegerPage number (default 1).
page_sizeintegerResults per page (default 20, max 100).
providerstringOnly voices for this TTS family (minimax-speech-*, eleven-tts-*, fish-*, kling-tts). Kling voices come from their own list (language filter only).
qstringFree-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.

ParameterTypeDescription
provider *string
sample *stringThe 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.
descriptionstringfish only: a short description of the voice.
namestringDisplay name. Required for elevenlabs and fish.
voice_idstringminimax 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.

ParameterTypeDescription
provider *string
voice_id *stringThe 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…

ParameterTypeDescription
model *stringsuno-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_urlstringeleven-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_secondsnumberSound effects: length in seconds (eleven-sfx-v3).
extraobjectOptional 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…
inputsarrayeleven-dialogue: the lines in order, each { text, voice_id } (voices from list_voices provider "elevenlabs").
instrumentalbooleansuno-v5: true for no vocals.
lyricsstringsuno-v5: your own lyrics (use write_lyrics to draft them). Leave out for lyrics written by the model.
promptstringsuno-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_langstringeleven-dubbing: source language code (optional, detected if omitted).
source_urlstringeleven-dubbing: the audio or video whose speech to translate. Same accepted forms.
tagsstringsuno-v5: style tags, e.g. "lo-fi hip hop, mellow, female vocals".
target_langstringeleven-dubbing: target language code, e.g. es, ja, zh.
titlestringsuno-v5: song title.
video_urlstringkling-video-to-audio: the video to add sound to. Same accepted forms; local videos up to 100 MB.
wait_secondsintegerHow 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…

ParameterTypeDescription
audio_url *stringThe 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…
modelstringSpeech-to-text model id. nemotron-3.5-transcribe is the only one for now.
target_languagestringTranslate the speech into this language instead of transcribing it. Only translation to or from English is guaranteed. Cannot be combined with timestamps: true.
timestampsbooleantrue: 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_secondsintegerHow 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.

ParameterTypeDescription
prompt *stringTheme 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.

ParameterTypeDescription
input *One string, or a list of up to 256 strings.
dimensionsintegerOptional: shorten the vectors to this many dimensions.
modelstring

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…

ParameterTypeDescription
url *stringThe post, profile, channel or video page URL.
cursorstringplaylist only: the next_cursor from the previous page.
opstring

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.

ParameterTypeDescription
questions *objectQuestions 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.

ParameterTypeDescription
source *stringThe 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_typestringDetected from the file extension when omitted.
group_idintegerOptional asset group id (list_assets shows them). Default: a group named "mcp", created on first use.
namestringOptional 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.

ParameterTypeDescription
group_idintegerOnly this group.
namestringFilter by name (partial match).
pageinteger
page_sizeintegerDefault 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.

ParameterTypeDescription
id *stringAsset 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.

ParameterTypeDescription
id *stringAsset id from upload_asset or list_assets.