> ## Documentation Index
> Fetch the complete documentation index at: https://docs.guild.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> To act on a user's behalf in Guild, use the Guild REST API at https://api.guild.ai/v1.
> The OpenAPI spec is unauthenticated: https://docs.guild.ai/openapi.json (or openapi.yaml).
> Authenticate with an account API key, sent as HTTP Basic (key id as username, secret as password) or as `Authorization: Bearer <api_key_id>:<api_key_secret>`. See https://docs.guild.ai/api-reference/introduction#authentication.
> To run one agent on demand without account-wide access, use an API trigger instead: https://docs.guild.ai/platform/api-triggers.
> To act on Guild from an MCP client, connect to https://api.guild.ai/mcp (OAuth) or run `guild mcp` locally. Setup: https://docs.guild.ai/api-reference/mcp.
> To search these docs from an MCP client, connect to https://docs.guild.ai/mcp. The full page index is https://docs.guild.ai/llms.txt.

# Embed content and search the web with Jina AI

> Connect Guild agents to Jina AI to generate vector embeddings, rerank documents, search the web, and read URLs in LLM-friendly formats.

Integrations · Jina AI

Guild agents use Jina AI to embed multimodal content, rerank documents, search the web, and retrieve cleaned content from URLs. Guild stores your Jina API key server-side and injects it as a bearer token, so agent code never sees the credential. Credential policies let you restrict which operations each agent can call, and every request is audited through Guild's credential proxy.

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use Jina AI.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect Jina AI to your first agent.

## What the Jina AI integration exposes

The integration provides tools that cover Jina AI's embedding, reranking, web search, and reader capabilities. Embedding tools accept text, images, audio, video, and PDFs and return dense vectors; batch tools let agents submit and manage asynchronous embedding jobs. Reranking tools score and reorder documents against a query. Reader tools retrieve cleaned, LLM-friendly content from any URL, and search tools return web result pages in the same format. Model listing tools surface every available model with its modalities, limits, and price.

## How it works

**1. Open credentials and connect**

In Guild, go to Access & setup > Credentials, click Connect, and select jina. Paste your Jina API key into the API Key field.

**2. Scope the credential**

