Available AI Models

Access multiple leading AI models through a single unified API

Claude Opus 4.1

Anthropic's most powerful model with exceptional reasoning and analysis capabilities.

Model ID: claude-opus-4.1
Context Length: 200K tokens
Best For: Complex reasoning & analysis

Claude Sonnet 4

High-performance model with excellent balance of speed and intelligence.

Model ID: claude-sonnet-4
Context Length: 200K tokens
Best For: Most tasks

Claude Sonnet 4.5

Enhanced version with improved performance for demanding workloads.

Model ID: claude-sonnet-4.5
Context Length: 200K tokens
Best For: Production applications

GPT-5 (BETA)

OpenAI's latest generation model with advanced capabilities.

Model ID: gpt-5
Context Length: 128K tokens
Best For: General purpose tasks

Gemini 2.5 Pro (BETA)

Google's multimodal AI model with strong reasoning capabilities.

Model ID: gemini-2.5-pro
Context Length: 1M tokens
Best For: Long context tasks

Grok 4 Fast (BETA)

X.AI's latest multimodal model with SOTA cost-efficiency and real-time responses.

Model ID: grok-4-fast
Context Length: 2M tokens
Best For: Real-time & long context

Quick Start Guide

Get up and running with our Multi-Model API in minutes

1

Get Your API Key

Start with our free 24-hour trial or choose a plan that fits your needs.

2

Choose Your Model

Select from Claude, GPT, Gemini, or Grok models based on your needs.

3

Integrate with Your Tools

Works with Cursor, VS Code, and any application that supports OpenAI API.

API Reference

Complete API documentation with examples

Base URL

URL
https://api.eagmgroup.com

Authentication

Important: Use the x-api-key header for authentication. The Authorization: Bearer header is NOT supported.

Correct Authentication Method

HTTP
x-api-key: YOUR_API_KEY

Example with trial key:

HTTP
x-api-key: fr-0e4d5327abcf9012d3456789abcdef12

Chat Completions

Send messages to any AI model using the OpenAI-compatible format:

JavaScript Example

JavaScript
const response = await fetch('https://api.eagmgroup.com/v1/chat/completions', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-api-key': 'YOUR_API_KEY' // Use x-api-key header
},
body: JSON.stringify({
model: 'claude-opus-4.1', // or gpt-5, gemini-2.5-pro, grok-4-fast
messages: [
{
role: 'user',
content: 'Hello, AI!'
}
],
max_tokens: 1000,
stream: false
})
});
const data = await response.json();
// Process the response
console.log('Response:', data);

Python Example

Python
import requests
response = requests.post(
'https://api.eagmgroup.com/v1/chat/completions',
headers={
'Content-Type': 'application/json',
'x-api-key': 'YOUR_API_KEY' # Use x-api-key header
},
json={
'model': 'claude-sonnet-4.5', # or gpt-5, gemini-2.5-pro
'messages': [
{
'role': 'user',
'content': 'Hello, AI!'
}
],
'max_tokens': 1000,
'stream': False
}
)
data = response.json()
print(data['choices'][0]['message']['content'])

cURL Example

Bash
curl -X POST https://api.eagmgroup.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"model": "claude-sonnet-4",
"messages": [
{
"role": "user",
"content": "Hello, Claude!"
}
],
"max_tokens": 1000,
"stream": false
}'

Testing with Trial Key

Bash
curl -X POST https://api.eagmgroup.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "x-api-key: fr-0e4d5327abcf9012d3456789abcdef12" \
-d '{
"model": "claude-sonnet-4.5",
"messages": [
{
"role": "user",
"content": "Hello, Claude!"
}
],
"max_tokens": 1000,
"stream": false
}'

Popular Integrations

Setup guides for popular development tools

Cursor

AI-powered code editor with multi-model support

1. Open Cursor Settings (Cmd/Ctrl + ,)
2. Go to "Extensions" → "Cursor"
3. Set API Base URL: https://api.eagmgroup.com
4. Enter your API key
5. Select your preferred AI model (Claude, GPT, Gemini, or Grok)

Visual Studio Code

World's most popular code editor with AI extensions

1. Install a Claude/AI extension
2. Configure the base URL to point to our API
3. Add your API key in extension settings

Custom Applications

Flexible

Use with any OpenAI-compatible application

Our API is fully compatible with OpenAI's client libraries. Simply change the base URL:

JavaScript
// Using OpenAI SDK with our API
const openai = new OpenAI({
apiKey: 'YOUR_API_KEY',
baseURL: 'https://api.eagmgroup.com/v1'
});