Unified AI Gateway

One API to access OpenAI, Gemini, and 200+ models via OpenRouter. Text generation, chat, translation, image generation, and structured outputs.

Everything you need for AI integration

Simplify your AI workflow with a single, powerful API

Text Generation

Generate text completions with customizable prompts, system messages, temperature, and token limits.

Chat Completions

Multi-turn conversations with message history. Perfect for chatbots and conversational AI.

Translation

Translate text between any languages with AI-powered accuracy and natural phrasing.

Image Generation

Create images from text prompts or transform existing images with GPT-5 Image and Gemini models.

Structured Output

Get JSON responses validated against your schema. Extract structured data from any text.

Usage Tracking

Monitor token usage, costs, and request history per project with detailed analytics.

Simple API, Powerful Results

One endpoint, multiple providers. Switch models without changing your code.

Text Generation

curl -X POST https://saai.michalkurecka.cz/api/v1/generate \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Write a product description for wireless headphones",
    "model": "openai/gpt-4o-mini",
    "temperature": 0.7
  }'

Chat Completion

curl -X POST https://saai.michalkurecka.cz/api/v1/chat \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [
      {"role": "system", "content": "You are a helpful assistant"},
      {"role": "user", "content": "What is machine learning?"}
    ]
  }'

Image Generation

curl -X POST https://saai.michalkurecka.cz/api/v1/generate-image \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A futuristic city at sunset, digital art",
    "size": "1024x1024"
  }'

Structured Output

curl -X POST https://saai.michalkurecka.cz/api/v1/structured \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Extract: John Doe, 30, NYC",
    "schema": {
      "type": "object",
      "properties": {
        "name": {"type": "string"},
        "age": {"type": "integer"},
        "city": {"type": "string"}
      }
    }
  }'

Supported Providers

Access hundreds of models through a single API

🤖

OpenRouter

200+ models including GPT-4, Claude, Llama, Mistral, and more

🧠

OpenAI

Direct access to GPT-4o, GPT-4, and DALL-E models

Google Gemini

Gemini Pro, Gemini Flash for text and image generation

Ready to get started?

Sign in with Google and start building with AI in minutes.