Quickstart
Mingo is a drop-in replacement for api.openai.com/v1.
You can use the official OpenAI SDK — just change the base_url.
1. Get an API key
Sign in to the console, create a key, and top up with USD or crypto. No KYC, no card.
2. First request (curl)
curl https://mingo.mingles.ai/v1/chat/completions \
-H "Authorization: Bearer $MINGO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "moonshotai/Kimi-K2.6",
"messages": [{"role":"user","content":"Hello!"}]
}'
3. First request (Python)
pip install openai
from openai import OpenAI
client = OpenAI(
base_url="https://mingo.mingles.ai/v1",
api_key="sk-your-key",
)
resp = client.chat.completions.create(
model="moonshotai/Kimi-K2.6",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)
4. Streaming
stream = client.chat.completions.create(
model="moonshotai/Kimi-K2.6",
messages=[{"role": "user", "content": "Stream me a poem."}],
stream=True,
)
for chunk in stream:
delta = chunk.choices[0].delta.content
if delta:
print(delta, end="", flush=True)
5. Tool-calling
Define your tools in standard OpenAI format — the gateway handles Hermes-style
parsing for models that emit <tool_call> blocks.
tools = [{
"type": "function",
"function": {
"name": "get_weather",
"parameters": {
"type": "object",
"properties": {"city": {"type": "string"}},
"required": ["city"],
},
},
}]
resp = client.chat.completions.create(
model="moonshotai/Kimi-K2.6",
messages=[{"role": "user", "content": "Weather in Tokyo?"}],
tools=tools,
)
print(resp.choices[0].message.tool_calls)
See Tools & agents for the full guide, and Agents Hub for runtime-specific configs.