Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_HOSTNoHost 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_PORTNoPort to bind the MCP server to. Default is 8000.8000
DEAPI_REDIS_DBNoRedis database number. Default is 11.11
DEAPI_REDIS_HOSTNoRedis host for the shared OAuth authorization code store. Unset uses an in-memory store, which only works with a single replica.
DEAPI_REDIS_PORTNoRedis port. Default is 6379.6379
DEAPI_API_VERSIONNodeAPI API version. Default is v2.v2
DEAPI_MAX_RETRIESNoMaximum number of HTTP retries. Default is 3.3
DEAPI_API_BASE_URLNodeAPI API base URL. Default is https://api.deapi.ai.https://api.deapi.ai
DEAPI_HTTP_TIMEOUTNoHTTP client timeout in seconds. Default is 30.0.30.0
DEAPI_REDIS_SCHEMENoRedis connection scheme: plain or tls. tls needs DEAPI_REDIS_CA_FILE. Default is plain.plain
DEAPI_REDIS_CA_FILENoPath to the CA file for a TLS Redis connection. Needed when DEAPI_REDIS_SCHEME is tls.
DEAPI_TOOL_MAX_WAITNoSeconds one tool call waits before returning done=false and the job_id. Default is 45.0.45.0
DEAPI_JWT_SECRET_KEYNoFixed 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_PASSWORDNoRedis password.
DEAPI_REDIS_REQUIREDNoIf true, refuse to start without a Redis host. Default is false.false
DEAPI_WEBHOOK_SECRETNoSecret the API signs callbacks with; 32-255 characters. Required when DEAPI_WEBHOOKS_INTERNAL is true, along with DEAPI_WEBHOOK_RECEIVER_URL.
DEAPI_WEBHOOKS_INTERNALNoEnable internal completion webhooks. Default is false.false
DEAPI_WEBHOOK_RECEIVER_URLNoReceiver 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__TIMEOUTNoTimeout in seconds for audio job polling. Default is 300.0.300.0
MCP_GRACEFUL_SHUTDOWN_SECONDSNoSeconds 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_DELAYNoMaximum delay in seconds for audio job polling. Default is 5.0.5.0
DEAPI_POLLING_AUDIO__INITIAL_DELAYNoInitial delay in seconds for audio job polling. Default is 1.0.1.0
DEAPI_WEBHOOK_FALLBACK_POLL_INTERVALNoFallback 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

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": true
}
resources
{
  "subscribe": false,
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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 mode unset and it is taken from the model's own card:

  • custom_voice: pick a preset voice (e.g. Kokoro, Chatterbox)

  • voice_clone: reproduce the speaker in ref_audio (+ optional ref_text)

  • voice_design: build a voice from an instruct description

lang and voice values are per-model and listed under each model in the "Available models" section below (Kokoro: lang 'en-us', voice 'af_alloy'; Qwen3: lang 'English'). Leave them unset to use the model's own defaults.

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. mode, voice and instruct are only validated, so the quote fails where the job would. Left unset they are taken from the model's card, exactly as text_to_audio does.

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. platform is only accepted alongside duration_seconds; with a URL the API derives the platform from the source.

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 duration_seconds and platform are rejected alongside it.

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 for a single source or images for up to five; the API rejects a request carrying both.

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:

  • Public URLs (recommended: chains with text_to_image, and the ONLY way in for a file of your own - chat clients do not pass files through to tools)

  • Data URIs or raw base64 (for callers that already hold the bytes)

image_upscaleA

Upscale an image to higher resolution.

Takes an image and upscales it using AI models for enhanced quality. Accepts images as:

  • Public URLs (recommended: chains with text_to_image, and the ONLY way in for a file of your own - chat clients do not pass files through to tools)

  • Data URIs or raw base64 (for callers that already hold the bytes)

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 — quality above all — change the quote, so omitting them here produces a number the job will not honour.

image_to_image_priceA

Calculate price for image-to-image transformation.

Pass the same parameters and source image(s) the edit call will use: quality and the input size both change the charge on some models, so a quote without them may not match the job.

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:

  • limits.max_steps/min_steps: Valid range for steps parameter

  • limits.max_fps/min_fps: Valid range for fps parameter

  • defaults: Recommended values for the model

image_to_videoA

Generate video from static image(s), or from reference images, videos and audio.

Two modes, mutually exclusive:

  • Keyframes: first_frame_image (and optionally last_frame_image) is animated.

  • References: ref_images / ref_videos / ref_audios, on models that support them (the model list shows "refs: ..." for those). The prompt addresses each reference by its tag: <Picture 1>, <Picture 2> for images, <Video 1> for a video, <Audio 1> for audio, numbered from 1 within each type in the order given. Order matters: swapping two images swaps what the tags refer to. Example prompt: "<Picture 1> walks into the room from <Picture 2>, speaking with the voice of <Audio 1>".

Accepts files as:

  • Public URLs (recommended: chains with text_to_image, and the ONLY way in for a file of your own - chat clients do not pass files through to tools)

  • Data URIs or raw base64 (for callers that already hold the bytes)

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:

  • Public URLs (recommended, and the ONLY way in for a file of your own - chat clients do not pass files through to tools)

  • Data URIs or raw base64 (for callers that already hold the bytes)

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_price first if you want a quote.

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:

  1. inference_types: List of supported operations (e.g., ["txt2img", "img2img"])

  2. info.limits: Min/max constraints for ALL parameters. Examples:

    • max_guidance/min_guidance: Valid range for guidance_scale

    • max_steps/min_steps: Valid range for inference steps

    • max_width/min_width, max_height/min_height: Image/video dimensions

    • max_frames/min_frames: Number of video frames

    • max_fps/min_fps: Video frame rate

  3. info.defaults: Recommended default values for the model. Examples:

    • If defaults.guidance="0", use guidance_scale=0

    • If defaults.steps="1", use steps=1

    • Use these when model has specific requirements

  4. info.features: Boolean flags (0=false, 1=true) indicating support:

    • supports_steps: If "0", model has fixed steps

    • supports_negative_prompt: If "0", don't pass negative_prompt

    • supports_last_frame: If "1", img2video supports initial frame control

    • supports_voice_clone / supports_voice_design / supports_custom_voice: which TTS mode the model implements. It implements exactly one and returns 422 for the others

    • supports_guidance: no model in the catalogue currently sets this to "1", so leave guidance unset and the model's own default is used

    • supports_image_refs / supports_video_refs / supports_audio_refs: img2video reference mode (ref_images / ref_videos / ref_audios); limits.max_ref_* give the counts, 0 meaning that type is not taken

    • supports_presets: video description presets, listed in limits.available_presets

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:

  1. Check inference_types includes "txt2video"

  2. Check limits.max_steps = "1" → must use steps=1

  3. Check limits.min_fps = "30", max_fps = "30" → must use fps=30

  4. Use defaults for other parameters (width=512, height=512, frames=120)

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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.5/5.0

Scored across 48 tools

Disambiguation4/5

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.

Naming Consistency4/5

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.

Tool Count2/5

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.

Completeness5/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues