Simple and easy to use, compatible with OpenAI SDK
https://api.gateone.ai/v1
pip install openai
from openai import OpenAI
client = OpenAI(
api_key = "YOUR_API_KEY",
base_url = "https://api.gateone.ai/v1"
)
chat_completion = client.chat.completions.create(
messages=[{"role": "user", "content": "Tell me a joke"}],
model="gpt-4o-mini",
)
print(chat_completion.choices[0].message.content)
import OpenAI from 'openai';
const openai = new OpenAI({
apiKey: 'YOUR_API_KEY',
baseURL: 'https://api.gateone.ai/v1',
});
const chatCompletion = await openai.chat.completions.create({
messages: [
{ role: 'user', content: 'Tell me a joke' },
],
model: 'gpt-4o-mini',
});
console.log(chatCompletion.choices[0].message.content);
curl https://api.gateone.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o-mini",
"messages": [{"role": "user", "content": "Tell me a joke"}]
}'
Advanced text generation with context awareness
Structured function calling for complex workflows
High-quality text embeddings for semantic search
AI-powered image creation and editing
Image analysis and visual understanding
Natural speech synthesis from text
Accurate speech recognition and transcription
AI-powered content safety and moderation
Seamless integration with LangChain for building AI applications.
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(
openai_api_key="YOUR_API_KEY",
openai_api_base="https://api.gateone.ai/v1"
)
Build RAG applications with LlamaIndex and our models.
from llama_index.llms import OpenAI
llm = OpenAI(
api_key="YOUR_API_KEY",
api_base="https://api.gateone.ai/v1"
)
Our technical support team is here to help you integrate and use our services effectively.