Ves al contingut

Black Friday: 70% de descompte en plans anuals, 50% de descompte el primer mes. Acaba el diumenge, 6 de desembre.

Veure preusVeure preus
Lingivio
Prova-ho gratisVes al tauler

Agents d'IA i automatització

Lingivio tradueix fitxers de documents sencers i retorna un fitxer del mateix tipus, conservant-ne la disposició, les fórmules i els números. Un agent d'IA, un script o una eina de flux de treball pot fer tot el que fa l'aplicació mitjançant la REST API. Aquesta pàgina és la via ràpida. La referència de l'API inclou tots els endpoints.

Vies de connexió i quines estan obertes actualment

REST API Disponible

Puja un fitxer, consulta'n el cost en crèdits, tradueix-lo i baixa'n el resultat amb una clau d'API. Els plans Business i Enterprise ho inclouen.

Comença amb la guia d'inici ràpid
Servidor MCP Disponible

Fes servir Lingivio des de Claude, ChatGPT, Cursor i qualsevol altre client MCP, amb la sessió iniciada al teu compte i pagant amb els teus crèdits.

Com funciona
llms.txt Disponible

Un índex de text pla d'aquest lloc per a models de llenguatge i una versió més llarga que inclou aquesta guia i els seus exemples.

Llegeix llms-full.txt
Zapier, n8n i Make Previst

Connectors sense codi perquè un flux de treball pugui traduir un document sense escriure codi. Estan previstos, però encara no estan disponibles. Mentrestant, crida l'API REST des del pas HTTP de l'eina de fluxos de treball.

Què pot fer un agent

Tradueix un fitxer i rep un fitxer del mateix tipus. Formats acceptats:

  • .txt
  • .md
  • .csv
  • .html
  • .srt
  • .xlsx
  • .docx
  • .pptx
  • .odt
  • .ods
  • .odp
  • .pdf
  • .png
  • .jpg
  • .webp
  • Llegeix el cost exacte en crèdits de la resposta a la pujada abans que es cobri res. Atura't si el cost supera el que hauria de gastar la tasca.
  • Envia fins a 20 fitxers en una sola sol·licitud per lots.
  • Segueix el progrés real: segments completats respecte del total.
  • Pren decisions segons una classe d'error estable. Indica si tornar-ho a provar pot ajudar i què ha passat amb els crèdits reservats.

Què no fa

  • Tradueix fitxers, no text independent. L'API pública no té cap endpoint per a una cadena de text. Envia el text com a fitxer .txt o .md.
  • Els fitxers pujats i les traduccions s'eliminen en un termini de 24 hores després de pujar-los. Baixa el resultat aviat.
  • Un PDF escanejat pot tenir com a màxim 100 pàgines. Cada pla també limita la mida del fitxer i els crèdits que pot costar. La pàgina de preus indica tots dos límits.
  • No totes les llengües estan disponibles en tots els formats. La sortida en PDF i imatge admet menys sistemes d'escriptura que els fitxers Office i de text. La pàgina de llengües enumera totes les parelles.

Obtén una clau

Els plans Business i Enterprise inclouen accés a l'API. Crea una clau a Configuració → Claus d'API. La clau només es mostra una vegada. Envia-la com a token de portador en cada sol·licitud.

Dona la clau a l'entorn d'execució de l'agent, no al model. Desa-la en una variable d'entorn que llegeixi el codi de l'eina. No la posis mai en un prompt, un argument d'eina o un fitxer que el model pugui obrir.

JavaScript
const res = await fetch('https://api.lingivio.com/v1/me', {
  headers: { Authorization: `Bearer ${process.env.LINGIVIO_KEY}` },
});
console.log(res.status, await res.json());
TypeScript
const res: Response = await fetch('https://api.lingivio.com/v1/me', {
  headers: { Authorization: `Bearer ${process.env.LINGIVIO_KEY}` },
});
console.log(res.status, await res.json());
Python
import os
import httpx

