DeepInfra raises $107M Series B to scale the inference cloud — read the announcement

Deploy Custom LLMs on DeepInfra

Published on 2024.03.01 by Iskren Chernev
Deploy Custom LLMs on DeepInfra

Did you just finetune your favorite model and are wondering where to run it? Well, we have you covered. Simple API and predictable pricing.

Put your model on huggingface

Use a private repo, if you wish, we don't mind. Create a hf access token just for the repo for better security.

Create custom deployment

Via Web

You can use the Web UI to create a new deployment.

Custom LLM Web UI

Via HTTP

We also offer HTTP API:

curl -X POST https://api.deepinfra.com/deploy/llm -d '{
    "model_name": "test-model",
    "gpu": "A100-80GB",
    "num_gpus": 2,
    "max_batch_size": 64,
    "hf": {
        "repo": "meta-llama/Llama-2-7b-chat-hf"
    },
    "settings": {
        "min_instances": 1,
        "max_instances": 1,
    }
}' -H 'Content-Type: application/json' \
    -H "Authorization: Bearer YOUR_API_KEY"
copy

Use it

curl -X POST \
    -d '{"input": "Hello"}' \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer YOUR_API_KEY" \
    'https://api.deepinfra.com/v1/inference/github-username/di-model-name'
copy

For in depth tutorial check Custom LLM Docs.

Related articles
MiMo-V2.6-Pro Pricing Guide: Developer Cost BreakdownMiMo-V2.6-Pro Pricing Guide: Developer Cost Breakdown<p>MiMo-V2.6-Pro is the kind of model that gets a pricing guide worth reading: it combines open weights, a 1M-token context window, and pricing that undercuts the typical large open-weight reasoning model. At listed rates of $0.435 per million input tokens and $0.87 per million output tokens, it comes in below the median pricing Artificial Analysis [&hellip;]</p>
Beat AI Subscription Fatigue With One APIBeat AI Subscription Fatigue With One API<p>Open your company card statement and scroll the recurring charges. Twenty dollars for a chat assistant, twenty more for a coding copilot, fifteen for an image API, another forty for the automation glue that wires them together. None of them is expensive on its own. Together they are a slow leak you stopped noticing months [&hellip;]</p>
Wan 3.0 API Benchmarks: Speed, Latency & CostWan 3.0 API Benchmarks: Speed, Latency & Cost<p>Key Takeaways Wan is Alibaba&#8217;s family of video generation models. The earlier Wan2.2 models ship as open weights under Apache 2.0, while later releases such as Wan2.6, Wan2.7, and Wan3.0 are delivered through hosted APIs. Wan 3.0 is the first Wan model to accept documents and web pages as input. It also doubles the maximum [&hellip;]</p>