Try Hanzo

Meta: Llama 3.2 1B Instruct

Llama 3.2 1B is a 1-billion-parameter language model focused on efficiently performing natural language tasks, such as summarization, dialogue, and multilingual text analysis. Its smaller size allows it to operate...

text

Specifications

Context Window60K
Modalitiestext
Input$0.032 / M tokens
Output$0.241 / M tokens
Statusavailable
Categorythird-party
Model IDmeta-llama/llama-3.2-1b-instruct

Quick Start

Instant Guest API Keyguest_temp_key
No account or sign up required

Test right now from your terminal. No credentials needed:

cURL · instant guest request
curl https://api.hanzo.ai/v1/chat/completions \
  -H "Authorization: Bearer guest_temp_key" \
  -d '{"model": "zen-free", "messages": [{"role": "user", "content": "hello"}]}'
TypeScript
import OpenAI from 'openai'

const client = new OpenAI({
  apiKey: process.env.HANZO_API_KEY,
  baseURL: 'https://api.hanzo.ai/v1'
})

const response = await client.chat.completions.create({
  model: 'meta-llama/llama-3.2-1b-instruct',
  messages: [{ role: 'user', content: 'Hello!' }]
})

console.log(response.choices[0].message.content)
Python
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["HANZO_API_KEY"],
    base_url="https://api.hanzo.ai/v1"
)

response = client.chat.completions.create(
    model="meta-llama/llama-3.2-1b-instruct",
    messages=[{"role": "user", "content": "Hello!"}]
)

print(response.choices[0].message.content)
cURL
curl https://api.hanzo.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $HANZO_API_KEY" \
  -d '{
    "model": "meta-llama/llama-3.2-1b-instruct",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
Go
package main

import (
    "context"
    "fmt"
    "os"

    "github.com/sashabaranov/go-openai"
)

func main() {
    cfg := openai.DefaultConfig(os.Getenv("HANZO_API_KEY"))
    cfg.BaseURL = "https://api.hanzo.ai/v1"
    client := openai.NewClientWithConfig(cfg)

    resp, _ := client.CreateChatCompletion(context.Background(),
        openai.ChatCompletionRequest{
            Model: "meta-llama/llama-3.2-1b-instruct",
            Messages: []openai.ChatCompletionMessage{
                {Role: openai.ChatMessageRoleUser, Content: "Hello!"},
            },
        },
    )
    fmt.Println(resp.Choices[0].Message.Content)
}

Use Meta: Llama 3.2 1B Instruct via Hanzo AI

One API key. Every major model. OpenAI-compatible. Start free.

Build what’s next.