res = httpx.get(
    "https://api.lingivio.com/v1/me",
    headers={"Authorization": f"Bearer {os.environ['LINGIVIO_KEY']}"},
)
print(res.status_code, res.json())
Ruby
require "json"
require "net/http"

uri = URI("https://api.lingivio.com/v1/me")
req = Net::HTTP::Get.new(uri, "Authorization" => "Bearer #{ENV.fetch("LINGIVIO_KEY")}")
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
puts res.code, JSON.parse(res.body)
Go
package main

import (
	"fmt"
	"io"
	"net/http"
	"os"
)

func main() {
	req, _ := http.NewRequest("GET", "https://api.lingivio.com/v1/me", nil)
	req.Header.Set("Authorization", "Bearer "+os.Getenv("LINGIVIO_KEY"))
	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)
	fmt.Println(res.StatusCode, string(body))
}
cURL
curl https://api.lingivio.com/v1/me -H "Authorization: Bearer $LINGIVIO_KEY"

Tradueix un fitxer

Copia aquest codi tal com està. Puja un PDF i en llegeix el tipus verificat, la llengua detectada i el cost en crèdits. Després tradueix el PDF en paral·lel a Japonès, en consulta l'estat fins que acaba i baixa el resultat.

JavaScript
// Node 18+, Bun or Deno — save as translate.mjs and run `node translate.mjs`.
import { readFile, writeFile } from 'node:fs/promises';

const API = 'https://api.lingivio.com';
const auth = { Authorization: `Bearer ${process.env.LINGIVIO_KEY}` };

// 1. Upload. The answer carries the verified content type, the detected source language and the
//    real credit count, so you can price the job before you start it.
const form = new FormData();
form.append('file', new Blob([await readFile('report.pdf')]), 'report.pdf');
const file = await fetch(`${API}/v1/files`, { method: 'POST', headers: auth, body: form })
  .then((r) => r.json());
if (!file.id) throw new Error(JSON.stringify(file.error));
console.log(file.content_type, file.detected_source_language, file.credits);

// 2. Translate. The same Idempotency-Key and body return the SAME translation, billed once.
let job = await fetch(`${API}/v1/translations`, {
  method: 'POST',
  headers: { ...auth, 'content-type': 'application/json', 'Idempotency-Key': crypto.randomUUID() },
  body: JSON.stringify({ file_id: file.id, target_language: 'ja', side_by_side: true }),
}).then((r) => r.json());

// 3. Poll while the job is IN PROGRESS, on REAL segment counts. Every other answer ends the loop:
//    done, failed, canceled, needs_review — or no status at all (an error answer).
const IN_PROGRESS = ['pending', 'queued', 'dispatched', 'running', 'cancel_requested'];
while (IN_PROGRESS.includes(job.status)) {
  await new Promise((resolve) => setTimeout(resolve, 3000));
  job = await fetch(`${API}/v1/translations/${job.id}`, { headers: auth }).then((r) => r.json());
  if (job.progress) console.log(job.progress.done, '/', job.progress.total);
}
// Only a finished job has an output; `error.class` is stable and machine-readable.
if (job.status !== 'done') throw new Error(`${job.status ?? 'no status'}: ${JSON.stringify(job.error)}`);

// 4. Download
const out = await fetch(`${API}/v1/translations/${job.id}/output`, { headers: auth });
await writeFile('report.ja.pdf', Buffer.from(await out.arrayBuffer()));
TypeScript
// TypeScript on Node 18+ (tsx), Bun or Deno — save as translate.ts and run `npx tsx translate.ts`.
import { readFile, writeFile } from 'node:fs/promises';

const API = 'https://api.lingivio.com';
const auth = { Authorization: `Bearer ${process.env.LINGIVIO_KEY}` };

