This feature is generative ai apis mirror.
Vision / Image Prediction is not supported. Services : openai(chatgpt)
,google(gemini)
,anthropic(claude)
,x(grok)
Get models
GET https://api.voids.top/v1/models
Host: api.voids.top
The response is :
{
"object": "list",
"data": [
{
"id": "gpt-4o-mini-free",
"owned_by": "openai",
"object": "model,
"created": 0
},
...
]
}
Generate AI answers
POST https://api.voids.top/v1/chat/completions
Host: api.voids.top
Content-Type: application/json
{
"model": "gpt-4o",
"messages": [
{
"role": "user",
"content": "hi"
}
]
}
Use SDK request
py
from openai import AsyncOpenAI
openai = AsyncOpenAI(
base_url="https://api.voids.top/v1",
api_key="a"
)
completions = await openai.chat.completions.create(
model="gpt-4o",
messages=[
{
"role": "user",
"content": "hi"
}
]
)
print(completions.choices[0].message.content)
js
import OpenAI from 'openai';
const openai = new OpenAI({
baseURL: "https://api.voids.top/v1",
apiKey: "a"
});
const completion = await openai.chat.completions.create({
model: 'gpt-4o',
messages: [
{
role: 'user',
content: 'hi'
}
],
});
console.log(completion.choices[0]?.message?.content);