AI models and chat

Bytez Model API

by docs.bytez.com

AI models and chat Added on November 3rd, 2026 Checked and working on November 3rd, 2026
Visit docs.bytez.com →

What it does

The Bytez Model API runs open models from Hugging Face, such as Qwen and Llama, and closed models from providers like OpenAI through one API. POST a JSON list of messages to /models/v2/, with the key in the Authorization header without a Bearer prefix. Free with a free API key and $1 of credit that refreshes every 4 weeks, for open models up to 7B parameters (one request at a time) and closed models; paid plans unlock larger models.
  • API
  • JSON
  • REST

At a glance

API key
Needed, free · More APIs with a free key
Pricing
Free with a free API key and $1 of credit that refreshes every 4 weeks, for open models up to 7B parameters (one request at a time) and closed models; paid plans unlock larger models.
From the browser
No, call it from a server
Formats
JSON
Interface
REST
Provider
docs.bytez.com
Last checked
Working on November 3rd, 2026

More information: https://docs.bytez.com/model-api/docs/task/chat

Is this your service? Show that it is listed

Put this badge on your website or in your README; it links to this page. About the badge

Listed on Free Web Services

docs.bytez.com
Bytez Model API

Example request

curl

curl -X POST 'https://api.bytez.com/models/v2/Qwen/Qwen3-4B' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"messages":[{"role":"user","content":"Say hello in one word."}],"params":{"temperature":0}}'

JavaScript

const response = await fetch("https://api.bytez.com/models/v2/Qwen/Qwen3-4B", {
  method: 'POST',
  headers: {
    "Authorization": "YOUR_API_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"messages":[{"role":"user","content":"Say hello in one word."}],"params":{"temperature":0}}),
});
const data = await response.json();
console.log(data);

Python

import requests

response = requests.post(
    "https://api.bytez.com/models/v2/Qwen/Qwen3-4B",
    headers={
        "Authorization": "YOUR_API_KEY",
        "Content-Type": "application/json",
    },
    json={
        "messages": [
            {
                "role": "user",
                "content": "Say hello in one word.",
            },
        ],
        "params": {
            "temperature": 0,
        },
    },
    timeout=30,
)
print(response.json())

Replace YOUR_API_KEY with your own key. Run the JavaScript on a server, such as Node.js 18 or newer: this API does not accept calls from web pages on other sites.

Did it work for you?

Tell us what you found when you tried Bytez Model API.