interface ApiError { class: string; retryable: boolean; credit_action: string }
interface PublicFile { id: string; content_type: string; detected_source_language: string | null; credits: number | null }
interface PublicTranslation {
  id: string;
  status: string;
  progress: { done: number; total: number } | null;
  error: ApiError | null;
}

// 1. Upload: the answer is the verified file, with its real credit count.
const form = new FormData();
form.append('file', new Blob([await readFile('report.pdf')]), 'report.pdf');
const upload = await fetch(`${API}/v1/files`, { method: 'POST', headers: auth, body: form });
const file = (await upload.json()) as PublicFile & { error?: ApiError };
if (!upload.ok) throw new Error(file.error?.class);
console.log(file.content_type, file.detected_source_language, file.credits);

// 2. Translate (idempotent: a retry with the same key and body is billed once)
let job = (await fetch(`${API}/v1/translations`, {
  method: 'POST',
  headers: { ...auth, 'content-type': 'application/json', 'Idempotency-Key': crypto.randomUUID() },
  body: JSON.stringify({ file_id: file.id, target_language: 'ja', side_by_side: true }),
}).then((r) => r.json())) as Partial<PublicTranslation>;

// 3. Poll while the job is IN PROGRESS. Every other answer ends the loop: done, failed, canceled,
//    needs_review — or no status at all (an error answer).
const IN_PROGRESS: string[] = ['pending', 'queued', 'dispatched', 'running', 'cancel_requested'];
while (job.status !== undefined && IN_PROGRESS.includes(job.status)) {
  await new Promise((resolve) => setTimeout(resolve, 3000));
  job = (await fetch(`${API}/v1/translations/${job.id}`, { headers: auth }).then((r) => r.json())) as PublicTranslation;
  if (job.progress) console.log(job.progress.done, '/', job.progress.total);
}
if (job.status !== 'done') throw new Error(`${job.status ?? 'no status'}: ${JSON.stringify(job.error)}`);

// 4. Download
const out = await fetch(`${API}/v1/translations/${job.id}/output`, { headers: auth });
await writeFile('report.ja.pdf', new Uint8Array(await out.arrayBuffer()));
Python
# Python 3.9+ with httpx (pip install httpx).
import os
import time
import uuid
import httpx

API = "https://api.lingivio.com"
auth = {"Authorization": f"Bearer {os.environ['LINGIVIO_KEY']}"}

with httpx.Client(base_url=API, headers=auth, timeout=120) as http:
    # 1. Upload: the answer carries the verified type, the source language and the real credits.
    with open("report.pdf", "rb") as fh:
        file = (
            http.post("/v1/files", files={"file": ("report.pdf", fh)})
            .raise_for_status()
            .json()
        )
    print(file["content_type"], file["detected_source_language"], file["credits"])

    # 2. Translate (idempotent: a retry with the same key and body is billed once)
    job = (
        http.post(
            "/v1/translations",
            headers={"Idempotency-Key": str(uuid.uuid4())},
            json={"file_id": file["id"], "target_language": "ja", "side_by_side": True},
        )
        .raise_for_status()
        .json()
    )

    # 3. Poll while the job is IN PROGRESS, on REAL segment counts. Every other answer ends the
    #    loop: done, failed, canceled, needs_review — or no status at all (an error answer).
    IN_PROGRESS = {"pending", "queued", "dispatched", "running", "cancel_requested"}
    while job.get("status") in IN_PROGRESS:
        time.sleep(3)
        job = http.get(f"/v1/translations/{job['id']}").json()
        if job.get("progress"):
            print(job["progress"]["done"], "/", job["progress"]["total"])
    # Only a finished job has an output; error.class is stable and machine-readable.
    if job.get("status") != "done":
        raise RuntimeError(f"{job.get('status', 'no status')}: {job.get('error')}")

    # 4. Download
    out = http.get(f"/v1/translations/{job['id']}/output").raise_for_status()
    with open("report.ja.pdf", "wb") as fh:
        fh.write(out.content)
