Developer API

Flixly AI API

Build with 50+ AI models — one API, one credit system. Generate images, videos, audio, and chat completions in minutes.

Quick Start

Start generating in three lines of code. Pick your language:

curl https://www.flixly.ai/api/v1/generate \
  -H "Authorization: Bearer flx_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "flux-dev",
    "prompt": "A cat wearing a top hat, oil painting",
    "type": "TEXT_TO_IMAGE"
  }'

Endpoints Reference

All endpoints are prefixed with https://flixly.ai. Click an endpoint to expand examples.

Authentication

All API requests require a Bearer token in the Authorization header.

Getting Your API Key

  1. Sign in to Flixly at flixly.ai/auth/login
  2. Navigate to Dashboard → Settings → API Keys
  3. Click "Create API Key" and give it a name
  4. Copy the key (starts with flx_live_) — it is shown only once

Using Your Key

# Include in every request header
Authorization: Bearer flx_live_YOUR_KEY

Keep your API key secret. Do not expose it in client-side code or public repositories.

Rate Limits

Limits scale with your plan. Upgrade anytime from the billing page.

PlanRequests / minParallel Tasks
Free101
Lite302
Pro60 – 2003 – 25

When you exceed your rate limit you will receive a 429 response with a Retry-After header indicating how many seconds to wait.

Error Codes

All errors follow a consistent JSON shape:

{
  "error": {
    "code": "insufficient_credits",
    "status": 402,
    "message": "You need at least 10 credits for this model."
  }
}
CodeStatusDescription
unauthorized401Invalid or missing API key.
insufficient_credits402Not enough credits to complete the request.
forbidden403API key does not have permission for this action.
not_found404The requested resource does not exist.
validation_error422Request body failed validation. Check required fields.
rate_limit_exceeded429Too many requests. Retry after the period shown in headers.
internal_error500Unexpected server error. Contact support if it persists.

Ready to Build?

Create a free account, grab an API key, and start generating in under a minute.