deAPI MCP Server
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_HOST | No | Host to bind the MCP server to. Default is 0.0.0.0. Set to 127.0.0.1 for local mode, which may run without DEAPI_JWT_SECRET_KEY. | 0.0.0.0 |
| MCP_PORT | No | Port to bind the MCP server to. Default is 8000. | 8000 |
| DEAPI_REDIS_DB | No | Redis database number. Default is 11. | 11 |
| DEAPI_REDIS_HOST | No | Redis host for the shared OAuth authorization code store. Unset uses an in-memory store, which only works with a single replica. | |
| DEAPI_REDIS_PORT | No | Redis port. Default is 6379. | 6379 |
| DEAPI_API_VERSION | No | deAPI API version. Default is v2. | v2 |
| DEAPI_MAX_RETRIES | No | Maximum number of HTTP retries. Default is 3. | 3 |
| DEAPI_API_BASE_URL | No | deAPI API base URL. Default is https://api.deapi.ai. | https://api.deapi.ai |
| DEAPI_HTTP_TIMEOUT | No | HTTP client timeout in seconds. Default is 30.0. | 30.0 |
| DEAPI_REDIS_SCHEME | No | Redis connection scheme: plain or tls. tls needs DEAPI_REDIS_CA_FILE. Default is plain. | plain |
| DEAPI_REDIS_CA_FILE | No | Path to the CA file for a TLS Redis connection. Needed when DEAPI_REDIS_SCHEME is tls. | |
| DEAPI_TOOL_MAX_WAIT | No | Seconds one tool call waits before returning done=false and the job_id. Default is 45.0. | 45.0 |
| DEAPI_JWT_SECRET_KEY | No | Fixed signing key for OAuth tokens. Required when the server binds beyond loopback (the default host is 0.0.0.0) or uses Redis; without it the server refuses to start. On loopback it may run without a key, in which case it signs OAuth tokens with a per-process key and a restart logs clients out. | |
| DEAPI_REDIS_PASSWORD | No | Redis password. | |
| DEAPI_REDIS_REQUIRED | No | If true, refuse to start without a Redis host. Default is false. | false |
| DEAPI_WEBHOOK_SECRET | No | Secret the API signs callbacks with; 32-255 characters. Required when DEAPI_WEBHOOKS_INTERNAL is true, along with DEAPI_WEBHOOK_RECEIVER_URL. | |
| DEAPI_WEBHOOKS_INTERNAL | No | Enable internal completion webhooks. Default is false. | false |
| DEAPI_WEBHOOK_RECEIVER_URL | No | Receiver URL for internal completion webhooks. Must be reachable from api.deapi.ai. Required when DEAPI_WEBHOOKS_INTERNAL is true, along with DEAPI_WEBHOOK_SECRET. | |
| DEAPI_POLLING_AUDIO__TIMEOUT | No | Timeout in seconds for audio job polling. Default is 300.0. | 300.0 |
| MCP_GRACEFUL_SHUTDOWN_SECONDS | No | Seconds in-flight tool calls may run after SIGTERM before they are cancelled. Keep it below your platform's termination grace period. Default is 930. | 930 |
| DEAPI_POLLING_AUDIO__MAX_DELAY | No | Maximum delay in seconds for audio job polling. Default is 5.0. | 5.0 |
| DEAPI_POLLING_AUDIO__INITIAL_DELAY | No | Initial delay in seconds for audio job polling. Default is 1.0. | 1.0 |
| DEAPI_WEBHOOK_FALLBACK_POLL_INTERVAL | No | Fallback poll interval in seconds for internal webhooks. Default is 45.0. | 45.0 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": true
} |
| resources | {
"subscribe": false,
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| audio_transcriptionC | Transcribe audio file to text using Whisper models. Converts audio files to text transcription with optional timestamps. Automatically polls until transcription is complete. |
| text_to_audioA | Convert text to speech audio using TTS models. Generates natural-sounding speech from text with customizable voice and parameters. Supports three modes, and each model implements exactly one — passing the
wrong one is rejected with a 422. Leave
|
| text_to_musicA | Generate music from text description and lyrics. Creates music tracks from text prompts with customizable parameters including tempo, key, time signature, and optional style reference audio. IMPORTANT: Check model specifications using get_available_models() before calling. Pay attention to model limits for duration, inference_steps, guidance_scale, and bpm. |
| audio_transcription_priceA | Calculate price for audio transcription. Quotes an uploaded audio file by its length. For a URL use video_url_transcription_price or audio_url_transcription_price. |
| text_to_audio_priceA | Calculate price for text-to-audio generation. The price follows the number of characters (text, or count_text), the
language and the speed. |
| text_to_music_priceC | Calculate price for text-to-music generation. |
| audio_url_transcriptionA | Transcribe audio from Twitter Spaces URL to text using Whisper models. Extracts and transcribes audio from Twitter Spaces URLs. NOTE: This endpoint only works with Twitter Spaces URLs. For video content, use video_url_transcription instead. |
| audio_url_transcription_priceA | Calculate price for Twitter Spaces audio transcription. Provide either audio_url or duration_seconds for price calculation.
|
| video_file_transcriptionA | Transcribe video file to text using Whisper models. Extracts audio from video and converts it to text transcription with optional timestamps. Accepts video files as URLs (preferred), data URIs, or base64 strings. Automatically polls until transcription is complete. |
| video_url_transcriptionB | Transcribe video from URL to text using Whisper models. Extracts audio from video URL and converts it to text transcription with optional timestamps. Supports YouTube, Twitter/X, Twitch, Kick and TikTok videos. Automatically polls until transcription is complete. |
| video_file_transcription_priceA | Calculate price for video file transcription. Quotes an uploaded video file by its length. For a URL use video_url_transcription_price. |
| video_url_transcription_priceA | Calculate price for video URL transcription. Quote either from a URL or from a duration. The API accepts exactly one:
given a URL it derives duration and platform from the source itself, so
|
| text_to_imageB | Generate image from text prompt using AI diffusion models. Creates images from text descriptions. Returns the generated image URL. |
| image_to_imageA | Transform an existing image using a text prompt. Modifies images based on text descriptions. Useful for style transfer and editing. Accepts images as URLs (preferred), data URIs (data:image/...;base64,...), or base64 strings. When a URL is available (e.g., from a previous text_to_image result), always prefer passing the URL directly. Pass either |
| image_to_textB | Extract text from image using OCR (Optical Character Recognition). Reads text from images like documents, screenshots, signs, etc. |
| image_remove_backgroundA | Remove background from an image. Takes an image and removes its background, returning a transparent PNG. Accepts images as:
|
| image_upscaleA | Upscale an image to higher resolution. Takes an image and upscales it using AI models for enhanced quality. Accepts images as:
|
| text_to_image_priceA | Calculate price for text-to-image generation. Pass the same parameters the generation call will use. Fields that affect
the charge — |
| image_to_image_priceA | Calculate price for image-to-image transformation. Pass the same parameters and source image(s) the edit call will use:
|
| image_to_text_priceB | Calculate price for OCR text extraction. Pass the image, or its width and height. |
| image_remove_background_priceB | Calculate price for image background removal. Pass the image, or its width and height. |
| image_upscale_priceA | Calculate price for image upscaling. Pass the image, or its width and height. |
| text_to_videoA | Generate video from text prompt. Creates videos from text descriptions. Returns the generated video URL. IMPORTANT: Before calling this tool, use get_available_models() to check the model's specifications. Pay special attention to:
|
| image_to_videoA | Generate video from static image(s), or from reference images, videos and audio. Two modes, mutually exclusive:
Accepts files as:
IMPORTANT: Check model specifications using get_available_models() before calling. Pay attention to limits for width/height/frames/fps and, in reference mode, the max_ref_* counts and durations. |
| audio_to_videoA | Generate video from audio and text prompt. Creates videos conditioned on audio content. The audio drives the video generation, allowing synchronized audio-visual output. Optionally accepts anchor frame images. IMPORTANT: Check model specifications using get_available_models() before calling. Pay attention to features.supports_guidance, features.supports_steps, and model limits. |
| image_to_video_priceA | Calculate price for image-to-video generation. For reference mode, pass the number of reference files the job will carry (not the files themselves). Surcharges do not stack: the highest applies, so 4 images plus a video is x3, not x6. |
| text_to_video_priceC | Calculate price for text-to-video generation. |
| audio_to_video_priceC | Calculate price for audio-to-video generation. |
| video_descriptionA | Describe what happens on screen in a video, as a timestamped index of events. The visual counterpart of transcription: reads the picture, not the audio track (for speech use the transcription tools). Pass exactly one source: video_url for a YouTube, Twitter/X, Twitch, Kick or TikTok link, or video_file for a file. The result is a JSON document: {"events": [{"start", "end", "description", ...}], "scenes": [...], "meta": {"duration", "preset", ...}}, with start/end in seconds. Priced on machine time, so longer videos and higher presets cost more; quote first with video_description_price. A long video can take several minutes: if the tool times out, follow up with check_job_status. |
| video_description_priceA | Calculate the price of a video description. Pass exactly one source: video_url, video_file or duration_seconds (with an optional platform). Use the same preset and include_metadata the job will use, since both change the price. |
| video_upscaleA | Upscale a video to higher resolution. Takes a video and upscales it using AI models for enhanced quality. Accepts videos as:
|
| video_upscale_priceA | Calculate price for video upscaling. Pass the video itself, or its width, height and duration. |
| text_to_embeddingB | Generate text embeddings using AI models. Converts text into vector embeddings for semantic search, similarity comparison, and other NLP tasks. Accepts a single string or a list of strings. |
| text_to_embedding_priceC | Calculate price for text embedding generation. |
| prompt_boosterA | Enhance a prompt using AI guides tailored to a specific deAPI model + inference type. Synchronous — returns the enhanced prompt(s) directly. Charged per call;
use |
| prompt_booster_priceC | Calculate the price for a prompt-booster call. |
| get_balanceA | Get current account balance. Check your deAPI account balance and remaining credits. |
| get_available_modelsA | Get list of available AI models with detailed specifications. Retrieves all available models for different inference types (txt2img, txt2video, img2img, img2video, audio_file2text, img2txt, video2desc, etc.) along with their capabilities, limits, defaults, and features. IMPORTANT - How to use model specifications: Each model's 'info' field contains critical information you MUST check before using:
General rule: rather than assuming a value, omit the parameter and let the model's info.defaults apply, or read the bound from info.limits. Example workflow for txt2video with LTX-Video model:
|
| check_job_statusA | Check status of a submitted job, optionally waiting for it to finish. Every generation tool waits a limited time for its job. A job that takes longer (a long video, a long transcript, up to an hour) comes back with done=false and status 'processing'; call this with the job_id and wait_seconds to keep waiting, and repeat while done is false. Do not submit the job again — it is already running and paid for. |
| get_accountA | Get the account's balance, currency and auto top-up settings. Needs an ADMIN key. |
| get_account_usageA | Get the whole account's cost, requests and errors over a time window (the Usage screen of the dashboard). With group_by=key, 'panel' means jobs from the dashboard itself and 'deleted' all keys deleted since. Needs an ADMIN key. |
| list_paymentsA | List the account's balance top-ups, newest first. Needs an ADMIN key. |
| list_api_keysA | List the account's API keys, newest first: name, preview, role, status, expiry, spend limit and its use, IP allowlist. Secrets are never returned. Needs an ADMIN key. |
| get_api_keyA | Get one API key's details (never its secret). Without key_id: the key this connection uses, which works with any key; another key needs an ADMIN key. |
| get_api_key_usageA | Get one API key's cost, requests and errors over a time window. Without key_id: the key this connection uses, which works with any key; another key needs an ADMIN key. |
| create_api_keyB | Create a new API key on the account. Its secret is returned ONCE, in this result: tell the user to store it now. Needs an ADMIN key. If key management is turned off on this server, nothing is created and the result gives the dashboard link instead. |
| update_api_keyA | Change an API key: disable or re-enable it, or change its expiry, spend limit, reset window or IP allowlist. Only the given fields change. ADMIN keys can be changed only in the dashboard. Needs an ADMIN key. If key management is turned off on this server, nothing changes and the result gives the dashboard link instead. |
| delete_api_keyA | Permanently delete an API key: it stops working at once. This cannot be undone. ADMIN keys can be deleted only in the dashboard. Needs an ADMIN key. If key management is turned off on this server, nothing is deleted and the result gives the dashboard link instead. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 48 tools
Each generation operation has a distinct name tied to its inference type (text_to_image, image_to_video, audio_to_video, etc.), and the paired _price tools are clearly named as quotes. Minor overlaps exist: get_balance vs get_account both return balance, and the many *_price twins plus get_account_usage vs get_api_key_usage could trip an agent choosing between account-wide and key-scoped variants, but descriptions clarify the intended scope.
The set is overwhelmingly snake_case with a consistent <source>_to_<target> pattern for conversions and a uniform _price suffix for quote counterparts. Deviations like prompt_booster, video_upscale, check_job_status, and the verb_noun admin tools (create_api_key, list_payments) break the pattern slightly but remain readable and predictable.
At 48 tools the surface is heavy, effectively doubling every generation operation with a mandatory price-quote twin and adding separate account, key, usage, and model tools. Each tool is individually justified, but the overall count exceeds what an agent can comfortably navigate without a routing layer.
The surface covers the full lifecycle: generation across text/image/audio/video, pricing quotes for each, transcription, OCR, upscaling, embeddings, prompt boosting, model discovery, job status polling, and CRUD-plus-usage for API keys and account. No obvious dead ends remain for the stated media-generation domain.