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.
Image Generation (Text-to-Image)
image-from-text
Synchronous multi-provider image generation with 25 style presets.
Send a prompt with an optional model (default flash / Imagen 3 Fast, 4 credits) plus style, negatives, aspect_ratio, quality and quantity. Returns an array of hosted images. 21 models across Imagen, OpenAI, FLUX, Stability, Ideogram and Leonardo — billed per image at the model's own rate (3 credits–20 credits).
GET media-image-models for the live model catalog (provider, $/image, aspect ratios)
GET media-image-styles for the 25 preset keys and descriptions
POST media-image-generate with a prompt + model + style; returns data.images with hosted URLs
Synchronous — no polling. You're billed for the images returned × the model's rate