# Bytez Model API

Category: [AI models and chat](https://free-web-services.com/web-services/ai/llm/)  
Page: https://free-web-services.com/web-services/ai/llm/bytez-model-api.html  
Documentation: https://docs.bytez.com/model-api/docs/task/chat

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 key: Needed, free
- 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

Example request:

```sh
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}}'
```

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.