Ruby
# Ruby 3+, standard library only.
require "json"
require "net/http"
require "securerandom"

API = URI("https://api.lingivio.com")
KEY = ENV.fetch("LINGIVIO_KEY")

def call(request)
  request["Authorization"] = "Bearer #{KEY}"
  Net::HTTP.start(API.host, API.port, use_ssl: API.scheme == "https") { |http| http.request(request) }
end

# 1. Upload: the answer carries the verified type, the source language and the real credits.
upload = Net::HTTP::Post.new("/v1/files")
upload.set_form([["file", File.open("report.pdf", "rb"), { filename: "report.pdf" }]], "multipart/form-data")
file = JSON.parse(call(upload).body)
raise file["error"].to_s unless file["id"]
puts [file["content_type"], file["detected_source_language"], file["credits"]].join(" ")

# 2. Translate (idempotent: a retry with the same key and body is billed once)
start = Net::HTTP::Post.new("/v1/translations", "content-type" => "application/json",
                            "Idempotency-Key" => SecureRandom.uuid)
start.body = JSON.generate(file_id: file["id"], target_language: "ja", side_by_side: true)
job = JSON.parse(call(start).body)

# 3. Poll while the job is IN PROGRESS. Every other answer ends the loop: done, failed, canceled,
#    needs_review — or no status at all (an error answer).
IN_PROGRESS = ["pending", "queued", "dispatched", "running", "cancel_requested"]
while IN_PROGRESS.include?(job["status"])
  sleep 3
  job = JSON.parse(call(Net::HTTP::Get.new("/v1/translations/#{job["id"]}")).body)
  puts "#{job["progress"]["done"]} / #{job["progress"]["total"]}" if job["progress"]
end
raise "#{job["status"] || "no status"}: #{job["error"]}" if job["status"] != "done"

# 4. Download
out = call(Net::HTTP::Get.new("/v1/translations/#{job["id"]}/output"))
File.binwrite("report.ja.pdf", out.body)
Go
// Go 1.21+, standard library only: go run translate.go
package main

import (
	"bytes"
	"crypto/rand"
	"encoding/json"
	"fmt"
	"io"
	"mime/multipart"
	"net/http"
	"os"
	"slices"
	"time"
)

const api = "https://api.lingivio.com"

var key = os.Getenv("LINGIVIO_KEY")

type translation struct {
	ID       string                     `json:"id"`
	Status   string                     `json:"status"`
	Progress *struct{ Done, Total int } `json:"progress"`
	Error    json.RawMessage            `json:"error"`
}

func call(method, path, contentType string, body io.Reader, headers map[string]string) *http.Response {
	req, _ := http.NewRequest(method, api+path, body)
	req.Header.Set("Authorization", "Bearer "+key)
	if contentType != "" {
		req.Header.Set("Content-Type", contentType)
	}
	for k, v := range headers {
		req.Header.Set(k, v)
	}
	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	return res
}

func decode(res *http.Response, into any) {
	defer res.Body.Close()
	if err := json.NewDecoder(res.Body).Decode(into); err != nil {
		panic(err)
	}
}

