GPT-4o-mini
Sign in to try GPT-4o-mini
Sign in with your Google account and top up credits to get started.
Sign in with GoogleUse via API
Base URL: https://adverraai.com/hub/api/v1 · Authenticate with Authorization: Bearer YOUR_API_KEY
curl https://adverraai.com/hub/api/v1/chat/completions \
-H "Authorization: Bearer $ADVERRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-4o-mini",
"messages": [{"role": "user", "content": "Hello"}],
"stream": false
}'
# pip install openai
from openai import OpenAI
client = OpenAI(base_url="https://adverraai.com/hub/api/v1", api_key="YOUR_API_KEY")
r = client.chat.completions.create(
model="openai/gpt-4o-mini",
messages=[{"role": "user", "content": "Hello"}],
)
print(r.choices[0].message.content)
const r = await fetch("https://adverraai.com/hub/api/v1/chat/completions", {
method: "POST",
headers: { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" },
body: JSON.stringify({ model: "openai/gpt-4o-mini", messages: [{ role: "user", content: "Hello" }] })
});
const data = await r.json();
console.log(data.choices[0].message.content, data.usage.credits);
Fully compatible with OpenAI Chat Completions: stream, temperature, max_tokens, tools, image messages, etc. The response includes usage.credits showing the credits used.
Parameters for this model
Send as JSON in the request body. Fields marked * are required.
| Parameter | Type | Allowed values | Default | Description |
|---|---|---|---|---|
model * |
string | – | – | ID of the model to call — openai/gpt-4o-mini |
messages * |
array | – | – | Conversation messages, each with role (system / user / assistant) and content |
max_tokens |
integer | – | – | Maximum tokens in the answer |
temperature |
number | 0 – 2 | 1 | Randomness of the answer; lower is steadier |
top_p |
number | 0 – 1 | 1 | Nucleus sampling threshold |
stream |
boolean | true, false | false | Stream the answer back in chunks (SSE) |
stop |
string | array | – | – | Sequences where generation stops |
tools |
array | – | – | Tools (functions) the model may call |
tool_choice |
string | object | – | – | Controls how tools are chosen |
response_format |
object | – | – | Forces an answer format such as JSON |
🤖 ต่อกับ AI Agent
คัดลอกข้อความนี้ไปวางให้ AI Agent (เช่น Claude, ChatGPT, Gemini, Cursor, Codex) แล้วมันจะเรียกใช้โมเดลนี้ผ่านระบบของเราได้ทันที · ในข้อความมีวิธีเชื่อมต่อ พารามิเตอร์ และวิธีรับผลงานครบ · เลือกคีย์ด้านบนเพื่อใส่ในข้อความที่จะคัดลอก
# Adverra AI Hub — GPT-4o-mini (`openai/gpt-4o-mini`)
You can use this AI model through the Adverra AI Hub REST API. Follow these instructions exactly.
## Connection
- Base URL: https://adverraai.com/hub/api/v1
- Header: `Authorization: Bearer <ADVERRA_API_KEY>` (read the credential from the ADVERRA_API_KEY environment variable). Never print the key.
- Header: `Content-Type: application/json`
- Endpoint: `POST https://adverraai.com/hub/api/v1/chat/completions`
- Credits are deducted from the user's Adverra balance (check with `GET https://adverraai.com/hub/api/v1/me`).
## Example request body
```json
{
"model": "openai/gpt-4o-mini",
"messages": [
{
"role": "user",
"content": "สวัสดี"
}
]
}
```
## Parameters
- `model` (string, required) — ID of the model to call — openai/gpt-4o-mini
- `messages` (array, required) — Conversation messages, each with role (system / user / assistant) and content
- `max_tokens` (integer, optional) — Maximum tokens in the answer
- `temperature` (number, optional) — Randomness of the answer; lower is steadier · allowed: 0 – 2 · default: 1
- `top_p` (number, optional) — Nucleus sampling threshold · allowed: 0 – 1 · default: 1
- `stream` (boolean, optional) — Stream the answer back in chunks (SSE) · allowed: true, false · default: false
- `stop` (string | array, optional) — Sequences where generation stops
- `tools` (array, optional) — Tools (functions) the model may call
- `tool_choice` (string | object, optional) — Controls how tools are chosen
- `response_format` (object, optional) — Forces an answer format such as JSON
## Result
OpenAI-compatible chat completion response. Set `"stream": true` for server-sent events.
## Errors
- 401 = invalid API key · 402 = not enough credits (tell the user to top up at https://adverraai.com/hub/topup.php) · 429 = too many requests (wait and retry) · 5xx = temporary error (credits are refunded automatically).
## MCP (optional)
Agents that support MCP can connect to `https://adverraai.com/hub/mcp.php` instead (setup guide: https://adverraai.com/hub/connect.php).
About this model
GPT-4o-mini is a Chat & Text model by Adverra AI Hub
GPT-4o-mini is OpenAI's latest compact model, designed for efficient text and image processing with text outputs. It builds upon the capabilities of GPT-4o, offering advanced performance in a smaller package. This model is ideal for a wide range of applications requiring robust understanding and generation from multimodal inputs.
Key features
- Supports text input
- Supports image input
- Generates text output
- Advanced small model
- Multimodal understanding
- Large context window
What you can do
- Content generation from images and text
- Summarization of documents and visual information
- Multimodal question answering
- Image captioning and description
- Text analysis with visual context
- Educational tools for mixed media
Specs
- Context window: 128,000 tokens
- Input types: text, image
- Output type: text
Prompt tips
- Clearly describe the image content when providing text prompts alongside images.
- For complex tasks, break down your request into smaller, sequential steps.
- Specify the desired output format (e.g., 'summarize as bullet points', 'describe in a paragraph').
- Provide examples of the desired output style or tone.
- If including multiple images, refer to them clearly in your text prompt (e.g., 'In the first image...', 'Regarding the second picture...').