CodeGPT small py
This model runs as a dedicated deployment on large GPUs and isn't in the shared playground by default. Get in touch and we'll set it up for you.
$ curl https://hostyourai.com/api/v1/chat/completions \
-H "Authorization: Bearer hyai-..." \
-H "Content-Type: application/json" \
-d '{
"model": "microsoft/CodeGPT-small-py",
"messages": [{"role": "user", "content": "Hello!"}]
}'
Call it now
Drop-in replacement for OpenAI: change only the base URL and API key. The Anthropic format (/v1/messages) is supported too.
text->text · microsoft · sovereign EU
Runs on EU infrastructure operated by European companies, from your request to the GPU. See the full chain
CodeGPT small py is an open-source language model from Microsoft, hosted on EU GPUs via an OpenAI-compatible API.
- Router
- Router · on request
- Dedicated
- Dedicated · on request
Specifications
| Architecture | GPT2LMHeadModel (vLLM) |
|---|---|
| Modality | text->text |
| Released | March 2022 |
| Publisher | microsoft ↗ |
Pricing
Shared router · per token
Dedicated GPU · per hour
Shared EU router, you pay only per token. Dedicated GPU deployments are billed per minute, see pricing.
Bench index
Bench is our quality index for every model, 0 to 100. It rests on public measurements (Epoch AI with about 40 benchmarks, LiveBench, LMArena and more) and is refreshed every morning. Where nobody measures, it shows an estimate with a range.
No public benchmark yet: estimated from size and release date.
Range 0.0 to 0.0
Sources: Epoch AI ↗ · LiveBench ↗ · LMArena ↗ · Refreshed daily, last on 21-11-2026
Frequently asked questions
Can I run CodeGPT small py in the EU?
Yes. HostYourAI runs CodeGPT small py on GPUs in European datacenters via vLLM. Prompts and outputs never leave the EU and there is no US cloud provider in the chain.
Is hosting CodeGPT small py GDPR-compliant?
Yes. All processing happens inside the EU, a Data Processing Agreement (DPA) is available and the subprocessor list is public. Open-source weights also mean: no training on your data.
How much does CodeGPT small py cost?
CodeGPT small py is available on request: through the shared EU router after a quick chat, or as your own dedicated GPU deployment billed per minute. Tell us your use case and we will set it up for you.
Is the API OpenAI-compatible?
Yes. You use the standard OpenAI SDKs with a custom base URL (https://hostyourai.com/api/v1). The Anthropic Messages API is supported as a drop-in as well.
More models from Microsoft
One platform, four layers
Start with one layer and add the others when the work asks for it. They share one key, one balance and one Activity view.
Request access
CodeGPT small py isn't available by default yet. Leave your details and we'll arrange a dedicated deployment.







