Nodes/ComfyUI-TranslateLink/TranslateLink · Translate Text
ComfyUI Node

TranslateLink · Translate Text

A ComfyUI node in TranslateLink with 12 inputs and 1 output.

By leafiy·Created 18 days ago·Updated 16 days ago· 0
TranslateLink · Translate Text
    • translated_text
    providergoogle
    text
    source_languageauto
    target_languageen
    api_key
    api_secret
    endpoint
    model
    temperature0.10
    system_promptYou are a professional translator. Translate the user's text from {source_language} to {target_language}. Return only the translated text without explanations, labels, or Markdown fences. Preserve paragraph breaks and the meaning of placeholders, URLs, code fragments, and proper nouns.
    extra_body_json{}
    keep_alive5m
    CategoryTranslateLink

    Inputs (12)

    NameTypeDefaultDescription
    providerCOMBOgoogle5 options: google, baidu, openai, ollama, custom_http
    textSTRING
    source_languageCOMBOauto27 options: auto, en, zh, zh-TW, ja, ko, +21
    target_languageCOMBOen26 options: en, zh, zh-TW, ja, ko, fr, +20
    api_keyoptSTRINGgoogle: API key | baidu: App ID | openai: API key. Empty = use TRANSLATELINK_* env vars or config.json. Note: values typed here are saved in the workflow JSON.
    api_secretoptSTRINGbaidu only: the platform Secret. Empty = env var / config.json.
    endpointoptSTRINGEmpty = the provider's default endpoint. Required for custom_http.
    modeloptSTRINGopenai / ollama: model name (required for those providers).
    temperatureoptFLOAT0.100–2
    system_promptoptSTRINGYou are a professional translator. Translate the user's text from {source_language} to {target_language}. Return only the translated text without explanations, labels, or Markdown fences. Preserve paragraph breaks and the meaning of placeholders, URLs, code fragments, and proper nouns.openai / ollama translation prompt; {source_language} and {target_language} are filled in automatically.
    extra_body_jsonoptSTRING{}openai: JSON object merged into the request body; must not contain 'messages'.
    keep_aliveoptSTRING5mollama only.

    Outputs (1)

    NameTypeDescription
    translated_textSTRING