TokenLab MCP Server
v0.6.51TokenLab MCP server: generate images and video, call models.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
cancel_task Cancel async task
Cancels a queued asynchronous task when cancellation is supported for the selected task. Cancellation currently supports queued Seedance video tasks (`seedance-2.0` and `seedance-2.0-fast`) while they are still waiting to run. Tasks that are already processing, completed, failed, expired, or unsupported are not cancelled.
| Parameter | Type | Description |
|---|---|---|
id * | string | Returned id/task_id or the ID in poll_url. |
create_3d_model Create 3D model generation task
Creates a 3D model generation task using Tripo3D. Returns a task ID for polling.
| Parameter | Type | Description |
|---|---|---|
Idempotency-Key | string | Optional retry key; see the idempotency guide. |
X-TokenLab-Delivery-Policy | string | Per-request Delivery policy. Overrides the API key and Workspace defaults. Auto tries TokenLab Veri… |
format | string | |
image | string | Base64 image for image-to-3D |
image_url | string | |
model | string | 3D model ID. |
prompt | string | 3D prompt; required only if get_model lists prompt. |
quality | string | |
seed | integer | Repeatable generation seed where supported. |
style | string | Model-specific style hint. |
user | string | User ID. |
create_anthropic_message Create message (Anthropic-compatible)
Creates a model response using Anthropic's native request format. Supports Claude models with vision and streaming. **Authentication:** Use `x-api-key` header or `Authorization: Bearer` header.
| Parameter | Type | Description |
|---|---|---|
max_tokens * | integer | Maximum number of tokens to generate |
messages * | array | Messages in the conversation |
model * | string | Model ID. |
Idempotency-Key | string | Optional retry key; see the idempotency guide. |
X-TokenLab-Delivery-Policy | string | Per-request Delivery policy. Overrides the API key and Workspace defaults. Auto tries TokenLab Veri… |
metadata | object | Request metadata echoed into downstream logs or traces when supported. |
service_tier | string | Only auto and standard_only take effect. |
stop_sequences | array | |
stream_options | object | Streaming options such as usage chunk inclusion. |
system | string | System prompt |
temperature | number | |
thinking | object | Thinking configuration for compatible Anthropic-style models. |
tool_choice | object | Tool choice policy or explicit tool selection. |
tools | array | Tool definitions available to the model. |
top_k | integer | |
top_p | number |
create_chat_completion Create chat completion
Create an OpenAI-compatible chat completion. For inline image_url data URLs, declare the byte-accurate image MIME type. The MCP boundary corrects recognized PNG, JPEG, WebP, and GIF payloads declared as application/octet-stream and rejects unrecognized generic binary image payloads before sending a billable request.
| Parameter | Type | Description |
|---|---|---|
messages * | array | A list of messages comprising the conversation |
model * | string | Model ID. |
Idempotency-Key | string | Optional retry key; see the idempotency guide. |
X-TokenLab-Delivery-Policy | string | Per-request Delivery policy. Overrides the API key and Workspace defaults. Auto tries TokenLab Veri… |
anthropic_options | object | Options for Claude models. |
audio | object | Audio output configuration when requesting audio modality. |
extra | object | extra.prompt_caching/extra.prompt_caching_ttl alias anthropic_options. |
frequency_penalty | number | Frequency penalty (-2 to 2) |
function_call | Legacy function selection. | |
functions | array | Legacy function definitions. |
logit_bias | object | Per-token logit bias map. |
logprobs | boolean | Whether to return log probabilities for output tokens. |
max_completion_tokens | integer | Maximum completion tokens for newer reasoning-enabled model families |
max_tokens | integer | Maximum number of tokens to generate |
modalities | array | Requested output modalities such as text or audio. |
n | integer | Number of completions to generate |
parallel_tool_calls | boolean | Whether the model may issue parallel tool calls. |
prediction | object | Draft/speculative decoding hints. |
presence_penalty | number | Presence penalty (-2 to 2) |
reasoning_effort | string | Reasoning effort hint for compatible model families. |
response_format | object | Response format specification |
seed | integer | Seed for deterministic generation |
service_tier | string | null | Standard tier pricing; auto/default forwarded; flex/priority/fast/ultrafast ignored. |
stop | Stop sequences | |
temperature | number | Sampling temperature (0-2) |
tool_choice | Controls which function is called | |
tools | array | List of tools the model may call |
top_logprobs | integer | Top token count per position; requires logprobs. |
top_p | number | Nucleus sampling probability |
translation_options | object | Audio/video translation language settings. |
user | string | User ID for abuse detection. |
create_embedding Create embeddings
Creates an embedding vector representing the input text.
| Parameter | Type | Description |
|---|---|---|
input * | Input text(s) or token array(s) to embed. | |
model * | string | Model ID. |
X-TokenLab-Delivery-Policy | string | Per-request Delivery policy. Overrides the API key and Workspace defaults. Auto tries TokenLab Veri… |
dimensions | integer | Output vector dimensions |
encoding_format | string | Output format |
user | string | User ID. |
create_gemini_content Generate content (Gemini-compatible)
Generates content using the Gemini GenerateContent request shape. The model details must advertise Gemini requests and the model must be available. ProtoJSON lowerCamelCase and original proto snake_case field names are preserved. Unknown fields are accepted on a best-effort basis; model-specific support is not guaranteed. **Authentication:** Use `?key=` query parameter, `x-goog-api-key` header, or `Authorization: Bearer` header.
| Parameter | Type | Description |
|---|---|---|
contents * | array | Conversation contents |
model * | string | Gemini model ID. |
X-TokenLab-Delivery-Policy | string | Per-request Delivery policy. Overrides the API key and Workspace defaults. Auto tries TokenLab Veri… |
cachedContent | string | Gemini cached content resource name for compatible models. |
generationConfig | object | |
safetySettings | array | |
systemInstruction | object | |
toolConfig | object | Gemini tool configuration such as functionCallingConfig. |
tools | array | Gemini tools; allowed types/combinations depend on the selected service. |
create_image Create image
Creates an image given a prompt.
| Parameter | Type | Description |
|---|---|---|
model * | string | Explicit image model ID. |
Idempotency-Key | string | Optional retry key; see the idempotency guide. |
X-TokenLab-Delivery-Policy | string | Per-request Delivery policy. Overrides the API key and Workspace defaults. Auto tries TokenLab Veri… |
aspect_ratio | string | Aspect-ratio selector for compatible image model families. |
async | boolean | Async task if the model supports it. |
background | string | Background handling for compatible image flows. For gpt-image-2 generation and edits, accepted valu… |
cfg_scale | number | Model-specific image CFG scale. See get_model. |
compression | integer | Alias for output_compression when supported by the selected model |
expand_prompt | boolean | Ask compatible models to expand or enhance the prompt. |
frame_count | integer | GIF frames; output_format gif only. |
frame_duration_ms | integer | Milliseconds per GIF frame; output_format gif only. |
guidance | number | Model-specific guidance value. See get_model. |
guidance_scale | number | Model-specific guidance scale. See get_model. |
height | integer | Model-specific output height in pixels. See get_model. |
image_url | string | Single reference image URL for compatible image-to-image models. |
image_urls | array | Reference image URLs for compatible image-to-image models. |
mask_url | string | Optional mask URL for compatible image operations. |
moderation | string | Moderation strictness for compatible image models such as gpt-image-2 |
n | integer | Number of images to generate |
negative_prompt | string | Content to avoid for compatible image models. |
operation | string | Public image operation family. Reference-image models use image-to-image with image_url, image_urls… |
output_compression | integer | Output compression level from 0 to 100 for compressed formats |
output_format | string | Image format; gif and svg only where get_model lists them. |
prompt | string | Image prompt; required only if get_model lists prompt. |
prompt_extend | boolean | z-image-turbo prompt expansion; default false; true uses expansion pricing. |
quality | string | Model-specific image quality; check get_model for accepted values. |
reference_image_urls | array | Alias used by compatible reference-image model families. |
resolution | string | Resolution selector for compatible image model families. |
response_format | string | How the images are returned. Omitted: when the model returns image bytes, each image is in data[].b… |
seed | integer | Seed for deterministic-compatible image models. |
size | string | Model-specific image size; check get_model for sizes and limits. |
steps | integer | Model-specific inference step count. See get_model. |
style | string | Optional model-specific style selector. Only send when the selected model documents support for thi… |
svg | object | SVG settings; output_format svg only; svg.model is required. |
user | string | End-user identifier |
width | integer | Model-specific output width in pixels. See get_model. |
create_image_file Create image
Creates an image given a prompt.
| Parameter | Type | Description |
|---|---|---|
model * | string | Explicit image model ID. |
Idempotency-Key | string | Optional retry key; see the idempotency guide. |
X-TokenLab-Delivery-Policy | string | Per-request Delivery policy. Overrides the API key and Workspace defaults. Auto tries TokenLab Veri… |
aspect_ratio | string | |
async | boolean | Async task if the model supports it. |
background | string | |
cfg_scale | number | Model-specific image CFG scale. See get_model. |
compression | integer | |
expand_prompt | boolean | |
frame_count | integer | GIF frames; output_format gif only. |
frame_duration_ms | integer | Milliseconds per GIF frame; output_format gif only. |
guidance | number | Model-specific guidance value. See get_model. |
guidance_scale | number | Model-specific guidance scale. See get_model. |
height | integer | Model-specific output height in pixels. See get_model. |
image | string | Local reference image upload for compatible image-to-image models. Pass local file path. |
image_urls | string | Comma-separated reference image URLs. |
mask_url | string | |
moderation | string | |
n | integer | |
negative_prompt | string | |
operation | string | |
output_compression | integer | |
output_format | string | Image format; gif and svg only where get_model lists them. |
prompt | string | Image prompt; required only if get_model lists prompt. |
prompt_extend | boolean | z-image-turbo prompt expansion; default false; true uses expansion pricing. |
quality | string | Model-specific image quality; check get_model for accepted values. |
reference_image_urls | string | Comma-separated reference image URLs for compatible model families. |
resolution | string | |
response_format | string | |
seed | integer | |
size | string | Model-specific image size; check get_model for sizes and limits. |
steps | integer | Model-specific inference step count. See get_model. |
style | string | |
svg | string | SVG settings; output_format svg only; svg.model is required. |
user | string | |
width | integer | Model-specific output width in pixels. See get_model. |
create_multimodal_embedding Create multimodal embeddings
Creates embeddings for multimodal input items. Text input is generally available; image input may require feature enablement.
| Parameter | Type | Description |
|---|---|---|
input * | ||
model * | string | Multimodal embedding model ID. |
X-TokenLab-Delivery-Policy | string | Per-request Delivery policy. Overrides the API key and Workspace defaults. Auto tries TokenLab Veri… |
dimensions | integer | Optional embedding dimensionality when supported by the selected model |
create_music Create music generation task
Creates a music generation task using Suno. Returns a task ID for polling.
| Parameter | Type | Description |
|---|---|---|
Idempotency-Key | string | Optional retry key; see the idempotency guide. |
X-TokenLab-Delivery-Policy | string | Per-request Delivery policy. Overrides the API key and Workspace defaults. Auto tries TokenLab Veri… |
action | string | |
audio_operation | string | upload-extend needs continue_at; add-instrumental needs audio_url/title/tags/negative_tags. |
audio_url | string | Public audio URL; omitted audio_operation defaults to upload-cover. |
continue_at | number | Continuation time in seconds; required for upload-extend. |
continue_clip_id | string | Clip ID to continue when extending an existing generation. To set new lyrics with prompt, also send… |
make_instrumental | boolean | Generate instrumental output without vocals. |
model | string | Music model ID. |
mv | string | Suno model version; required for MUSIC/default action, omitted for lyrics-only. |
negative_tags | string | Styles to avoid. Required when audio_operation is add-instrumental. |
prompt | string | Prompt required for music/lyrics/upload-cover/upload-extend; omit for add-instrumental. |
tags | string | |
title | string | Song title. |
create_response Create response (OpenAI Responses API)
Creates a response using the OpenAI Responses API request shape. The model details must advertise the Responses request format and the model must be available. Unknown fields are accepted on a best-effort basis; model-specific support is not guaranteed.
| Parameter | Type | Description |
|---|---|---|
model * | string | Model to use |
Idempotency-Key | string | Optional retry key; see the idempotency guide. |
X-TokenLab-Delivery-Policy | string | Per-request Delivery policy. Overrides the API key and Workspace defaults. Auto tries TokenLab Veri… |
background | boolean | Whether to run the response asynchronously. |
include | array | Additional response sections to include when supported. |
input | String or structured input items. | |
instructions | string | System instructions |
max_output_tokens | integer | Maximum output tokens |
metadata | object | Request metadata. |
parallel_tool_calls | boolean | Whether the model may issue parallel tool calls. |
previous_response_id | string | ID of a previous response to continue. |
prompt | object | Reusable prompt template and variables. |
reasoning | object | Reasoning configuration. |
service_tier | string | null | Standard tier pricing; auto/default forwarded; flex/priority/fast/ultrafast ignored. |
store | boolean | Whether the response is stored for later retrieval. |
stream_options | object | Responses streaming options. |
temperature | number | |
text | object | Text formatting options. |
tool_choice | Tool choice policy or explicit tool selection. | |
tools | array | Tools; allowed types/combinations depend on the selected service. |
top_p | number | Nucleus sampling probability. |
truncation | string | Truncation strategy for long conversations. |
create_speech Create speech
Generates audio from the input text (Text-to-Speech).
| Parameter | Type | Description |
|---|---|---|
input * | string | Text to synthesize. |
model * | string | TTS model ID; no default. |
X-TokenLab-Delivery-Policy | string | Per-request Delivery policy. Overrides the API key and Workspace defaults. Auto tries TokenLab Veri… |
instructions | string | Style instructions for supported OpenAI-compatible TTS models. |
language_code | string | Language code for Gemini/xAI/compatible TTS. |
prompt | string | Gemini TTS style prompt. |
response_format | string | Audio format: mp3/opus/aac/flac/wav/pcm; model-specific support. |
speed | number | Speech speed where supported. |
stream_format | string | TokenLab delivery format. |
temperature | number | Gemini TTS sampling temperature. |
voice | Voice selector; some MiniMax models also accept voice_id. | |
voice_id | string | MiniMax voice selector. |
create_video Create video generation task
Creates an asynchronous video generation task. The response returns a canonical task ID and usually a preferred `poll_url`; clients should poll `poll_url` first, or use `/v1/tasks/{id}` as the fixed status endpoint.
| Parameter | Type | Description |
|---|---|---|
Idempotency-Key | string | Optional retry key; see the idempotency guide. |
X-TokenLab-Delivery-Policy | string | Per-request Delivery policy. Overrides the API key and Workspace defaults. Auto tries TokenLab Veri… |
aspect_ratio | string | Aspect ratio, for example 16:9; allowed values depend on the model (400 invalid_aspect_ratio). |
audio | boolean | Audio selector accepted by a few models, such as the Vidu models and `wan-2.6`. It must match `outp… |
audio_type | string | Audio control; support varies by model and operation. |
audio_url | string | Public audio URL for a supported audio-input operation. |
audio_urls | array | Compatibility array for audio-conditioned flows when multiple audio references are supported by the… |
bgm | boolean | Audio control; support varies by model and operation. |
cfg_scale | number | Prompt adherence strength (0-20) for models that expose CFG-style control. |
duration | integer | Duration in seconds; allowed values depend on the model (400 invalid_duration). Seedance also accep… |
end_image | string | Last frame image for start-end-to-video. Send it with start_image. Accepts the same inputs as start… |
execution_expires_after | integer | Optional execution expiry window in seconds for compatible video models. Seedance defaults to 17280… |
extend_at | integer | Model-specific video extension offset. |
extend_times | string | Model-specific extension multiplier/repeat count. |
fps | integer | Frames per second |
generate_audio | boolean | output_audio alias; all supplied audio toggles must match. |
height | integer | Pixel height; pair with width. |
image | string | Inline image as a data URL (for example, data:image/png;base64,...), up to 2,000,000 characters. Pr… |
image_url | string | Publicly reachable image URL for image-to-video generation, up to 8,192 characters, or asset://asse… |
image_urls | array | Image URLs for models that list this field. Seedance 2.5 accepts up to 30 image inputs in total acr… |
material_asset_id | string | TokenLab Seedance material asset ID returned by /v1/videos/assets or from a real-person group retur… |
material_asset_ids | array | TokenLab Seedance material asset IDs returned by /v1/videos/assets. Accepted by the Seedance 2.0 mo… |
model | string | Model ID. |
negative_prompt | string | What to avoid in the video |
operation | string | Video operation; if omitted, inferred from inputs. Send explicitly. |
output_audio | boolean | Audio-output selector for operations that declare it. Omission follows the model default; `false` r… |
output_format | string | mp4, mov or webm, where the model lists it. |
priority | integer | Task priority where supported; incompatible with service_tier=flex. |
prompt | string | Video description |
ratio | string | aspect_ratio alias; if both are sent, values must match. |
reference_images | array | Reference images for reference-to-video, as public image URLs or data URLs. The count limit depends… |
resolution | string | Resolution, for example 720p; allowed values depend on the model (400 invalid_resolution). |
return_last_frame | boolean | Return last frame where supported; Seedance default: false. |
safety_identifier | string | Optional safety/user trace identifier for compatible video models. If omitted for Seedance, TokenLa… |
seconds | integer | Alias of duration used by compatible request shapes. Seedance models also accept -1 to let the mode… |
seed | integer | Seed for reproducibility, for models that list this field. Seedance 2.0 models accept -1 for a rand… |
service_tier | string | Optional service tier for compatible video models. service_tier=default is accepted as a compatibil… |
size | string | Model-specific video size tier. |
start_image | string | First frame image. With end_image, the request is start-end-to-video. Without end_image, it is imag… |
task_id | string | Continuation/extension/derivative task ID. |
user | string | User ID. |
video_url | string | Public video URL for video-to-video or motion control. |
video_urls | array | Compatibility array for video-conditioned flows when multiple input videos are supported by the sel… |
voice_id | string | Audio control; support varies by model and operation. |
watermark | boolean | Watermark toggle where supported; Seedance default: false. |
width | integer | Pixel width; pair with height. |
delete_file Delete file
Deletes a batch file or a bound image/reference file.
| Parameter | Type | Description |
|---|---|---|
file_id * | string | File ID returned by the Files API. |
edit_image Edit image
Edits an image using multipart image uploads, JSON image URLs, or the official JSON images array for supported GPT Image models.
| Parameter | Type | Description |
|---|---|---|
model * | string | Explicit image-edit model ID. |
Idempotency-Key | string | Optional retry key; see the idempotency guide. |
X-TokenLab-Delivery-Policy | string | Per-request Delivery policy. Overrides the API key and Workspace defaults. Auto tries TokenLab Veri… |
aspect_ratio | string | |
async | boolean | Async task if the model supports it. |
background | string | |
cfg_scale | number | Model-specific image CFG scale. See get_model. |
compression | integer | |
control_strength | number | Model-specific edit control strength. See get_model. |
creativity | number | Model-specific image edit creativity. See get_model. |
fidelity | number | Model-specific image edit fidelity. See get_model. |
frame_count | integer | GIF frames; output_format gif only. |
frame_duration_ms | integer | Milliseconds per GIF frame; output_format gif only. |
guidance | number | Model-specific guidance value. See get_model. |
guidance_scale | number | Model-specific guidance scale. See get_model. |
height | integer | Model-specific output height in pixels. See get_model. |
image_url | string | Single source image URL. Kept for TokenLab compatibility; use images for the official JSON shape. |
image_urls | array | Multiple source image URLs. GPT Image edits accept up to 16 source images; xAI Grok Imagine Image 2… |
images | array | Official JSON image references for image edits. Provide exactly one of image_url or file_id for eac… |
mask | object | Optional JSON mask reference for image edits. Provide exactly one of image_url or file_id. Multipar… |
moderation | string | |
n | integer | |
output_compression | integer | |
output_format | string | Image format; gif and svg only where get_model lists them. |
prompt | string | |
quality | string | |
resolution | string | |
response_format | string | |
size | string | |
steps | integer | Model-specific inference step count. See get_model. |
user | string | |
width | integer | Model-specific output width in pixels. See get_model. |
edit_image_file Edit image
Edits an image using multipart image uploads, JSON image URLs, or the official JSON images array for supported GPT Image models.
| Parameter | Type | Description |
|---|---|---|
model * | string | Explicit image-edit model ID. |
Idempotency-Key | string | Optional retry key; see the idempotency guide. |
X-TokenLab-Delivery-Policy | string | Per-request Delivery policy. Overrides the API key and Workspace defaults. Auto tries TokenLab Veri… |
aspect_ratio | string | |
async | boolean | Async task if the model supports it. |
background | string | |
cfg_scale | number | Model-specific image CFG scale. See get_model. |
compression | integer | |
control_strength | number | Model-specific edit control strength. See get_model. |
creativity | number | Model-specific image edit creativity. See get_model. |
fidelity | number | Model-specific image edit fidelity. See get_model. |
frame_count | integer | GIF frames; output_format gif only. |
frame_duration_ms | integer | Milliseconds per GIF frame; output_format gif only. |
guidance | number | Model-specific guidance value. See get_model. |
guidance_scale | number | Model-specific guidance scale. See get_model. |
height | integer | Model-specific output height in pixels. See get_model. |
image | Source image file(s). Repeat image for multiple source images. GPT Image edits accept up to 16 imag… | |
mask | string | Pass local file path. |
moderation | string | |
n | integer | |
output_compression | integer | |
output_format | string | Image format; gif and svg only where get_model lists them. |
prompt | string | |
quality | string | |
resolution | string | |
response_format | string | |
size | string | |
steps | integer | Model-specific inference step count. See get_model. |
user | string | |
width | integer | Model-specific output width in pixels. See get_model. |
evaluate_decisions Evaluate decision questions
Evaluate typed Noul probability, Choice, and Score questions against shared state using the native System One endpoint. Discover a decision model with list_models/get_model first. Returns synchronous structured decisions, not chat text. A decision does not authorize an external action.
| Parameter | Type | Description |
|---|---|---|
model * | string | |
questions * | object | |
state * | ||
X-TokenLab-Delivery-Policy | string | Per-request Delivery policy. Overrides the API key and Workspace defaults. Auto tries TokenLab Veri… |
get_model Get model
Retrieves current model details, including supported operations, request parameters, request endpoints, selector limits, and pricing when available. Non-chat integrations should read these current model-specific request details before creating a request.
| Parameter | Type | Description |
|---|---|---|
model * | string | The model ID |
get_model_pricing Get model pricing
Retrieves pricing-only detail for one model. No API key is needed. Use it to explain a price, not to build a request.
| Parameter | Type | Description |
|---|---|---|
model * | string | The model ID |
get_pricing List model pricing
Returns the public pricing surface for active models, with optional provider and tag filters.
| Parameter | Type | Description |
|---|---|---|
provider | string | Filter by provider ID. |
tag | string | Filter by model tag. |
get_task_status Get async task status
Retrieves the status and result of an asynchronous generation task. Prefer the `poll_url` returned by the create response; `/v1/tasks/{id}` is the canonical fixed status endpoint for video, music, and 3D jobs.
| Parameter | Type | Description |
|---|---|---|
id * | string | Returned id/task_id or the ID in poll_url. |
list_files List files
List files
| Parameter | Type | Description |
|---|---|---|
after | string | |
limit | integer | Files to return. |
purpose | string | Optional file purpose filter. batch and batch_output cover Batch API files; user_data and vision co… |
list_models List models
Lists the currently available models. Use `view=compact` for model selection and `view=full` for the existing OpenAI-compatible discovery shape. Native API calls default to `full`; integrations may choose `compact` as their default. Non-chat recommendations are available through `recommended_for`.
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by model category. |
provider | string | Public provider filter (openai/anthropic/google/minimax). |
recommended_for | string | Sort non-chat models for a task; include recommendation evidence. |
tag | string | Filter by a public capability tag. |
view | string | compact by default; full returns the complete OpenAI-compatible list. |
rerank_documents Rerank documents
Reranks documents by relevance to a query using semantic similarity.
| Parameter | Type | Description |
|---|---|---|
documents * | array | Documents to rerank. |
model * | string | Reranker model to use |
query * | string | Search query. |
X-TokenLab-Delivery-Policy | string | Per-request Delivery policy. Overrides the API key and Workspace defaults. Auto tries TokenLab Veri… |
return_documents | boolean | |
top_n | integer | Number of results to return |
retrieve_file Retrieve file
Retrieve file
| Parameter | Type | Description |
|---|---|---|
file_id * | string |
retrieve_file_content Retrieve file content
Retrieve file content
| Parameter | Type | Description |
|---|---|---|
file_id * | string |
transcribe_audio Create transcription
Transcribes audio into text (Speech-to-Text).
| Parameter | Type | Description |
|---|---|---|
file * | string | Audio file to transcribe Pass local file path. |
model * | string | Transcription model ID; no default. |
X-TokenLab-Delivery-Policy | string | Per-request Delivery policy. Overrides the API key and Workspace defaults. Auto tries TokenLab Veri… |
language | string | ISO-639-1 language code |
prompt | string | Optional prompt text |
response_format | string | Response format |
temperature | number | Sampling temperature |
timestamp_granularities | array | Timestamp granularity selection. Requires verbose_json output when requesting word-level timestamps. |
translate_audio Translate audio
Transcribes audio and translates the result to English.
| Parameter | Type | Description |
|---|---|---|
file * | string | Pass local file path. |
model * | string | |
X-TokenLab-Delivery-Policy | string | Per-request Delivery policy. Overrides the API key and Workspace defaults. Auto tries TokenLab Veri… |
prompt | string | |
response_format | string | |
temperature | number |
translate_text Translate text
Translates text into a target language using the current translation request format.
| Parameter | Type | Description |
|---|---|---|
model * | string | |
target_language * | string | |
text * | string | |
X-TokenLab-Delivery-Policy | string | Per-request Delivery policy. Overrides the API key and Workspace defaults. Auto tries TokenLab Veri… |
source_language | string |
upload_file Upload file
Uploads a TokenLab/OpenAI-compatible batch or image file.
| Parameter | Type | Description |
|---|---|---|
file * | string | The file: up to 200 MiB for batch, 50 MiB for images. Pass local file path. |
model | string | Optional TokenLab extension for image file uploads. Defaults to gpt-image-2 and binds the returned … |
purpose | string | Use batch for Batch API JSONL files, or user_data/vision for image edits. |
compare_models Compare TokenLab Models
Compare public TokenLab model details and pricing for several model IDs.
| Parameter | Type | Description |
|---|---|---|
models * | array | |
include_raw | boolean |
get_api_overview Get TokenLab API Overview
Fetch TokenLab's agent-readable API overview.