func main() {
	// 1. Upload: the answer carries the verified type, the source language and the real credits.
	var form bytes.Buffer
	mw := multipart.NewWriter(&form)
	part, _ := mw.CreateFormFile("file", "report.pdf")
	pdf, _ := os.ReadFile("report.pdf")
	part.Write(pdf)
	mw.Close()
	var file struct {
		ID                     string          `json:"id"`
		ContentType            string          `json:"content_type"`
		DetectedSourceLanguage string          `json:"detected_source_language"`
		Credits                int             `json:"credits"`
		Error                  json.RawMessage `json:"error"`
	}
	decode(call("POST", "/v1/files", mw.FormDataContentType(), &form, nil), &file)
	if file.ID == "" {
		panic(string(file.Error))
	}
	fmt.Println(file.ContentType, file.DetectedSourceLanguage, file.Credits)

	// 2. Translate (idempotent: a retry with the same key and body is billed once)
	idem := make([]byte, 16)
	rand.Read(idem)
	body, _ := json.Marshal(map[string]any{"file_id": file.ID, "target_language": "ja", "side_by_side": true})
	var job translation
	decode(call("POST", "/v1/translations", "application/json", bytes.NewReader(body),
		map[string]string{"Idempotency-Key": fmt.Sprintf("%x", idem)}), &job)

	// 3. Poll while the job is IN PROGRESS. Every other answer ends the loop: done, failed,
	//    canceled, needs_review — or no status at all (an error answer).
	inProgress := []string{"pending", "queued", "dispatched", "running", "cancel_requested"}
	for slices.Contains(inProgress, job.Status) {
		time.Sleep(3 * time.Second)
		id := job.ID
		job = translation{}
		decode(call("GET", "/v1/translations/"+id, "", nil, nil), &job)
		if job.Progress != nil {
			fmt.Println(job.Progress.Done, "/", job.Progress.Total)
		}
	}
	if job.Status != "done" {
		panic(fmt.Sprintf("%q: %s", job.Status, job.Error))
	}

	// 4. Download
	res := call("GET", "/v1/translations/"+job.ID+"/output", "", nil, nil)
	defer res.Body.Close()
	out, _ := os.Create("report.ja.pdf")
	defer out.Close()
	io.Copy(out, res.Body)
}
cURL
# 1. Create a key in Settings → API keys (Business and Enterprise plans), then:
export KEY="llk_your_key_here"
export API="https://api.lingivio.com"

# 2. Upload the file. The response carries the VERIFIED content type, the detected
#    source language and the real credit count — so you can price the job first.
#    (`page_count` is the same number under its old, misleading name; prefer `credits`.)
FILE=$(curl -s -X POST "$API/v1/files" \
  -H "Authorization: Bearer $KEY" \
  -F "file=@report.pdf")
echo "$FILE" | jq '{id, content_type, detected_source_language, credits}'
FILE_ID=$(echo "$FILE" | jq -r .id)

