Documentation

Learn how to integrate with the GeniusPro API

Quick Start

GeniusPro API is OpenAI-compatible. You can use the official OpenAI SDKs by simply changing the base URL.

Base URL
https://api.geniuspro.io/v1
Model
geniuspro-coder-v1

Authentication

Authenticate using your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Code Examples

cURL
curl https://api.geniuspro.io/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "geniuspro-coder-v1",
    "messages": [
      {"role": "user", "content": "Write hello world in Python"}
    ]
  }'
Python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.geniuspro.io/v1"
)

response = client.chat.completions.create(
    model="geniuspro-coder-v1",
    messages=[
        {"role": "user", "content": "Write hello world in Python"}
    ]
)

print(response.choices[0].message.content)
JavaScript / TypeScript
import OpenAI from 'openai';

const openai = new OpenAI({
  apiKey: 'YOUR_API_KEY',
  baseURL: 'https://api.geniuspro.io/v1',
});

const response = await openai.chat.completions.create({
  model: 'geniuspro-coder-v1',
  messages: [
    { role: 'user', content: 'Write hello world in Python' }
  ],
});

console.log(response.choices[0].message.content);

API Reference

POST/v1/chat/completions

Create a chat completion. Supports streaming.

GET/v1/models

List available models.

GET/health

Check API health status (no auth required).

Available Models

ModelContextDescription
geniuspro-coder-v132K tokensOptimized for coding tasks. Based on Qwen3-Coder.