Jina Code Embeddings 0.5b

jina/jina-code-embeddings-0.5b by Jina
EmbeddingsCompatible OpenAI · Synchrone · Entrée texte
Price from
0,05 $ / 1M tokens
Tasks
1
Embeddings
Regions
États-Unis
Mode
sync
Input
Texte
Output
data

About Jina Code Embeddings 0.5b

jina-code-embeddings-0.5b is a 494 million parameter code embedding model designed for retrieving code from natural language queries, technical Q&A, and identifying similar code across languages. Built on Qwen2.5-Coder-0.5B backbone, it generates embeddings via last-token pooling and addresses the fundamental limitation of traditional code embedding models that rely on scarce aligned data like comments and docstrings. The model leverages abundant unaligned code and documentation used in LLM training, achieving state-of-the-art performance despite its compact size. It supports five task categories with specific instruction prefixes: NL2Code, TechQA, Code2Code, Code2NL, and Code2Completion. The model implements Matryoshka representation learning for truncatable embeddings, allowing flexible precision-resource trade-offs.

Jina Code Embeddings 0.5b est un modèle de Jina disponible sur Eden AI via son API compatible OpenAI, à partir de 0,05 $ / 1M tokens. Appelez-le avec la même clé API que tous les autres modèles Eden AI, en envoyant son ID de modèle à l'endpoint /v3/embeddings, ou via n'importe quel SDK OpenAI, avec un traitement aux États-Unis.

Learn more about Embeddings APIs on Eden AI

Tasks and prices

Jina Code Embeddings 0.5b is available on Eden AI for 1 tasks. Il est servi par l'API compatible OpenAI d'Eden AI : envoyez son ID de modèle à l'endpoint /v3/embeddings avec votre clé API Eden AI.

Task
Price
Regions
Mode
Docs
Playground
Embeddingsjina/jina-code-embeddings-0.5b
0,05 $ / 1M tokens
sync

Parameters

What you send and what you get back when you call Jina Code Embeddings 0.5b through Eden AI. The same fields work with every model of the same task, so you can switch model without changing your code.

Entrée

  • model (obligatoire) : texte. The model ID, as provider/model.
  • input (obligatoire) : texte. The text to embed, or a list of texts.

Réponse

  • data

Estimate your monthly cost

Enter your monthly volume for Embeddings to compare Jina Code Embeddings 0.5b with its cheapest alternatives.

Call Jina Code Embeddings 0.5b with Eden AI

Envoyez l'ID du modèle à l'endpoint compatible OpenAI /v3/embeddings. Tout SDK OpenAI fonctionne aussi : définissez son URL de base sur https://api.edenai.run/v3.

import requests

response = requests.post(
    "https://api.edenai.run/v3/embeddings",
    headers={"Authorization": "Bearer YOUR_EDENAI_API_KEY"},
    json={
        "model": "jina/jina-code-embeddings-0.5b",
        "input": "The quick brown fox jumps over the lazy dog",
    },
)
print(response.json())

Questions about Jina Code Embeddings 0.5b

On Eden AI, Jina Code Embeddings 0.5b costs 0,05 $ / 1M tokens for Embeddings. The Tasks and prices table lists the price for each task, and you only pay for what you use.

On Eden AI, Jina Code Embeddings 0.5b is available for: Embeddings. Input: Texte. Output: data.

Eden AI offers Embeddings from 14 providers, all callable with the same API key. The cheapest models are compared just below.

Alternatives for Embeddings

Other Embeddings models you can call with the same key, cheapest first.

See all Embeddings models
Aucun élément.

More from Jina

Other Jina models on Eden AI, for every task.

Aucun élément.