For Every Kind of AI Application
KHaiXAPI Text and Image Model API Relay
Connect to GPT, Claude, Grok, and image models through one Base URL and an OpenAI-compatible API. Manage API Keys, usage, and costs in one console.
- Pay as You Go Pay only for actual usage
- Multiple Providers GPT, Claude, Grok, and image generation
- Usage Records Review tokens, costs, and status
- Prompts Not Stored Content is used only for the current relay
Model Providers
Choose Models by Brand
Check the console for current model variants, aliases, and prices.
Image2 Series
Claude Series
Grok Series
More Models Coming
Check the console for live model names, aliases, and prices View token, image, and multiplier billing details
Model naming references GPT model documentation Claude model documentation Image API documentation
Platform Capabilities
Manage Integration and Usage in One Place
Create a key and start making requests, with records and costs available at any time.
Works with Existing Apps
Connect by replacing the Base URL, API Key, and model name.
Multiple Model Access
Call multiple models through one endpoint and switch by task.
Separate Key Management
Create a separate API Key for each application to distinguish usage.
Reviewable Usage Records
Review the model, tokens, cost, and status for every request.
Quick Start
Send Your First Request in Three Steps
Includes cURL, Python, Node.js, LangChain, and Image2 examples.
- 01
Check Available Models
Open the console and confirm the model name and price.
- 02
Create an API Key
Create a separate key for the current application.
- 03
Configure and Call
Enter the Base URL, API Key, and model name, then send a request.
curl https://api.khaix.net/v1/responses \
-H "Authorization: Bearer $KHAIX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.6-sol",
"input": "Summarize these release notes in three bullet points: batch export, team permissions, and audit logs."
}'import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["KHAIX_API_KEY"],
base_url="https://api.khaix.net/v1",
)
response = client.responses.create(
model="gpt-5.6-sol",
input="Summarize these release notes in three bullet points: batch export, team permissions, and audit logs.",
)
print(response.output_text)import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.KHAIX_API_KEY,
baseURL: "https://api.khaix.net/v1",
});
const response = await client.responses.create({
model: "gpt-5.6-sol",
input: "Summarize these release notes in three bullet points: batch export, team permissions, and audit logs.",
});
console.log(response.output_text);import os
from langchain_openai import ChatOpenAI
model = ChatOpenAI(
model="gpt-5.6-sol",
api_key=os.environ["KHAIX_API_KEY"],
base_url="https://api.khaix.net/v1",
)
message = model.invoke(
"Summarize these release notes in three bullet points: batch export, team permissions, and audit logs."
)
print(message.content)curl https://api.khaix.net/v1/images/generations \
-H "Authorization: Bearer $KHAIX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2",
"prompt": "Industrial sensor product photo, brushed metal, light-gray background, centered, no logo or text",
"size": "1024x1024",
"quality": "high",
"output_format": "png",
"n": 1
}'Use Cases
Connect Your AI Applications
Use one endpoint and choose the right model for each task.
AI Coding and Development Tools
For code generation, review, refactoring, and AI coding tools.
Content and Long-Text Processing
For summarization, rewriting, extraction, and document analysis.
Conversations and Customer Support
Connect websites, knowledge bases, and business systems.
Automated Workflows
Handle repetitive tasks with scripts and internal tools.
FAQ
What to Know Before Connecting
Integration, keys, billing, and data-handling boundaries.
What is KHaiXAPI?
KHaiXAPI is a relay service for AI applications and clients that support custom APIs. It lets you manage keys, request logs, and usage in one console.
Can I connect an existing OpenAI SDK directly?
Yes. Set the client's base_url to https://api.khaix.net/v1, then use an API Key created in the console and an available model name.
Does the platform view or store my prompt data?
No. Prompts and model responses are used only to relay the current request and are not written to KHaiXAPI's business storage. The platform retains only the request time, model, token usage, cost, and request status required for billing.
Which GPT, Claude, Grok, and image models are currently supported?
GPT, Claude, and Grok text models and the OpenAI gpt-image-2 image model are supported. Check the console for current model variants, aliases, permissions, and prices.
Can different applications use different API Keys?
Yes. Creating a separate key for each application is recommended so you can distinguish usage and troubleshoot issues.
Where can I find configuration guides?
The documentation includes setup instructions for Codex CLI, Claude Code, OpenCode, Hermes, Cherry Studio, Open WebUI, and common SDKs. Open the documentation.