Skip to content
FlowAPI

Documentation

llms.txt

FlowAPI API documentation

The FlowAPI API documentation has 13 guides for one REST API at https://useflowapi.com/v1 that generates images and videos at a flat USD price per image or per second; start with the quickstart and a $0 test key.

Guides

  • Quickstart: Make your first FlowAPI image request in 3 steps: create an API key, POST /v1/generations, then poll GET /v1/jobs/{id}. Test keys cost $0.
  • Authentication: Authenticate FlowAPI API calls with a Bearer key: flow_sk_live_ for paid jobs, flow_sk_test_ for $0 test jobs. Keys never go in URLs.
  • Error codes: All 16 FlowAPI API error codes with HTTP status, the action to take and whether to retry. Every error returns a request_id for support.
  • Rate limits: FlowAPI API rate limits: 120 writes, 1200 reads and 600 quotes per key per minute, plus 20 running image and 5 video jobs.
  • Image generation: Generate images with one FlowAPI endpoint: text-to-image or image-to-image, 1–4 images per request, flat price per image from $0.027.
  • Video generation: Generate videos with FlowAPI: text-to-video, image-to-video or reference-to-video, 1–60 seconds, flat price per second from $0.025.
  • Input files: Upload reference images, video or audio to FlowAPI with POST /v1/files: up to 20 MB, 6 media types, kept 24 hours, used by file_id.
  • Async jobs & polling: Every FlowAPI generation is an async job: 5 statuses, poll GET /v1/jobs/{id}, cancel with POST /v1/jobs/{id}/cancel, results kept 30 days.
  • Webhooks: FlowAPI accepts a webhook_url on each job today; signed webhook delivery is not switched on yet, so poll GET /v1/jobs/{id} for the 3 final statuses.
  • Idempotency & retries: FlowAPI requires an Idempotency-Key on POST /v1/generations: same key and body returns the same job, a different body returns 409. Up to 255 ASCII chars.
  • MCP server: Connect Claude, Cursor or any MCP client to FlowAPI's remote MCP server: Streamable HTTP, Bearer API key, 7 tools from list_models to generate.
  • Balance & refunds: FlowAPI billing: prepaid USD balance, one flat price per model spec, full refunds for failed or cancelled jobs, no negative balance and a $0.5 trial.
  • API reference: FlowAPI API reference generated from openapi.json: 7 endpoints for generations, quotes, jobs, cancel, models, balance and file uploads.

Machine-readable

  • openapi.json: OpenAPI 3.1 for every endpoint
  • llms.txt and llms-full.txt: the site and docs as plain text for AI assistants
  • Every model page has a Markdown twin: add .md to its URL

FAQ

Where do I start with the FlowAPI API?
Start with the quickstart: create a test key, send one POST /v1/generations request and poll the job until it succeeds.
Does FlowAPI have an OpenAPI spec?
Yes. https://useflowapi.com/openapi.json is an OpenAPI 3.1 document for every live endpoint.
Can AI coding assistants read the FlowAPI docs?
Yes. https://useflowapi.com/llms-full.txt holds every docs page as plain Markdown, and the remote MCP server exposes the API as 7 tools.