CN8 is an AI gateway: a single proxy layer that gives you access to AI capabilities — chatbots with RAG, multi-agent orchestration, LLM completions, dubbing, TTS, media generation, and production-grade video/audio processing — all through one consistent API with unified auth, billing, and usage tracking.
CN8 is a gateway: every AI capability is a service, called through one proxy URL. The gateway handles auth, billing, usage tracking, and rate limiting so you don't have to.
Base URL: https://api.cn8.io. All service calls follow the same pattern: POST (or GET) /v1/proxy/{service-name}. The gateway receives your request, authenticates your API key, checks permissions and credit balance, forwards to the right backend, tracks usage, deducts cost, and returns the result.
You never integrate with individual AI providers directly. Every capability — chatbot, agent, LLM completion, TTS, dubbing, image generation, studio processing — is a named service on the gateway. Services have a stable name (e.g. core-chat, core-tts, media-image-generate). You call them all the same way; the gateway routes and handles the rest.
Sync services (LLM completions, chatbot chat, TTS, image generation, text analysis) respond in the same request. Async services (dubbing, video generation) return HTTP 202 immediately with a jobid. You poll GET /v2/jobs/{jobid} until status is completed or failed, then read result_data. If you configure a webhook, the gateway posts the result to your URL when the job finishes.
The gateway never handles your media files directly. For services that need video, audio, or images, use the upload-media endpoint to get a presigned S3 PUT URL, upload directly to S3, then pass the returned public_url to any service. This keeps media transfers fast and off the gateway.
Your account has two credit pools: creditbalance (monthly, resets each period) and topupbalance (purchased, never expires). The gateway always deducts from creditbalance first; when it runs out, topupbalance is used. totalbalance = creditbalance + topupbalance. Each service call returns its cost in the response. You can set a creditlimit per API key; when exceeded, the key returns 429.