# flatkey.ai flatkey.ai is a unified AI API gateway, model routing, billing, and operations platform. ## API Protocols - Router base URL: https://router.flatkey.ai - OpenAI-compatible Chat Completions: POST https://router.flatkey.ai/v1/chat/completions - OpenAI-compatible Responses: POST https://router.flatkey.ai/v1/responses - Anthropic Messages: POST https://router.flatkey.ai/v1/messages - Gemini native generateContent: POST https://router.flatkey.ai/v1beta/models/{model}:generateContent - Asynchronous video generation: POST https://router.flatkey.ai/v1/videos ## Gemini Image Models - nano-banana-pro-preview supports both Gemini native generateContent and OpenAI-compatible Chat Completions. - With Gemini native generateContent, generated images are returned in candidates[].content.parts[].inlineData. - With Chat Completions, generated images are returned in choices[0].message.content as Markdown data URIs. - These Gemini image-model paths currently do not use /v1/images/generations; do not infer lack of Gemini support from that endpoint. ## Seedance Video Models - Seedance models use the official multimodal content[] request format. - Create a video task with POST https://router.flatkey.ai/v1/videos. - Poll task status with GET https://router.flatkey.ai/v1/videos/{task_id}. - Download completed video content with GET https://router.flatkey.ai/v1/videos/{task_id}/content. - Use GET /v1/models to discover the Seedance model IDs currently available to your account. - Documentation: https://docs.flatkey.ai/api-reference/seedance-video-generation - Chinese documentation: https://docs.flatkey.ai/zh/api-reference/seedance-video-generation ## Core Pages - Home: https://flatkey.ai/ - Flatkey Tools: https://flatkey.ai/tools - Flatkey as an Apify alternative: https://flatkey.ai/apify-alternative - Flatkey CLI: https://flatkey.ai/cli - Flatkey vs Higgsfield: https://flatkey.ai/higgsfield-alternative - Model pricing: https://flatkey.ai/pricing - Rankings: https://flatkey.ai/rankings - Blog: https://flatkey.ai/blog - Sitemap: https://flatkey.ai/sitemap.xml ## Blog Categories - AI Gateway Architecture: https://flatkey.ai/blog/category/ai-gateway-architecture - Base URL and SDK Migration: https://flatkey.ai/blog/category/base-url-and-sdk-migration - Cost, Billing, and Ops: https://flatkey.ai/blog/category/cost-billing-and-ops - Enterprise Controls and Trust: https://flatkey.ai/blog/category/enterprise-controls-and-trust - Gateway Comparisons: https://flatkey.ai/blog/category/gateway-comparisons - Model and Modality Playbooks: https://flatkey.ai/blog/category/model-and-modality-playbooks - Reliability and Routing: https://flatkey.ai/blog/category/reliability-and-routing - Tool Integrations: https://flatkey.ai/blog/category/tool-integrations ## Blog Articles - Imagen API Pricing and Routing Checks for OpenAI-Compatible Workflows: https://flatkey.ai/blog/imagen-api-pricing-routing-checks - Use this September 2026 Imagen API pricing and routing checklist to verify Gemini image model prices, deprecations, Flatkey routes, and accepted-image cost before launch. - GPT Image 2 API Through Flatkey: Pricing, Models, and Request Checks: https://flatkey.ai/blog/gpt-image-2-api-flatkey - Use this GPT Image 2 API Through Flatkey guide to verify model rows, pricing units, endpoint support, and request checks before production traffic. - Claude vs GPT API Routing: When to Prefer Provider-Specific Models or a Gateway: https://flatkey.ai/blog/claude-vs-gpt-api-routing - A practical decision framework for routing Claude and GPT workloads through direct provider APIs, a Flatkey gateway, or a hybrid architecture. - AI Model Catalog Guide: How to Read Providers, Endpoints, Groups, and Prices: https://flatkey.ai/blog/ai-model-catalog-guide - Use this AI model catalog guide to read providers, endpoints, groups, availability, pricing units, and usage evidence before production routing. - GPT Image vs Gemini Image API: Routing and Pricing Questions Before You Choose: https://flatkey.ai/blog/gpt-image-vs-gemini-image-api - Compare GPT Image vs Gemini Image API routing, pricing units, model status, rate limits, and accepted-image cost before production rollout. - Seedance vs Veo API: Video Generation Routing and Pricing Review: https://flatkey.ai/blog/seedance-vs-veo-api-routing-pricing - Compare Seedance vs Veo API pricing units, route controls, model availability, and production checks before sending creator workflows to video generation APIs. - Gemini vs Claude API Routing: Cost, Context, Tools, and Reliability Checks: https://flatkey.ai/blog/gemini-vs-claude-api-routing - A practical routing checklist for comparing Gemini and Claude by accepted-output cost, context reliability, tool calling, structured outputs, batch/caching, fallback behavior, and usage-log verification. - DeepSeek vs Qwen API: OpenAI-Compatible Routing Checks: https://flatkey.ai/blog/deepseek-vs-qwen-api-routing - Compare DeepSeek vs Qwen API routing with OpenAI-compatible base URL checks, region/workspace rules, tool calls, streaming, pricing units, and Flatkey tests. - GPT Image vs Imagen API: Pricing Units and Request Checks: https://flatkey.ai/blog/gpt-image-vs-imagen-api - A current comparison of GPT Image and Google's post-Imagen image-generation path, with pricing units, request checks, rate-limit checks, and migration guidance. - Speech-to-Text API Routing: How to Balance Transcription Cost, Latency, and Data Controls: https://flatkey.ai/blog/speech-to-text-api-routing - Use this speech-to-text API routing framework to compare transcription cost, latency classes, fallback behavior, and data controls before production rollout. - Regional LLM Provider Routing: When DeepSeek, Qwen, and Local Providers Need Separate Checks: https://flatkey.ai/blog/regional-llm-provider-routing - A practical provider-check framework for routing DeepSeek, Qwen, and local LLM gateways with region, compatibility, capacity, cost, and fallback controls. - OCR Model Routing: How to Balance Text Extraction Cost, Quality, and Fallback Checks: https://flatkey.ai/blog/ocr-model-routing - Use this OCR model routing framework to compare OCR API cost, extraction quality, and fallback constraints before standardizing document AI traffic. - Fallback Routing for LLM APIs: Multimodal Agent Routing for Text, Image, Audio, and Video: https://flatkey.ai/blog/multimodal-agent-routing - A practical fallback routing playbook for multimodal AI agents that handle text, image, audio, and video API workflows. - Kimi 3 API (Kimi K3): What Developers Need to Know: https://flatkey.ai/blog/kimi-3-api-kimi-k3-access-guide - A current, source-backed guide to Kimi K3 API access, pricing, reasoning settings, multimodal limits, migration checks, and Flatkey routing. - Seedance API Evaluation Framework for Text-to-Video Product Teams: https://flatkey.ai/blog/seedance-api-evaluation-framework-product-teams - A repeatable framework for evaluating Seedance API quality, reliability, user experience, safety, and cost before a text-to-video product rollout. - DeepSeek V4 Pro vs Flash: Which Model Fits Your API Workflow?: https://flatkey.ai/blog/deepseek-v4-pro-vs-flash - Compare DeepSeek V4 Pro vs Flash after the V4.1 Flash update, including the September 14 Pro routing change and API workflow checks. - How to Use an OpenAI API Alternative in 2026: https://flatkey.ai/blog/how-to-use-openai-api-alternative-2026 - Learn how to test an OpenAI API alternative with a reversible base_url migration, smoke tests, fallback rules, usage logs, and rollout metrics. - LLM API Metrics That Actually Matter: https://flatkey.ai/blog/llm-api-metrics-that-actually-matter - A practical scorecard for measuring LLM API reliability, latency, cost, retries, fallbacks, context efficiency, and auditability.