Skip to content
Skip to workspace
Opening your workspace…

Flat AI API · Developer documentation

Guide

FLAT AI API

Flat AI API documentation

One REST API for the Flat AI Marketplace: OpenAI-compatible chat completions for text models, and asynchronous generations for image, video and audio models. The same models, prices and safety checks as Marketplace, paid from your Flat AI balance.

What you can build

  • Chat and assistants with leading text models, with streaming, images as input and optional web search.
  • Image, video, music and speech generation with the Marketplace models.
  • Secure server-side keys, idempotent requests, spending limits per request and signed download links.

MCP server for AI agents

Connect the Claude and ChatGPT apps, Claude Code, Cursor, VS Code, Codex, Gemini CLI or any MCP client to https://flatai.org/mcp by signing in with Flat AI or with your API key. Your agent can browse every model, check prices and create images, video, audio and text, paid from your Flat AI balance. New models appear automatically.

Where do you want to go?

↑↓ Navigate ↵ Open Esc Close