Use the Jina AI CLI from KosmoKrator to call Jina AI tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.
Jina AI can be configured headlessly with `kosmokrator integrations:configure jinaai`.
# Install KosmoKrator first if it is not available on PATH.curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash# Configure and verify this integration.kosmokrator integrations:configure jinaai --set api_key="$JINAAI_API_KEY" --enable --read allow --write ask --jsonkosmokrator integrations:doctor jinaai --jsonkosmokrator integrations:status --json
Credentials
Authentication type: API keyapi_key. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Key
Env var
Type
Required
Label
api_key
JINAAI_API_KEY
Secret secret
yes
API Key
url
JINAAI_URL
URL url
no
API Base URL
Call Jina AI Headlessly
Use the generic call form when another coding CLI or script needs a stable universal interface.
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to Jina AI.
jinaai.jinaai_search
Read read
Search the web using Jina AI. Returns search results with titles, URLs, descriptions, and extracted content. Useful for finding up-to-date information on any topic.
Read and extract clean content from a URL using Jina AI Reader. Returns the main text content of a web page, stripping away navigation, ads, and other clutter. Useful for reading articles, documentation, or any web page.
Ground a statement against provided context using Jina AI. Verifies whether a claim or statement is supported by the given reference text. Returns grounding results indicating which parts of the statement are supported or contradicted.
Generate text embeddings using Jina AI. Converts text into dense vector representations useful for semantic search, similarity comparison, clustering, and retrieval-augmented generation (RAG).
Rerank documents by relevance to a query using Jina AI. Takes a query and a list of text documents, then returns them sorted by relevance with scores. Useful for improving search results or filtering the most relevant content.
Use these parameter tables when building CLI payloads without calling integrations:schema first.
jinaai.jinaai_search
Search the web using Jina AI. Returns search results with titles, URLs, descriptions, and extracted content. Useful for finding up-to-date information on any topic.
Read and extract clean content from a URL using Jina AI Reader. Returns the main text content of a web page, stripping away navigation, ads, and other clutter. Useful for reading articles, documentation, or any web page.
Ground a statement against provided context using Jina AI. Verifies whether a claim or statement is supported by the given reference text. Returns grounding results indicating which parts of the statement are supported or contradicted.
The reference context text to ground the statement against.
jinaai.jinaai_embeddings
Generate text embeddings using Jina AI. Converts text into dense vector representations useful for semantic search, similarity comparison, clustering, and retrieval-augmented generation (RAG).
An array of strings to generate embeddings for. Each string is embedded independently.
model
string
no
The embedding model to use (e.g., "jina-embeddings-v3"). Defaults to the Jina AI default model.
jinaai.jinaai_rerank
Rerank documents by relevance to a query using Jina AI. Takes a query and a list of text documents, then returns them sorted by relevance with scores. Useful for improving search results or filtering the most relevant content.
An array of document strings to rank by relevance to the query.
model
string
no
The reranking model to use (e.g., "jina-reranker-v2-base-multilingual"). Defaults to the Jina AI default model.
top_n
integer
no
Maximum number of top results to return. Defaults to all documents.
Permissions
Headless calls still follow the integration read/write permission policy. Configure read/write defaults
with integrations:configure. Add --force only for trusted automation that should bypass that policy.