Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Perplexity Contextualizedembeddings API

The Contextualizedembeddings API from Perplexity — 1 operation(s) for contextualizedembeddings.

Perplexity Contextualizedembeddings API is one of 12 APIs that Perplexity publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

Tagged areas include Contextualizedembeddings. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, authentication docs, pricing, and an AsyncAPI specification.

This API exposes 1 operation across 1 path, and defines 7 schemas. It is described by OpenAPI 3.1.0, at version 1.0.0.

Requests are made against a single base URL, https://api.perplexity.ai.

1 operations 1 paths 7 schemas 1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.0.0
Base URL
https://api.perplexity.ai
Authentication
HTTP Bearer
Resource Areas
1

Authentication & Security 1

Perplexity Contextualizedembeddings API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (HTTPBearer).

Paths & Operations 1

Across 1 path, the API surfaces 1 operation — 1 POST. Each is listed below with its method, path, parameters, and response codes.

Contextualizedembeddings 1
POST
/v1/contextualizedembeddings
Create Contextualized Embeddings
contextualized_embeddings_v1_contextualizedembeddings_post body → 200422

Schemas 7

The contract defines 7 schemas that model the data the API accepts and returns. The most detailed are ContextualizedEmbeddingsResponse (4 properties), ContextualizedEmbeddingsRequest (4 properties), EmbeddingsUsage (3 properties), ContextualizedEmbeddingObject (3 properties). Each schema is shown below with its type and property counts.

HTTPValidationError
object
1 property
EmbeddingObject
object
A single embedding result
3 properties
ValidationError
object
3 properties 3 required
ContextualizedEmbeddingsRequest
object
Request body for creating contextualized embeddings
4 properties 2 required
ContextualizedEmbeddingObject
object
A single contextualized embedding result
3 properties
ContextualizedEmbeddingsResponse
object
Response body for contextualized embeddings request
4 properties
EmbeddingsUsage
object
Token usage for the embeddings request
3 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

perplexity-contextualizedembeddings-api-openapi.yml Raw ↑

Other APIs Perplexity publishes across the network.

Perplexity
Perplexity Async Chat Completions API
Perplexity Search API
Perplexity Responses API
Perplexity Embeddings API
Perplexity Agent API
Perplexity Async API
Perplexity Embeddings API
Perplexity Models API
Perplexity Search API
Perplexity Sonar API