Skip to main content

perplexity/embed-v1-4b/embedding

Perplexity Embed v1 4B produces 2,560-dimensional dense vectors up to 32,000 tokens, designed for search ranking and document retrieval.

From $0.00003/1,000 tokens

Workbench

Input

Embedding
Pass a single string, a batch of up to 128 strings, or token ID arrays for Perplexity Embed v1 4B; each returned vector keeps its input index.
Safety checkerOff

SpicyAPI does not run a safety checker on this model. Your prompt and media go to the model as written, and the model itself decides what comes back.

Checking your account before enabling submission and pricing.

1 required field missing: Embedding Input

Output

Ready for a new run

Your result will appear here.

Configure the inputs, review the estimate, then run the model.

Missing the model you need?

Perplexity Embed v1 4B produces 2,560-dimensional dense vectors up to 32,000 tokens, designed for search ranking and document retrieval.

Key numbers

Dimensions
2560
Perplexity Embed v1 4B returns 2560-dimensional floating-point vectors in float format and bills by measured input tokens across the batch.
Context window
32K
32,000 tokens
Batch ceiling
128
128 items · 300K tokens

Token budget

Input window
300,000
tokens in one request

Before you spend

Embedding

Perplexity Embed v1 4B accepts up to 128 items per request and at most 300,000 tokens in total; token ID arrays are capped at 2,048 entries.

What it does

Dense 2560-dimensional representations

Perplexity Embed v1 4B from Perplexity outputs floating-point vectors of 2560 dimensions ready for cosine similarity search, clustering, and reranking pipelines.

Single-text or homogeneous batch requests

Send Perplexity Embed v1 4B one passage or a batch of up to 128 strings or token arrays synchronously, preserving each vector's original input index.

Where it fits

  • Semantic search and RAG indexing

    Index knowledge bases and technical collections with Perplexity Embed v1 4B to retrieve relevant passages before passing context to a generation model.

  • Clustering and duplicate detection

    Compare 2560-dimensional vectors from Perplexity Embed v1 4B to group similar tickets, articles, or code snippets.

Model reference

Perplexity Embed v1 4B API reference

Perplexity Embed v1 4B API specifications

Dimensions
2560
Context window
32,000 tokens
Batch limits
128 items · 300K tokens

How to call the Perplexity Embed v1 4B API

  1. Prompt guide & Pro tips

    Use Perplexity Embed v1 4B for both document indexing and query embedding, keeping each Perplexity Embed v1 4B call within 128 items and 300,000 tokens and re-embedding when text changes.

Perplexity Embed v1 4B API questions