Skip to main content
Planned for deprecation. The Embedding model will be removed in a future release. For code search, use WarpGrep instead. WarpGrep is a search agent that handles retrieval, ranking, and file reading in one call, replacing the need to manage embeddings, vector databases, and reranking pipelines yourself.

Overview

The Embedding API converts code and text into high-dimensional vectors that capture semantic meaning. Our latest morph-embedding-v3 model delivers state-of-the-art performance on code retrieval tasks, enabling powerful search, clustering, and similarity operations for code-related applications.

Endpoint Reference

Parameters

Response Format

Features

morph-embedding-v3 (Latest)

  • State-of-the-Art Performance: Achieves SoTA results across all coding benchmarks for accuracy:speed ratio - no embedding model comes close
  • 1024 Dimensions: Optimal dimensionality for rich semantic representation while maintaining efficiency
  • Unmatched Speed: Fastest inference in the market while delivering superior accuracy on code retrieval tasks
  • Enhanced Code Understanding: Improved semantic understanding of code structure and intent
  • Better Cross-Language Support: Superior understanding of relationships between different programming languages
  • Improved Context Handling: Better performance on longer code snippets and complex codebases

Core Features (All Models)

  • Code Optimized: Specially trained to understand programming languages and code semantics
  • High Dimensionality: Creates rich embeddings that capture nuanced relationships between code concepts
  • Language Support: Works with all major programming languages including Python, JavaScript, Java, Go, and more
  • Contextual Understanding: Captures semantic meanings rather than just syntactic similarities
  • Batch Processing: Efficiently processes multiple inputs in a single API call

Common Use Cases

  • Semantic Code Search: Create powerful code search systems that understand intent
  • Similar Code Detection: Find similar implementations or potential code duplications
  • Code Clustering: Group related code snippets for organization or analysis
  • Relevance Ranking: Rank code snippets by relevance to a query
  • Concept Tagging: Automatically tag code with relevant concepts or categories