Skip to content

Hugging Face: GPT-3.5 TurboDeprecated

CompareUse this model

@huggingface/huggingface-gpt-3.5-turbo

Supports function calling.

Tools

Modalities
TextText
In / out price
$0.50 / $1.50per 1M
Context
16.4K
Released
-

Providers

Hugging Face is the provider that serves this model. You call it through your gateway, on your Hugging Face key.

ProviderInput /MOutput /MCache read /MContextMax outputThroughput tok/sFirst token sUptime
Hugging FaceThis page$0.50$1.50-16.4K4.1K---

Throughput, time to first token and uptime are measured on Everstack Cloud over the last 30 days, for this model on each provider. A dash means there is not enough public activity for that pair yet.

Pricing

What Hugging Face charges for a million tokens. Your provider bills you for it; Everstack records the cost against each call.

Input
$0.50/M tokens
Output
$1.50/M tokens

Performance

How fast the model has answered on Everstack Cloud: how many tokens a second it writes, and how long before the first one.

Loading usage

Uptime

The share of requests to this model that succeeded, a day at a time.

Loading usage

Activity

Tokens through this model on Everstack Cloud each day: what was sent, what the model reasoned with, and what it wrote.

Loading usage

API

One client and one key for every model. To move to another model, change the name.

main.py
import os
from everstack import Everstack

client = Everstack(
    base_url=os.environ["EVERSTACK_BASE_URL"],
    api_key=os.environ["EVERSTACK_API_KEY"],
)

response = client.chat.completions.create(
    model="@huggingface/huggingface-gpt-3.5-turbo",
    messages=[{"role": "user", "content": "Explain vector cache routing."}],
)

print(response.choices[0].message.content)

Explore

More from Hugging Face

Set up GPT-3.5 Turbo

Your key, the request and the settings for @huggingface/huggingface-gpt-3.5-turbo.

  1. Get your API key

    Create a key in the Everstack console, then set it and your gateway's address as environment variables.

    Get an API key
    Terminal
    export EVERSTACK_BASE_URL="https://<your-instance>.<your-region>.everstack.ai"
    export EVERSTACK_API_KEY="<your-everstack-api-key>"
  2. Connect Hugging Face

    GPT-3.5 Turbo is served by Hugging Face, on your own Hugging Face account. Add its credential once in the console, under Providers; Hugging Face then bills you directly. The catalog names it HUGGINGFACE_API_KEY.

  3. Make your first request

    Use @huggingface/huggingface-gpt-3.5-turbo as the model, with an Everstack SDK or with the OpenAI SDK you already have, pointed at your gateway. It reads up to 16.4K tokens and writes up to 4.1K.

    main.py
    import os
    from everstack import Everstack
    
    client = Everstack(
        base_url=os.environ["EVERSTACK_BASE_URL"],
        api_key=os.environ["EVERSTACK_API_KEY"],
    )
    
    response = client.chat.completions.create(
        model="@huggingface/huggingface-gpt-3.5-turbo",
        messages=[{"role": "user", "content": "Explain vector cache routing."}],
    )
    
    print(response.choices[0].message.content)
  4. Stream the answer

    Add "stream": true to receive the answer as server-sent events, as it is written.

    Terminal
    curl -N "$EVERSTACK_BASE_URL/v1/chat/completions" \
      -H "Authorization: Bearer $EVERSTACK_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "@huggingface/huggingface-gpt-3.5-turbo",
        "stream": true,
        "messages": [
          {"role": "user", "content": "Hello"}
        ]
      }'

Endpoints

A chat completion, streamed or whole, in the OpenAI chat completions format.

POST
$EVERSTACK_BASE_URL/v1/chat/completions
Authorization
Bearer $EVERSTACK_API_KEY
Content-Type
application/json
Model
@huggingface/huggingface-gpt-3.5-turbo

The same model in the OpenAI Responses API format.

POST
$EVERSTACK_BASE_URL/v1/responses
Authorization
Bearer $EVERSTACK_API_KEY
Content-Type
application/json
Model
@huggingface/huggingface-gpt-3.5-turbo

Put Everstack in front of your next request

Run it yourself in a few minutes, or start on Everstack Cloud with your own provider keys.

Star on GitHubOpen source under Apache 2.0. A star helps others find it.