ChatyfAI API

All AI models.
One API.

Access GPT-5, Claude 4.7, Gemini, Grok 4, Mistral, DeepSeek and more through a single API. OpenAI-compatible. Pay per token with CYT.

curl
curl https://api.chatyfai.com/v1/chat/completions \
  -H "Authorization: Bearer sk-cyf-live-xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Why ChatyfAI API?

One API, All Models

Access OpenAI, Anthropic, Google, Mistral, DeepSeek and more through a single unified API.

OpenAI Compatible

Drop-in replacement for OpenAI SDK. Switch from OpenAI to ChatyfAI in one line of code.

Pay Per Token

No subscriptions. Pay only for what you use with ChatyfAI Tokens (CYT). Top up anytime.

Smart Routing

Automatic key rotation, failover, and load balancing across provider API keys.

Enterprise Security

API key auth, IP whitelisting, rate limiting, budget caps. SOC2 ready.

Real-time Analytics

Track usage, costs, and performance per model, per key. Webhooks for budget alerts.

Transparent CYT Pricing

1 CYT = 0.0001 EUR. Pay only for what you use.

ModelProviderInput (CYT/1K)Output (CYT/1K)
GPT-5OpenAI25100
GPT-5 miniOpenAI26
Claude 4.7 SonnetAnthropic30150
Claude 4 HaikuAnthropic312
Gemini 2.5 ProGoogle14
Grok 4xAI2080
Mistral LargeMistral2060
DeepSeek V3DeepSeek13
Drop-in OpenAI replacement

Use ChatyfAI in your favourite coding tools

ChatyfAI speaks the OpenAI Chat Completions protocol. Point any tool that accepts a custom base URL at https://api.chatyfai.com/v1 and you instantly get GPT-5, Claude 4.7, Gemini, Grok 4, Mistral, DeepSeek and Llama — billed per token in CYT, no per-tool subscription.

Cursor

AI-first IDE. Add ChatyfAI as a custom OpenAI provider in Settings → Models.

Cursor docs ↗
// Cursor → Settings → Models → "Add custom OpenAI key"
//   API Key       sk-cyf-live-xxxxxxxxxxxxxxxxxxxxxxxx
//   Base URL      https://api.chatyfai.com/v1
//   Model name    gpt-5   (or claude-4-7-sonnet, gemini-2.5-pro, …)
// Then enable "Override OpenAI base URL".

Continue.dev

Open-source IDE assistant for VS Code & JetBrains. Add a single provider entry.

Continue docs ↗
// ~/.continue/config.json
{
  "models": [
    {
      "title": "ChatyfAI · GPT-5",
      "provider": "openai",
      "model": "gpt-5",
      "apiKey": "sk-cyf-live-xxxxxxxxxxxxxxxxxxxxxxxx",
      "apiBase": "https://api.chatyfai.com/v1"
    },
    {
      "title": "ChatyfAI · Claude 4.7",
      "provider": "openai",
      "model": "claude-4-7-sonnet",
      "apiKey": "sk-cyf-live-xxxxxxxxxxxxxxxxxxxxxxxx",
      "apiBase": "https://api.chatyfai.com/v1"
    }
  ]
}

Cline / Roo Code

Autonomous coding agent for VS Code. Pick "OpenAI Compatible" as the provider.

Cline GitHub ↗
// Cline → API Provider → "OpenAI Compatible"
//   Base URL    https://api.chatyfai.com/v1
//   API Key     sk-cyf-live-xxxxxxxxxxxxxxxxxxxxxxxx
//   Model ID    gpt-5
// Roo Code uses the same dialog; both honour streaming and tool calls.

Aider

Terminal-native pair programmer. One CLI flag and you are routed through ChatyfAI.

Aider docs ↗
# Aider — point any OpenAI-named model at ChatyfAI:
export OPENAI_API_BASE=https://api.chatyfai.com/v1
export OPENAI_API_KEY=sk-cyf-live-xxxxxxxxxxxxxxxxxxxxxxxx

aider --model gpt-5
aider --model claude-4-7-sonnet
aider --model deepseek-chat   # cheap, fast

OpenCode / opencode-zen

Terminal coding agent. Drop the same OpenAI-compatible config into its providers file.

opencode docs ↗
# opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "chatyfai": {
      "options": {
        "baseURL": "https://api.chatyfai.com/v1",
        "apiKey": "sk-cyf-live-xxxxxxxxxxxxxxxxxxxxxxxx"
      },
      "models": {
        "gpt-5": { "name": "ChatyfAI · GPT-5" },
        "claude-4-7-sonnet": { "name": "ChatyfAI · Claude 4.7" }
      }
    }
  }
}

OpenAI SDK (Python / TypeScript)

Already using openai-python or openai-node? Two lines of config — same calls.

API docs ↗
# Python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.chatyfai.com/v1",
    api_key="sk-cyf-live-xxxxxxxxxxxxxxxxxxxxxxxx",
)

resp = client.chat.completions.create(
    model="gpt-5",
    messages=[{"role": "user", "content": "Hello"}],
)

Compatible with anything that speaks the OpenAI SDK. Got a tool that isn't listed? Set its OpenAI base URL to https://api.chatyfai.com/v1 and your ChatyfAI API key — that's the whole config.

Start building with ChatyfAI API

Free tier available. No credit card required to start.

Create a Free ChatyfAI Account