# FlowAPI > One API key for 13 image and video models from 9 vendors. Flat price per image or second: images from $0.0115, video from $0.014/s. Failed jobs refunded. OpenAPI: https://useflowapi.com/openapi.json # One API key for image and video models URL: https://useflowapi.com/ FlowAPI gives you one API key for 13 AI models (5 image, 8 video) from 9 vendors at one flat price each: images from $0.0115 per image, video from $0.014 per second, and failed jobs refunded in full. ## Prices | Model | Type | Spec | Price (USD) | Unit | $0.5 trial | | --- | --- | --- | --- | --- | --- | | [GPT Image 2.6 Flare](/models/openai/gpt-image-2-6-flare) | image | 1K | $0.0115 | per image | Yes | | [Nano Banana Pro](/models/google/nano-banana-pro) | image | 1K/2K | $0.027 | per image | Yes | | [Nano Banana Pro](/models/google/nano-banana-pro) | image | 4K | $0.04 | per image | Yes | | [Nano Banana 2.1](/models/google/nano-banana-2-1) | image | 1K | $0.016 | per image | Yes | | [Seedream 5.0 Pro](/models/bytedance/seedream-5-0-pro) | image | 1K | $0.042 | per image | Yes | | [FLUX.2 Pro](/models/black-forest-labs/flux-2-pro) | image | 1MP | $0.038 | per image | Yes | | [Veo 3.1 Fast](/models/google/veo-3-1-fast) | video | 1080p·audio | $0.025 | per second | Yes | | [Grok Imagine Video 1.5](/models/xai/grok-imagine-video-1-5) | video | 480p | $0.014 | per second | Yes | | [MiniMax H3](/models/minimax/minimax-h3) | video | 768p | $0.021 | per second | Yes | | [Wan 3.0](/models/alibaba/wan-3-0) | video | 720p | $0.072 | per second | Yes | | [Kling 3.0](/models/kling/kling-3-0) | video | 720p·silent | $0.08 | per second | Yes | | [Seedance 2.0](/models/bytedance/seedance-2-0) | video | 480p | $0.0703 | per second | Yes | | [Seedance 2.5](/models/bytedance/seedance-2-5) | video | 480p | $0.1028 | per second | No | | [MAGI-2](/models/sand-ai/magi-2) | video | standard | $0.08 | per second | Yes | ## How it works 1. **Create a key.** Test keys cost $0 and return a sample result; live keys draw from a prepaid USD balance. 2. **Send one request.** `POST /v1/generations` with a model id, a prompt and parameters. The same format works for all 13 models. 3. **Get the files.** Poll `GET /v1/jobs/{id}`. Results stay downloadable for 30 days. ```bash curl https://useflowapi.com/v1/generations \ -H "Authorization: Bearer $FLOWAPI_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: first-job" \ -d '{"model":"openai/gpt-image-2.6-flare","input":{"type":"text","prompt":"A lighthouse at dawn"}}' ``` ## What you pay - **One flat price per spec.** The price in the table is the price you pay: no tokens, no surcharges. - **Charged when the job is accepted, refunded if it fails.** Failed, timed-out and cancelled jobs return 100% of the price to your balance. - **Prepaid balance.** Top up $10 to $1,000; the balance never goes negative and topped-up funds do not expire. - **$0.5 trial credit** for new accounts signed up with Google, valid 30 days on specs up to $0.1 per unit. ## Built for code and agents - REST API with an [OpenAPI 3.1 spec](/openapi.json), examples in cURL, TypeScript and Python ([quickstart](/docs/quickstart)). - [Remote MCP server](/mcp) with 7 tools, so Claude, Cursor and other agents can quote, generate and fetch results. - Required idempotency keys, 120 writes per minute per key, per-key monthly spending limits. - [llms.txt](/llms.txt) and a Markdown copy of every model page for AI assistants. ## FAQ **What is FlowAPI?** FlowAPI is an image and video generation API: one key, 13 models and one flat USD price per image or per second of video. **Are failed generations charged?** No. Failed, timed-out and cancelled jobs are refunded in full to your balance automatically. **Is there a free trial?** Yes. New accounts signed up with Google get $0.5 of trial credit for 30 days, usable on specs priced at $0.1 per unit or less. **Does FlowAPI work with Claude, Cursor and other AI agents?** Yes. FlowAPI runs a remote MCP server at https://useflowapi.com/mcp with 7 tools, authenticated with your API key. **Is FlowAPI affiliated with the model vendors?** No. FlowAPI is an independent API service; it is not affiliated with or endorsed by Google, OpenAI or any other model vendor. --- # Image and video models URL: https://useflowapi.com/models FlowAPI serves 13 models through one API: 5 image models from $0.0115 per image and 8 video models from $0.014 per second, all called with the same request format. ## Prices | Model | Type | Spec | Price (USD) | Unit | $0.5 trial | | --- | --- | --- | --- | --- | --- | | [GPT Image 2.6 Flare](/models/openai/gpt-image-2-6-flare) | image | 1K | $0.0115 | per image | Yes | | [Nano Banana Pro](/models/google/nano-banana-pro) | image | 1K/2K | $0.027 | per image | Yes | | [Nano Banana Pro](/models/google/nano-banana-pro) | image | 4K | $0.04 | per image | Yes | | [Nano Banana 2.1](/models/google/nano-banana-2-1) | image | 1K | $0.016 | per image | Yes | | [Seedream 5.0 Pro](/models/bytedance/seedream-5-0-pro) | image | 1K | $0.042 | per image | Yes | | [FLUX.2 Pro](/models/black-forest-labs/flux-2-pro) | image | 1MP | $0.038 | per image | Yes | | [Veo 3.1 Fast](/models/google/veo-3-1-fast) | video | 1080p·audio | $0.025 | per second | Yes | | [Grok Imagine Video 1.5](/models/xai/grok-imagine-video-1-5) | video | 480p | $0.014 | per second | Yes | | [MiniMax H3](/models/minimax/minimax-h3) | video | 768p | $0.021 | per second | Yes | | [Wan 3.0](/models/alibaba/wan-3-0) | video | 720p | $0.072 | per second | Yes | | [Kling 3.0](/models/kling/kling-3-0) | video | 720p·silent | $0.08 | per second | Yes | | [Seedance 2.0](/models/bytedance/seedance-2-0) | video | 480p | $0.0703 | per second | Yes | | [Seedance 2.5](/models/bytedance/seedance-2-5) | video | 480p | $0.1028 | per second | No | | [MAGI-2](/models/sand-ai/magi-2) | video | standard | $0.08 | per second | Yes | ## Pick a model - Every model page lists its price per spec, accepted parameters, input modes and code samples. - Model ids follow `vendor/model`, e.g. `openai/gpt-image-2.6-flare`. `GET /v1/models` returns the same list as JSON with no key needed. - Check any request's price with `POST /v1/quotes` before you submit it. ## FAQ **How many models does FlowAPI offer?** FlowAPI offers 13 models: 5 for images and 8 for video. **Do all models use the same API?** Yes. Every model takes the same POST /v1/generations request; only the model id and parameters change. **Can I list the models from code?** Yes. GET /v1/models returns every model with its prices as JSON and needs no API key. --- # Flat prices for every model URL: https://useflowapi.com/pricing Every FlowAPI model has one flat USD price per image or per second of video, 14 prices in all: images from $0.0115, video from $0.014 per second, charged when the job is accepted and refunded in full if it fails. ## Prices | Model | Type | Spec | Price (USD) | Unit | $0.5 trial | | --- | --- | --- | --- | --- | --- | | [GPT Image 2.6 Flare](/models/openai/gpt-image-2-6-flare) | image | 1K | $0.0115 | per image | Yes | | [Nano Banana Pro](/models/google/nano-banana-pro) | image | 1K/2K | $0.027 | per image | Yes | | [Nano Banana Pro](/models/google/nano-banana-pro) | image | 4K | $0.04 | per image | Yes | | [Nano Banana 2.1](/models/google/nano-banana-2-1) | image | 1K | $0.016 | per image | Yes | | [Seedream 5.0 Pro](/models/bytedance/seedream-5-0-pro) | image | 1K | $0.042 | per image | Yes | | [FLUX.2 Pro](/models/black-forest-labs/flux-2-pro) | image | 1MP | $0.038 | per image | Yes | | [Veo 3.1 Fast](/models/google/veo-3-1-fast) | video | 1080p·audio | $0.025 | per second | Yes | | [Grok Imagine Video 1.5](/models/xai/grok-imagine-video-1-5) | video | 480p | $0.014 | per second | Yes | | [MiniMax H3](/models/minimax/minimax-h3) | video | 768p | $0.021 | per second | Yes | | [Wan 3.0](/models/alibaba/wan-3-0) | video | 720p | $0.072 | per second | Yes | | [Kling 3.0](/models/kling/kling-3-0) | video | 720p·silent | $0.08 | per second | Yes | | [Seedance 2.0](/models/bytedance/seedance-2-0) | video | 480p | $0.0703 | per second | Yes | | [Seedance 2.5](/models/bytedance/seedance-2-5) | video | 480p | $0.1028 | per second | No | | [MAGI-2](/models/sand-ai/magi-2) | video | standard | $0.08 | per second | Yes | ## How billing works | Rule | Detail | | --- | --- | | Price | Unit price × units (images, or seconds of video) | | When | Charged when the job is accepted | | Failed, timed out, cancelled | 100% refunded automatically | | Balance | Prepaid USD, never negative | | Quote | `POST /v1/quotes` returns the exact price, free | | Test keys | $0, return a sample result | ## Top-ups | Tier | Note | | --- | --- | | $10 | | | $50 | | | $100 | Recommended | | $500 | | | $1,000 | | Topped-up balance does not expire. Unused balance can be refunded within 30 days of the top-up ([refund policy](/refund-policy)). ## Trial credit New accounts signed up with Google get $0.5, valid for 30 days, on specs priced at $0.1 per unit or less (the "$0.5 trial: Yes" rows above). One claim per account, device and network. ## Example costs - GPT Image 2.6 Flare: 1 image = $0.0115 - Nano Banana Pro: 1 image = $0.027 - Nano Banana 2.1: 1 image = $0.016 - Seedream 5.0 Pro: 1 image = $0.042 - FLUX.2 Pro: 1 image = $0.038 - Veo 3.1 Fast: 5 seconds = $0.125 Need more than $1,000 at a time? See [Enterprise](/enterprise). ## FAQ **Are there hidden fees?** No. You pay the listed unit price times the units, with no per-token fees, surcharges or minimums. **How much does a 5-second AI video cost?** A 5-second Veo 3.1 Fast clip costs $0.125; video prices start at $0.014 per second. **Does topped-up balance expire?** No. Topped-up balance never expires; only the trial credit expires. **Am I charged for failed jobs?** No. Failed, timed-out and cancelled jobs are refunded in full. --- # Remote MCP server for image and video URL: https://useflowapi.com/mcp FlowAPI runs a remote MCP server at `https://useflowapi.com/mcp` with 7 tools; it speaks Streamable HTTP, authenticates with your API key in an `Authorization: Bearer` header and charges exactly what the REST API charges. ## Endpoint | | | | --- | --- | | URL | `https://useflowapi.com/mcp` | | Transport | Streamable HTTP (stateless) | | Auth | `Authorization: Bearer flow_sk_live_…` or `flow_sk_test_…` | | OAuth | Not supported yet; use an API key header | Never put the key in the URL: the server refuses requests with a key in the query string. ## Tools | Tool | What it does | | --- | --- | | `list_models` | Every model with its flat prices per spec. | | `get_model` | One model by id: prices, defaults and parameters. | | `quote` | Exact price of a request before you submit it. Never charges. | | `generate` | Submit an image or video job. Waits up to 40 seconds, then returns the job id. | | `get_job` | Status, result file URLs or error of a job. | | `get_balance` | Available balance and trial credit in USD. | | `upload_file` | Upload a reference file (base64, up to 20 MB) for a later job. | `generate` waits up to 40 seconds. If the job finishes in time you get the result files; otherwise you get the `job_id`, and the assistant calls `get_job` later. Every tool goes through the same pricing, balance checks and refunds as the REST API. ## Claude Code ```bash claude mcp add --transport http flowapi https://useflowapi.com/mcp \ --header "Authorization: Bearer $FLOWAPI_KEY" ``` ## Cursor, Windsurf and other JSON configs ```json { "mcpServers": { "flowapi": { "url": "https://useflowapi.com/mcp", "headers": { "Authorization": "Bearer flow_sk_test_…" } } } } ``` Start with a test key: the assistant can exercise every tool at $0, and `generate` returns a sample file. ## FAQ **Does the FlowAPI MCP server support OAuth?** No. Not yet: authenticate with an API key in the Authorization: Bearer header. **Does generating through MCP cost the same as the API?** Yes. MCP tools call the same service, so prices, balance checks and refunds are identical. **What happens when a video takes longer than the tool call?** generate returns the job_id after 40 seconds, and get_job fetches the result when it is ready. --- # For teams and companies URL: https://useflowapi.com/enterprise FlowAPI offers teams 6 things today, listed below, including top-ups up to $1,000, per-key monthly spending limits and $0 test keys; it does not offer an SLA, invoices or custom contracts yet. ## What you get today | Feature | Detail | | --- | --- | | Flat prices | The same public price for every account; see [/pricing](/pricing) | | Large top-ups | Up to $1,000 per top-up; balance does not expire | | Spend control | A monthly spending limit on each API key | | Test keys | $0 keys that return sample results, for CI and staging | | Retention | Results kept 30 days; request logs 90 days | | Agents | Remote [MCP server](/mcp) with 7 tools | ## Not offered yet - An uptime SLA or service credits - Invoicing, purchase orders or net terms - Custom contracts or a DPA - Volume discounts or custom prices - Higher rate limits than the defaults (20 running image jobs, 5 running video jobs) ## Talk to us Sign in and open a support ticket from the [console](/console) with your expected monthly volume and the models you need. ## FAQ **Does FlowAPI offer an SLA?** No. FlowAPI does not offer an uptime SLA today. **Can we pay by invoice?** No. Today all accounts pay by prepaid top-up, up to $1,000 at a time. **Can we cap what each API key spends?** Yes. Each key can have a monthly spending limit, and jobs that would exceed it are refused before any charge. --- # GPT Image 2.6 Flare API URL: https://useflowapi.com/models/openai/gpt-image-2-6-flare GPT Image 2.6 Flare costs $0.0115 per image on FlowAPI (1K); you call it with model id `openai/gpt-image-2.6-flare` through one REST endpoint or the MCP server, and failed jobs are refunded in full. ## Prices | Spec | Price (USD) | Unit | $0.5 trial | | --- | --- | --- | --- | | 1K | $0.0115 | per image | Yes | ## Parameters | Parameter | Values | Default | Note | | --- | --- | --- | --- | | `resolution` | 1K | 1K | Selects the price row. | | `n` | 1–4 | 1 | Images per request; price × n. | Input modes (`input.type`): `text`, `image`. See [image generation](/docs/image-generation) for references and roles. ## Code **cURL** ```bash curl https://useflowapi.com/v1/generations \ -H "Authorization: Bearer $FLOWAPI_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: gpt-image-2-6-flare-1" \ -d '{"model":"openai/gpt-image-2.6-flare","input":{"type":"text","prompt":"A red bicycle leaning on a brick wall"},"parameters":{"resolution":"1K","n":1}}' ``` **TypeScript (fetch, Node 18+)** ```ts const res = await fetch('https://useflowapi.com/v1/generations', { method: 'POST', headers: { Authorization: `Bearer ${process.env.FLOWAPI_KEY}`, 'Content-Type': 'application/json', 'Idempotency-Key': 'gpt-image-2-6-flare-1', }, body: JSON.stringify({ "model": "openai/gpt-image-2.6-flare", "input": { "type": "text", "prompt": "A red bicycle leaning on a brick wall" }, "parameters": { "resolution": "1K", "n": 1 } }), }); const job = await res.json(); console.log(job.id, job.status, job.price.amount); ``` **Python (requests)** ```python import os, requests res = requests.post( "https://useflowapi.com/v1/generations", headers={ "Authorization": f"Bearer {os.environ['FLOWAPI_KEY']}", "Idempotency-Key": "gpt-image-2-6-flare-1", }, json={ "model": "openai/gpt-image-2.6-flare", "input": { "type": "text", "prompt": "A red bicycle leaning on a brick wall" }, "parameters": { "resolution": "1K", "n": 1 } }, ) job = res.json() print(job["id"], job["status"], job["price"]["amount"]) ``` Check the price first with `POST /v1/quotes` (same body, never charges). Then poll `GET /v1/jobs/{id}` ([async jobs](/docs/jobs)). ## Use it from an AI agent Add the [FlowAPI MCP server](/mcp) to Claude, Cursor or any MCP client and ask for a image with `openai/gpt-image-2.6-flare`. ## About this page GPT Image 2.6 Flare is made by OpenAI. FlowAPI is an independent API service and is not affiliated with or endorsed by OpenAI. Prices on this page are read from FlowAPI's live price table. ## FAQ **How much does the GPT Image 2.6 Flare API cost?** GPT Image 2.6 Flare costs $0.0115 per image at 1K on FlowAPI. **Is FlowAPI the official GPT Image 2.6 Flare API?** No. FlowAPI is an independent API service, not affiliated with OpenAI, that runs GPT Image 2.6 Flare for you at a flat price. **Are failed GPT Image 2.6 Flare jobs refunded?** Yes. A failed, timed-out or cancelled job is refunded in full automatically. **How many GPT Image 2.6 Flare images can one request make?** One request makes 1 to 4 images (parameters.n), priced at $0.0115 each at 1K. --- # Nano Banana Pro API URL: https://useflowapi.com/models/google/nano-banana-pro Nano Banana Pro costs $0.027 per image on FlowAPI (1K/2K) and up to $0.04 at 4K; you call it with model id `google/nano-banana-pro` through one REST endpoint or the MCP server, and failed jobs are refunded in full. ## Prices | Spec | Price (USD) | Unit | $0.5 trial | | --- | --- | --- | --- | | 1K/2K | $0.027 | per image | Yes | | 4K | $0.04 | per image | Yes | ## Parameters | Parameter | Values | Default | Note | | --- | --- | --- | --- | | `resolution` | 1K, 2K, 4K | 1K | Selects the price row. | | `n` | 1–4 | 1 | Images per request; price × n. | Input modes (`input.type`): `text`, `image`. See [image generation](/docs/image-generation) for references and roles. ## Code **cURL** ```bash curl https://useflowapi.com/v1/generations \ -H "Authorization: Bearer $FLOWAPI_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: nano-banana-pro-1" \ -d '{"model":"google/nano-banana-pro","input":{"type":"text","prompt":"A red bicycle leaning on a brick wall"},"parameters":{"resolution":"1K","n":1}}' ``` **TypeScript (fetch, Node 18+)** ```ts const res = await fetch('https://useflowapi.com/v1/generations', { method: 'POST', headers: { Authorization: `Bearer ${process.env.FLOWAPI_KEY}`, 'Content-Type': 'application/json', 'Idempotency-Key': 'nano-banana-pro-1', }, body: JSON.stringify({ "model": "google/nano-banana-pro", "input": { "type": "text", "prompt": "A red bicycle leaning on a brick wall" }, "parameters": { "resolution": "1K", "n": 1 } }), }); const job = await res.json(); console.log(job.id, job.status, job.price.amount); ``` **Python (requests)** ```python import os, requests res = requests.post( "https://useflowapi.com/v1/generations", headers={ "Authorization": f"Bearer {os.environ['FLOWAPI_KEY']}", "Idempotency-Key": "nano-banana-pro-1", }, json={ "model": "google/nano-banana-pro", "input": { "type": "text", "prompt": "A red bicycle leaning on a brick wall" }, "parameters": { "resolution": "1K", "n": 1 } }, ) job = res.json() print(job["id"], job["status"], job["price"]["amount"]) ``` Check the price first with `POST /v1/quotes` (same body, never charges). Then poll `GET /v1/jobs/{id}` ([async jobs](/docs/jobs)). ## Use it from an AI agent Add the [FlowAPI MCP server](/mcp) to Claude, Cursor or any MCP client and ask for a image with `google/nano-banana-pro`. ## About this page Nano Banana Pro is made by Google. FlowAPI is an independent API service and is not affiliated with or endorsed by Google. Prices on this page are read from FlowAPI's live price table. ## FAQ **How much does the Nano Banana Pro API cost?** Nano Banana Pro costs $0.027 per image at 1K/2K on FlowAPI and up to $0.04 at 4K. **Is FlowAPI the official Nano Banana Pro API?** No. FlowAPI is an independent API service, not affiliated with Google, that runs Nano Banana Pro for you at a flat price. **Are failed Nano Banana Pro jobs refunded?** Yes. A failed, timed-out or cancelled job is refunded in full automatically. **How many Nano Banana Pro images can one request make?** One request makes 1 to 4 images (parameters.n), priced at $0.027 each at 1K/2K. --- # Nano Banana 2.1 API URL: https://useflowapi.com/models/google/nano-banana-2-1 Nano Banana 2.1 costs $0.016 per image on FlowAPI (1K); you call it with model id `google/nano-banana-2.1` through one REST endpoint or the MCP server, and failed jobs are refunded in full. ## Prices | Spec | Price (USD) | Unit | $0.5 trial | | --- | --- | --- | --- | | 1K | $0.016 | per image | Yes | ## Parameters | Parameter | Values | Default | Note | | --- | --- | --- | --- | | `resolution` | 1K | 1K | Selects the price row. | | `n` | 1–4 | 1 | Images per request; price × n. | Input modes (`input.type`): `text`, `image`. See [image generation](/docs/image-generation) for references and roles. ## Code **cURL** ```bash curl https://useflowapi.com/v1/generations \ -H "Authorization: Bearer $FLOWAPI_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: nano-banana-2-1-1" \ -d '{"model":"google/nano-banana-2.1","input":{"type":"text","prompt":"A red bicycle leaning on a brick wall"},"parameters":{"resolution":"1K","n":1}}' ``` **TypeScript (fetch, Node 18+)** ```ts const res = await fetch('https://useflowapi.com/v1/generations', { method: 'POST', headers: { Authorization: `Bearer ${process.env.FLOWAPI_KEY}`, 'Content-Type': 'application/json', 'Idempotency-Key': 'nano-banana-2-1-1', }, body: JSON.stringify({ "model": "google/nano-banana-2.1", "input": { "type": "text", "prompt": "A red bicycle leaning on a brick wall" }, "parameters": { "resolution": "1K", "n": 1 } }), }); const job = await res.json(); console.log(job.id, job.status, job.price.amount); ``` **Python (requests)** ```python import os, requests res = requests.post( "https://useflowapi.com/v1/generations", headers={ "Authorization": f"Bearer {os.environ['FLOWAPI_KEY']}", "Idempotency-Key": "nano-banana-2-1-1", }, json={ "model": "google/nano-banana-2.1", "input": { "type": "text", "prompt": "A red bicycle leaning on a brick wall" }, "parameters": { "resolution": "1K", "n": 1 } }, ) job = res.json() print(job["id"], job["status"], job["price"]["amount"]) ``` Check the price first with `POST /v1/quotes` (same body, never charges). Then poll `GET /v1/jobs/{id}` ([async jobs](/docs/jobs)). ## Use it from an AI agent Add the [FlowAPI MCP server](/mcp) to Claude, Cursor or any MCP client and ask for a image with `google/nano-banana-2.1`. ## About this page Nano Banana 2.1 is made by Google. FlowAPI is an independent API service and is not affiliated with or endorsed by Google. Prices on this page are read from FlowAPI's live price table. ## FAQ **How much does the Nano Banana 2.1 API cost?** Nano Banana 2.1 costs $0.016 per image at 1K on FlowAPI. **Is FlowAPI the official Nano Banana 2.1 API?** No. FlowAPI is an independent API service, not affiliated with Google, that runs Nano Banana 2.1 for you at a flat price. **Are failed Nano Banana 2.1 jobs refunded?** Yes. A failed, timed-out or cancelled job is refunded in full automatically. **How many Nano Banana 2.1 images can one request make?** One request makes 1 to 4 images (parameters.n), priced at $0.016 each at 1K. --- # Seedream 5.0 Pro API URL: https://useflowapi.com/models/bytedance/seedream-5-0-pro Seedream 5.0 Pro costs $0.042 per image on FlowAPI (1K); you call it with model id `bytedance/seedream-5.0-pro` through one REST endpoint or the MCP server, and failed jobs are refunded in full. ## Prices | Spec | Price (USD) | Unit | $0.5 trial | | --- | --- | --- | --- | | 1K | $0.042 | per image | Yes | ## Parameters | Parameter | Values | Default | Note | | --- | --- | --- | --- | | `resolution` | 1K | 1K | Selects the price row. | | `n` | 1–4 | 1 | Images per request; price × n. | Input modes (`input.type`): `text`, `image`. See [image generation](/docs/image-generation) for references and roles. ## Code **cURL** ```bash curl https://useflowapi.com/v1/generations \ -H "Authorization: Bearer $FLOWAPI_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: seedream-5-0-pro-1" \ -d '{"model":"bytedance/seedream-5.0-pro","input":{"type":"text","prompt":"A red bicycle leaning on a brick wall"},"parameters":{"resolution":"1K","n":1}}' ``` **TypeScript (fetch, Node 18+)** ```ts const res = await fetch('https://useflowapi.com/v1/generations', { method: 'POST', headers: { Authorization: `Bearer ${process.env.FLOWAPI_KEY}`, 'Content-Type': 'application/json', 'Idempotency-Key': 'seedream-5-0-pro-1', }, body: JSON.stringify({ "model": "bytedance/seedream-5.0-pro", "input": { "type": "text", "prompt": "A red bicycle leaning on a brick wall" }, "parameters": { "resolution": "1K", "n": 1 } }), }); const job = await res.json(); console.log(job.id, job.status, job.price.amount); ``` **Python (requests)** ```python import os, requests res = requests.post( "https://useflowapi.com/v1/generations", headers={ "Authorization": f"Bearer {os.environ['FLOWAPI_KEY']}", "Idempotency-Key": "seedream-5-0-pro-1", }, json={ "model": "bytedance/seedream-5.0-pro", "input": { "type": "text", "prompt": "A red bicycle leaning on a brick wall" }, "parameters": { "resolution": "1K", "n": 1 } }, ) job = res.json() print(job["id"], job["status"], job["price"]["amount"]) ``` Check the price first with `POST /v1/quotes` (same body, never charges). Then poll `GET /v1/jobs/{id}` ([async jobs](/docs/jobs)). ## Use it from an AI agent Add the [FlowAPI MCP server](/mcp) to Claude, Cursor or any MCP client and ask for a image with `bytedance/seedream-5.0-pro`. ## About this page Seedream 5.0 Pro is made by ByteDance. FlowAPI is an independent API service and is not affiliated with or endorsed by ByteDance. Prices on this page are read from FlowAPI's live price table. ## FAQ **How much does the Seedream 5.0 Pro API cost?** Seedream 5.0 Pro costs $0.042 per image at 1K on FlowAPI. **Is FlowAPI the official Seedream 5.0 Pro API?** No. FlowAPI is an independent API service, not affiliated with ByteDance, that runs Seedream 5.0 Pro for you at a flat price. **Are failed Seedream 5.0 Pro jobs refunded?** Yes. A failed, timed-out or cancelled job is refunded in full automatically. **How many Seedream 5.0 Pro images can one request make?** One request makes 1 to 4 images (parameters.n), priced at $0.042 each at 1K. --- # FLUX.2 Pro API URL: https://useflowapi.com/models/black-forest-labs/flux-2-pro FLUX.2 Pro costs $0.038 per image on FlowAPI (1MP); you call it with model id `black-forest-labs/flux-2-pro` through one REST endpoint or the MCP server, and failed jobs are refunded in full. ## Prices | Spec | Price (USD) | Unit | $0.5 trial | | --- | --- | --- | --- | | 1MP | $0.038 | per image | Yes | ## Parameters | Parameter | Values | Default | Note | | --- | --- | --- | --- | | `resolution` | 1MP | 1MP | Selects the price row. | | `n` | 1–4 | 1 | Images per request; price × n. | Input modes (`input.type`): `text`, `image`. See [image generation](/docs/image-generation) for references and roles. ## Code **cURL** ```bash curl https://useflowapi.com/v1/generations \ -H "Authorization: Bearer $FLOWAPI_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: flux-2-pro-1" \ -d '{"model":"black-forest-labs/flux-2-pro","input":{"type":"text","prompt":"A red bicycle leaning on a brick wall"},"parameters":{"resolution":"1MP","n":1}}' ``` **TypeScript (fetch, Node 18+)** ```ts const res = await fetch('https://useflowapi.com/v1/generations', { method: 'POST', headers: { Authorization: `Bearer ${process.env.FLOWAPI_KEY}`, 'Content-Type': 'application/json', 'Idempotency-Key': 'flux-2-pro-1', }, body: JSON.stringify({ "model": "black-forest-labs/flux-2-pro", "input": { "type": "text", "prompt": "A red bicycle leaning on a brick wall" }, "parameters": { "resolution": "1MP", "n": 1 } }), }); const job = await res.json(); console.log(job.id, job.status, job.price.amount); ``` **Python (requests)** ```python import os, requests res = requests.post( "https://useflowapi.com/v1/generations", headers={ "Authorization": f"Bearer {os.environ['FLOWAPI_KEY']}", "Idempotency-Key": "flux-2-pro-1", }, json={ "model": "black-forest-labs/flux-2-pro", "input": { "type": "text", "prompt": "A red bicycle leaning on a brick wall" }, "parameters": { "resolution": "1MP", "n": 1 } }, ) job = res.json() print(job["id"], job["status"], job["price"]["amount"]) ``` Check the price first with `POST /v1/quotes` (same body, never charges). Then poll `GET /v1/jobs/{id}` ([async jobs](/docs/jobs)). ## Use it from an AI agent Add the [FlowAPI MCP server](/mcp) to Claude, Cursor or any MCP client and ask for a image with `black-forest-labs/flux-2-pro`. ## About this page FLUX.2 Pro is made by Black Forest Labs. FlowAPI is an independent API service and is not affiliated with or endorsed by Black Forest Labs. Prices on this page are read from FlowAPI's live price table. ## FAQ **How much does the FLUX.2 Pro API cost?** FLUX.2 Pro costs $0.038 per image at 1MP on FlowAPI. **Is FlowAPI the official FLUX.2 Pro API?** No. FlowAPI is an independent API service, not affiliated with Black Forest Labs, that runs FLUX.2 Pro for you at a flat price. **Are failed FLUX.2 Pro jobs refunded?** Yes. A failed, timed-out or cancelled job is refunded in full automatically. **How many FLUX.2 Pro images can one request make?** One request makes 1 to 4 images (parameters.n), priced at $0.038 each at 1MP. --- # Veo 3.1 Fast API URL: https://useflowapi.com/models/google/veo-3-1-fast Veo 3.1 Fast costs $0.025 per second on FlowAPI (1080p·audio), so a 5-second clip costs $0.125; you call it with model id `google/veo-3.1-fast` through one REST endpoint or the MCP server, and failed jobs are refunded in full. ## Prices | Spec | Price (USD) | Unit | $0.5 trial | | --- | --- | --- | --- | | 1080p·audio | $0.025 | per second | Yes | ## Parameters | Parameter | Values | Default | Note | | --- | --- | --- | --- | | `resolution` | 1080p | 1080p | Selects the price row. | | `generate_audio` | true | true | Selects the price row. | | `duration` | 1–60 (integer seconds) | required | Price × seconds. | Input modes (`input.type`): `text`, `image`, `reference`. See [video generation](/docs/video-generation) for references and roles. ## Code **cURL** ```bash curl https://useflowapi.com/v1/generations \ -H "Authorization: Bearer $FLOWAPI_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: veo-3-1-fast-1" \ -d '{"model":"google/veo-3.1-fast","input":{"type":"text","prompt":"A paper boat drifting down a stream"},"parameters":{"resolution":"1080p","generate_audio":true,"duration":5}}' ``` **TypeScript (fetch, Node 18+)** ```ts const res = await fetch('https://useflowapi.com/v1/generations', { method: 'POST', headers: { Authorization: `Bearer ${process.env.FLOWAPI_KEY}`, 'Content-Type': 'application/json', 'Idempotency-Key': 'veo-3-1-fast-1', }, body: JSON.stringify({ "model": "google/veo-3.1-fast", "input": { "type": "text", "prompt": "A paper boat drifting down a stream" }, "parameters": { "resolution": "1080p", "generate_audio": true, "duration": 5 } }), }); const job = await res.json(); console.log(job.id, job.status, job.price.amount); ``` **Python (requests)** ```python import os, requests res = requests.post( "https://useflowapi.com/v1/generations", headers={ "Authorization": f"Bearer {os.environ['FLOWAPI_KEY']}", "Idempotency-Key": "veo-3-1-fast-1", }, json={ "model": "google/veo-3.1-fast", "input": { "type": "text", "prompt": "A paper boat drifting down a stream" }, "parameters": { "resolution": "1080p", "generate_audio": True, "duration": 5 } }, ) job = res.json() print(job["id"], job["status"], job["price"]["amount"]) ``` Check the price first with `POST /v1/quotes` (same body, never charges). Then poll `GET /v1/jobs/{id}` ([async jobs](/docs/jobs)). ## Use it from an AI agent Add the [FlowAPI MCP server](/mcp) to Claude, Cursor or any MCP client and ask for a video with `google/veo-3.1-fast`. ## About this page Veo 3.1 Fast is made by Google. FlowAPI is an independent API service and is not affiliated with or endorsed by Google. Prices on this page are read from FlowAPI's live price table. ## FAQ **How much does the Veo 3.1 Fast API cost?** Veo 3.1 Fast costs $0.025 per second at 1080p·audio on FlowAPI, so a 5-second clip costs $0.125. **Is FlowAPI the official Veo 3.1 Fast API?** No. FlowAPI is an independent API service, not affiliated with Google, that runs Veo 3.1 Fast for you at a flat price. **Are failed Veo 3.1 Fast jobs refunded?** Yes. A failed, timed-out or cancelled job is refunded in full automatically. **How long can a Veo 3.1 Fast video be?** A request sets parameters.duration from 1 to 60 seconds, the price is per second, and lengths the model rejects are refused before any charge. --- # Grok Imagine Video 1.5 API URL: https://useflowapi.com/models/xai/grok-imagine-video-1-5 Grok Imagine Video 1.5 costs $0.014 per second on FlowAPI (480p), so a 5-second clip costs $0.07; you call it with model id `xai/grok-imagine-video-1.5` through one REST endpoint or the MCP server, and failed jobs are refunded in full. ## Prices | Spec | Price (USD) | Unit | $0.5 trial | | --- | --- | --- | --- | | 480p | $0.014 | per second | Yes | ## Parameters | Parameter | Values | Default | Note | | --- | --- | --- | --- | | `resolution` | 480p | 480p | Selects the price row. | | `duration` | 1–60 (integer seconds) | required | Price × seconds. | Input modes (`input.type`): `text`, `image`, `reference`. See [video generation](/docs/video-generation) for references and roles. ## Code **cURL** ```bash curl https://useflowapi.com/v1/generations \ -H "Authorization: Bearer $FLOWAPI_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: grok-imagine-video-1-5-1" \ -d '{"model":"xai/grok-imagine-video-1.5","input":{"type":"text","prompt":"A paper boat drifting down a stream"},"parameters":{"resolution":"480p","duration":5}}' ``` **TypeScript (fetch, Node 18+)** ```ts const res = await fetch('https://useflowapi.com/v1/generations', { method: 'POST', headers: { Authorization: `Bearer ${process.env.FLOWAPI_KEY}`, 'Content-Type': 'application/json', 'Idempotency-Key': 'grok-imagine-video-1-5-1', }, body: JSON.stringify({ "model": "xai/grok-imagine-video-1.5", "input": { "type": "text", "prompt": "A paper boat drifting down a stream" }, "parameters": { "resolution": "480p", "duration": 5 } }), }); const job = await res.json(); console.log(job.id, job.status, job.price.amount); ``` **Python (requests)** ```python import os, requests res = requests.post( "https://useflowapi.com/v1/generations", headers={ "Authorization": f"Bearer {os.environ['FLOWAPI_KEY']}", "Idempotency-Key": "grok-imagine-video-1-5-1", }, json={ "model": "xai/grok-imagine-video-1.5", "input": { "type": "text", "prompt": "A paper boat drifting down a stream" }, "parameters": { "resolution": "480p", "duration": 5 } }, ) job = res.json() print(job["id"], job["status"], job["price"]["amount"]) ``` Check the price first with `POST /v1/quotes` (same body, never charges). Then poll `GET /v1/jobs/{id}` ([async jobs](/docs/jobs)). ## Use it from an AI agent Add the [FlowAPI MCP server](/mcp) to Claude, Cursor or any MCP client and ask for a video with `xai/grok-imagine-video-1.5`. ## About this page Grok Imagine Video 1.5 is made by xAI. FlowAPI is an independent API service and is not affiliated with or endorsed by xAI. Prices on this page are read from FlowAPI's live price table. ## FAQ **How much does the Grok Imagine Video 1.5 API cost?** Grok Imagine Video 1.5 costs $0.014 per second at 480p on FlowAPI, so a 5-second clip costs $0.07. **Is FlowAPI the official Grok Imagine Video 1.5 API?** No. FlowAPI is an independent API service, not affiliated with xAI, that runs Grok Imagine Video 1.5 for you at a flat price. **Are failed Grok Imagine Video 1.5 jobs refunded?** Yes. A failed, timed-out or cancelled job is refunded in full automatically. **How long can a Grok Imagine Video 1.5 video be?** A request sets parameters.duration from 1 to 60 seconds, the price is per second, and lengths the model rejects are refused before any charge. --- # MiniMax H3 API URL: https://useflowapi.com/models/minimax/minimax-h3 MiniMax H3 costs $0.021 per second on FlowAPI (768p), so a 5-second clip costs $0.105; you call it with model id `minimax/minimax-h3` through one REST endpoint or the MCP server, and failed jobs are refunded in full. ## Prices | Spec | Price (USD) | Unit | $0.5 trial | | --- | --- | --- | --- | | 768p | $0.021 | per second | Yes | ## Parameters | Parameter | Values | Default | Note | | --- | --- | --- | --- | | `resolution` | 768p | 768p | Selects the price row. | | `duration` | 1–60 (integer seconds) | required | Price × seconds. | Input modes (`input.type`): `text`, `image`, `reference`. See [video generation](/docs/video-generation) for references and roles. ## Code **cURL** ```bash curl https://useflowapi.com/v1/generations \ -H "Authorization: Bearer $FLOWAPI_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: minimax-h3-1" \ -d '{"model":"minimax/minimax-h3","input":{"type":"text","prompt":"A paper boat drifting down a stream"},"parameters":{"resolution":"768p","duration":5}}' ``` **TypeScript (fetch, Node 18+)** ```ts const res = await fetch('https://useflowapi.com/v1/generations', { method: 'POST', headers: { Authorization: `Bearer ${process.env.FLOWAPI_KEY}`, 'Content-Type': 'application/json', 'Idempotency-Key': 'minimax-h3-1', }, body: JSON.stringify({ "model": "minimax/minimax-h3", "input": { "type": "text", "prompt": "A paper boat drifting down a stream" }, "parameters": { "resolution": "768p", "duration": 5 } }), }); const job = await res.json(); console.log(job.id, job.status, job.price.amount); ``` **Python (requests)** ```python import os, requests res = requests.post( "https://useflowapi.com/v1/generations", headers={ "Authorization": f"Bearer {os.environ['FLOWAPI_KEY']}", "Idempotency-Key": "minimax-h3-1", }, json={ "model": "minimax/minimax-h3", "input": { "type": "text", "prompt": "A paper boat drifting down a stream" }, "parameters": { "resolution": "768p", "duration": 5 } }, ) job = res.json() print(job["id"], job["status"], job["price"]["amount"]) ``` Check the price first with `POST /v1/quotes` (same body, never charges). Then poll `GET /v1/jobs/{id}` ([async jobs](/docs/jobs)). ## Use it from an AI agent Add the [FlowAPI MCP server](/mcp) to Claude, Cursor or any MCP client and ask for a video with `minimax/minimax-h3`. ## About this page MiniMax H3 is made by MiniMax. FlowAPI is an independent API service and is not affiliated with or endorsed by MiniMax. Prices on this page are read from FlowAPI's live price table. ## FAQ **How much does the MiniMax H3 API cost?** MiniMax H3 costs $0.021 per second at 768p on FlowAPI, so a 5-second clip costs $0.105. **Is FlowAPI the official MiniMax H3 API?** No. FlowAPI is an independent API service, not affiliated with MiniMax, that runs MiniMax H3 for you at a flat price. **Are failed MiniMax H3 jobs refunded?** Yes. A failed, timed-out or cancelled job is refunded in full automatically. **How long can a MiniMax H3 video be?** A request sets parameters.duration from 1 to 60 seconds, the price is per second, and lengths the model rejects are refused before any charge. --- # Wan 3.0 API URL: https://useflowapi.com/models/alibaba/wan-3-0 Wan 3.0 costs $0.072 per second on FlowAPI (720p), so a 5-second clip costs $0.36; you call it with model id `alibaba/wan-3.0` through one REST endpoint or the MCP server, and failed jobs are refunded in full. ## Prices | Spec | Price (USD) | Unit | $0.5 trial | | --- | --- | --- | --- | | 720p | $0.072 | per second | Yes | ## Parameters | Parameter | Values | Default | Note | | --- | --- | --- | --- | | `resolution` | 720p | 720p | Selects the price row. | | `duration` | 1–60 (integer seconds) | required | Price × seconds. | Input modes (`input.type`): `text`, `image`, `reference`. See [video generation](/docs/video-generation) for references and roles. ## Code **cURL** ```bash curl https://useflowapi.com/v1/generations \ -H "Authorization: Bearer $FLOWAPI_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: wan-3-0-1" \ -d '{"model":"alibaba/wan-3.0","input":{"type":"text","prompt":"A paper boat drifting down a stream"},"parameters":{"resolution":"720p","duration":5}}' ``` **TypeScript (fetch, Node 18+)** ```ts const res = await fetch('https://useflowapi.com/v1/generations', { method: 'POST', headers: { Authorization: `Bearer ${process.env.FLOWAPI_KEY}`, 'Content-Type': 'application/json', 'Idempotency-Key': 'wan-3-0-1', }, body: JSON.stringify({ "model": "alibaba/wan-3.0", "input": { "type": "text", "prompt": "A paper boat drifting down a stream" }, "parameters": { "resolution": "720p", "duration": 5 } }), }); const job = await res.json(); console.log(job.id, job.status, job.price.amount); ``` **Python (requests)** ```python import os, requests res = requests.post( "https://useflowapi.com/v1/generations", headers={ "Authorization": f"Bearer {os.environ['FLOWAPI_KEY']}", "Idempotency-Key": "wan-3-0-1", }, json={ "model": "alibaba/wan-3.0", "input": { "type": "text", "prompt": "A paper boat drifting down a stream" }, "parameters": { "resolution": "720p", "duration": 5 } }, ) job = res.json() print(job["id"], job["status"], job["price"]["amount"]) ``` Check the price first with `POST /v1/quotes` (same body, never charges). Then poll `GET /v1/jobs/{id}` ([async jobs](/docs/jobs)). ## Use it from an AI agent Add the [FlowAPI MCP server](/mcp) to Claude, Cursor or any MCP client and ask for a video with `alibaba/wan-3.0`. ## About this page Wan 3.0 is made by Alibaba. FlowAPI is an independent API service and is not affiliated with or endorsed by Alibaba. Prices on this page are read from FlowAPI's live price table. ## FAQ **How much does the Wan 3.0 API cost?** Wan 3.0 costs $0.072 per second at 720p on FlowAPI, so a 5-second clip costs $0.36. **Is FlowAPI the official Wan 3.0 API?** No. FlowAPI is an independent API service, not affiliated with Alibaba, that runs Wan 3.0 for you at a flat price. **Are failed Wan 3.0 jobs refunded?** Yes. A failed, timed-out or cancelled job is refunded in full automatically. **How long can a Wan 3.0 video be?** A request sets parameters.duration from 1 to 60 seconds, the price is per second, and lengths the model rejects are refused before any charge. --- # Kling 3.0 API URL: https://useflowapi.com/models/kling/kling-3-0 Kling 3.0 costs $0.08 per second on FlowAPI (720p·silent), so a 5-second clip costs $0.4; you call it with model id `kling/kling-3.0` through one REST endpoint or the MCP server, and failed jobs are refunded in full. ## Prices | Spec | Price (USD) | Unit | $0.5 trial | | --- | --- | --- | --- | | 720p·silent | $0.08 | per second | Yes | ## Parameters | Parameter | Values | Default | Note | | --- | --- | --- | --- | | `resolution` | 720p | 720p | Selects the price row. | | `generate_audio` | false | false | Selects the price row. | | `duration` | 1–60 (integer seconds) | required | Price × seconds. | Input modes (`input.type`): `text`, `image`, `reference`. See [video generation](/docs/video-generation) for references and roles. ## Code **cURL** ```bash curl https://useflowapi.com/v1/generations \ -H "Authorization: Bearer $FLOWAPI_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: kling-3-0-1" \ -d '{"model":"kling/kling-3.0","input":{"type":"text","prompt":"A paper boat drifting down a stream"},"parameters":{"resolution":"720p","generate_audio":false,"duration":5}}' ``` **TypeScript (fetch, Node 18+)** ```ts const res = await fetch('https://useflowapi.com/v1/generations', { method: 'POST', headers: { Authorization: `Bearer ${process.env.FLOWAPI_KEY}`, 'Content-Type': 'application/json', 'Idempotency-Key': 'kling-3-0-1', }, body: JSON.stringify({ "model": "kling/kling-3.0", "input": { "type": "text", "prompt": "A paper boat drifting down a stream" }, "parameters": { "resolution": "720p", "generate_audio": false, "duration": 5 } }), }); const job = await res.json(); console.log(job.id, job.status, job.price.amount); ``` **Python (requests)** ```python import os, requests res = requests.post( "https://useflowapi.com/v1/generations", headers={ "Authorization": f"Bearer {os.environ['FLOWAPI_KEY']}", "Idempotency-Key": "kling-3-0-1", }, json={ "model": "kling/kling-3.0", "input": { "type": "text", "prompt": "A paper boat drifting down a stream" }, "parameters": { "resolution": "720p", "generate_audio": False, "duration": 5 } }, ) job = res.json() print(job["id"], job["status"], job["price"]["amount"]) ``` Check the price first with `POST /v1/quotes` (same body, never charges). Then poll `GET /v1/jobs/{id}` ([async jobs](/docs/jobs)). ## Use it from an AI agent Add the [FlowAPI MCP server](/mcp) to Claude, Cursor or any MCP client and ask for a video with `kling/kling-3.0`. ## About this page Kling 3.0 is made by Kling. FlowAPI is an independent API service and is not affiliated with or endorsed by Kling. Prices on this page are read from FlowAPI's live price table. ## FAQ **How much does the Kling 3.0 API cost?** Kling 3.0 costs $0.08 per second at 720p·silent on FlowAPI, so a 5-second clip costs $0.4. **Is FlowAPI the official Kling 3.0 API?** No. FlowAPI is an independent API service, not affiliated with Kling, that runs Kling 3.0 for you at a flat price. **Are failed Kling 3.0 jobs refunded?** Yes. A failed, timed-out or cancelled job is refunded in full automatically. **How long can a Kling 3.0 video be?** A request sets parameters.duration from 1 to 60 seconds, the price is per second, and lengths the model rejects are refused before any charge. --- # Seedance 2.0 API URL: https://useflowapi.com/models/bytedance/seedance-2-0 Seedance 2.0 costs $0.0703 per second on FlowAPI (480p), so a 5-second clip costs $0.3515; you call it with model id `bytedance/seedance-2.0` through one REST endpoint or the MCP server, and failed jobs are refunded in full. ## Prices | Spec | Price (USD) | Unit | $0.5 trial | | --- | --- | --- | --- | | 480p | $0.0703 | per second | Yes | ## Parameters | Parameter | Values | Default | Note | | --- | --- | --- | --- | | `resolution` | 480p | 480p | Selects the price row. | | `duration` | 1–60 (integer seconds) | required | Price × seconds. | Input modes (`input.type`): `text`, `image`, `reference`. See [video generation](/docs/video-generation) for references and roles. ## Code **cURL** ```bash curl https://useflowapi.com/v1/generations \ -H "Authorization: Bearer $FLOWAPI_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: seedance-2-0-1" \ -d '{"model":"bytedance/seedance-2.0","input":{"type":"text","prompt":"A paper boat drifting down a stream"},"parameters":{"resolution":"480p","duration":5}}' ``` **TypeScript (fetch, Node 18+)** ```ts const res = await fetch('https://useflowapi.com/v1/generations', { method: 'POST', headers: { Authorization: `Bearer ${process.env.FLOWAPI_KEY}`, 'Content-Type': 'application/json', 'Idempotency-Key': 'seedance-2-0-1', }, body: JSON.stringify({ "model": "bytedance/seedance-2.0", "input": { "type": "text", "prompt": "A paper boat drifting down a stream" }, "parameters": { "resolution": "480p", "duration": 5 } }), }); const job = await res.json(); console.log(job.id, job.status, job.price.amount); ``` **Python (requests)** ```python import os, requests res = requests.post( "https://useflowapi.com/v1/generations", headers={ "Authorization": f"Bearer {os.environ['FLOWAPI_KEY']}", "Idempotency-Key": "seedance-2-0-1", }, json={ "model": "bytedance/seedance-2.0", "input": { "type": "text", "prompt": "A paper boat drifting down a stream" }, "parameters": { "resolution": "480p", "duration": 5 } }, ) job = res.json() print(job["id"], job["status"], job["price"]["amount"]) ``` Check the price first with `POST /v1/quotes` (same body, never charges). Then poll `GET /v1/jobs/{id}` ([async jobs](/docs/jobs)). ## Use it from an AI agent Add the [FlowAPI MCP server](/mcp) to Claude, Cursor or any MCP client and ask for a video with `bytedance/seedance-2.0`. ## About this page Seedance 2.0 is made by ByteDance. FlowAPI is an independent API service and is not affiliated with or endorsed by ByteDance. Prices on this page are read from FlowAPI's live price table. ## FAQ **How much does the Seedance 2.0 API cost?** Seedance 2.0 costs $0.0703 per second at 480p on FlowAPI, so a 5-second clip costs $0.3515. **Is FlowAPI the official Seedance 2.0 API?** No. FlowAPI is an independent API service, not affiliated with ByteDance, that runs Seedance 2.0 for you at a flat price. **Are failed Seedance 2.0 jobs refunded?** Yes. A failed, timed-out or cancelled job is refunded in full automatically. **How long can a Seedance 2.0 video be?** A request sets parameters.duration from 1 to 60 seconds, the price is per second, and lengths the model rejects are refused before any charge. --- # Seedance 2.5 API URL: https://useflowapi.com/models/bytedance/seedance-2-5 Seedance 2.5 costs $0.1028 per second on FlowAPI (480p), so a 5-second clip costs $0.514; you call it with model id `bytedance/seedance-2.5` through one REST endpoint or the MCP server, and failed jobs are refunded in full. ## Prices | Spec | Price (USD) | Unit | $0.5 trial | | --- | --- | --- | --- | | 480p | $0.1028 | per second | No | ## Parameters | Parameter | Values | Default | Note | | --- | --- | --- | --- | | `resolution` | 480p | 480p | Selects the price row. | | `duration` | 1–60 (integer seconds) | required | Price × seconds. | Input modes (`input.type`): `text`, `image`, `reference`. See [video generation](/docs/video-generation) for references and roles. ## Code **cURL** ```bash curl https://useflowapi.com/v1/generations \ -H "Authorization: Bearer $FLOWAPI_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: seedance-2-5-1" \ -d '{"model":"bytedance/seedance-2.5","input":{"type":"text","prompt":"A paper boat drifting down a stream"},"parameters":{"resolution":"480p","duration":5}}' ``` **TypeScript (fetch, Node 18+)** ```ts const res = await fetch('https://useflowapi.com/v1/generations', { method: 'POST', headers: { Authorization: `Bearer ${process.env.FLOWAPI_KEY}`, 'Content-Type': 'application/json', 'Idempotency-Key': 'seedance-2-5-1', }, body: JSON.stringify({ "model": "bytedance/seedance-2.5", "input": { "type": "text", "prompt": "A paper boat drifting down a stream" }, "parameters": { "resolution": "480p", "duration": 5 } }), }); const job = await res.json(); console.log(job.id, job.status, job.price.amount); ``` **Python (requests)** ```python import os, requests res = requests.post( "https://useflowapi.com/v1/generations", headers={ "Authorization": f"Bearer {os.environ['FLOWAPI_KEY']}", "Idempotency-Key": "seedance-2-5-1", }, json={ "model": "bytedance/seedance-2.5", "input": { "type": "text", "prompt": "A paper boat drifting down a stream" }, "parameters": { "resolution": "480p", "duration": 5 } }, ) job = res.json() print(job["id"], job["status"], job["price"]["amount"]) ``` Check the price first with `POST /v1/quotes` (same body, never charges). Then poll `GET /v1/jobs/{id}` ([async jobs](/docs/jobs)). ## Use it from an AI agent Add the [FlowAPI MCP server](/mcp) to Claude, Cursor or any MCP client and ask for a video with `bytedance/seedance-2.5`. ## About this page Seedance 2.5 is made by ByteDance. FlowAPI is an independent API service and is not affiliated with or endorsed by ByteDance. Prices on this page are read from FlowAPI's live price table. ## FAQ **How much does the Seedance 2.5 API cost?** Seedance 2.5 costs $0.1028 per second at 480p on FlowAPI, so a 5-second clip costs $0.514. **Is FlowAPI the official Seedance 2.5 API?** No. FlowAPI is an independent API service, not affiliated with ByteDance, that runs Seedance 2.5 for you at a flat price. **Are failed Seedance 2.5 jobs refunded?** Yes. A failed, timed-out or cancelled job is refunded in full automatically. **How long can a Seedance 2.5 video be?** A request sets parameters.duration from 1 to 60 seconds, the price is per second, and lengths the model rejects are refused before any charge. --- # MAGI-2 API URL: https://useflowapi.com/models/sand-ai/magi-2 MAGI-2 costs $0.08 per second on FlowAPI (standard), so a 5-second clip costs $0.4; you call it with model id `sand-ai/magi-2` through one REST endpoint or the MCP server, and failed jobs are refunded in full. ## Prices | Spec | Price (USD) | Unit | $0.5 trial | | --- | --- | --- | --- | | standard | $0.08 | per second | Yes | ## Parameters | Parameter | Values | Default | Note | | --- | --- | --- | --- | | `duration` | 1–60 (integer seconds) | required | Price × seconds. | Input modes (`input.type`): `text`, `image`, `reference`. See [video generation](/docs/video-generation) for references and roles. ## Code **cURL** ```bash curl https://useflowapi.com/v1/generations \ -H "Authorization: Bearer $FLOWAPI_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: magi-2-1" \ -d '{"model":"sand-ai/magi-2","input":{"type":"text","prompt":"A paper boat drifting down a stream"},"parameters":{"duration":5}}' ``` **TypeScript (fetch, Node 18+)** ```ts const res = await fetch('https://useflowapi.com/v1/generations', { method: 'POST', headers: { Authorization: `Bearer ${process.env.FLOWAPI_KEY}`, 'Content-Type': 'application/json', 'Idempotency-Key': 'magi-2-1', }, body: JSON.stringify({ "model": "sand-ai/magi-2", "input": { "type": "text", "prompt": "A paper boat drifting down a stream" }, "parameters": { "duration": 5 } }), }); const job = await res.json(); console.log(job.id, job.status, job.price.amount); ``` **Python (requests)** ```python import os, requests res = requests.post( "https://useflowapi.com/v1/generations", headers={ "Authorization": f"Bearer {os.environ['FLOWAPI_KEY']}", "Idempotency-Key": "magi-2-1", }, json={ "model": "sand-ai/magi-2", "input": { "type": "text", "prompt": "A paper boat drifting down a stream" }, "parameters": { "duration": 5 } }, ) job = res.json() print(job["id"], job["status"], job["price"]["amount"]) ``` Check the price first with `POST /v1/quotes` (same body, never charges). Then poll `GET /v1/jobs/{id}` ([async jobs](/docs/jobs)). ## Use it from an AI agent Add the [FlowAPI MCP server](/mcp) to Claude, Cursor or any MCP client and ask for a video with `sand-ai/magi-2`. ## About this page MAGI-2 is made by Sand AI. FlowAPI is an independent API service and is not affiliated with or endorsed by Sand AI. Prices on this page are read from FlowAPI's live price table. ## FAQ **How much does the MAGI-2 API cost?** MAGI-2 costs $0.08 per second at standard on FlowAPI, so a 5-second clip costs $0.4. **Is FlowAPI the official MAGI-2 API?** No. FlowAPI is an independent API service, not affiliated with Sand AI, that runs MAGI-2 for you at a flat price. **Are failed MAGI-2 jobs refunded?** Yes. A failed, timed-out or cancelled job is refunded in full automatically. **How long can a MAGI-2 video be?** A request sets parameters.duration from 1 to 60 seconds, the price is per second, and lengths the model rejects are refused before any charge. --- # FlowAPI API documentation URL: https://useflowapi.com/docs 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](/docs/quickstart) and a $0 test key. ## Guides - [Quickstart](/docs/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](/docs/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](/docs/errors): 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](/docs/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](/docs/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](/docs/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](/docs/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](/docs/jobs): 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](/docs/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](/docs/idempotency): 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](/mcp): 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](/docs/billing): 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](/docs/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.json): OpenAPI 3.1 for every endpoint - [llms.txt](/llms.txt) and [llms-full.txt](/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. --- # Quickstart: your first generation URL: https://useflowapi.com/docs/quickstart Your first FlowAPI request takes 3 steps: create a key, send POST /v1/generations, and read the job. A flow_sk_test_ key returns a fixed sample result at $0, so you can wire up your code before adding funds. ## 1. Create an API key Sign in and open the [console](/console). Create a **test** key (`flow_sk_test_…`) to build your integration, and a **live** key (`flow_sk_live_…`) when you are ready to generate real images and videos. Store it in an environment variable: ```bash export FLOWAPI_KEY="flow_sk_test_…" ``` ## 2. Submit a generation Every request names a model id, an `input` (prompt plus optional reference files) and `parameters`. The `Idempotency-Key` header is required so a retried request never creates a second job. **cURL** ```bash curl https://useflowapi.com/v1/generations \ -H "Authorization: Bearer $FLOWAPI_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-1234-image" \ -d '{"model":"google/nano-banana-pro","input":{"type":"text","prompt":"A red bicycle leaning on a brick wall"},"parameters":{"resolution":"1K","n":1}}' ``` **TypeScript (fetch, Node 18+)** ```ts const res = await fetch('https://useflowapi.com/v1/generations', { method: 'POST', headers: { Authorization: `Bearer ${process.env.FLOWAPI_KEY}`, 'Content-Type': 'application/json', 'Idempotency-Key': 'order-1234-image', }, body: JSON.stringify({ "model": "google/nano-banana-pro", "input": { "type": "text", "prompt": "A red bicycle leaning on a brick wall" }, "parameters": { "resolution": "1K", "n": 1 } }), }); const job = await res.json(); console.log(job.id, job.status, job.price.amount); ``` **Python (requests)** ```python import os, requests res = requests.post( "https://useflowapi.com/v1/generations", headers={ "Authorization": f"Bearer {os.environ['FLOWAPI_KEY']}", "Idempotency-Key": "order-1234-image", }, json={ "model": "google/nano-banana-pro", "input": { "type": "text", "prompt": "A red bicycle leaning on a brick wall" }, "parameters": { "resolution": "1K", "n": 1 } }, ) job = res.json() print(job["id"], job["status"], job["price"]["amount"]) ``` The response is `202 Accepted` with a job object. Live keys are charged the quoted price at this moment: $0.027 for 1 Nano Banana Pro image (1K/2K). ## 3. Read the job ```bash curl https://useflowapi.com/v1/jobs/JOB_ID -H "Authorization: Bearer $FLOWAPI_KEY" ``` Poll until `status` is `succeeded`, `failed` or `cancelled`. A succeeded job lists its files under `result.files`: ```json { "id": "job_…", "object": "job", "status": "succeeded", "model": "google/nano-banana-pro", "mode": "live", "price": { "amount": "0.027", "currency": "USD" }, "refunded": false, "created_at": 1764460800, "completed_at": 1764460812, "urls": { "get": "/v1/jobs/job_…", "cancel": "/v1/jobs/job_…/cancel" }, "result": { "files": [ { "url": "https://…", "media_type": "image/png", "width": 1024, "height": 1024, "duration": null, "expires_at": 1767052812 } ] }, "error": null } ``` Result URLs stay valid for 30 days (`expires_at`). Download anything you need to keep. ## Next steps - [Authentication](/docs/authentication) and [error codes](/docs/errors) - [Image generation](/docs/image-generation) and [video generation](/docs/video-generation) - [Async jobs and polling](/docs/jobs) and [idempotency and retries](/docs/idempotency) - [Model prices](/models) and the [API reference](/docs/api-reference) ## FAQ **Do test keys cost money?** No. flow_sk_test_ keys are never charged and never call a model; every job returns the same sample file with status succeeded. **What is the FlowAPI API base URL?** The base URL is https://useflowapi.com/v1, and every endpoint takes the API key in an Authorization: Bearer header. **Do I need an SDK?** No. The API is plain JSON over HTTPS, so fetch, requests, cURL or any HTTP client works. --- # Authentication with API keys URL: https://useflowapi.com/docs/authentication FlowAPI uses 2 kinds of API key, both sent as `Authorization: Bearer `: live keys start with `flow_sk_live_` and are charged, test keys start with `flow_sk_test_` and cost $0. ## Send the key ```bash curl https://useflowapi.com/v1/balance -H "Authorization: Bearer $FLOWAPI_KEY" ``` A missing or unknown key answers `401` with `FLOW_UNAUTHORIZED`. FlowAPI never reads keys from query strings, so a key can't leak into logs or browser history through a URL. ## Live and test keys | Prefix | Charged | Calls a model | Result | | --- | --- | --- | --- | | `flow_sk_live_` | Yes, the quoted price | Yes | The real generation | | `flow_sk_test_` | No, $0 | No | A fixed sample file | Use test keys in CI and local development. Both kinds share the same endpoints, request format and validation, so a request that passes with a test key has the same shape a live key needs. ## Monthly limit per key Each key can carry a monthly spending limit set in the console. A job that would pass it is refused with `403 FLOW_SPEND_LIMIT_EXCEEDED` before anything is charged. ## Keep keys secret - Call FlowAPI from your server, never from a browser or mobile app. - Keep keys in environment variables or a secret manager, not in source control. - Revoke a leaked key in the console; it stops working at once. ## FAQ **Can I put the API key in the URL?** No. FlowAPI only reads the key from the Authorization: Bearer header, and the MCP endpoint rejects requests that carry a key in the query string. **How do I tell live and test keys apart?** By prefix: live keys start with flow_sk_live_ and test keys start with flow_sk_test_. **Can I limit how much one key spends?** Yes. Set a monthly limit on the key in the console; jobs that would exceed it are refused with HTTP 403 before any charge. --- # Error codes and how to handle them URL: https://useflowapi.com/docs/errors FlowAPI returns 16 error codes, each with an HTTP status, an `action` that tells your code what to do next and a `retryable` flag. ## Error format ```json { "error": { "code": "FLOW_INSUFFICIENT_BALANCE", "message": "Your balance does not cover this job", "action": "add_funds", "retryable": false, "request_id": "req_…" } } ``` Branch on `code` or `action`, never on `message`: messages are for humans and can change. Quote `request_id` when you contact support. ## All codes | Code | HTTP | Action | Retryable | Meaning | | --- | --- | --- | --- | --- | | `FLOW_INVALID_REQUEST` | 400 | `fix_request` | No | The body, a header or a parameter is malformed. | | `FLOW_UNAUTHORIZED` | 401 | `fix_request` | No | Missing, invalid, revoked or expired API key. | | `FLOW_INSUFFICIENT_BALANCE` | 402 | `add_funds` | No | The balance does not cover the quoted price. | | `FLOW_SPEND_LIMIT_EXCEEDED` | 403 | `fix_request` | No | The job would pass this key's monthly limit. | | `FLOW_ACCOUNT_RESTRICTED` | 403 | `contact_support` | No | The account is restricted. | | `FLOW_MODEL_NOT_FOUND` | 404 | `fix_request` | No | No active model has this id. | | `FLOW_JOB_NOT_FOUND` | 404 | `fix_request` | No | No job with this id belongs to your account. | | `FLOW_FILE_NOT_FOUND` | 404 | `fix_request` | No | The uploaded file does not exist or has expired. | | `FLOW_IDEMPOTENCY_CONFLICT` | 409 | `fix_request` | No | The Idempotency-Key was already used with a different body. | | `FLOW_CONTENT_REJECTED` | 422 | `modify_input` | No | The model refused the input or output content. | | `FLOW_UNSUPPORTED_PARAMETER` | 422 | `modify_input` | No | A parameter value has no price rule or is out of range. | | `FLOW_RATE_LIMITED` | 429 | `retry_later` | Yes | Too many requests this minute. | | `FLOW_TOO_MANY_RUNNING_JOBS` | 429 | `retry_later` | Yes | Too many jobs are running at once. | | `FLOW_MODEL_UNAVAILABLE` | 503 | `retry_later` | Yes | The model is temporarily unavailable. | | `FLOW_TEMPORARILY_UNAVAILABLE` | 503 | `retry_later` | Yes | The service is temporarily unavailable. | | `FLOW_GENERATION_FAILED` | 500 | `retry_later` | Yes | Job-level only: the generation itself failed. | ## Actions - `fix_request`: change the request; sending it again unchanged fails again. - `add_funds`: top up the balance, then retry. - `modify_input`: change the prompt, files or parameters. - `retry_later`: retry with backoff. `429` responses carry a `Retry-After` header in seconds. - `contact_support`: write to support with the `request_id`. A job that fails after it was accepted keeps the same `error` object inside the job, and its price is refunded in full (`"refunded": true`). ## FAQ **Which errors should I retry?** Retry only errors with retryable: true: FLOW_RATE_LIMITED, FLOW_TOO_MANY_RUNNING_JOBS, FLOW_MODEL_UNAVAILABLE and FLOW_TEMPORARILY_UNAVAILABLE, with backoff and the same Idempotency-Key. **Am I charged when a request returns an error?** No. Requests rejected with an error are not charged, and jobs that fail later are refunded in full. **What does FLOW_UNSUPPORTED_PARAMETER mean?** It means a parameter value has no price rule for that model or is out of range, for example n above 4 or a resolution the model does not sell. --- # Rate limits and concurrency URL: https://useflowapi.com/docs/rate-limits Each FlowAPI API key can make 120 write requests, 1200 read requests and 600 quote requests per minute, and run 20 image jobs and 5 video jobs at the same time. ## Limits | Limit | Value | Applies to | | --- | --- | --- | | Writes per minute | 120 | POST /v1/generations, POST /v1/jobs/{id}/cancel, POST /v1/files | | Reads per minute | 1200 | GET /v1/jobs/{id}, GET /v1/balance (GET /v1/models: per IP) | | Quotes per minute | 600 | POST /v1/quotes | | Running image jobs | 20 | queued + running image jobs per account | | Running video jobs | 5 | queued + running video jobs per account | | JSON body size | 256 KB | POST /v1/generations, POST /v1/quotes | | Upload size | 20 MB | POST /v1/files | ## When you hit a limit - Per-minute limits answer `429 FLOW_RATE_LIMITED` with a `Retry-After` header in seconds. - The running-job limit answers `429 FLOW_TOO_MANY_RUNNING_JOBS`; nothing is charged. Submit again when a job finishes. Retry with the same `Idempotency-Key` so a retry never doubles a job. See [idempotency and retries](/docs/idempotency). ## FAQ **Which rate limits count per key and which per account?** Per-minute request limits count per API key; running-job limits count per account across all its keys. **Does a 429 cost anything?** No. A request refused with HTTP 429 creates no job and charges nothing. **Can I get higher limits?** No, not yet: every account has the same limits today, 20 running image jobs and 5 running video jobs. --- # Image generation API URL: https://useflowapi.com/docs/image-generation POST /v1/generations creates 1 to 4 images per request with any image model in the catalog; the price is the flat per-image price of the chosen spec times `n`, for example $0.027 per Nano Banana Pro image at 1K/2K. ## Request | Field | Type | Notes | | --- | --- | --- | | `model` | string | A model id from [/models](/models), e.g. `google/nano-banana-pro` | | `input.type` | string | `text` or `image`: text-to-image, or image-to-image with references | | `input.prompt` | string | What to generate | | `input.references` | array | For `image` mode: `[{ "role": "reference_image", "url": "https://…" }]` or `{ "file_id": "file_…" }` from [input files](/docs/input-files) | | `parameters.resolution` | string | Selects the price row, e.g. `1K`, `2K`, `4K` | | `parameters.n` | integer | 1–4 images, default 1 | | `webhook_url` | string | Optional https URL, stored for [webhooks](/docs/webhooks) | **cURL** ```bash curl https://useflowapi.com/v1/generations \ -H "Authorization: Bearer $FLOWAPI_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-1234-image" \ -d '{"model":"google/nano-banana-pro","input":{"type":"text","prompt":"A red bicycle leaning on a brick wall"},"parameters":{"resolution":"1K","n":1}}' ``` **TypeScript (fetch, Node 18+)** ```ts const res = await fetch('https://useflowapi.com/v1/generations', { method: 'POST', headers: { Authorization: `Bearer ${process.env.FLOWAPI_KEY}`, 'Content-Type': 'application/json', 'Idempotency-Key': 'order-1234-image', }, body: JSON.stringify({ "model": "google/nano-banana-pro", "input": { "type": "text", "prompt": "A red bicycle leaning on a brick wall" }, "parameters": { "resolution": "1K", "n": 1 } }), }); const job = await res.json(); console.log(job.id, job.status, job.price.amount); ``` **Python (requests)** ```python import os, requests res = requests.post( "https://useflowapi.com/v1/generations", headers={ "Authorization": f"Bearer {os.environ['FLOWAPI_KEY']}", "Idempotency-Key": "order-1234-image", }, json={ "model": "google/nano-banana-pro", "input": { "type": "text", "prompt": "A red bicycle leaning on a brick wall" }, "parameters": { "resolution": "1K", "n": 1 } }, ) job = res.json() print(job["id"], job["status"], job["price"]["amount"]) ``` ## Image-to-image ```json { "model": "google/nano-banana-pro", "input": { "type": "image", "prompt": "Make it a watercolor painting", "references": [{ "role": "reference_image", "file_id": "file_…" }] }, "parameters": { "resolution": "1K" } } ``` ## Check the price first POST /v1/quotes takes the same body and returns the exact price without creating a job or charging. Every image spec and price is listed on [/models](/models) and [/pricing](/pricing). ## FAQ **How many images can one request make?** One request makes 1 to 4 images (parameters.n), and the price is the per-image price times n. **Can I edit an existing image?** Yes. Set input.type to image and pass the source picture in input.references with role reference_image. **Is a failed image job refunded?** Yes. A failed or cancelled job is refunded in full and shows "refunded": true. --- # Video generation API URL: https://useflowapi.com/docs/video-generation Video jobs are priced per second: a 5-second Veo 3.1 Fast clip at 1080p·audio costs $0.125 ($0.025 × 5), and `parameters.duration` takes 1 to 60 whole seconds. ## Request | Field | Type | Notes | | --- | --- | --- | | `model` | string | A video model id from [/models](/models), e.g. `google/veo-3.1-fast` | | `input.type` | string | `text`, `image`, `reference` | | `input.prompt` | string | What happens in the clip | | `input.references` | array | Roles: `first_frame`, `last_frame`, `reference_image`, `reference_video`, `reference_audio` | | `parameters.duration` | integer | Required, 1–60 seconds; price × seconds | | `parameters.resolution` | string | Selects the price row, e.g. `480p`, `720p`, `1080p` | | `parameters.generate_audio` | boolean | On models that sell audio and silent specs separately | **cURL** ```bash curl https://useflowapi.com/v1/generations \ -H "Authorization: Bearer $FLOWAPI_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-1234-video" \ -d '{"model":"google/veo-3.1-fast","input":{"type":"text","prompt":"A paper boat drifting down a stream"},"parameters":{"resolution":"1080p","generate_audio":true,"duration":5}}' ``` **TypeScript (fetch, Node 18+)** ```ts const res = await fetch('https://useflowapi.com/v1/generations', { method: 'POST', headers: { Authorization: `Bearer ${process.env.FLOWAPI_KEY}`, 'Content-Type': 'application/json', 'Idempotency-Key': 'order-1234-video', }, body: JSON.stringify({ "model": "google/veo-3.1-fast", "input": { "type": "text", "prompt": "A paper boat drifting down a stream" }, "parameters": { "resolution": "1080p", "generate_audio": true, "duration": 5 } }), }); const job = await res.json(); console.log(job.id, job.status, job.price.amount); ``` **Python (requests)** ```python import os, requests res = requests.post( "https://useflowapi.com/v1/generations", headers={ "Authorization": f"Bearer {os.environ['FLOWAPI_KEY']}", "Idempotency-Key": "order-1234-video", }, json={ "model": "google/veo-3.1-fast", "input": { "type": "text", "prompt": "A paper boat drifting down a stream" }, "parameters": { "resolution": "1080p", "generate_audio": True, "duration": 5 } }, ) job = res.json() print(job["id"], job["status"], job["price"]["amount"]) ``` ## Image-to-video ```json { "model": "google/veo-3.1-fast", "input": { "type": "image", "prompt": "The camera slowly pushes in", "references": [{ "role": "first_frame", "file_id": "file_…" }] }, "parameters": { "duration": 5 } } ``` Each model accepts its own set of modes and roles; a combination the model does not take is refused with `400 FLOW_INVALID_REQUEST` before anything is charged. ## Timing Video jobs run asynchronously. Poll [GET /v1/jobs/{id}](/docs/jobs) every few seconds; a job still unfinished after 90 minutes is marked failed and refunded. ## FAQ **How is video priced?** Per second of output: the spec's per-second price times parameters.duration, so 5 seconds of Veo 3.1 Fast costs $0.125. **Is duration required?** Yes. Every video request needs parameters.duration as a whole number from 1 to 60. **Can I animate my own image?** Yes. Set input.type to image and pass the picture in input.references with role first_frame. --- # Upload input files URL: https://useflowapi.com/docs/input-files POST /v1/files stores one reference file of up to 20 MB for 24 hours and returns a `file_id` you pass in `input.references`; 6 media types are accepted. ## Upload ```bash curl https://useflowapi.com/v1/files \ -H "Authorization: Bearer $FLOWAPI_KEY" \ -F "file=@photo.png" ``` ```json { "id": "file_…", "object": "file", "filename": "photo.png", "media_type": "image/png", "bytes": 482113, "expires_at": 1764547200 } ``` ## Accepted types - `image/png` - `image/jpeg` - `image/webp` - `video/mp4` - `audio/mpeg` - `audio/wav` ## Use the file ```json "references": [{ "role": "reference_image", "file_id": "file_…" }] ``` FlowAPI swaps the `file_id` for the stored file when the job is submitted. Only your own uploads resolve; an unknown or expired id answers `404 FLOW_FILE_NOT_FOUND`. You can also pass a public `https` `url` instead of a `file_id`. Uploading is free and does not touch your balance. ## FAQ **How long are uploaded files kept?** Uploaded files are kept for 24 hours, then expire; use the file_id within that window. **Can I pass a URL instead of uploading?** Yes. A reference can carry a public https url instead of a file_id. **Does uploading cost anything?** No. Uploads are free; only generation jobs are charged. --- # Async jobs and polling URL: https://useflowapi.com/docs/jobs Every generation is an asynchronous job with 5 public statuses; poll GET /v1/jobs/{id} until it reaches `succeeded`, `failed` or `cancelled`, and download result files within 30 days. ## Statuses | Status | Final | Meaning | | --- | --- | --- | | `queued` | No | Accepted and charged, waiting to start | | `running` | No | The model is generating | | `succeeded` | Yes | `result.files` holds the output | | `failed` | Yes | `error` explains why; the price is refunded | | `cancelled` | Yes | Cancelled before it finished; the price is refunded | ## Polling ```ts async function waitForJob(id: string) { for (;;) { const res = await fetch(`https://useflowapi.com/v1/jobs/${id}`, { headers: { Authorization: `Bearer ${process.env.FLOWAPI_KEY}` }, }); const job = await res.json(); if (['succeeded', 'failed', 'cancelled'].includes(job.status)) return job; await new Promise((r) => setTimeout(r, 3000)); } } ``` Reads allow 1200 requests per minute per key, so polling every 2–5 seconds is well inside the limit. ## Timeouts A job unfinished after 30 minutes (image) or 90 minutes (video) is marked `failed` and refunded in full. ## Cancel ```bash curl -X POST https://useflowapi.com/v1/jobs/JOB_ID/cancel -H "Authorization: Bearer $FLOWAPI_KEY" ``` Cancel is a request, not a guarantee: a job that has not reached the model yet is cancelled and refunded at once; a job already generating may still finish, and you pay only if it succeeds. A finished job is returned unchanged. ## Results Result files are copied to FlowAPI's own storage and served from there. Each file has an `expires_at`; files are deleted 30 days after the job finishes. ## FAQ **How often should I poll a job?** Every 2 to 5 seconds works well; the read limit is 1200 requests per minute per key. **Is a cancelled job charged?** No. A job that ends cancelled is refunded in full; a job that finishes despite the cancel request is charged. **How long are result files kept?** Result files are kept for 30 days after the job finishes, then deleted. --- # Webhooks: current status URL: https://useflowapi.com/docs/webhooks FlowAPI accepts and stores a `webhook_url` (https, up to 2,048 characters) on every job, but signed webhook delivery is not switched on yet: today, poll GET /v1/jobs/{id} to learn when a job reaches one of its 3 final statuses. ## What works today - `webhook_url` is validated (https only, at most 2,048 characters) and saved with the job. - No callback is sent yet. Your integration must [poll the job](/docs/jobs). ## What is planned When delivery is switched on, FlowAPI will POST the job object to your `webhook_url` on `job.succeeded`, `job.failed` and `job.cancelled`, signed so you can verify it came from FlowAPI. This page will document the headers and the verification code before that happens. ## Recommended now ```ts const job = await submit(body); // POST /v1/generations const done = await waitForJob(job.id); // poll, see /docs/jobs ``` Poll every 2–5 seconds: reads allow 1200 requests per minute per key. A job still unfinished after 30 minutes (image) or 90 minutes (video) is marked `failed` and refunded, so polling always ends. Write your handler around the job object returned by GET /v1/jobs/{id}: a future webhook will carry the same object. ## FAQ **Does the API send webhooks today?** No. webhook_url is accepted and stored, but signed delivery is not switched on yet; poll GET /v1/jobs/{id}. **Should I still send webhook_url?** Yes. Sending an https webhook_url now is harmless, and jobs keep it for when delivery starts. **Which events are planned?** Three events are planned: job.succeeded, job.failed and job.cancelled. --- # Idempotency keys and safe retries URL: https://useflowapi.com/docs/idempotency POST /v1/generations requires an `Idempotency-Key` header of up to 255 printable ASCII characters: sending the same key with the same body returns the original job, so a network retry never charges twice. ## Rules | Situation | Result | | --- | --- | | New key | A new job is created and charged | | Same key, same body | The original job, with header `Idempotent-Replayed: true`; no second charge | | Same key, different body | `409 FLOW_IDEMPOTENCY_CONFLICT` | | Missing header | `400 FLOW_INVALID_REQUEST` | Key order inside the JSON body does not matter: `{"a":1,"b":2}` and `{"b":2,"a":1}` count as the same body. ## Choosing keys Derive the key from your own record, for example `order-1234-image`, so the same unit of work always maps to the same key. A random UUID per attempt defeats the purpose. ## Retrying 1. Retry on network errors, timeouts and errors with `retryable: true` (`429`, `503`). 2. Reuse the same `Idempotency-Key` and body. 3. Back off: wait the `Retry-After` seconds on a `429`, otherwise 1 s, 2 s, 4 s, up to about 30 s. 4. Do not retry `retryable: false` errors unchanged; fix the request first. ## FAQ **Is the Idempotency-Key header required?** Yes. POST /v1/generations answers 400 without it; the other endpoints do not need it. **Can a retry charge me twice?** No. A retry with the same Idempotency-Key and body returns the first job instead of creating a new one. **What happens if I reuse a key with a different body?** The API answers 409 FLOW_IDEMPOTENCY_CONFLICT and creates nothing. --- # Balance, flat prices and refunds URL: https://useflowapi.com/docs/billing FlowAPI bills from a prepaid USD balance at one flat price per model spec, charges when a job is accepted, and refunds failed or cancelled jobs in full; new accounts get a $0.5 trial credit valid for 30 days. ## How a job is charged 1. FlowAPI prices the request from the catalog: unit price × units (images, or seconds of video). [POST /v1/quotes](/docs/api-reference) returns that price without charging. 2. If your balance covers it, the price is deducted and the job starts. If not, the request fails with `402 FLOW_INSUFFICIENT_BALANCE` and no job is created. The balance never goes negative. 3. If the job fails, times out or is cancelled before it finishes, the full price returns to your balance and the job shows `"refunded": true`. There are no per-token fees, no surcharges and no hidden minimums: the price on [/models](/models) is the price you pay. ## Trial credit - $0.5 for new accounts signed up with Google (an account created with email or GitHub that links Google later does not qualify), valid for 30 days. Claim it once in the console; one claim per account, device and network. - Pays only for specs priced at $0.1 per unit or less (marked "Yes" in the $0.5 trial column of the [price table](/pricing)). ## Balance ```bash curl https://useflowapi.com/v1/balance -H "Authorization: Bearer $FLOWAPI_KEY" ``` ```json { "object": "balance", "available": { "amount": "12.5", "currency": "USD" }, "trial": { "amount": "0", "currency": "USD" } } ``` ## Top-ups Add funds from the console. Top-up tiers: $10, $50, $100, $500, $1,000. Topped-up balance does not expire. ## Refunds of balance Unused topped-up balance can be refunded within 30 days of the top-up; spent balance is not refundable. See the [refund policy](/refund-policy). ## FAQ **Am I charged for failed generations?** No. Failed, timed-out and cancelled jobs are refunded in full to your balance automatically. **Can my balance go negative?** No. A job that costs more than your balance is refused with HTTP 402 before it starts. **Does topped-up balance expire?** No. Topped-up balance does not expire; only the $0.5 trial credit expires after 30 days. --- # API reference URL: https://useflowapi.com/docs/api-reference The FlowAPI API has 7 endpoints under `https://useflowapi.com/v1`; this reference is generated from [openapi.json](/openapi.json), the same OpenAPI 3.1 file you can load into Postman, Insomnia or a code generator. ## Endpoints | Method | Path | Summary | | --- | --- | --- | | POST | `/v1/generations` | Submit an image or video generation job | | POST | `/v1/quotes` | Price a request without creating a job (never charges) | | GET | `/v1/models` | List models and their flat prices | | GET | `/v1/balance` | Available balance and trial credit | | POST | `/v1/files` | Upload a reference file for a later job | | GET | `/v1/jobs/{id}` | Get a job: status, result files or error | | POST | `/v1/jobs/{id}/cancel` | Cancel a queued or running job (refunded in full) | | GET | `/v1/jobs` | List your jobs of the key's mode, newest first (cursor pagination) | | GET | `/v1/jobs/{id}/status` | Long-poll a job until it finishes or `wait` seconds pass | | GET | `/v1/models/{vendor}/{model}` | One model and its flat prices | | GET | `/v1/usage` | Spend and job counts by day, model and key (the key's live/test mode) | ## POST /v1/generations Submit an image or video generation job. Charges the flat price when the job is accepted; a failed, timed-out or cancelled job is refunded. Rate limit: 120 writes per minute per key. Running jobs per account: 20 image, 5 video. Body ≤ 256 KB. - Auth: Bearer API key - Operation id: `createGeneration` - Request body: `application/json` GenerationRequest | Parameter | In | Required | Type | Description | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | Yes | string | Required. Retrying with the same key and body returns the original job (header `idempotent-replayed: true`); the same key with a different body returns 409. | | Status | Meaning | Body | | --- | --- | --- | | 202 | Job accepted (or replayed) | `application/json` Job | | 400 | FLOW_INVALID_REQUEST | `application/json` Error | | 401 | FLOW_UNAUTHORIZED | `application/json` Error | | 402 | FLOW_INSUFFICIENT_BALANCE | `application/json` Error | | 403 | FLOW_SPEND_LIMIT_EXCEEDED, FLOW_ACCOUNT_RESTRICTED | `application/json` Error | | 404 | FLOW_MODEL_NOT_FOUND, FLOW_JOB_NOT_FOUND, FLOW_FILE_NOT_FOUND | `application/json` Error | | 409 | FLOW_IDEMPOTENCY_CONFLICT | `application/json` Error | | 422 | FLOW_CONTENT_REJECTED, FLOW_UNSUPPORTED_PARAMETER | `application/json` Error | | 429 | FLOW_RATE_LIMITED, FLOW_TOO_MANY_RUNNING_JOBS | `application/json` Error | | 503 | FLOW_MODEL_UNAVAILABLE, FLOW_TEMPORARILY_UNAVAILABLE | `application/json` Error | ## POST /v1/quotes Price a request without creating a job (never charges). Rate limit: 600 quotes per minute per key. - Auth: Bearer API key - Operation id: `createQuote` - Request body: `application/json` GenerationRequest | Status | Meaning | Body | | --- | --- | --- | | 200 | Quote | `application/json` Quote | | 400 | FLOW_INVALID_REQUEST | `application/json` Error | | 401 | FLOW_UNAUTHORIZED | `application/json` Error | | 404 | FLOW_MODEL_NOT_FOUND, FLOW_JOB_NOT_FOUND, FLOW_FILE_NOT_FOUND | `application/json` Error | | 422 | FLOW_CONTENT_REJECTED, FLOW_UNSUPPORTED_PARAMETER | `application/json` Error | | 429 | FLOW_RATE_LIMITED, FLOW_TOO_MANY_RUNNING_JOBS | `application/json` Error | | 503 | FLOW_MODEL_UNAVAILABLE, FLOW_TEMPORARILY_UNAVAILABLE | `application/json` Error | ## GET /v1/models List models and their flat prices. Public: no API key needed. Rate-limited per IP. - Auth: None - Operation id: `listModels` | Status | Meaning | Body | | --- | --- | --- | | 200 | Model list | `application/json` object | | 429 | FLOW_RATE_LIMITED, FLOW_TOO_MANY_RUNNING_JOBS | `application/json` Error | | 503 | FLOW_MODEL_UNAVAILABLE, FLOW_TEMPORARILY_UNAVAILABLE | `application/json` Error | ## GET /v1/balance Available balance and trial credit. - Auth: Bearer API key - Operation id: `getBalance` | Status | Meaning | Body | | --- | --- | --- | | 200 | Balance | `application/json` object | | 401 | FLOW_UNAUTHORIZED | `application/json` Error | | 429 | FLOW_RATE_LIMITED, FLOW_TOO_MANY_RUNNING_JOBS | `application/json` Error | | 503 | FLOW_MODEL_UNAVAILABLE, FLOW_TEMPORARILY_UNAVAILABLE | `application/json` Error | ## POST /v1/files Upload a reference file for a later job. Up to 20 MB; kept 24 hours. Pass the returned id as `input.references[].file_id`. - Auth: Bearer API key - Operation id: `uploadFile` - Request body: `multipart/form-data` object | Status | Meaning | Body | | --- | --- | --- | | 201 | Stored | `application/json` File | | 400 | FLOW_INVALID_REQUEST | `application/json` Error | | 401 | FLOW_UNAUTHORIZED | `application/json` Error | | 429 | FLOW_RATE_LIMITED, FLOW_TOO_MANY_RUNNING_JOBS | `application/json` Error | | 503 | FLOW_MODEL_UNAVAILABLE, FLOW_TEMPORARILY_UNAVAILABLE | `application/json` Error | ## GET /v1/jobs/{id} Get a job: status, result files or error. - Auth: Bearer API key - Operation id: `getJob` | Parameter | In | Required | Type | Description | | --- | --- | --- | --- | --- | | `id` | path | Yes | string | Job id (`job_…`) | | Status | Meaning | Body | | --- | --- | --- | | 200 | Job | `application/json` Job | | 401 | FLOW_UNAUTHORIZED | `application/json` Error | | 404 | FLOW_MODEL_NOT_FOUND, FLOW_JOB_NOT_FOUND, FLOW_FILE_NOT_FOUND | `application/json` Error | | 429 | FLOW_RATE_LIMITED, FLOW_TOO_MANY_RUNNING_JOBS | `application/json` Error | | 503 | FLOW_MODEL_UNAVAILABLE, FLOW_TEMPORARILY_UNAVAILABLE | `application/json` Error | ## POST /v1/jobs/{id}/cancel Cancel a queued or running job (refunded in full). - Auth: Bearer API key - Operation id: `cancelJob` | Parameter | In | Required | Type | Description | | --- | --- | --- | --- | --- | | `id` | path | Yes | string | Job id (`job_…`) | | Status | Meaning | Body | | --- | --- | --- | | 200 | Job after cancel | `application/json` Job | | 401 | FLOW_UNAUTHORIZED | `application/json` Error | | 404 | FLOW_MODEL_NOT_FOUND, FLOW_JOB_NOT_FOUND, FLOW_FILE_NOT_FOUND | `application/json` Error | | 429 | FLOW_RATE_LIMITED, FLOW_TOO_MANY_RUNNING_JOBS | `application/json` Error | | 503 | FLOW_MODEL_UNAVAILABLE, FLOW_TEMPORARILY_UNAVAILABLE | `application/json` Error | ## GET /v1/jobs List your jobs of the key's mode, newest first (cursor pagination). - Auth: Bearer API key - Operation id: `listJobs` | Parameter | In | Required | Type | Description | | --- | --- | --- | --- | --- | | `limit` | query | No | integer | | | `cursor` | query | No | string | `next_cursor` from the previous page | | `status` | query | No | `queued` \| `running` \| `succeeded` \| `failed` \| `cancelled` | | | `model` | query | No | string | | | Status | Meaning | Body | | --- | --- | --- | | 200 | One page of jobs | `application/json` object | | 400 | FLOW_INVALID_REQUEST | `application/json` Error | | 401 | FLOW_UNAUTHORIZED | `application/json` Error | | 429 | FLOW_RATE_LIMITED, FLOW_TOO_MANY_RUNNING_JOBS | `application/json` Error | | 503 | FLOW_MODEL_UNAVAILABLE, FLOW_TEMPORARILY_UNAVAILABLE | `application/json` Error | ## GET /v1/jobs/{id}/status Long-poll a job until it finishes or `wait` seconds pass. - Auth: Bearer API key - Operation id: `waitJob` | Parameter | In | Required | Type | Description | | --- | --- | --- | --- | --- | | `id` | path | Yes | string | Job id (`job_…`) | | `wait` | query | No | number | Seconds to hold the request while the job is still running | | Status | Meaning | Body | | --- | --- | --- | | 200 | Job | `application/json` Job | | 400 | FLOW_INVALID_REQUEST | `application/json` Error | | 401 | FLOW_UNAUTHORIZED | `application/json` Error | | 404 | FLOW_MODEL_NOT_FOUND, FLOW_JOB_NOT_FOUND, FLOW_FILE_NOT_FOUND | `application/json` Error | | 429 | FLOW_RATE_LIMITED, FLOW_TOO_MANY_RUNNING_JOBS | `application/json` Error | | 503 | FLOW_MODEL_UNAVAILABLE, FLOW_TEMPORARILY_UNAVAILABLE | `application/json` Error | ## GET /v1/models/{vendor}/{model} One model and its flat prices. Public: no API key needed. Rate-limited per IP. - Auth: None - Operation id: `getModel` | Parameter | In | Required | Type | Description | | --- | --- | --- | --- | --- | | `vendor` | path | Yes | string | | | `model` | path | Yes | string | | | Status | Meaning | Body | | --- | --- | --- | | 200 | Model | `application/json` Model | | 404 | FLOW_MODEL_NOT_FOUND, FLOW_JOB_NOT_FOUND, FLOW_FILE_NOT_FOUND | `application/json` Error | | 429 | FLOW_RATE_LIMITED, FLOW_TOO_MANY_RUNNING_JOBS | `application/json` Error | | 503 | FLOW_MODEL_UNAVAILABLE, FLOW_TEMPORARILY_UNAVAILABLE | `application/json` Error | ## GET /v1/usage Spend and job counts by day, model and key (the key's live/test mode). - Auth: Bearer API key - Operation id: `getUsage` | Parameter | In | Required | Type | Description | | --- | --- | --- | --- | --- | | `days` | query | No | integer | | | Status | Meaning | Body | | --- | --- | --- | | 200 | Usage (UTC days; refunded jobs add no spend) | `application/json` object | | 400 | FLOW_INVALID_REQUEST | `application/json` Error | | 401 | FLOW_UNAUTHORIZED | `application/json` Error | | 429 | FLOW_RATE_LIMITED, FLOW_TOO_MANY_RUNNING_JOBS | `application/json` Error | | 503 | FLOW_MODEL_UNAVAILABLE, FLOW_TEMPORARILY_UNAVAILABLE | `application/json` Error | ## Schemas ### UsageCounts | Field | Type | Required | Description | | --- | --- | --- | --- | | `date` | string | No | | | `model` | string | No | | | `api_key_id` | string \| null | No | | | `jobs` | integer | Yes | | | `succeeded` | integer | Yes | | | `failed` | integer | Yes | | | `spend` | object | Yes | | ### Money | Field | Type | Required | Description | | --- | --- | --- | --- | | `amount` | string | Yes | Decimal USD, up to 6 decimals | | `currency` | `"USD"` | Yes | | ### GenerationRequest | Field | Type | Required | Description | | --- | --- | --- | --- | | `model` | string | Yes | Model id from GET /v1/models, e.g. `google/nano-banana-pro` | | `input` | object | Yes | | | `parameters` | object | No | Model parameters (e.g. `resolution`, `aspect_ratio`). Images: `n` 1–4. Video: `duration` integer seconds 1–60, required. | | `webhook_url` | string | No | https only. Stored with the job. | ### Quote | Field | Type | Required | Description | | --- | --- | --- | --- | | `object` | `"quote"` | No | | | `model` | string | No | | | `type` | `image` \| `video` | No | | | `spec` | string | No | | | `unit` | `image` \| `second` | No | | | `units` | integer | No | | | `unit_price` | Money | No | | | `price` | Money | No | | | `trial_eligible` | boolean | No | | | `parameters` | object | No | | ### Model | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | No | | | `object` | `"model"` | No | | | `type` | `image` \| `video` | No | | | `vendor` | string | No | | | `display_name` | string | No | | | `defaults` | object | No | | | `prices` | object[] | No | | ### Job | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | Yes | | | `object` | `"job"` | Yes | | | `status` | `queued` \| `running` \| `succeeded` \| `failed` \| `cancelled` | Yes | | | `model` | string | Yes | | | `mode` | `live` \| `test` | No | | | `price` | Money | Yes | | | `refunded` | boolean | Yes | | | `created_at` | integer \| null | No | Unix seconds | | `completed_at` | integer \| null | No | Unix seconds | | `urls` | object | No | | | `result` | null \| object | No | | | `error` | null \| object | No | | ### File | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | No | | | `object` | `"file"` | No | | | `filename` | string \| null | No | | | `media_type` | string | No | | | `bytes` | integer | No | | | `expires_at` | integer \| null | No | | ### Error | Field | Type | Required | Description | | --- | --- | --- | --- | | `error` | object | Yes | | ## FAQ **Is there an OpenAPI spec?** Yes. https://useflowapi.com/openapi.json is an OpenAPI 3.1 document covering every live endpoint. **Which endpoints need an API key?** Every endpoint except GET /v1/models needs an Authorization: Bearer key. **Is there a list-jobs endpoint?** No. Fetch jobs one at a time with GET /v1/jobs/{id}; a list endpoint is not available yet. --- # Terms of Service URL: https://useflowapi.com/terms These terms cover your use of the FlowAPI API, console and MCP server; they were last updated on 2026-11-30 and summarise 4 things: you prepay, each job has one flat price, failed jobs are refunded, and you are responsible for what you generate. ## 1. The service FlowAPI gives you one API key for image and video generation models made by third parties. FlowAPI is an independent service: it is not affiliated with, endorsed by or sponsored by any model vendor, and model names are trademarks of their owners. ## 2. Accounts and keys - You need an account to create API keys. Keep your keys secret; activity on a key counts as yours. - You may set a monthly spending limit on each key. Revoke a key you think has leaked. - FlowAPI does not offer generation to users in mainland China. ## 3. Prices and payment - You pay from a prepaid balance in US dollars. Each request is charged the flat price shown on [/pricing](/pricing) for its model and spec at the moment the job is accepted. - A job is accepted only if your balance covers its price; the balance never goes negative. - Failed, timed-out and cancelled jobs are refunded to your balance in full. - New accounts may receive a $0.5 trial credit that expires after 30 days. Trial credit has no cash value. - Prices can change. A change never affects a job that was already accepted. - Refunds of unused balance follow the [refund policy](/refund-policy). ## 4. Your content - You keep your rights in the prompts and files you send and in the results you receive, to the extent the law and the model vendor's terms allow. - You are responsible for your inputs and outputs: you must have the rights to what you upload, and you must not use results unlawfully. - You must follow the [acceptable use policy](/acceptable-use). Breaking it can lead to suspension. ## 5. Storage Result files are kept for 30 days after a job finishes, then deleted. Uploaded input files expire after 24 hours. Download anything you need to keep. ## 6. Availability FlowAPI depends on third-party models and infrastructure. There is no uptime commitment (SLA) today. A model can be paused or removed; jobs on a removed model that cannot finish are refunded. ## 7. Suspension FlowAPI can suspend or close an account that breaks these terms or the acceptable use policy, abuses the trial credit, or puts the service at risk. Unused topped-up balance of a closed account is handled under the [refund policy](/refund-policy) unless the closure was for fraud. ## 8. Liability The service is provided as is. To the extent the law allows, FlowAPI's total liability for any claim is limited to the amount you paid in the 3 months before the claim. ## 9. Contact Questions about these terms: open a support ticket from the [console](/console). ## FAQ **Do I own the images and videos I generate with FlowAPI?** Yes. You keep the rights to your results, within the law and the model vendor's terms, and you are responsible for how you use them. **Can prices change after I top up?** Yes. Prices can change for future jobs, but a job that was already accepted keeps the price it was charged. **Is there an uptime SLA?** No. FlowAPI does not offer an SLA today. --- # Privacy Policy URL: https://useflowapi.com/privacy FlowAPI keeps generated results for 30 days, request logs for 90 days and uploaded input files for 24 hours, and shares data only with the 4 kinds of processors listed below; this policy was last updated on 2026-11-30. ## What we collect | Data | Why | Kept for | | --- | --- | --- | | Account: email, name, sign-in provider | To run your account | While the account exists | | API keys | To authenticate requests; stored hashed and encrypted | Until you revoke them | | Request logs: model, parameters, status, price, time, IP | Billing, abuse prevention, support | 90 days | | Prompts and uploaded files | To run your job | Uploads 24 hours; prompts with the job log | | Generated results | So you can download them | 30 days | | Balance and payment records | Accounting and refunds | As long as the law requires | ## Processors | Processor | Role | | --- | --- | | Cloudflare | Hosting, database, file storage, network | | Yir | Routes your job to the model provider that runs it | | Payment processor (shown at checkout) | Takes payments; FlowAPI never sees full card numbers | | Analytics | Anonymous page statistics on the public site | Your prompt and input files are sent to the model provider that runs the job, through Yir. FlowAPI does not sell personal data and does not use your prompts or results to train models. ## Your choices - Ask for a copy or deletion of your account data with a support ticket from the [console](/console). - Revoke API keys at any time. ## Security Keys are checked by hash, secrets are encrypted at rest, and traffic uses HTTPS. ## Children FlowAPI is not meant for children under 16. ## FAQ **Does FlowAPI train models on my prompts?** No. FlowAPI does not use your prompts, inputs or results to train models. **How long are generated files kept?** Generated files are kept for 30 days after the job finishes, then deleted. **Who receives my prompt?** The model provider that runs your job receives it, routed through Yir; nobody else does. --- # Refund policy URL: https://useflowapi.com/refund-policy FlowAPI refunds failed, timed-out and cancelled jobs in full and automatically, and refunds unused topped-up balance on request within 30 days of the top-up; balance already spent on successful jobs is not refundable. ## Job refunds (automatic) | Job outcome | Charged | Refund | | --- | --- | --- | | Succeeded | The flat price | None | | Failed, including content refused by the model | Charged at submit | 100%, automatic | | Timed out | Charged at submit | 100%, automatic | | Cancelled before it finished | Charged at submit | 100%, automatic | Refunded jobs show `"refunded": true`. The money returns to the balance it came from (trial credit or topped-up balance). ## Balance refunds (on request) - Unused topped-up balance can be refunded within 30 days of the top-up, to the original payment method. - Balance spent on successful jobs is not refundable. - The $0.5 trial credit has no cash value and is never refunded. - Topped-up balance does not expire. ## How to ask Open a support ticket from the [console](/console) with the top-up date and amount. Refunds of balance are paid back through the payment processor that took the payment. ## FAQ **Am I refunded if a generation fails?** Yes. Failed, timed-out and cancelled jobs are refunded in full automatically. **Can I get my unused balance back?** Yes. Unused topped-up balance is refundable within 30 days of the top-up. **Is the trial credit refundable?** No. The $0.5 trial credit has no cash value. --- # Acceptable use policy URL: https://useflowapi.com/acceptable-use FlowAPI bans 7 kinds of content and pauses an account for 24 hours after 3 model content refusals within 24 hours; 10 refusals lead to a ban pending manual review. ## Banned content Do not use FlowAPI to create, upload or share: 1. Sexual content involving minors, in any form. 2. Sexual or intimate images of a real person without their consent. 3. Deceptive impersonation of a real person, including fake endorsements and election misinformation. 4. Content that threatens, harasses or incites violence against people or groups. 5. Content that infringes someone else's copyright, trademark or privacy. 6. Instructions or material for weapons, malware or other serious harm. 7. Anything illegal where you or your users are. Model vendors also apply their own content rules; a request they refuse fails with `FLOW_CONTENT_REJECTED` and is refunded. ## Enforcement | Refused requests in 24 hours | Result | | --- | --- | | 3 | Submissions paused for 24 hours | | 10 | Account banned pending manual review | FlowAPI can also suspend accounts for trial abuse, key sharing for resale, or attempts to get around limits. ## Your users If you build a product on FlowAPI, you are responsible for what your users submit. Filter prompts and uploads before you send them. ## Report abuse Report content made with FlowAPI through a support ticket from the [console](/console). ## FAQ **What happens if the model refuses my prompt?** The job fails with FLOW_CONTENT_REJECTED and is refunded; 3 refusals in 24 hours pause submissions for 24 hours. **Can I generate images of real people?** No, not without their consent; deceptive or intimate images of real people are banned. **Am I responsible for my own users?** Yes. If you build on FlowAPI, you are responsible for what your users submit. --- ## Blog Posts ### Blocks vs Components: What Survives a Rebrand URL: https://useflowapi.com/blog/blocks-vs-components Description: The core architectural split in ShipAny TanStack — disposable blocks read i18n and wire content, durable components render anything you feed them. --- ### What is ShipAny TanStack URL: https://useflowapi.com/blog/what-is-shipany Description: ShipAny TanStack is a headless SaaS engine — auth, payments, subscriptions, credits, RBAC, and i18n pre-wired so you can focus on your product. ---