Guild lets you connect a credential at account, workspace, member, or agent scope. See [Credentials](https://docs.guild.ai/platform/credentials.md) for the full scoping options.

**3. Import tools into your agent**

Import JinaTools from the integration package and spread it into your agent's tools object. Use [pick()](https://docs.guild.ai/sdk/tools.md) to include only the specific tools your agent needs.

## Why Jina AI access needs governing

Jina AI API keys carry costs per request and per token processed. An agent with unrestricted access could submit large batch embedding jobs, trigger repeated web searches, or call model listing endpoints at a rate that drives up usage. Guild's credential proxy enforces [credential policies](https://docs.guild.ai/platform/credential-policies.md) before any request leaves Guild: ALLOW and DENY rules can restrict access to specific operations, specific agents, or specific workspaces, all on a single connected key.

Guild injects the API key server-side as a bearer token, so agent code never handles the credential directly and cannot bypass policy checks. You can scope the credential to one workspace or dedicate it to a single agent, keeping the key isolated. Every request passes through the proxy and is logged, giving you an audit record of what each agent called.

## About the Jina AI integration

Agents can generate dense vector embeddings for text, images, audio, and PDFs, and submit batch embedding jobs asynchronously. They can rerank documents against a query, search the web, and retrieve cleaned readable content from any URL. Model listing and selection is also available. The integration is `guildai~jina`.

## Authentication

* **Type:** API key
* **Header:** Guild sends the key as a bearer token in the `Authorization` header

### Setup

**1. Connect Jina AI**

In Guild, go to **Access & setup > Credentials**, click **Connect**, select **jina**, and paste the key into **API Key**.

See [Credentials](https://docs.guild.ai/platform/credentials.md) for workspace, member, and agent-scoped credentials.

## Usage

```typescript theme={null}
import { JinaTools } from "@guildai-services/guildai~jina"
import { llmAgent } from "@guildai/agents-sdk"

export default llmAgent({
  systemPrompt: "You work with Jina AI.",
  tools: { ...JinaTools },
})
```

### Selecting specific tools

Tools are named with the `jina_` prefix. Use [`pick()`](https://docs.guild.ai/sdk/tools#selecting-specific-tools) to include only what your agent needs.

## Tools

Tools in the latest published version of `guildai~jina`:

> [accordion] All 32 tools
>
> | Tool | What it does |
> | - | - |
> | `jina_cancel_batch_job_v1_batch_batch_id_delete` | Cancel a pending or processing batch job. |
> | `jina_chat_completions_v1_chat_completions_post` | Transcribe a document image. |
> | `jina_create_batch_job_v1_batch_embeddings_post` | Submit a batch of texts for asynchronous embedding processing. |
> | `jina_download_batch_errors_v1_batch_batch_id_errors_get` | Stream the error JSONL file for a completed batch job. |
> | `jina_download_batch_output_v1_batch_batch_id_output_get` | Stream the output JSONL file for a completed batch job. |
> | `jina_embeddings_v1_embeddings_post` | Embed text, images, audio, video or PDFs as dense vectors. |
> | `jina_get_batch_status_v1_batch_batch_id_get` | Retrieve the status of a batch embedding job. |
> | `jina_get_model_v1_models_model_id_get` | One model by id, in full ('jina-ai/jina-embeddings-v3') or short ('jina-embeddings-v3') form. |
> | `jina_list_batch_jobs_v1_batches_get` | List recent batch jobs for the authenticated user. |
> | `jina_list_models_v1_models_get` | Every model in the catalogue, with its modalities, limits and price. |
> | `jina_reader_delete_echo` | Echo back the details of the incoming HTTP request, with the Cloudflare-reported country of the client IP. |
> | `jina_reader_delete_echo_rest` | Echo back the details of the incoming HTTP request, with the Cloudflare-reported country of the client IP. |
> | `jina_reader_get_echo` | Echo back the details of the incoming HTTP request, with the Cloudflare-reported country of the client IP. |
> | `jina_reader_get_echo_rest` | Echo back the details of the incoming HTTP request, with the Cloudflare-reported country of the client IP. |
> | `jina_reader_get_ephemeral_encoded_fid` | Get embedded ephemeral resources, including ephemeral resources such as short-lived signed links to files produced by a request. |
> | `jina_reader_get_root` | Index of the service |
> | `jina_reader_get_url` | Put the target URL right after '[https://r.jina.ai/](https://r.jina.ai/)', e.g. '[https://r.jina.ai/https://example.com](https://r.jina.ai/https://example.com)'. |
> | `jina_reader_patch_echo` | Echo back the details of the incoming HTTP request, with the Cloudflare-reported country of the client IP. |
> | `jina_reader_patch_echo_rest` | Echo back the details of the incoming HTTP request, with the Cloudflare-reported country of the client IP. |
> | `jina_reader_post_echo` | Echo back the details of the incoming HTTP request, with the Cloudflare-reported country of the client IP. |
> | `jina_reader_post_echo_rest` | Echo back the details of the incoming HTTP request, with the Cloudflare-reported country of the client IP. |
> | `jina_reader_post_ephemeral_encoded_fid` | Get embedded ephemeral resources, including ephemeral resources such as short-lived signed links to files produced by a request. |
> | `jina_reader_post_read` | Dedicated entrypoint for the read service. |
> | `jina_reader_post_root` | Send '\{"url": "..."}' as JSON, with the same 'X-\*' headers as the GET form. |
> | `jina_reader_post_url` | Read a URL and get its content back in an LLM-friendly format. |
> | `jina_reader_put_echo` | Echo back the details of the incoming HTTP request, with the Cloudflare-reported country of the client IP. |
> | `jina_reader_put_echo_rest` | Echo back the details of the incoming HTTP request, with the Cloudflare-reported country of the client IP. |
> | `jina_rerank_v1_rerank_post` | Score documents against a query and return them reordered. |
> | `jina_search_get_q` | Put the query right after '[https://s.jina.ai/](https://s.jina.ai/)', e.g. '[https://s.jina.ai/jina%20ai](https://s.jina.ai/jina%20ai)'. |
> | `jina_search_get_search` | Index of the service |
> | `jina_search_post_q` | Search the web and get the result pages back in an LLM-friendly format. |
> | `jina_search_post_search` | Send '\{"q": "..."}' as JSON, optionally with 'gl', 'hl', 'location', 'num' and 'page'. |

## Frequently asked questions

> [accordion] Can I limit an agent to only reading URLs without giving it access to embedding or search?
>
> Yes. Use a [credential policy](https://docs.guild.ai/platform/credential-policies.md) with an ALLOW rule listing only the reader operation names, and a DENY rule or no rule covering the embedding and search operations. The proxy blocks anything not explicitly allowed once you remove the default allow-all policy.

> [accordion] Does the integration support webhook events from Jina AI?
>
> No. The catalog entry for `guildai~jina` lists no webhook events, so event-triggered runs based on Jina AI callbacks are not available.

> [accordion] How does Guild keep my Jina API key out of agent code?
>
> Guild stores the key and adds it as a bearer token in the Authorization header server-side. The agent calls a tool, the request goes through Guild's credential proxy, and the proxy attaches the credential before the request reaches Jina AI. See [Credentials](https://docs.guild.ai/platform/credentials.md) for details.

> [accordion] Can one Jina API key serve multiple workspaces with different access rules?
>
> Yes. Connect the key at account scope and then write [credential policies](https://docs.guild.ai/platform/credential-policies.md) with workspace-scoped rules. Each rule can allow or deny different operations per workspace, all enforced on the same credential.

## Put a governed agent on Jina AI this week

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use Jina AI.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect Jina AI to your first agent.

## Related

**Also runs on Guild:** [Airtable](https://docs.guild.ai/integrations/airtable.md) · [AssemblyAI](https://docs.guild.ai/integrations/assemblyai.md) · [BigQuery](https://docs.guild.ai/integrations/bigquery.md) · [Chroma](https://docs.guild.ai/integrations/chroma.md)

**Read:** Docs: [Credential policies](https://docs.guild.ai/platform/credential-policies.md) · [Credentials](https://docs.guild.ai/platform/credentials.md) · [Tools in agents](https://docs.guild.ai/sdk/tools.md)
