File size: 3,016 Bytes
7cc5d68
 
 
 
 
 
6c15b4a
7cc5d68
 
 
58ec31b
1e057a5
58ec31b
1e057a5
58ec31b
1e057a5
58ec31b
1e057a5
58ec31b
 
 
 
 
 
 
 
 
 
1e057a5
58ec31b
1e057a5
 
58ec31b
 
 
1e057a5
 
58ec31b
1e057a5
58ec31b
1e057a5
 
 
 
58ec31b
1e057a5
 
 
 
 
 
58ec31b
1e057a5
 
 
58ec31b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1e057a5
 
 
58ec31b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1e057a5
58ec31b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
---
title: Rox AI
emoji: 🤖
colorFrom: blue
colorTo: purple
sdk: docker
app_port: 7860
pinned: false
---

# Rox AI

Eight specialized AI models by Mohammad Faiz.

**API**: `https://Rox-Turbo-API.hf.space`

## Models

| Model | Endpoint | Use Case |
|-------|----------|----------|
| Rox Core | `/chat` | General conversation |
| Rox 2.1 Turbo | `/turbo` | Fast responses |
| Rox 3.5 Coder | `/coder` | Code generation |
| Rox 4.5 Turbo | `/turbo45` | Advanced reasoning |
| Rox 5 Ultra | `/ultra` | Complex tasks |
| Rox 6 Dyno | `/dyno` | Long context |
| Rox 7 Coder | `/coder7` | Advanced coding |
| Rox Vision Max | `/vision` | Visual understanding |

## Quick Start

```bash
curl -X POST https://Rox-Turbo-API.hf.space/chat \
  -H "Content-Type: application/json" \
  -d '{"messages":[{"role":"user","content":"Hello"}]}'
```

## Usage

### Request

```json
{
  "messages": [
    {"role": "user", "content": "Your message"}
  ],
  "temperature": 1.0,
  "max_tokens": 512
}
```

### Response

```json
{
  "content": "AI response"
}
```

### JavaScript

```javascript
async function askRox(message, model = 'chat') {
  const response = await fetch(`https://Rox-Turbo-API.hf.space/${model}`, {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
      messages: [{ role: 'user', content: message }]
    })
  });
  return (await response.json()).content;
}
```

### Python

```python
import requests

def ask_rox(message, model='chat'):
    response = requests.post(
        f'https://Rox-Turbo-API.hf.space/{model}',
        json={'messages': [{'role': 'user', 'content': message}]}
    )
    return response.json()['content']
```

## Examples

```bash
# General conversation
curl -X POST https://Rox-Turbo-API.hf.space/chat \
  -H "Content-Type: application/json" \
  -d '{"messages":[{"role":"user","content":"Explain AI"}]}'

# Fast response
curl -X POST https://Rox-Turbo-API.hf.space/turbo \
  -H "Content-Type: application/json" \
  -d '{"messages":[{"role":"user","content":"What is 2+2?"}]}'

# Code generation
curl -X POST https://Rox-Turbo-API.hf.space/coder \
  -H "Content-Type: application/json" \
  -d '{"messages":[{"role":"user","content":"Write a Python function"}]}'

# Advanced reasoning
curl -X POST https://Rox-Turbo-API.hf.space/turbo45 \
  -H "Content-Type: application/json" \
  -d '{"messages":[{"role":"user","content":"Explain quantum computing"}]}'
```

## Documentation

- [Code Examples](docs/CODE.md) - Copy-paste code
- [Developer Guide](docs/DEVELOPER_GUIDE.md) - Integration guide
- [Models Guide](docs/MODELS.md) - Model details
- [API Reference](docs/API_REFERENCE.md) - API docs

## Model Selection

- **Rox Core** - General use
- **Rox 2.1 Turbo** - Speed priority
- **Rox 3.5 Coder** - Code tasks
- **Rox 4.5 Turbo** - Complex reasoning
- **Rox 5 Ultra** - Highest quality
- **Rox 6 Dyno** - Long documents
- **Rox 7 Coder** - Advanced code
- **Rox Vision Max** - Images

## License

MIT License

---

Built by Mohammad Faiz