Codebert Base is an open-source embedding model developed by Microsoft, specifically designed to generate embeddings for programming and natural languages. It is genuinely best at tasks such as code search and code-to-document generation, as evidenced by the provided scripts and training data from CodeSearchNet.
Input
Output
Context
1K
Max Output
-
Parameters
-
Input Modalities
Output Modalities
Loading capabilities…
The creator's other models in the catalog, with their context, size and license where published.
Put this model beside its alternatives on the same evidence, or go back to the full catalog.
Answered from the entry's own fields: context, license, modalities, evidence, serving and the memory to self-host.
Codebert Base advertises a context window of 512 tokens. The figure is the creator's published maximum; a given host may serve less, and the gateway routes on what each host actually serves.
Yes. Codebert Base is an open-weight model released under the MIT license, so the weights can be downloaded and self-hosted within that license's terms.
Codebert Base accepts Text and produces Embedding. The capabilities card on this page lists which API features each deployment honours, such as function calling and structured output, with the source each was checked against.
No published benchmark result for Codebert Base is in the catalog yet, so the model is shown as unmeasured. It is not ranked or estimated; the router treats it as unknown for every task until a suite measures it.
Not on the managed pool today; Codebert Base is listed for reference and comparison. Connect your own provider key or endpoint that serves it and the gateway runs it on your account, with routing decisions recorded the same way.
Microsoft has not published a parameter count for Codebert Base, so the catalog cannot estimate its memory footprint. The capacity planner can size it from a parameter count you supply.
Fields collected from public registries, host APIs and benchmark publishers, each tagged with its source.
Last updated: Aug 28, 2026
One gateway in front of every model, with your policies applied and every decision on record. Start with $5 of credit and 5,000 routing decisions a month, no card required.