# 3. Start the translation. Idempotency-Key makes a retry safe: the same key with the
#    same body returns the SAME translation and is billed once.
JOB=$(curl -s -X POST "$API/v1/translations" \
  -H "Authorization: Bearer $KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "content-type: application/json" \
  -d '{"file_id":"'"$FILE_ID"'","target_language":"ja","side_by_side":true}')
JOB_ID=$(echo "$JOB" | jq -r .id) # null if refused: "$JOB" then names the error class

# 4. Poll while the job is IN PROGRESS. progress.done / progress.total are REAL segment counts.
#    Every other answer ends the loop: done, failed, canceled, needs_review — or no status at all
#    (an error answer: the job was refused, expired, or the key was revoked).
IN_PROGRESS=" pending queued dispatched running cancel_requested "
STATUS=$(echo "$JOB" | jq -r '.status // empty')
while [ -n "$STATUS" ] && [[ "$IN_PROGRESS" == *" $STATUS "* ]]; do
  sleep 3
  JOB=$(curl -s "$API/v1/translations/$JOB_ID" -H "Authorization: Bearer $KEY")
  STATUS=$(echo "$JOB" | jq -r '.status // empty')
done

# 5. Download — only a finished job has an output. Anything else: the answer names the error class.
if [ "$STATUS" = done ]; then
  curl -s "$API/v1/translations/$JOB_ID/output" -H "Authorization: Bearer $KEY" -o report.ja.pdf
else
  echo "$JOB" | jq '{status, error}'
fi
Fitxers grans, llengües i formats, i la referència completa

Proporciona-la a un agent com a eina

Una funció Python que un framework d'agents pot registrar com a eina, amb el JSON Schema per al model. Rebutja un fitxer que costi més que el límit que li passis. Deriva la seva Idempotency-Key del fitxer i la llengua perquè una crida repetida es cobri una sola vegada. Retorna l'error en lloc de generar una excepció, perquè l'agent pugui decidir què fer després.

Python
# A tool an AI agent can call: translate one local file and save the result beside it.
# Register `translate_document` with your agent framework and give the model TOOL_SCHEMA.
import os
import time
import httpx

API = "https://api.lingivio.com"
auth = {"Authorization": f"Bearer {os.environ['LINGIVIO_KEY']}"}

TOOL_SCHEMA = {
    "name": "translate_document",
    "description": "Translate a document file into another language and save a file of the "
    "same type. Layout, formulas, numbers and codes are kept. Costs credits.",
    "input_schema": {
        "type": "object",
        "properties": {
            "path": {"type": "string", "description": "Path of the file to translate"},
            "target_language": {
                "type": "string",
                "description": "Language code, e.g. de",
            },
            "max_credits": {"type": "integer", "description": "Refuse above this cost"},
        },
        "required": ["path", "target_language"],
    },
}

# Every other answer ends the poll: done, failed, canceled, needs_review, or an error answer.
IN_PROGRESS = {"pending", "queued", "dispatched", "running", "cancel_requested"}


def translate_document(
    path: str, target_language: str, max_credits: int | None = None
) -> dict:
    """{"output": path, "credits": n} on success; otherwise {"error": ...} to branch on."""
    with httpx.Client(base_url=API, headers=auth, timeout=120) as http:
        # 1. Upload. The answer carries the verified credit cost; nothing is charged yet.
        with open(path, "rb") as fh:
            r = http.post("/v1/files", files={"file": (os.path.basename(path), fh)})
        file = r.json()
        if r.is_error:
            return {"error": file.get("error")}
        if max_credits is not None and file["credits"] > max_credits:
            return {"error": "over_budget", "credits": file["credits"]}

        # 2. Translate. The key is derived from the file and the language, so an agent that
        #    retries this step gets the SAME translation back and is billed once.
        r = http.post(
            "/v1/translations",
            headers={"Idempotency-Key": f"translate-{file['id']}-{target_language}"},
            json={"file_id": file["id"], "target_language": target_language},
        )
        job = r.json()

        # 3. Poll on real segment counts.
        while job.get("status") in IN_PROGRESS:
            time.sleep(3)
            job = http.get(f"/v1/translations/{job['id']}").json()
        if job.get("status") != "done":
            return {"error": job.get("error"), "status": job.get("status")}

        # 4. Download a file of the same type.
        out = http.get(f"/v1/translations/{job['id']}/output").raise_for_status()
        root, ext = os.path.splitext(path)
        output = f"{root}.{target_language}{ext}"
        with open(output, "wb") as fh:
            fh.write(out.content)
        return {"output": output, "credits": file["credits"]}


if __name__ == "__main__":
    print(translate_document("report.docx", target_language="de"))

Necessita Python 3.10 o posterior i httpx. Crida els mateixos endpoints que la guia d'inici ràpid. No està vinculada a cap framework d'agents concret.

Regles que ha de seguir un agent

Idempotència

Envia Idempotency-Key en qualsevol POST. La mateixa clau amb el mateix cos retorna el recurs creat per la primera crida i es cobra exactament una vegada. La mateixa clau amb un cos diferent es rebutja amb un 409. Les claus es recorden durant 24 hores.

Límits de sol·licituds

Els límits són per clau, en una finestra fixa de 60 segons. Cada resposta inclou X-RateLimit-Limit i X-RateLimit-Remaining. Una resposta 429 inclou Retry-After. Dues claus d'un mateix compte tenen límits separats.

Classes d'error

Cada error inclou una classe estable, un indicador de si es pot tornar a provar i l'estat dels crèdits reservats. Pren decisions segons la classe, mai segons el text del missatge.

La taula d'errors

Crèdits

El preu d'un fitxer es calcula amb la mateixa regla que fa servir l'aplicació, i la resposta a la pujada n'indica l'import. El que passa amb els crèdits reservats quan falla una traducció depèn de la classe d'error.

Com funcionen els crèdits

Servidor MCP

Disponible

El servidor MCP de Lingivio permet que un assistent d'IA o un editor de codi (ChatGPT o Claude, o qualsevol client compatible amb servidors MCP remots) calculi el preu, tradueixi i baixi documents amb el teu compte i els teus crèdits de Lingivio.

Adreça del servidor

https://api.lingivio.com/mcp

Connecta i tradueix

  1. 1. Afegeix l'adreça del servidor de dalt al teu client: a Claude o ChatGPT com a connector personalitzat; en un editor de codi, a la configuració MCP. La guia de configuració detalla els passos per a cada client.
  2. 2. La primera vegada que es connecti, s'obrirà una finestra d'inici de sessió de Lingivio. Inicia la sessió i tria «Allow». El teu client no veu mai la teva contrasenya ni pot comprar res amb el teu compte.
  3. 3. Adjunta un document i indica una llengua. Lingivio calcula el cost en crèdits i no es cobra res fins que el confirmis.
  4. 4. Segueix el progrés i després baixa el fitxer traduït des de l'enllaç que et mostra l'assistent.

L'inici de sessió es fa amb OAuth 2.1 i PKCE. El servidor publica les metadades OAuth a les adreces well-known estàndard, i cada token d'accés està vinculat a aquest servidor.

El procés de traducció consta de quatre eines, cridades en aquest ordre:

  1. prepare_translation
  2. start_translation
  3. get_translation_status
  4. get_download_link

Les eines de només lectura responen preguntes sobre el compte, les llengües admeses i les traduccions recents.

Inclòs als plans Professional, Business i Enterprise. Amb qualsevol altre pla, un client es pot connectar, però cada sol·licitud es rebutja amb plan.mcp_access_required.

Guia de configuració per a Claude, ChatGPT, Cursor i altres clients

Una habilitat de Lingivio per a Claude

Claude llegeix directament els fitxers que adjuntes a un xat i no els passa als connectors. L'habilitat de Lingivio indica a Claude que enviï un document que vols traduir a Lingivio mitjançant un enllaç de pujada d'un sol ús, perquè rebis el fitxer traduït amb la disposició conservada en lloc del text traduït al xat.

Baixa l'habilitat (ZIP)

Afegeix l'habilitat a Claude

  1. 1. A Claude, obre Settings i després Capabilities, i activa l'execució de codi i la creació de fitxers. Les habilitats ho necessiten.
  2. 2. Obre Customize i després Skills. Tria +, després Create skill i després Upload a skill.
  3. 3. Tria el ZIP que has baixat. L'habilitat es diu lingivio-translate-documents. Mantén també connectat el connector de Lingivio: l'habilitat fa servir les seves eines.

Amb un pla Team o Enterprise, un propietari pot afegir l'habilitat per a tothom: a Organization settings, obre Plugins & skills, activa Skills a la pestanya Policy i tria Add i Upload a skill. S'activa per a tots els membres, i cada membre la pot desactivar.

Les aplicacions que mostren les instruccions d'un servidor MCP també n'ofereixen una de Lingivio: «Tradueix un document amb Lingivio». Et pregunta quina llengua vols i inicia el mateix procés.

Per a models de llenguatge

llms.txt indexa aquest lloc en el format llms.txt. llms-full.txt hi afegeix aquesta guia i els seus exemples, perquè un model pugui aprendre a cridar Lingivio en una sola consulta. El document OpenAPI descriu tots els endpoints per a un generador de clients.

Següents passos

Rep novetats del producte per correu electrònic

Llengües i tipus de fitxer nous, consells de traducció i novetats per a desenvolupadors.

Subscriu-te

Les galetes d'analítica i d'anuncis personalitzats només funcionen si les acceptes. Política de galetes